梦想的声音袁咏琳:Step 2. Executing a simple SQL command
来源:百度文库 编辑:中财网 时间:2024/03/28 20:19:31
#include// for printf#include // main SQLAPI++ headerint main(int argc, char* argv[]){ SAConnection con; // connection object SACommand cmd; // create command object try { // connect to database (Oracle in our example) con.Connect("test", "tester", "tester", SA_Oracle_Client); // associate a command with connection // connection can also be specified in SACommand constructor cmd.setConnection(&con); // create table cmd.setCommandText( "Create table test_tbl(fid integer, fvarchar20 varchar(20), fblob blob)"); cmd.Execute(); // insert value cmd.setCommandText( "Insert into test_tbl(fid, fvarchar20) values (1, 'Some string (1)')"); cmd.Execute(); // commit changes on success con.Commit(); printf("Table created, row inserted!\n"); } catch(SAException &x) { // SAConnection::Rollback() // can also throw an exception // (if a network error for example), // we will be ready try { // on error rollback changes con.Rollback(); } catch(SAException &) { } // print error message printf("%s\n", (const char*)x.ErrText()); } return 0;}
make a step toward
a step farther什么意思?
a step farther的意思?
via a two-step ring-opening polymerization in bulk
A small step for a man,a giant lean for mankind的出处
step by step 2000
《step by step》
step by step吉他谱
求一首歌,step by step
英语听力STEP BY STEP
The journey of a thousand miles stares with one step是什么意思???
step outside and you could break a leg slipping on your doormat
请帮忙翻译Step on no pets,Sit on a potato pan, Otis.
脑筋急转弯 Lucky Mouse fell off a 1000-step stair and was not hurt.why?
As I got out of the car,I literally fell back a step.
SLOW STEP
step by step 免费下载?
STEP BY STEP是什么呢?
step by step 文本下载
There have been a lot of times where I was determined to just take the next step
请翻译There have been a lot of times where I was determined to just take the next step
请翻译There have been a lot of times where I was determined to just take the next step
请英译汉There have been a lot of times where I was determined to just take the next step
请翻译There have been a lot of times where I was determined to just take the next step