mirror of
https://github.com/codeigniter4/CodeIgniter4.git
synced 2025-02-20 11:44:28 +08:00
Compare commits
2 Commits
1ed71795f6
...
996684b123
Author | SHA1 | Date | |
---|---|---|---|
|
996684b123 | ||
|
332a78fdc0 |
@ -937,6 +937,10 @@ constraint by default. Here is an example using an array:
|
|||||||
|
|
||||||
.. literalinclude:: query_builder/112.php
|
.. literalinclude:: query_builder/112.php
|
||||||
|
|
||||||
|
.. note:: For databases other than MySQL, if a table has multiple keys (primary or unique),
|
||||||
|
the primary key will be prioritized by default when handling constraints. If you prefer
|
||||||
|
to use a different unique key instead of the primary key, use the ``onConstraint()`` method.
|
||||||
|
|
||||||
The first parameter is an associative array of values.
|
The first parameter is an associative array of values.
|
||||||
|
|
||||||
Here is an example using an object:
|
Here is an example using an object:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user