Re: Stored Procedures in c
Posted by: Gelu Gogancea
Date: August 04, 2010 09:22AM

Hi,
One of the most easy way to concatenate in C language is sprintf().Can you read about it in C/C++ language reference.Other way used in C++ is streaming.

For example in C language :

char buffer [50];
int a=100;
int b=50;
int c=10;

sprintf (buffer,"insert into Sensor_Update values(%d,%d,%d);", a, b, c);

Regards,

Options: ReplyQuote


Subject
Views
Written By
Posted
1100
July 26, 2010 01:43PM
506
July 27, 2010 03:40AM
518
July 27, 2010 12:34PM
495
August 02, 2010 05:23AM
592
August 02, 2010 09:27AM
488
August 02, 2010 01:25PM
502
August 02, 2010 02:37PM
519
August 02, 2010 03:08PM
452
August 03, 2010 05:41AM
535
August 03, 2010 08:57AM
496
August 04, 2010 06:46AM
Re: Stored Procedures in c
529
August 04, 2010 09:22AM
536
August 04, 2010 12:31PM
470
August 04, 2010 03:28PM
579
August 04, 2010 05:34PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.