-
It appears that using the
'#column' => 'NOW()'
syntax for updating columns during an update/insert is broken.
For example:
$medoo->insert('my_table', array(
'name' => $name,
…
-
Limit is not supported by mssql, however, I think could be quite easy to add a ROW_NUMBER ( ) OVER() as _uniquealias field in select statement and a WHERE _uniquealias BETWEEN X and Y statement.
-
Hi found a problem while working with MariaDB
1. I created a new medoo object **specifying the correct** DB type.
2. I have two environments: (a) MySQL (b) MariaDB
3. Medoo generates a wrong query whe…
ghost updated
7 years ago
-
Hello , I use " !$results " to understand the data is added or not but it always writes "Error!" even when the data is added to database completely.
what should I do??
please help me.
$database = ne…
-
I would like to update the "show" value:
if value is 0 then change to 1
if value is 1 then change to 0
My current code is:
// get the value
$value = $this->db->get($this->table, 'show', [
'id' =…
-
当批量插入时, 会导致多插一条空数据, 同事附带操作时间失败
原因:
直接对 `insert` 的参数进行附加操作时间时, 如果是批量插入, 此时数组是二维的, 导致操作错误的数据
解决方案:
1. 去掉此功能
2. 不适用批量插入
3. 关闭自动附加操作时间, 手动加到数据里面
4. 额外提供一个接口, 叫 `muiltInsert`, 手动调用来规避 bug
5. 尝…
-
i use function like this:
```
$affected_row=$database->update("pages", [
"Page_Title" => $Input_Title,
"Page_Content" => $Input_Content,
"Modify_Date" => $NOW_DATE
…
ghost updated
7 years ago
-
I need to select only the first 10 rows for a query. But there is not any kind of information about the TOP clause in the documentation.
Which is the right way to select a specific number of rows wit …
-
When I run:
`$database->debug()->insert("table", ['#datecol' => 'NOW()', 'othercol' => $var])`
I get:
`INSERT INTO "table" ("datecol", "othercol") VALUES ('NOW()', 123)`.
This results in a…
-
would this be possible?