Ⅰ db2中用SQL文导出一个结果文件, 结果文件中每行数据的行末都会有空格 这是为什么呀 怎么解决呀
你可以在每个字段间用字符分隔。如
select a||'\'||b from biao;
Ⅱ db2数据库中,查询数据时判断查询字段是否为空或空字符串,如果是就查
select * from table_name
where column_name is null
or column_name = ''
Ⅲ db2怎么使用SQL判断一个字段是纯数字还是纯字母
select * from a where isnumeric(b)union allselect * from a where NOT isnumeric(b) --其中b为需要过滤掉的列名