Home > Database > Mysql Tutorial > SQL Server不能使用GETDATE()

SQL Server不能使用GETDATE()

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-07 14:57:22
Original
2693 people have browsed it

无详细内容 无 SQLServer的自定义函数限制很大,其中一条就是不能使用不确定函数。其中就包括getdate()。如果你非要在函数中得到getdate(),有如下办法:定义一个视图create view v_getdateasselect getdate() as now_date然后在函数中就可以:select now

SQLServer的自定义函数限制很大,其中一条就是不能使用不确定函数。
其中就包括getdate()。

如果你非要在函数中得到getdate(),有如下办法:
定义一个视图
create view v_getdate
as
select getdate() as now_date

然后在函数中就可以:
select now_date from v_getdate

Copy after login
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Issues
sql file
From 1970-01-01 08:00:00
0
0
0
php - Overhead of prepare vs sql?
From 1970-01-01 08:00:00
0
0
0
Print sql statement
From 1970-01-01 08:00:00
0
0
0
Pass array to SQL insert query using PHP
From 1970-01-01 08:00:00
0
0
0
sql optimization or
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template