forum

Home / DeveloperSection / Forums / How to select a table from many table while inserting

How to select a table from many table while inserting

ranjunath govind220921-Jul-2014
I have 4 tables
 
StdntBtech,StdntPg,StdntUg,StdntDip
 
I have to insert values into StdntBtech if the course name is BE or Btech
similarly 
 
I have to insert values into StdntPG if the course name is MCA or MSc
similarly
I have to insert values into StdntUg if the course name is BSc
 
similarly 
I have to insert values into StdntDip if the course name is Diploma

which statement I have to use(IF or Case)
if so how the syntax will be?
how can I use a string instead of table name in insert statement?




Updated on 23-Jul-2014

Can you answer this question?


Answer

1 Answers

Liked By