__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
.. _bookmarks:
Bookmarks
=========
.. note::
You need to have configured the :ref:`linked-tables` for using bookmarks
feature.
Storing bookmarks
-----------------
Any query that is executed can be marked as a bookmark on the page
where the results are displayed. You will find a button labeled
:guilabel:`Bookmark this query` just at the end of the page. As soon as you have
stored a bookmark, that query is linked to the database.
You can now access a bookmark dropdown on each page where the query box appears on for that database.
Variables inside bookmarks
--------------------------
Inside a query, you can also add placeholders for variables.
This is done by inserting into the query SQL comments between ``/*`` and
``*/``. The special string ``[VARIABLE{variable-number}]`` is used inside the comments.
Be aware that the whole query minus the SQL comments must be
valid by itself, otherwise you won't be able to store it as a bookmark.
Also, note that the text 'VARIABLE' is case-sensitive.
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.
Also remember, that everything else inside the ``/*[VARIABLE{variable-number}]*/`` string for
your query will remain the way it is, but will be stripped of the ``/**/``
chars. So you can use:
.. code-block:: mysql
/*, [VARIABLE1] AS myname */
which will be expanded to
.. code-block:: mysql
, VARIABLE1 as myname
in your query, where VARIABLE1 is the string you entered in the Variable 1 input box.
A more complex example, say you have stored this query:
.. 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.
Browsing a table using a bookmark
---------------------------------
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`
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| bookmarks.rst.txt | File | 2.41 KB | 0644 |
|
| charts.rst.txt | File | 4.63 KB | 0644 |
|
| config.rst.txt | File | 124.59 KB | 0644 |
|
| copyright.rst.txt | File | 1.58 KB | 0644 |
|
| credits.rst.txt | File | 27.36 KB | 0644 |
|
| developers.rst.txt | File | 380 B | 0644 |
|
| faq.rst.txt | File | 92.28 KB | 0644 |
|
| glossary.rst.txt | File | 14.94 KB | 0644 |
|
| import_export.rst.txt | File | 9.97 KB | 0644 |
|
| index.rst.txt | File | 573 B | 0644 |
|
| intro.rst.txt | File | 3.08 KB | 0644 |
|
| other.rst.txt | File | 916 B | 0644 |
|
| privileges.rst.txt | File | 3.22 KB | 0644 |
|
| relations.rst.txt | File | 3.26 KB | 0644 |
|
| require.rst.txt | File | 1.84 KB | 0644 |
|
| security.rst.txt | File | 4.5 KB | 0644 |
|
| settings.rst.txt | File | 1015 B | 0644 |
|
| setup.rst.txt | File | 45.06 KB | 0644 |
|
| themes.rst.txt | File | 2.87 KB | 0644 |
|
| transformations.rst.txt | File | 7.76 KB | 0644 |
|
| two_factor.rst.txt | File | 2.82 KB | 0644 |
|
| user.rst.txt | File | 195 B | 0644 |
|
| vendors.rst.txt | File | 2.25 KB | 0644 |
|