本文介绍了我有三个表,这三个包含相同的列名称,另外第三个表包含额外的coumn名称如何添加这三个表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 29岁程序员,3月因学历无情被辞! 选择 l.admission_number,l.student_class,l.student_name,l.telugu 来自 lkg_to_seventh_marks as l union 全部 选择 e.admission_number,e.student_class,e.student_name,e.telugu 从 eight_to_ninth_marks as e union all 选择 t.admission_number,t.student_class,t.student_name,t.telugu_1 来自 tenthclass_marks as t 输出为: admission_nuber student_class student_name telugu 1 lkg ghfh 45 i得出这样的............ bt我的要求是额外的列telugu_1应该添加解决方案 select l.admission_number,l.student_class ,l.student_name ,l.telugu from lkg_to_seventh_marks as lunion allselect e.admission_number ,e.student_class ,e.student_name ,e.telugu from eighth_to_ninth_marks as eunion allselect t.admission_number ,t.student_class ,t.student_name ,t.telugu_1 from tenthclass_marks as toutput is:admission_nuber student_class student_name telugu1 lkg ghfh 45i got out put like this ...........bt my requirement is additional column telugu_1 should be add 解决方案 这篇关于我有三个表,这三个包含相同的列名称,另外第三个表包含额外的coumn名称如何添加这三个表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云! 08-10 23:56