catfan / Medoo

The lightweight PHP database framework to accelerate the development.
https://medoo.in
MIT License
4.83k stars 1.15k forks source link

Insert default values #645

Closed Zippersk closed 6 years ago

Zippersk commented 6 years ago

How can i execute this query using medoo? INSERT INTO Author DEFAULT VALUES;

A tried few things, but none of them work. $database->insert("Author", []);

$database->insert("Author", "DEFAULT VALUES");

$database->insert("Author", [ "time" => "DEFAULT", "id" => "DEFAULT" ]);

Zippersk commented 6 years ago

I have use:

$database->query("INSERT INTO Author DEFAULT VALUES");