在delphi中如何动态改变sql server数据库的表结构 在delphi中如何动态改变sql server数据库的表结构 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 用alter table 命令with query dobeginclose;sql.clear;sql.add('create table a(b int)');//创建表execsql;close;sql.clear;sql.add('alter table aadd column c int');//修改表execsql;end; 但在query中列名是不确定的,所以需要参数,但在运行时提示错误.程序如下:query1.close;query1.sql.add(alter table test add :col decimal(4,1) null);query1.parambyname('col").value:=edit1.text;query1.exesql; 【求包养】路过的大款,包养俺吧,俺活不下去了 DBGridEh问题 关于在线程中操作Image的问题,200分急求解 请教 声道问题~~~~ Report Builder错误?哪位大虾遇到过类似问题? 音量调节 这个是什么意思呀 学delphi北京哪里比较好? listview用法问题,急用! 一直在用D7,想升级开发工具XE2、XE3、XE4哪个更理想 列印标签格式的问题 刚学一个月
begin
close;
sql.clear;
sql.add('create table a(b int)');//创建表
execsql;
close;
sql.clear;
sql.add('alter table aadd column c int');//修改表
execsql;
end;
但在运行时提示错误.
程序如下:
query1.close;
query1.sql.add(alter table test add :col decimal(4,1) null);
query1.parambyname('col").value:=edit1.text;
query1.exesql;