fgusinde

Results comments of fgusinde

Sample: MariaDB [owncloud]> ALTER TABLE oc_group_user ADD FOREIGN KEY (gid) REFERENCES oc_groups(gid); Query OK, 1 row affected (1.12 sec) Records: 1 Duplicates: 0 Warnings: 0 MariaDB [owncloud]> ALTER TABLE oc_group_user...

Another one: MariaDB [owncloud]> ALTER TABLE oc_group_admin ADD FOREIGN KEY(gid) REFERENCES oc_groups(gid); Query OK, 0 rows affected (0.69 sec) Records: 0 Duplicates: 0 Warnings: 0 MariaDB [owncloud]> ALTER TABLE oc_group_admin...

It looks like these columns are candidats for foreign keys, is it possible to use always the same column-name? +-------------------+------------------+-------------+ | TABLE_NAME | COLUMN_NAME | COLUMN_TYPE | +-------------------+------------------+-------------+ | oc_activity...

Can you please gibt me the corresponding issue-numbers?

medoo gives back array from errorInfo from pdo/php, so have a look at http://php.net/manual/de/pdo.errorinfo.php I think you're looking for the error code (e.g. 42S02) which is index [0] in the...

Using ...WHERE MD5(concat('$_POST['password']',salt))=password is very bad for performance, because every (I repeat: EVERY) column-entry has to be be handled with md5. So if you have 1 mio. entries in the...

One solution currently could be: $database->select("i20", "test", [ "OR" => [ "test" => [ "123" , "456" ] ]]); results in SELECT test FROM i20 WHERE test IN ('123','456') I...

better: ensure not to use keywords as column names. never. back quotes are nice for mysql, but not ansi.

Use $database->update("i23", [ "field" => FALSE ], [ "id" => "1" ]); results in UPDATE i23 SET field = '' WHERE id = '1' what will give you mysql> select...

create database if not exists....