Click here to Skip to main content
15,944,837 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi all

Im using Vb.net and SQL server

I have tried like

SQL
delete  FROM t_tdressordered as a , t_torderform as b
WHERE a.orderform_gid = '10'
and a.orderform_gid = b.orderform_gid


But getting error lik :

Msg 156, Level 15, State 1, Line 1
Incorrect syntax near the keyword 'as'.

Thanks in advance

Regads

Naveen....
Posted

1 solution

try this:

SQL
delete
from
    t_tdressordered a
        inner join t_torderform b on a.orderform_gid = b.orderform_gid
where
    a.orderform_gid = '10'
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900