是否有任何的SQLite保留字? [英] Are there any reserved words in SQLite?

查看:365
本文介绍了是否有任何的SQLite保留字?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

关于保留字三个问题:

  1. 是否有SQLite的任何保留字?如果是的话,它们是什么?

  2. 如果有保留字,是正确的语法使用其中一个作为列或表名还是用括号括起来?例如, [用户] [名]

  3. 有没有使用的话中保留的SQL(例如,SQLServer的)其他的口味,但使用ADO.NET时要查询SQLite数据库不保留在SQLite的任何影响?

解决方案
  1. 是的,请参阅 http://www.sqlite.org/lang_keywords.html 的名单。

  2. 您可以括号他们,但它不是标准的SQL。此外,请参阅<一href="http://www.sqlite.org/lang_keywords.html">http://www.sqlite.org/lang_keywords.html

Three questions about reserved words:

  1. Are there any reserved words in SQLite? If so, what are they?

  2. If there are reserved words, is the correct syntax for using one of them as a column or table name still to surround it with brackets? E.g., [User] or [Name]?

  3. Are there any implications with using words that are reserved in other flavors of SQL (e.g., SQLServer) but not reserved in SQLite when using ADO.NET to query a SQLite database?

解决方案

  1. Yes, see http://www.sqlite.org/lang_keywords.html for the list.

  2. You can bracket them, but it isn't standard SQL. Also, see http://www.sqlite.org/lang_keywords.html

这篇关于是否有任何的SQLite保留字?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆