如果是SQL server里,getdate()函数用于获取当前时间,用as 命字段名,如:

select getdate() as 时间

如果是Oracle,则是用sysdate获取当前时间,如:

select sysdate as 时间