Use the query as follows: SELECT myfield::integer FROM mytable WHERE myfield ~ E'^\\d+$';. In Postgres, you can't get any non-integers ...
確定! 回上一頁