三亩地 三亩地SAN MU DI · CODE DIARY
ARTICLE DETAIL

日记详情

真实记录编程学习的某一天,欢迎挑你感兴趣的翻一翻。

informix 常用命令

informix 常用命令

不包括系统表和视图的其他的表的表名
select tabname from systables where tabid>99;

查询除不包括系统的所有表,但是包括了视图
select tabname from systables where tabid>99 and tabtype='T';

查询用户自己建的表
select tabname from sysmaster:systabnames where dbsname='pmdb'

导出数据&Load导入数据

执行命令 dbaccess test - -

例如:

导出全部数据

unload to /opt/informix/abc.csv delimiter "," select * from test;

导出前十行数据

unload to /home/informix/ces.csv delimiter "," select first 10 * from ttq;

/home/informix 为指定吐出数据文件csv 路径。

导入数据

← 返回列表