Olá pessoal
estou tentando deletar os registro da minha tabela pelo sql e fiz dessa forma, mas está ocorrendo erro
Código:
String DEL = IntToStr(DM->ClientDataSet2MES->Value);//campo MES=Integer
DM->SQLQuery1->Active = false;
DM->ClientDataSet1->Active = false;
DM->SQLQuery1->SQL->Clear();
DM->SQLQuery1->SQL->Add("Delete * from OS where MES = '"+DEL+"'");//campo MES=Integer
DM->SQLQuery1->Active = true;
DM->ClientDataSet1->Active = true;
Citação:
---------------------------
Debugger Exception Notification
---------------------------
Project CM.exe raised exception class EUIBError with message 'Dynamic SQL Error
SQL error code = -104
Token unknown - line 1, column 8
*
Invalid token
Error Code: 249'. Process stopped. Use Step or Run to continue.
o que está errado? estou usando banco firebird
desde já agradeço.