我有一张表格,其中包含从气象观测中收集的数据。数据准备不足,因此在插入数据库时会出错。在最近的一次浏览中,我发现了不应该存在的非数字数据。
如何选择存在非数值的行?
该表的布局如下:
#\d data.tempe
Table "data.tempe"
Column | Type | Modifiers
------------+-----------------------+-----------
id-station | integer |
year | integer |
t1 | character varying(25) |
t2 | character varying(25) |
t3 | character varying(25) |
t4 | character varying(25) |
t5 | character varying(25) |
t6 | character varying(25) |
t7 | character varying(25) |
t8 | character varying(25) |
t9 | character varying(25) |
t10 | character varying(25) |
t11 | character varying(25) |
t12 | character varying(25) |