开发者

SQLite: extended field description

开发者 https://www.devze.com 2022-12-19 06:34 出处:网络
In MS-SQL a field can have a description: Name: FName Description: First N开发者_如何学JAVAame Can a SqLite - table have the same??

In MS-SQL a field can have a description:

Name: FName

Description: First N开发者_如何学JAVAame

Can a SqLite - table have the same??

Thank you! Reinhard


I don't think SQLite support that.

An alternative way is to use comments in the create statement, like this

create table foo (
  id integer -- field 1
, name text -- field 2
)

then you can get back the create query and see the descriptions.

Example:

select sql from sqlite_master where name = 'foo'

output:

CREATE TABLE foo (
  id integer -- field 1
, name text -- field 2
)
0

精彩评论

暂无评论...
验证码 换一张
取 消