从学数据库的第一天起,我就没有用过中文字段。 可以设计英文字段,再用sp_addextendedproperty加上中文描述,使用时用视图查出中文描述即可 Create view FieldDesc As select o.name as oname, c.name as cname,convert(varchar(30),p.value) as value,p.smallid as psmallid,t.name as tname from syscolumns c join systypes t on c.xtype = t.xtype join sysobjects o on o.id=c.id left join sysproperties p on p.smallid=c.colid and p.id=o.id where o.xtype='U'
但推荐用中文,这样在写SQL语句时比较方便。
但编程的时候你就得来来回回不停的切换ch/en
可以设计英文字段,再用sp_addextendedproperty加上中文描述,使用时用视图查出中文描述即可
Create view FieldDesc
As
select o.name as oname, c.name as cname,convert(varchar(30),p.value) as value,p.smallid as psmallid,t.name as tname
from syscolumns c
join systypes t on c.xtype = t.xtype
join sysobjects o on o.id=c.id
left join sysproperties p on p.smallid=c.colid and p.id=o.id
where o.xtype='U'
当你在VB中这样写 recordset!名字时,你觉得怎样??
当然,compile或者run时有可能pass(我没试过,但从电脑报上看过在VB中可以用中文
变量,故只能说可能),但是,假如你的程式须具备可移植性呢?就是说现在假设要将它
移植到一个不支持汉字的机器上去,那会出现怎样的情况?
http://expert.csdn.net/Expert/TopicView1.asp?id=1959120
如果sql不是安装在中文平台呢?不是很好,主要就是兼容性问题。
用英文也可以准确描述啊。
我个人觉得,用英文名,加中文注释。