I am unable to load data using SQL Assistance
Teradata Teradata Discussion Forums Teradata.com Discussion Forum
Visit Teradata.com
Home       Guidelines    Member List
Welcome Guest ( Login | Register )
        


This online forum is for user-to-user discussions of Teradata products, and is not an official customer support channel for Teradata. If you require direct assistance, please contact Teradata support.


I am unable to load data using SQL Assistance... Expand / Collapse
Author
Message
Posted 9/10/2009 2:06:50 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 10/20/2009 1:44:00 AM
Posts: 7, Visits: 10
Hi Friends

I am unable to load the data when inserting nulls or strings in the table using QUERY MAN.

insert into fact_current values(id, name, ,"expected",salary);

Wat is the problem?

Please tell me the solution.

KIRAN
kiran_teradata@ymail.com


KIRAN
Post #16789
Posted 9/10/2009 9:29:13 PM


Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 9/23/2009 2:08:26 AM
Posts: 1, Visits: 6
Dear Kiran.
If you want to express string in teradata sql, YOu need to use quotation mark '
not dobule quotation mark ".

Thank you.


Junior Officer, RDB/DW operation team, Technology Production Services , Korea
Standard Chartered First Bank

Email: YoungChang.Ryu@scfirstbank.com
______________________________
‘Hewitt Best Employer in Korea 2009’ Bringing you New Possibilities
Post #16807
Posted 9/14/2009 1:05:04 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 10/20/2009 1:44:00 AM
Posts: 7, Visits: 10
Thanks for Your Help, I used only single quotes, not double qoutes, even the same problem

KIRAN
Post #16816
Posted 9/17/2009 10:07:08 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 10/9/2009 6:52:33 AM
Posts: 1, Visits: 6
Hi Kiran,

Please use 'NULL' keyword to insert a null value in a Nullable field using insert into statement.

Use single quote to inset strings.

Ex:

insert into table1 values (123,NULL,'Hello');

Thanks,

Sourav
Post #16864
Posted 9/18/2009 5:07:27 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 10/20/2009 1:44:00 AM
Posts: 7, Visits: 10
insert into product (p_partkey, p_name, p_mfgr, p_brand,p_type,p_size, p_container, p_retailprice, p_comment) values
(?,?,?,NULL,?,?,?,?,?);

THEN THE O/P IS WRONG NO. OF DATA VALUES IS DISPLAYED

The no. of columns is same

instead of using null, if i am using any string constant the result is same i.e., WRONG NO. OF DATA VALUES IS DISPLAYED



I am usign V2R5 Please help me to solve the problem


KIRAN
Post #16867
Posted 9/18/2009 10:16:02 AM
Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: Forum Members
Last Login: Yesterday @ 3:55:54 AM
Posts: 111, Visits: 263
insert into product (p_partkey, p_name, p_mfgr, p_type,p_size, p_container, p_retailprice, p_comment) values
(?,?,?,?,?,?,?,?);

Assuming there is no default on the p_brand. If the column is not mentioned,it puts null in it, like any SQL select.

When you are importing data, you cannot have a mix of values and constants (null or anything else). SQL Assistant cannot work out whether you are trying to skip a column from your input or not.

Post #16868
Posted 10/19/2009 1:48:09 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 10/20/2009 1:44:00 AM
Posts: 7, Visits: 10
But c the Help in tool bar and c the api, it says it support

KIRAN
Post #17100
« Prev Topic | Next Topic »


Reading This Topic Expand / Collapse
Active Users: 0 ( 0 guests, 0 members, 0 anonymous members )
No members currently viewing this topic.


All times are GMT -5:00, Time now is 3:43pm

Powered By InstantForum.NET v4.1.4 © 2009
Execution: 0.094. 9 queries. Compression Disabled.