v5:database:oracle
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
v5:database:oracle [2022/07/13 02:57] – [oci8] mnewnham | v5:database:oracle [2025/06/01 13:21] (current) – Remove square brackets in tags dregad | ||
---|---|---|---|
Line 31: | Line 31: | ||
| [[v5: | | [[v5: | ||
| [[v5: | | [[v5: | ||
- | {{tag>[oracle unix windows active tier1]}} | + | {{tag> |
==== Connection Examples ==== | ==== Connection Examples ==== | ||
Line 92: | Line 92: | ||
==== Auto-Increment Column ==== | ==== Auto-Increment Column ==== | ||
[[v5: | [[v5: | ||
+ | |||
+ | If you have long table names then the generated trigger name can exceed the maximum allowed length. To prevent this, use the class variable '' | ||
+ | === Example using the table name " | ||
+ | By default, the trigger name would be SEQ_CUSTOMER_DELIVERY_ADDRESS which exceeds the 16 character name for sequences. By setting '' | ||
+ | |||
+ | === Accessing the trigger in your code === | ||
+ | <code php> | ||
+ | |||
+ | $db-> | ||
+ | |||
+ | $tab = ' | ||
+ | $tab = sprintf(' | ||
+ | |||
+ | print $tab; //prints SEQ_401703491 | ||
+ | |||
+ | </ | ||
+ | |||
----------------------------------- | ----------------------------------- | ||
==== Session Mode ==== | ==== Session Mode ==== | ||
Line 124: | Line 141: | ||
A second difference to this driver is that it does not create a sequence to emulate auto-increment fields. You must provide the functionality yourself if you need it. | A second difference to this driver is that it does not create a sequence to emulate auto-increment fields. You must provide the functionality yourself if you need it. | ||
- | {{tag>[oracle unix windows active portable]}} | + | {{tag> |
------------------------------------ | ------------------------------------ | ||
====== oci805 ====== | ====== oci805 ====== | ||
Line 142: | Line 159: | ||
Note that // | Note that // | ||
- | {{tag>[oracle unix windows deprecated]}} | + | {{tag> |
---------------------------------------- | ---------------------------------------- | ||
Line 158: | Line 175: | ||
</ | </ | ||
This driver provides an undocumented enhancement to the oci8 driver. The differences in the driver relate solely to the use of cursors in stored procedures. This may be related to information in the function [[v5: | This driver provides an undocumented enhancement to the oci8 driver. The differences in the driver relate solely to the use of cursors in stored procedures. This may be related to information in the function [[v5: | ||
- | {{tag>[oracle unix windows deprecated]}} | + | {{tag> |
--------------------------------- | --------------------------------- | ||
Line 179: | Line 196: | ||
- | {{tag>[oracle unix windows obsolete supported]}} | + | {{tag> |
v5/database/oracle.1657673823.txt.gz · Last modified: by mnewnham