v5:userguide:portable_sql
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
v5:userguide:portable_sql [2016/02/27 18:42] – mnewnham | v5:userguide:portable_sql [2016/03/13 23:52] – [Inserting Records] mnewnham | ||
---|---|---|---|
Line 98: | Line 98: | ||
===== Inserting Records ===== | ===== Inserting Records ===== | ||
- | When you create records, you need to generate unique id's for each record. There are two common techniques: | + | When you create records, you need to generate unique id's for each record. There are two common techniques: |
+ | * Auto-increment | ||
+ | * Sequences | ||
- | Auto-incrementing | + | Auto-increment |
+ | |||
+ | Different tables can have different sequences. | ||
<code php> | <code php> | ||
$id = $connection-> | $id = $connection-> | ||
$connection-> | $connection-> | ||
- | values ($id, $firstname, $lastname)" | + | values ($id, $firstname, $lastname)" |
</ | </ | ||
- | For databases that do not support | + | For databases that do not provide native |
===== Binding ===== | ===== Binding ===== |
v5/userguide/portable_sql.txt · Last modified: 2020/12/30 21:32 by peterdd