diff --git a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Advanced Usage/Database/Manually altering the database/SQL Console.html b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Advanced Usage/Database/Manually altering the database/SQL Console.html index 3b5c25ce61..3549a96e9b 100644 --- a/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Advanced Usage/Database/Manually altering the database/SQL Console.html +++ b/apps/server/src/assets/doc_notes/en/User Guide/User Guide/Advanced Usage/Database/Manually altering the database/SQL Console.html @@ -11,20 +11,44 @@
  • Only one SQL statement can be run at once.
  • To run the statement, press the Execute icon.
  • For queries that return a result, the data will displayed in a table.
  • +
  • For statements (e.g. INSERT, UPDATE), + the number of affected rows is displayed.
  • +

    Interacting with the table

    +

    After executing a query, a table with the results will be displayed:

    +

    Saved SQL console

    SQL queries or commands can be saved into a dedicated note.

    To do so, simply write the query and press the button. Once saved, the note will appear in Day Notes.

    - \ No newline at end of file +

    The note can be locked for editing by pressing the Lock button + in the note actions section near the title bar (on the New Layout, + or in the Floating buttons area + if using the old layout). When editing is locked, the SQL statement is + hidden from view.

    \ No newline at end of file diff --git a/docs/User Guide/!!!meta.json b/docs/User Guide/!!!meta.json index f7800ca551..6b0711f168 100644 --- a/docs/User Guide/!!!meta.json +++ b/docs/User Guide/!!!meta.json @@ -14227,6 +14227,20 @@ "value": "x3i7MxGccDuM", "isInheritable": false, "position": 60 + }, + { + "type": "relation", + "name": "internalLink", + "value": "IjZS7iK5EXtb", + "isInheritable": false, + "position": 70 + }, + { + "type": "relation", + "name": "internalLink", + "value": "XpOYSgsLkTJy", + "isInheritable": false, + "position": 80 } ], "format": "markdown", diff --git a/docs/User Guide/User Guide/Advanced Usage/Database/Manually altering the database/SQL Console.md b/docs/User Guide/User Guide/Advanced Usage/Database/Manually altering the database/SQL Console.md index 6ba851ec63..d9dfd8fb8f 100644 --- a/docs/User Guide/User Guide/Advanced Usage/Database/Manually altering the database/SQL Console.md +++ b/docs/User Guide/User Guide/Advanced Usage/Database/Manually altering the database/SQL Console.md @@ -11,14 +11,24 @@ It can be accessed by going to the  +### Interacting with the table + +After executing a query, a table with the results will be displayed: + +* Clicking on a column allows sorting ascending or descending. +* Underneath each column there is an input field which allows filtering by text. +* Press Ctrl+C to copy the current cell to clipboard. +* Multiple cells can be selected by dragging or by holding Shift + arrow keys +* Results are paginated for performance reasons. The controls at the bottom of the table can be used to navigate through pages. + ### Saved SQL console SQL queries or commands can be saved into a dedicated note. To do so, simply write the query and press the ![](1_SQL%20Console_image.png) button. Once saved, the note will appear in Day Notes. -* The SQL expression will not be displayed by default, but it can still be viewed by going to the note context menu and selecting _Note source_. -* The expression cannot be modified. If needed, recreate it by copying the statement back into the SQL console and then saving it again. \ No newline at end of file +The note can be locked for editing by pressing the _Lock_ button in the note actions section near the title bar (on the New Layout, or in the Floating buttons area if using the old layout). When editing is locked, the SQL statement is hidden from view. \ No newline at end of file