| Server IP : 121.121.20.254 / Your IP : 216.73.216.202 Web Server : Microsoft-IIS/10.0 System : Windows NT WEB-SERVER 10.0 build 20348 (Windows Server 2022) AMD64 User : IUSR ( 0) PHP Version : 8.3.28 Disable Function : NONE MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/Program Files/LibreOffice/help/en-US/text/sdatabase/ |
Upload File : |
<!DOCTYPE html> <html lang="en-US" dir="ltr"> <head> <base href="../../../"> <noscript><meta http-equiv="refresh" content="0; URL=../../../en-US/noscript.html"></noscript> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>Execute SQL statement</title> <link rel="shortcut icon" href="media/navigation/favicon.ico"> <link type="text/css" href="normalize.css" rel="Stylesheet"> <link type="text/css" href="prism.css" rel="Stylesheet"> <link type="text/css" href="default.css" rel="Stylesheet"> <script type="text/javascript" src="polyfills.js"></script><script type="text/javascript" src="languages.js"></script><script type="text/javascript" src="en-US/langnames.js"></script><script type="text/javascript" src="flexsearch.debug.js"></script><script type="text/javascript" src="prism.js"></script><script type="text/javascript" src="help2.js" defer></script><script type="text/javascript" src="a11y-toggle.js" defer></script><script type="text/javascript" src="paginathing.js" defer></script><script type="text/javascript" src="en-US/bookmarks.js" defer></script><script type="text/javascript" src="en-US/contents.js" defer></script><script type="text/javascript" src="help.js" defer></script><meta name="viewport" content="width=device-width,initial-scale=1"> </head> <body> <header id="TopLeftHeader"><a class="symbol" href="en-US/text/shared/05/new_help.html"><div></div></a><a class="logo" href="en-US/text/shared/05/new_help.html"><p dir="auto">LibreOffice 24.2 Help</p></a><div class="dropdowns"><div class="modules"> <button type="button" data-a11y-toggle="modules-nav" id="modules" aria-haspopup="true" aria-expanded="false" aria-controls="modules-nav">Module</button><nav id="modules-nav" hidden=""></nav> </div></div></header><aside class="leftside"><input id="accordion-1" name="accordion-menu" type="checkbox"><label for="accordion-1" dir="auto">Contents</label><div id="Contents" class="contents-treeview"></div></aside><div id="SearchFrame"><div id="Bookmarks"> <input id="search-bar" type="search" class="search" placeholder="Search in bookmarks for chosen module" dir="auto"><div class="nav-container" tabindex="0"><nav class="index" dir="auto"></nav></div> </div></div> <div id="DisplayArea" itemprop="softwareHelp" itemscope="true" itemtype="http://schema.org/SoftwareApplication"> <a name="bm_id3148983"></a> <meta itemprop="keywords" content="SQL, executing SQL statements (Base)"> <meta itemprop="keywords" content="databases, administration through SQL (Base)"> <a name="bm_id3150773"></a><p id="par_id3148983" class="paragraph" dir="auto"></p> <a name="bm_id3150773"></a> <h1 id="hd_id3153345" dir="auto">Execute SQL statement</h1> <p id="par_id3154288" class="paragraph" dir="auto"><a name="sqltext"></a><span class="avis">Opens a dialog where you can enter an SQL command for administering a database.</span> </p> <a name="howtoget"></a><div class="howtoget"> <div><p class="howtogetheader" dir="auto"><a name="wie"></a>To access this command...</p></div> <div class="howtogetbody"> <div class="embedded"><p class="embedded" dir="auto">In a database file window, choose <span class="emph">Tools - SQL</span>.</p></div> </div> </div> <br> <div class="embedded"><p class="embedded" dir="auto"><a target="_top" href="en-US/text/shared/guide/data_enter_sql.html">Executing SQL Commands</a> </p></div> <p id="par_id3147275" class="paragraph" dir="auto">You can only enter administration commands in this dialog, such as Grant, Create Table, or Drop Table, and not filter commands. The commands that you can enter depend on the data source, for example, dBASE can only run some of the SQL commands list here.</p> <div class="note"> <div class="noteicon" dir="auto"><img src="media/icon-themes/res/helpimg/note.svg" alt="note" style="width:40px;height:40px;"></div> <div class="notetext"><p id="par_id3154860" dir="auto">To run an SQL query for filtering data in the database, use the <a target="_top" href="en-US/text/sdatabase/02010100.html">Query Design View</a>.</p></div> </div> <br> <a name="bm_id3150772"></a> <h2 id="hd_id3149514" dir="auto">Command to execute</h2> <p id="par_id3147618" class="paragraph" dir="auto"><span class="avis">Enter the SQL administration command that you want to run.</span></p> <p id="par_id3153087" class="paragraph" dir="auto">For example, for a "Bibliography" data source, you can enter the following SQL command:</p> <p id="par_id3145673" class="paragraph" dir="auto">SELECT "Address" FROM "biblio" "biblio"</p> <p id="par_id3145611" class="paragraph" dir="auto">For more information on SQL commands, please consult the documentation that came with the database.</p> <div class="embedded"> <a name="native"></a> <p id="par_id3149748" class="paragraph" dir="auto"></p> <h2 id="hd_id3151100" dir="auto"><a target="_top" href="en-US/text/shared/02/14030000.html">Run SQL command directly</a></h2> <p id="par_id3155364" class="paragraph" dir="auto"><span class="avis">In <span class="emph">Native SQL</span> mode you can enter SQL commands that are not interpreted by LibreOffice, but are instead passed directly to the data source.</span> If you do not display these changes in the design view, you cannot change back to the design view.</p> </div> <h2 id="hd_id91652478785999" dir="auto">Show output of "select" statements</h2> <p id="par_id281652481037143" class="paragraph" dir="auto">Show the result of the SQL SELECT command in the Output box.</p> <h2 id="hd_id3154071" dir="auto">Execute</h2> <p id="par_id3151210" class="paragraph" dir="auto"><span class="avis">Runs the command that you entered in the <span class="emph">Command to execute</span> box.</span></p> <a name="bm_id3154923"></a> <h2 id="hd_id3156024" dir="auto">Previous commands</h2> <p id="par_id3149045" class="paragraph" dir="auto"><span class="avis">Lists the previously executed SQL commands. To run a command again, click the command, and then click <span class="emph">Execute</span>.</span></p> <a name="bm_id3161656"></a> <h2 id="hd_id3154348" dir="auto">Status</h2> <p id="par_id3151054" class="paragraph" dir="auto"><span class="avis">Displays the status, including errors, of the SQL command that you ran.</span></p> <a name="bm_id3148798"></a> <h2 id="hd_id841652479655639" dir="auto">Output</h2> <p id="par_id511652479714010" class="paragraph" dir="auto">Displays the results of the SQL command that you ran.</p> <div class="embedded"> <a name="close2"></a> <h3 id="hd_id3147275" dir="auto">Close</h3> <p id="par_id3153031" class="paragraph" dir="auto"><span class="avis">Closes the dialog.</span></p> </div> </div> <div id="DonationFrame"></div> <footer><div id="DEBUG" class="debug"> <h3 class="bug">Help content debug info:</h3> <p dir="auto">This page is: <a href="https://opengrok.libreoffice.org/xref/help/source/text/sdatabase/11080000.xhp" target="_blank">/text/sdatabase/11080000.xhp</a></p> <p dir="auto">Title is: Execute SQL statement</p> <p id="bm_module" dir="auto"></p> <p id="bm_system" dir="auto"></p> <p id="bm_HID" dir="auto"></p> </div></footer> </body> </html>