首页上一页 1 下一页尾页 1 条记录 1/1页
实例027
发表在Oracle视频答疑
2011-03-16
是否精华
是
否
版块置顶:
是
否
USE db_sql2000
GO
SELECT stu_id AS 学生编号,
stu_name AS 学生姓名,
stu_sex AS 性别,
CONVERT(VARCHAR,stu_btd,10) AS 出生日期,
profession AS 专业,
CONVERT(VARCHAR,jointime,1) AS 入学时间
FROM Student
ORDER BY LEFT(stu_id,4), SUBSTRING(stu_id,6,2),SUBSTRING(stu_id,5,1),RIGHT(stu_id,5)
GO
这里LEFT(stu_id,4),SUBSTRING(stu_id,6,2),SUBSTRING(stu_id,5,1),RIGHT(stu_id,5)
表示什么意思,能否通过本例子讲解?
GO
SELECT stu_id AS 学生编号,
stu_name AS 学生姓名,
stu_sex AS 性别,
CONVERT(VARCHAR,stu_btd,10) AS 出生日期,
profession AS 专业,
CONVERT(VARCHAR,jointime,1) AS 入学时间
FROM Student
ORDER BY LEFT(stu_id,4), SUBSTRING(stu_id,6,2),SUBSTRING(stu_id,5,1),RIGHT(stu_id,5)
GO
这里LEFT(stu_id,4),SUBSTRING(stu_id,6,2),SUBSTRING(stu_id,5,1),RIGHT(stu_id,5)
表示什么意思,能否通过本例子讲解?