Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/date/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
在date9中插入日期_Date_Types_Proc Sql - Fatal编程技术网

在date9中插入日期

在date9中插入日期,date,types,proc-sql,Date,Types,Proc Sql,在我的PROC SQL snipped中,我试图比较数据类型为date9的列。截至2015年12月31日止。我试过: test_date = '31DEC2015' 这将返回以下错误: 错误:使用equals(=)的表达式包含不同数据类型的组件 正确的语法是什么?在引用的日期值末尾添加“d”: 测试日期='2015年12月31日'd

在我的PROC SQL snipped中,我试图比较数据类型为
date9
的列。截至2015年12月31日止。我试过:

test_date = '31DEC2015' 
这将返回以下错误:

错误:使用equals(=)的表达式包含不同数据类型的组件

正确的语法是什么?

在引用的日期值末尾添加“d”:

测试日期='2015年12月31日'd