informix 常用命令

📅 2026/7/27 13:35:35 👁️ 阅读次数 📝 编程学习
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 路径。

导入数据