Professional Documents
Culture Documents
Bookmarks RST
Bookmarks RST
_bookmarks:
Bookmarks
=========
.. note::
Storing bookmarks
-----------------
When you execute the bookmark, everything typed into the *Variables*
input boxes on the query box page will replace the strings ``/*[VARIABLE{variable-
number}]*/`` in
your stored query.
.. code-block:: mysql
.. code-block:: mysql
, VARIABLE1 as myname
in your query, where VARIABLE1 is the string you entered in the Variable 1 input
box.
.. code-block:: mysql
SELECT Name, Address FROM addresses WHERE 1 /* AND Name LIKE '%[VARIABLE1]%' */
If you wish to enter "phpMyAdmin" as the variable for the stored query, the full
query will be:
.. code-block:: mysql
SELECT Name, Address FROM addresses WHERE 1 AND Name LIKE '%phpMyAdmin%'
**NOTE THE ABSENCE OF SPACES** inside the ``/**/`` construct. Any spaces
inserted there will be later also inserted as spaces in your query and may lead
to unexpected results especially when using the variable expansion inside of a
"LIKE ''" expression.
When a bookmark has the same name as the table, it will be used as the query when
browsing
this table.
.. seealso::
:ref:`faqbookmark`,
:ref:`faq6_22`