当前位置:新励学网 > 语言作文 > 数据库中怎么样使查询结果的列名为对应中文

数据库中怎么样使查询结果的列名为对应中文

发表时间:2024-07-08 14:05:07 来源:网友投稿

1、创建测试表,createtabletest_student(stu_idnumber,class_idnumber);

2、插入测试数据,

insertintotest_studentvalues(1,1001);

insertintotest_studentvalues(2,1001);

insertintotest_studentvalues(3,1002);

insertintotest_studentvalues(4,1003);

insertintotest_studentvalues(5,1003);

insertintotest_studentvalues(6,1003);

commit;

3、查询数据表中内容,select*fromtest_student;

4、将列名翻译为中文名进行展示,selectstu_idas学生编码,class_idas课程编码fromtest_studentt;

免责声明:本站发布的教育资讯(图片、视频和文字)以本站原创、转载和分享为主,文章观点不代表本网站立场。

如果本文侵犯了您的权益,请联系底部站长邮箱进行举报反馈,一经查实,我们将在第一时间处理,感谢您对本站的关注!