C++Builder Programming Forum
C++Builder  |  Delphi  |  FireMonkey  |  C/C++  |  Free Pascal  |  Firebird
볼랜드포럼 BorlandForum
 경고! 게시물 작성자의 사전 허락없는 메일주소 추출행위 절대 금지
C++빌더 포럼
Q & A
FAQ
팁&트릭
강좌/문서
자료실
컴포넌트/라이브러리
메신저 프로젝트
볼랜드포럼 홈
헤드라인 뉴스
IT 뉴스
공지사항
자유게시판
해피 브레이크
공동 프로젝트
구인/구직
회원 장터
건의사항
운영진 게시판
회원 메뉴
북마크
볼랜드포럼 광고 모집

C++빌더 Q&A
C++Builder Programming Q&A
[27803] insert into 구문 오류 입니다.
조상은 [] 1452 읽음    2003-11-07 13:22

아래와 같이 코딩되어 있는 상태입니다.

    String strSql;
    int RecCount;

    if(!ADOConnection1->Connected)ADOConnection1->Open();

    strSql = "INSERT INTO tblProject(PID, MadeBy, Date, Nation, City, Comment)";
    strSql += " VALUES (";
    strSql += "'" + edtPID->Text + "',";
    strSql += "'" + edtMadeby->Text + "',";
    strSql += "'" + String(datProject->Date) + "',";
    strSql += "'" + cboNation->Text + "',";
    strSql += "'" + cboCity->Text + "',";
    strSql += "'" + memComment->Lines->Text + "')";

    try
    {
        ADOConnection1->Execute(WideString(strSql),
                    RecCount,
                    TExecuteOptions());
        ShowMessage(IntToStr(RecCount));
    }
    catch(...)
    {

    }
    ADOConnection1->Close();

         Select문을 사용할때에는 문제가 없는데, insert into만 사용하면 오류라고 하네요..
         고수님들의 고견 부탁드립니다.

         DB:access2000을 사용중입니다.


+ -

관련 글 리스트
27803 insert into 구문 오류 입니다. 조상은 1452 2003/11/07
33915     Re:insert into 구문 오류 입니다. 조상은 904 2003/11/07
33914     Re:insert into 구문 오류 입니다. yypbd 1018 2003/11/07
33913     Re:insert into 구문 오류 입니다. 손수토 925 2003/11/07
33912     Re:insert into 구문 오류 입니다. 손수토 1078 2003/11/07
Google
Copyright © 1999-2015, borlandforum.com. All right reserved.