안녕하세요! 델파이 초보 입니다. 아래 쿼리좀 봐주세요..잘못된건지
자꾸 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;
UPDATE SQL 문장이 오류가 있군요..
UPDATE table_reference
SET column_ref = update_atom [, column_ref = update_atom...]
[WHERE predicates]
UPDATE 다음에 FROM을 빼세요..
초보 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;
>
>