批量插入数据,用于MySQL、SQLServer、Oracle、DB2及Vertica等系统级数据库。
例:从1到1000向表中插入1000条记录<html>
<title>增加一千条记录</title>
<chtml>
<for start=1 end=1001>
<esql module=mysqlmodule act=batch>
Insert Into MyTab
( num )
Values
(‘@{for:getSuffix}’)
</esql>
</for>
</chtml>
</html>
说明:
act=
batch时,同一结构的insert语句会合并到一个与数据库交互的会话中,在页面结束时提交到数据库执行,通常用大量数据需要通过应用层加载到数据库中的时候。
自己建一张表,亲自试试吧!
轻开平台资源下载及说明
平台免费下载:http://download.csdn.net/detail/tx18/8381859
最新开发手册下载:http://download.csdn.net/detail/tx18/8411089
开发实例:轻开B2C电子商务网站,免费下载:http://download.csdn.net/detail/tx18/8318585
轻开平台会不定期升级为大家提供更多强大而Easy的功能,请留意最新的开发手册