mirror of
https://codeberg.org/vlw/php-mysql.git
synced 2025-09-14 00:33:41 +02:00
Compare commits
2 commits
03868ae784
...
e062930c41
Author | SHA1 | Date | |
---|---|---|---|
e062930c41 | |||
814070a52e |
2 changed files with 2 additions and 2 deletions
|
@ -15,7 +15,7 @@ which would be equivalent to the following in MySQL:
|
||||||
SELECT `columns` FROM `table` WHERE `filter` ORDER BY `order_by` LIMIT `limit`;
|
SELECT `columns` FROM `table` WHERE `filter` ORDER BY `order_by` LIMIT `limit`;
|
||||||
```
|
```
|
||||||
|
|
||||||
- All methods can be chained in any order (even multiple times) after a [`for()`](#for) as long as a [`select()`](#select), [`insert()`](#insert), [`update()`](#update), or [`delete()`](#delete) is the last method.
|
- All methods can be chained in any order (even multiple times) after a [`from()`](#from) as long as a [`select()`](#select), [`insert()`](#insert), [`update()`](#update), or [`delete()`](#delete) is the last method.
|
||||||
- Chaining the same method more than once will override its previous value. Passing `null` to any method that accepts it will unset its value completely.
|
- Chaining the same method more than once will override its previous value. Passing `null` to any method that accepts it will unset its value completely.
|
||||||
|
|
||||||
## Install from composer
|
## Install from composer
|
||||||
|
|
|
@ -81,7 +81,7 @@
|
||||||
since: "3.5.7",
|
since: "3.5.7",
|
||||||
)]
|
)]
|
||||||
public function for(string $table): self {
|
public function for(string $table): self {
|
||||||
$this->from($table);
|
return $this->from($table);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Create a WHERE statement from filters
|
// Create a WHERE statement from filters
|
||||||
|
|
Loading…
Add table
Reference in a new issue