开发者

SQLite: extended field description

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜