Category : Files from Magazines
Archive   : DBMS9003.ZIP
Filename : EDELSTN2.MAR

 
Output of file : EDELSTN2.MAR contained in archive : DBMS9003.ZIP

Listing 2:

char *uid = "tp1/tp1"; /* ORACLE userid */
long account_no; /* transaction variables */
int branch_no;
int teller_no;
int amount = 1;
char *info = "12345678"; /* for HISTORY table */

char *stmt0 = "UPDATE account \
SET balance = balance + :amount \
WHERE account = :account_no";
char *stmt1 = "UPDATE branch \
SET balance = balance + :amount \
WHERE branch = :branch_no";
char *stmt2 = "UPDATE teller \
SET balance = balance + :amount \
WHERE teller = :teller_no";
char *stmt3 = "INSERT INTO history \
VALUES (:account_no, :teller_no, :branch_no, \
:amount, :info, SYSDATE)";
char *stmt4 = "COMMIT";




  3 Responses to “Category : Files from Magazines
Archive   : DBMS9003.ZIP
Filename : EDELSTN2.MAR

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/