Q&A

  • 쿼리질문입니다
안녕하세요! 델파이 초보 입니다. 아래 쿼리좀 봐주세요..잘못된건지

자꾸 ADOQuery2.Parameters.ParamByName('ntc_memo').Value :=Memo1.TExt;

라인에서 에러가 납니다. 어는부분이 틀린건지 답변 부탁드립니다







ADOQuery2.Close;

ADOQuery2.SQL.Add('Update From t_notice set ntc_sect = :new_sect ,');

ADOQuery2.SQL.Add('ntc_title = :ntc_title ');

ADOQuery2.SQL.Add('ntc_content = :ntc_memo');

ADOQuery2.SQL.Add(' where ntc_idx = :ntc_idx');

ADOQuery2.Parameters.ParamByName('ntc_title').Value := Edit1.Text;

ADOQuery2.Parameters.ParamByName('ntc_memo').Value := Memo1.TExt;

ADOQuery2.Parameters.ParamByName('ntc_idx').Value := new_no;





1  COMMENTS
  • Profile
    이성찬 2001.09.18 02:38
    일단 콤마가 없네요...

    에러 메세지 올려주세요



    초보 wrote:

    > 안녕하세요! 델파이 초보 입니다. 아래 쿼리좀 봐주세요..잘못된건지

    > 자꾸 ADOQuery2.Parameters.ParamByName('ntc_memo').Value :=Memo1.TExt;

    > 라인에서 에러가 납니다. 어는부분이 틀린건지 답변 부탁드립니다

    >

    >

    >

    > ADOQuery2.Close;

    > ADOQuery2.SQL.Add('Update From t_notice set ntc_sect = :new_sect ,');

    > ADOQuery2.SQL.Add('ntc_title = :ntc_title ');

    > ADOQuery2.SQL.Add('ntc_content = :ntc_memo');

    > ADOQuery2.SQL.Add(' where ntc_idx = :ntc_idx');

    > ADOQuery2.Parameters.ParamByName('ntc_title').Value := Edit1.Text;

    > ADOQuery2.Parameters.ParamByName('ntc_memo').Value := Memo1.TExt;

    > ADOQuery2.Parameters.ParamByName('ntc_idx').Value := new_no;

    >

    >