Posted: Wed Mar 12, 2014 7:17 am Post subject: Re: Adding single quotes in string
Master
Joined: 23 Jul 2009 Posts: 297
gheekshike wrote:
DECLARE test CHARACTER 'TIMESTAMP ' || ''' || str2 || ''';
Resulting string should be TIMESTAMP '2013-12-22 00:00:00'
What are you trying to do? _________________ A measure of wheat for a penny, and three measures of barley for a penny; and see thou hurt not the oil and the wine.
Joined: 10 Feb 2003 Posts: 6076 Location: Somewhere over the Rainbow this side of Never-never land.
The question could not have been that urgent. I guess the poster has found the answer by other means. _________________ WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995
Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum