Empty copy from local to temporary table
Hello.
I try to load csv file in temporary table using ODBC.
For example, i use isql:
BUT. If i use vsql, then everything is ok, and i load data successfully.
Please, help me...
Loading...
I try to load csv file in temporary table using ODBC.
For example, i use isql:
SQL> CREATE TEMPORARY TABLE qtest_tmp(id INT PRIMARY KEY, str VARCHAR(250));'file.csv' contents:
SQLRowCount returns 4294967295
SQL> COPY qtest_tmp FROM LOCAL 'file.csv' DELIMITER ';' NULL '';
SQLRowCount returns 3
SQL> SELECT * FROM qtest_tmp;
+---------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| id | str |
+---------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
+---------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
SQLRowCount returns 0
SQL>
0;str0I get same mournful result if use ODBC C api.
1;str1
2;str2
BUT. If i use vsql, then everything is ok, and i load data successfully.
Please, help me...
Loading...
0
Comments