Home » Developer & Programmer » Precompilers, OCI & OCCI » code for inserting into a table
code for inserting into a table [message #273149] Tue, 09 October 2007 04:15 Go to next message
yazhini.t
Messages: 13
Registered: October 2007
Junior Member
Hi

can anyone suggest me with a code sample for inserting data to table using scanf statement instead of insert option , in oracle 9i/10g , solaris .


regards,
yazhini
Re: code for inserting into a table [message #273162 is a reply to message #273149] Tue, 09 October 2007 05:15 Go to previous messageGo to next message
Michel Cadot
Messages: 68625
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator
scanf is a C read operation on file
insert in a SQL write operation in database

So Question

Regards
Michel
Re: code for inserting into a table [message #273177 is a reply to message #273162] Tue, 09 October 2007 06:25 Go to previous messageGo to next message
yazhini.t
Messages: 13
Registered: October 2007
Junior Member
Michel ,

can you please give me a pro*c code for inserting cyrillic characters to the table.

regards,
yazhini

[Updated on: Tue, 09 October 2007 06:29]

Report message to a moderator

Re: code for inserting into a table [message #273183 is a reply to message #273177] Tue, 09 October 2007 06:57 Go to previous messageGo to next message
Michel Cadot
Messages: 68625
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator
As I said you in another post, if you know how to insert american character, you know how to insert cyrillic one.
Both are just bytes for the program.

Regards
Michel
Re: code for inserting into a table [message #273190 is a reply to message #273183] Tue, 09 October 2007 07:22 Go to previous message
yazhini.t
Messages: 13
Registered: October 2007
Junior Member
Thank you
Previous Topic: proc - how to close a connection
Next Topic: Have problem when compiling OCI program on HP IA64
Goto Forum:
  


Current Time: Thu Mar 28 11:21:32 CDT 2024