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/02/14 22:32] – [Session Mode] dregad | v5:database:oracle [2023/01/25 04:40] (current) – [Auto-Increment Column] mnewnham | ||
---|---|---|---|
Line 14: | Line 14: | ||
== Alternatives == | == Alternatives == | ||
[[v5: | [[v5: | ||
+ | == See Also == | ||
+ | [[v5: | ||
</ | </ | ||
Line 90: | 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 ==== |
v5/database/oracle.1644874372.txt.gz · Last modified: 2022/02/14 22:32 by dregad