Click here to Skip to main content
15,903,175 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
DELETE NM.* FROM NewsMaster NM INNER JOIN news_images NI ON NM.news_id = NI.news_id
WHERE NM.news_id= '22872'

What I have tried:

Above i mention My Query and i am Getting Error -
Msg 102, Level 15, State 1, Line 1
Incorrect syntax near '*'.

So Please help Me
Posted
Updated 5-Jun-17 20:34pm

1 solution

Try:
DELETE NM FROM NewsMaster NM INNER JOIN news_images NI ON NM.news_id = NI.news_id
WHERE NM.news_id= '22872'
 
Share this answer
 
Comments
Member 12183079 6-Jun-17 2:39am    
Thank You
OriginalGriff 6-Jun-17 3:31am    
You're welcome!

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