本文介绍了编写存储过程以比较两个表值并在另一个表中插入值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 教育(表名) Studid手机 1 2 学生(表名) Studid 1 2 3 4 临时(表名) Studid Mobilenum 1 9789512450 2 9789512650 3 9789455564 4 9785654450 5 9785657888 6 9789518780 我要比较Temptable和Studenttable studid。 如果Temptable和Studenttable studid匹配更新Studenteducation表中特定studid的mobileno 如果Temptable和Studenttable studid不匹配,请在Studenteducation表中插入学生ID和特定studid的mobileno。 为什么我如何编写商店程序并在Studenteducation表中插入和更新这些值。 Rgds, Narasiman P. 解决方案 Education (Table Name)Studid Mobile12Student (Table Name)Studid 1234Temporary (Table Name)Studid Mobilenum1 97895124502 97895126503 97894555644 97856544505 97856578886 9789518780 I want to compare the Temptable and Studenttable studid.if Temptable and Studenttable studid matches update the mobileno of particular studid in Studenteducation table if Temptable and Studenttable studid not matches insert the student id and mobileno of particular studid in Studenteducation table. for that how can i write the store procedure and insert and update those values in Studenteducation table. Rgds,Narasiman P. 解决方案 这篇关于编写存储过程以比较两个表值并在另一个表中插入值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 09-22 07:11