开发者

How do you add a field to a table (MySQL) in ColdFusion?

开发者 https://www.devze.com 2023-03-20 07:14 出处:网络
I want to create a cold fusion(9) script that adds a field (\'pageTitle\') to a开发者_如何学运维 MySQL table (\'pb_page\'). Can someone enlighten me and teach me how this is done? Thx!<cfquery name

I want to create a cold fusion(9) script that adds a field ('pageTitle') to a开发者_如何学运维 MySQL table ('pb_page'). Can someone enlighten me and teach me how this is done? Thx!


<cfquery name='alterdb' datasource='mydsn'>
alter table `mydatabase`.`mytable` add column `myfield` varchar(255) NULL after `lastfield`;
</cfquery>
0

精彩评论

暂无评论...
验证码 换一张
取 消