SybaseIQ上SQL基本使用
锁定:
sp_iqlocks
踢人:
drop connection 1234
存储过程查找:
sybase central里面查询的命令(查找过滤器例如:%table%),Sybase Central/Sybase IQ 15/服务器/xxx/xxx/过程和函数/Sp_load_fileTotable_unix_px_new(xxx)
在SybaseIQ登陆到目标sybase,执行存储过程:
call Sp_load_fileTotable_unix_px_new('/home/loadtable/data.csv','t_student');
建表 //支持数据类型:BIGINT DOUBLE等
CREATE TABLE IF NOT EXISTS t_student( date TIMESTAMP, name varchar(20), age INT );
插入数据:
insert into t_student values ('2015-09-09 00:00:00.000','tom',22);
查询数据:
select * from t_student where name like '%cat%';
查询表信息:
SELECT * FROM sysobjects where name like '%teacher%';