loaddata_autocom.inc
来自「视频监控网络部分的协议ddns,的模块的实现代码,请大家大胆指正.」· INC 代码 · 共 22 行
INC
22 行
# Test if the engine does autocommit in LOAD DATA INFILE, or not# (NDB wants to do, others don't).eval SET SESSION STORAGE_ENGINE = $engine_type;--disable_warningsdrop table if exists t1;--enable_warningscreate table t1 (a text, b text);start transaction;load data infile '../std_data_ln/loaddata2.dat' into table t1 fields terminated by ',' enclosed by '''';commit;select count(*) from t1;truncate table t1;start transaction;load data infile '../std_data_ln/loaddata2.dat' into table t1 fields terminated by ',' enclosed by '''';rollback;select count(*) from t1;drop table t1;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?