Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Data Deletion from a TABLE

Status
Not open for further replies.

pmcmicha

Technical User
May 25, 2000
353
I have a table that I need to delete records from, but my syntax is incorrect, could someone please correct this:

1> DELETE * FROM {TABLE} WHERE {ARG}="{VALUE}"
2> GO

I am getting this error:

Msg 102, Level 15, State 1:
Server 'SYBASE', Line 1:
Incorrect syntax near '*'.

Thanks.
 
Just leave out the *. It's not used in delete statements. You may also have to use single quotes. At least that's what is used in Oracle.

DELETE FROM {TABLE} WHERE {ARG}='{VALUE}'
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top