英文字段名自动翻译为中文的实现  被引量:1

The implementation of automatic translation of English field name into Chinese

在线阅读下载全文

作  者:刘友生[1] Liu Yousheng(Computer Department,Guangdong Songshan Polytechnic College,Shaoguan,Guangdong 512126,China)

机构地区:[1]广东松山职业技术学院计算机系

出  处:《计算机时代》2019年第12期64-66,共3页Computer Era

基  金:中国计算机学会职业教育发展委员会职业教育科研课题(编号:CCFVC2018020);广东省普通高校特色创新项目(2018GKTSCX094);广东省精品资源共享课《构件化网站开发》

摘  要:在数据库设计时为了使数据库能够与操作系统的环境兼容,通常将数据库的字段名用英文来表示,但在数据显示时又希望以中文来显示字段名。虽然可以在Select语句中通过指定别名来解决这个问题,但如果数据库表名很多,需要查询也很多时,这种方法很麻烦而且没有通用性。因此,提出将英文字段名和对应的中文字段名预存于数据库中,当需要显示时,通过设计对应的Web构件,将要显示的英文字段名与预存数据库中的中文进行匹配来显示。实践证明,用这种方法能很好地解决了用中文显示英文字段名的问题。In order to make the database compatible with the environment of the operating system,the field name of the database is usually expressed in English,but when displaying the data,the field name is expected to be displayed in Chinese.Although the alias can be specified in the Select statement,this method is troublesome if there are many table names in the database and many queries are needed.In order to solve this problem,it is proposed to save the English word names and corresponding Chinese field names in the database.When a field name needs to be displayed,the English field name can be matched to the Chinese one in the database by designing the corresponding Web components.Practice has proved that this method can realize the automatic display of English fields in Chinese,which solves the problem of Chinese display.

关 键 词:数据库 英文字段名 显示构件 自动翻译 

分 类 号:TP392[自动化与计算机技术—计算机应用技术]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象