Error of SQL query on IBM netezza SQL database from Aginity workbench on Win7 -


i need sql query on ibm netezza sql database aginity workbench on win7.

my query:

 select *  table1 c ,        table2  b  cast(c.id int) = b.id 

in table1, id character varying(20) , in table2, id int.

table1:    id    value1        value2 '985'  'casdqwdc'   '654.3184'  // char  table2:   id    value1         985   694381   // id int, value1 int 

i got error:

  error [hy000] error:  pg_atoi: error in "id": can't parse "id" 

any appreciated.

somewhere in column id in table1 there value can't converted integer.

based on error, have used nzload or external table load data file has header row column labels without skipping row, , have 1 row value 'id' in column id.

testdb.admin(admin)=> select cast('id' int); error:  pg_atoi: error in "id": can't parse "id" 

Comments

Popular posts from this blog

javascript - How do I find how many occurences are there of a highlighted string, and which occurence is it? -

javascript - How to synchronize the Three.js and HTML/SVG coordinate systems (especially w.r.t. the y-axis)? -

java - Reading data from multiple zip files and combining them to one -