Go Back   Rhinocerus > Newsgroup > Newsgroup comp.databases.* > Newsgroup comp.databases.informix

Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 08-16-2012, 01:10 PM
Art S. Kagel
Guest
 
Posts: n/a
Default RE: format data in stored procedure

For the first try:Â*
Define yr = year(date_var);

For the second check out the to_char function to format the numeric. Use the concatenation operator || to tack the result to the char column.

Art

Sent from my Galaxy S®IIIjoe <joeclhua@gmail.com> wrote:I want to format data value like :
let char_var = date_var using 'yy' ; ( get the year from date )
&
let char_var2 = char_var1, int_var using '&&&&' ;
(concatenate character and integer)

These command working in 4gl program.
How can I do the same job in stored procedure ?
_______________________________________________
Informix-list mailing list
Informix-list@iiug.org
http://www.iiug.org/mailman/listinfo/informix-list
Reply With Quote
Alt Today
Advertising
 
and become member of Rhinocerus
Standard Sponsored Links

Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT. The time now is 12:55 PM.


Copyright ©2009

LinkBacks Enabled by vBSEO 3.3.0 RC2 © 2009, Crawlability, Inc.