很多东西见到才想起来有这么回事……
select a.Name Employee from Employee as a,Employee as b
where a.Salary>b.Salary and b.Id=a.Managerid
直接在select后from前添加列名称,作为输出结果的列名称,如果没有则默认为原始表的列名
存储过程,oracle的todata函数没有指定的话会自动带上年月日,默认为当月1号,可坑了,可以在外面嵌套一层tochar解决
很多东西见到才想起来有这么回事……
select a.Name Employee from Employee as a,Employee as b
where a.Salary>b.Salary and b.Id=a.Managerid
直接在select后from前添加列名称,作为输出结果的列名称,如果没有则默认为原始表的列名
存储过程,oracle的todata函数没有指定的话会自动带上年月日,默认为当月1号,可坑了,可以在外面嵌套一层tochar解决