This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 2 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(1)
在 Oracle 中,它是一个单引号,用于括起字符串(如 SQL 标准中所指定)。
除此之外,Oracle 建议我们使用
VARCHAR2
而不是VARCHAR
。最后,插入日期时,不要插入字符串 - 使用日期文字(如我的示例所示),或具有适当格式模型的 TO_DATE 函数。
In Oracle, it is a single quote you use to enclose strings (as specified in the SQL standard).
Apart from that, Oracle recommends us to use
VARCHAR2
instead ofVARCHAR
.Finally, when inserting dates, don't insert strings - use date literal (as my example shows), or
TO_DATE
function with appropriate format model.