有INI表,当中有三个字段(AA,BB,CC),现在需在第二个字段BB前新增一个字段TT,请问各位高手,如何写这一SQL语句?
解决方案 »
- fastrport使用
- delphi里面的string、char等
- rxrichedit插入图片后,这个图片是什么?怎么在程序中对这个图片进行操作?
- 如何根据控件的TABORDER值来SETFOCUS?
- 救命啊,就解问题!!!!!!!!!!!!!!!!!!!!!!!
- 简单问题抢分啦!!!delphi中有没有类试于vb中addmonth的函数
- 哪些对象需要create
- 你在delphi中,用到了多少面向对象的知识?
- 第一次遇到如此问题,我已无计可施,com应用程序无法跟踪
- 飓风搜索通真的挺神奇的!耗用资源特别小!
- 数据库中,dbgrid中单元格 上色问题 跪哭求解
- 用FastReport动态生成报表时,如何设置TfrMemoView的Parent?
go
insert into temp~ select * from ini
go
drop table ini
go
create table ini (aa char[10],tt char[10],bb char [10],cc char[10])
go
insert into ini select * from temp~
go
drop table temp~
go
使用SQL语句中的 InsertColumn方法,可以查帮助解决这个问题。
能否写一个SQL语句例子,帮助说得不是很清楚?
标准的SQL语句,但只能将列放在最后。对于关系型SQL数据库来说,列的顺序是无所谓的,只需要在select语句中指定一下便可以了
看看 tsql的帮助你就知道是行不通的:Res
Use the InsertColumn method when the ordinal position of a column must be maintained.Note Columns in existing Microsoft® SQL Server™ 2000 tables have fixed ordinal location. You cannot use the InsertColumn method when the Table object references an existing SQL Server table. Use InsertColumn only when the Table object is used to create a SQL Server table.