问题描述
我需要在运行时创建表以创建股票簿。列名是项目代码。初始表创建如下,
<div>
There are many variations of passages of Lorem Ipsum available,but the majority have suffered alteration in some form,by injected humour,or randomised words which don't look even slightly believable. If you are going to use a passage of Lorem Ipsum,you need to be sure there isn't anything embarrassing hidden in the middle of text
</div>
<div>Single line of text</div>
'Create the new table
strsql1 = "CREATE TABLE " & Trim(dbname) & ".dbo.TB_ST_BOOK (" &
"id int IDENTITY(1,1) PRIMARY KEY," &
"Entry VARCHAR(30)," &
"entry_date DATETIME," &
") "
obj.CommandText = strsql1
obj.ExecuteNonQuery()
我担心的是,如果列数超过1024个限制(当项目数不超过1024个时)会发生什么? 我读到创建一个宽表可以解决该问题。如果是这样,如何修改上面的代码以创建一个宽表? 将其更改为宽表后,是否需要更改插入,更新和删除代码?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)