Converting from MySQL commands to Oracle: HELP!
From: Mark Wilson CPU (wilson_at_cpuworks.com)
Date: 12/02/04
- Next message: konsu: "Re: [PHP5 & DOM] element extracted from doc suddenly not found in insertBefore() -- NS problem"
- Previous message: Daniel Tryba: "Re: Help with email address validation using eregi()"
- Next in thread: Michael Vilain
: "Re: Converting from MySQL commands to Oracle: HELP!" - Reply:(deleted message) Michael Vilain
: "Re: Converting from MySQL commands to Oracle: HELP!" - Reply: Andy Hassall: "Re: Converting from MySQL commands to Oracle: HELP!"
- Reply: Marcin Dobrucki: "Re: Converting from MySQL commands to Oracle: HELP!"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 2 Dec 2004 12:06:35 -0800
A colleague has written a prototype program in PHP, using a MySQL
database.
It's a relatively simple app, with a restricted set of mysql commands
used (see below). The MySQL DB is being replaced with an Oracle DB
(same schema). My plan
1) globally replace the few mysql commands with intermediate
equivalents (such as myDB_connect for mysql_connect)
2) those central functions would then (for now) call the original
mysql function to prove the code still works
3) replace the "innards" of the myDB_ commands with calls to the
Oracle equivalent, including connecting to the new DB
4) make sure it all still works!
Can someone provide me an equivalency for these in Oracle? Or, where
an equivalent is not available, a reasonable alternative
command/procedure? Thanks.
Commands used:
mysql_connect("localhost", "username", "userpass")
mysql_error();
mysql_select_db();
$arry = mysql_query($query)
$var = mysql_fetch_row($arry)
$numvars = mysql_num_rows( $ varsarry )
mysql_data_seek( $arry, $day )
$line = mysql_fetch_array($result, MYSQL_ASSOC)
$currdata = mysql_fetch_assoc( $currentarray )
That's the lot... thanks!
- Mark
- Next message: konsu: "Re: [PHP5 & DOM] element extracted from doc suddenly not found in insertBefore() -- NS problem"
- Previous message: Daniel Tryba: "Re: Help with email address validation using eregi()"
- Next in thread: Michael Vilain
: "Re: Converting from MySQL commands to Oracle: HELP!" - Reply:(deleted message) Michael Vilain
: "Re: Converting from MySQL commands to Oracle: HELP!" - Reply: Andy Hassall: "Re: Converting from MySQL commands to Oracle: HELP!"
- Reply: Marcin Dobrucki: "Re: Converting from MySQL commands to Oracle: HELP!"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|