The first query works while the second doesnt, am not able to figure, can u please help me out.
1) // $query3="insert into ttrough(am,pm) select ttam.subject,ttpm.subjectpm from ttam,ttpm where ttam.class != ttpm.classpm limit 1";// this one actually takes two columns from different tables and checks whether they are not similar(if i may be correct)
2) this encouraged me to try for 4 columns from 4 different table as i needed in my college project.
//$result7=mysql_query("INSERT INTO ttrough(am,am1,pm,pm1) SELECT ttam.subject,ttam1.subject,ttpm.subjectpm,ttpm1.subjectpm WHERE ttam.class!=ttam1.class!=ttpm.classpm!=ttpm1.classpm ");
where , ttrough,ttam,ttam1,ttpm,ttpm2 are different tables
1 Year Ago
Related Article:difference b/w sql,mysql&oracle?
is a MySQL discussion thread by virtues that has 4 replies, was last updated 1 year ago and has been tagged with the keywords: &, mysql, oracle, sql.