SQL数据库中getDate()函数

 时间:2024-10-16 12:23:34

SQL数据库中getDate()函数作用是获取系统当前时间。

语法功能

功 能: GETDATE() 函数从 SQL Server 返回当前的时间和日期。

列:SELECT GETDATE() AS CurrentDateTime

SQL数据库中getDate()函数

扩展资料:

函数名: getdate

功 能: 取DOS日期

用 法: void getdate(struct *dateblk);

程序例:

#include<stdio.h>

#include <dos.h>

int main(void)

{

struct date d;

getdate(&d);

printf("The current year is: %d\n",

d.da_year);

printf("The current day is: %d\n",

d.da_day);

printf("The current month is: %d\n",

d.da_mon);

return 0;

}

热门搜索
汉密尔顿手表怎么样 凌乱近义词 薄荷糖吃多了会怎么样 舒服的近义词是什么 怎么提高学习效率 嘴干是怎么回事 恶魔英文怎么写 赞叹的近义词 小孩睡觉出汗是怎么回事 浪费的近义词