From: Nothing2Do Date: Sat, 29 Jun 2013 13:54:53 +0000 (+0200) Subject: Update alias.sql X-Git-Url: https://git.nothing2do.fr/?a=commitdiff_plain;h=81cc79e26b8fed54a642c528fd5a6dfe640fcb4b;p=diary-shell.git Update alias.sql --- diff --git a/alias.sql b/alias.sql index c21fff9..053eca1 100644 --- a/alias.sql +++ b/alias.sql @@ -1,4 +1,4 @@ INSERT INTO alias (nom, command, argc) VALUES ('ls', 'select id,texte from raw order by date asc;', 0); -INSERT INTO alias (nom, command, argc) VALUES ('search', 'select id, texte from raw where texte like ''%1'' order by date asc', 1); +INSERT INTO alias (nom, command, argc) VALUES ('search', 'select id,texte from raw where texte ~ $1 order by date asc', 1); INSERT INTO alias (nom, command, argc) VALUES ('rm', 'DELETE FROM raw WHERE id =''%1'';', 1); INSERT INTO alias (nom, command, argc) VALUES ('alias', 'select nom from alias;', 0);