在 Filemaker 日期时间字段中插入问题
Insert problem in a Filemaker datetime field
我需要在 Filemaker table 字段中输入一个值,该字段应该是 DATETIME 或 TIMESTAMP.I 根本不知道 Filemaker,但我做了这个简单的查询
INSERT INTO RadioGestInterface (Data_Ora_Prestazione) VALUES ('2019-02-14 11:13:11')
但我总是得到这个错误:
错误 [HY000] [FileMaker][FileMaker] FQL0013/(1:62):分配中的类型不兼容。
我哪里错了?
根据 FileMaker®16 SQL Reference 文档,第 24 页:
For ODBC and JDBC applications, FileMaker accepts the ODBC/JDBC format
date, time, and timestamp constants in braces ({}).
Examples
- {D '2019-06-05'}
- {T '14:35:10'}
- {TS '2019-06-05 14:35:10'}
FileMaker allows the type specifier (D, T, TS) to be in upper case or
lower case. You may use any number of spaces after the type specifier,
or even omit the space.
FileMaker also accepts SQL-92 syntax ISO date and time formats with no
braces.
Examples
- DATE 'YYYY-MM-DD'
- TIME 'HH:MM:SS'
- TIMESTAMP 'YYYY-MM-DD HH:MM:SS'
我需要在 Filemaker table 字段中输入一个值,该字段应该是 DATETIME 或 TIMESTAMP.I 根本不知道 Filemaker,但我做了这个简单的查询
INSERT INTO RadioGestInterface (Data_Ora_Prestazione) VALUES ('2019-02-14 11:13:11')
但我总是得到这个错误: 错误 [HY000] [FileMaker][FileMaker] FQL0013/(1:62):分配中的类型不兼容。 我哪里错了?
根据 FileMaker®16 SQL Reference 文档,第 24 页:
For ODBC and JDBC applications, FileMaker accepts the ODBC/JDBC format date, time, and timestamp constants in braces ({}).
Examples
- {D '2019-06-05'}
- {T '14:35:10'}
- {TS '2019-06-05 14:35:10'}
FileMaker allows the type specifier (D, T, TS) to be in upper case or lower case. You may use any number of spaces after the type specifier, or even omit the space.
FileMaker also accepts SQL-92 syntax ISO date and time formats with no braces.
Examples
- DATE 'YYYY-MM-DD'
- TIME 'HH:MM:SS'
- TIMESTAMP 'YYYY-MM-DD HH:MM:SS'