剛開始習慣用Oracle的查詢方法,發現查詢無結果;
好吧,看了下教程,Postgres的LIKE隻字符串比較。也就是說integer類型需要顯式的作爲字符串來展示;
select * from table where colnum::text like '%xxx%';
%和_都跟Oracle差不多的意思。
剛開始習慣用Oracle的查詢方法,發現查詢無結果;
好吧,看了下教程,Postgres的LIKE隻字符串比較。也就是說integer類型需要顯式的作爲字符串來展示;
select * from table where colnum::text like '%xxx%';
%和_都跟Oracle差不多的意思。