Skip to content
Advertisement

How to insert to a table if there exist a value in another table

i have tried this

I want to insert to examqst only if there is a row examid in examname table and s_id in examname have a perticilar value

Advertisement

Answer

You could an INSERT INTO...SELECT:

User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement