| | |
Delphi sql delete
Please support our Pascal and Delphi advertiser: Programming Forums - DaniWeb Sister Site
![]() |
Hi All
I want to delete records from a table. I'm using the following query:
This gives a syntax error. does anyone know what I'm doing wrong?
Thanks for your time
Tai
I want to delete records from a table. I'm using the following query:
Pascal and Delphi Syntax (Toggle Plain Text)
adqdelete.active := false; adqdelete.sql.add('delete from stalls'); adqdelete.sql.add('where stall_name ='); adqdelete.sql.add(edtDeleteStalls.Text); adqdelete.active:=True;
This gives a syntax error. does anyone know what I'm doing wrong?
Thanks for your time
Tai
try{ be yourself;}
catch(you suck){be someone else;}
//always be yourself:unless you suck
catch(you suck){be someone else;}
//always be yourself:unless you suck
•
•
Join Date: Apr 2008
Posts: 3
Reputation:
Solved Threads: 0
[QUOTE=taineechan;702787]Hi All
I want to delete records from a table. I'm using the following query:
adqdelete.active := false;
adqdelete.sql.clear;
adqdelete.sql.add('delete from stalls where stall_name = ' + quotedStr(edtDeleteStalls.Text));
adqdelete.active:=True;
I want to delete records from a table. I'm using the following query:
Pascal and Delphi Syntax (Toggle Plain Text)
adqdelete.active := false; adqdelete.sql.add('delete from stalls'); adqdelete.sql.add('where stall_name ='); adqdelete.sql.add(edtDeleteStalls.Text); adqdelete.active:=True;
adqdelete.active := false;
adqdelete.sql.clear;
adqdelete.sql.add('delete from stalls where stall_name = ' + quotedStr(edtDeleteStalls.Text));
adqdelete.active:=True;
![]() |
Similar Threads
- trojans...now nothing opens and I get a paint can't open error (Viruses, Spyware and other Nasties)
- delphi object casting (Pascal and Delphi)
Other Threads in the Pascal and Delphi Forum
- Previous Thread: Need help with Delphi code
- Next Thread: pascal wait function
Views: 1807 | Replies: 2
| Thread Tools | Search this Thread |
Tag cloud for Pascal and Delphi





