Table function arguments containing single quotes
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.


Table function arguments containing single... Expand / Collapse
Author
Message
Posted 10/31/2007 9:54:25 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 10/31/2007 10:09:02 AM
Posts: 7, Visits: 3
I'm trying to send an argument to a table function, with single quotes in the argument string, e.g.:

select x from table (y('I need single 'quotes' in here') as z;

I guess it just needs a better understanding of Teradata SQL, but that's not my forte. It should be the same solution as containing single quotes in any string in SQL.

Thanks,

David
Post #9555
Posted 10/31/2007 9:59:20 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 10/31/2007 10:09:02 AM
Posts: 7, Visits: 3
The example should have read

select x from table (y('I need single 'quotes' in here')) as z;

of course
Post #9556
Posted 10/31/2007 1:36:39 PM
Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: Forum Members
Last Login: Today @ 4:26:39 PM
Posts: 125, Visits: 275
Escape the single quote with another single quote.

select x from table (y('I need single ''quotes'' in here')) as z;


Shaw
Post #9563
« 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 6:43pm

Powered By InstantForum.NET v4.1.4 © 2008
Execution: 0.063. 9 queries. Compression Disabled.