1<?xml version="1.0" encoding="UTF-8"?>
2
3
4
5<!--***********************************************************
6 *
7 * Licensed to the Apache Software Foundation (ASF) under one
8 * or more contributor license agreements.  See the NOTICE file
9 * distributed with this work for additional information
10 * regarding copyright ownership.  The ASF licenses this file
11 * to you under the Apache License, Version 2.0 (the
12 * "License"); you may not use this file except in compliance
13 * with the License.  You may obtain a copy of the License at
14 *
15 *   http://www.apache.org/licenses/LICENSE-2.0
16 *
17 * Unless required by applicable law or agreed to in writing,
18 * software distributed under the License is distributed on an
19 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
20 * KIND, either express or implied.  See the License for the
21 * specific language governing permissions and limitations
22 * under the License.
23 *
24 ***********************************************************-->
25
26
27
28
29		<helpdocument version="1.0">
30<meta>
31<topic id="textsharedexplorerdatabase11080000xml" indexer="include" status="PUBLISH">
32<title id="tit" xml-lang="en-US">Execute SQL statement</title>
33<filename>/text/shared/explorer/database/11080000.xhp</filename>
34</topic>
35</meta>
36<body>
37<bookmark xml-lang="en-US" branch="index" id="bm_id3148983"><bookmark_value>SQL; executing SQL statements (Base)</bookmark_value>
38<bookmark_value>databases; administration through SQL (Base)</bookmark_value>
39</bookmark><comment>mw added "(Base)" to all entries</comment><paragraph role="paragraph" id="par_id3148983" xml-lang="en-US" l10n="E" oldref="22" localize="false"/>
40<paragraph role="heading" id="hd_id3153345" xml-lang="en-US" level="1" l10n="U" oldref="1"><link href="text/shared/explorer/database/11080000.xhp" name="Execute SQL statement">Execute SQL statement</link></paragraph>
41<paragraph role="paragraph" id="par_id3154288" xml-lang="en-US" l10n="CHG" oldref="2"><variable id="sqltext"><ahelp hid=".">Opens a dialog where you can enter an SQL command for administering a database.</ahelp>
42</variable></paragraph>
43<section id="howtoget">
44  <embed href="text/shared/00/00000450.xhp#SQLStatement"/>
45</section>
46<embed href="text/shared/guide/data_enter_sql.xhp#data_enter_sql"/>
47<paragraph role="paragraph" id="par_id3147275" xml-lang="en-US" l10n="U" oldref="23">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.</paragraph>
48<paragraph role="note" id="par_id3154860" xml-lang="en-US" l10n="U" oldref="10">To run an SQL query for filtering data in the database, use the <link href="text/shared/explorer/database/02010100.xhp" name="Query Design">Query Design View</link>.</paragraph>
49<bookmark xml-lang="en-US" branch="hid/dbaccess:MultiLineEdit:DLG_DIRECTSQL:ME_SQL" id="bm_id3150772" localize="false"/><paragraph role="heading" id="hd_id3149514" xml-lang="en-US" level="2" l10n="U" oldref="3">Command to execute</paragraph>
50<paragraph role="paragraph" id="par_id3147618" xml-lang="en-US" l10n="U" oldref="4"><ahelp hid="DBACCESS_MULTILINEEDIT_DLG_DIRECTSQL_ME_SQL">Enter the SQL administration command that you want to run.</ahelp></paragraph>
51<paragraph role="paragraph" id="par_id3153087" xml-lang="en-US" l10n="U" oldref="24">For example, for a "Bibliography" data source, you can enter the following SQL command:</paragraph>
52<paragraph role="paragraph" id="par_id3145673" xml-lang="en-US" l10n="U" oldref="25">SELECT "Address" FROM "biblio" "biblio"</paragraph>
53<paragraph role="paragraph" id="par_id3145611" xml-lang="en-US" l10n="U" oldref="21">For more information on SQL commands, please consult the documentation that came with the database.</paragraph>
54<bookmark xml-lang="en-US" branch="hid/dbaccess:ListBox:DLG_DIRECTSQL:LB_HISTORY" id="bm_id3154923" localize="false"/><paragraph role="heading" id="hd_id3156024" xml-lang="en-US" level="2" l10n="U" oldref="26">Previous commands</paragraph>
55<paragraph role="paragraph" id="par_id3149045" xml-lang="en-US" l10n="U" oldref="27"><ahelp hid="DBACCESS_LISTBOX_DLG_DIRECTSQL_LB_HISTORY">Lists the previously executed SQL commands. To run a command again, click the command, and then click <emph>Run</emph>.</ahelp></paragraph>
56<bookmark xml-lang="en-US" branch="hid/dbaccess:MultiLineEdit:DLG_DIRECTSQL:ME_STATUS" id="bm_id3161656" localize="false"/><paragraph role="heading" id="hd_id3154348" xml-lang="en-US" level="2" l10n="U" oldref="5">Status</paragraph>
57<paragraph role="paragraph" id="par_id3151054" xml-lang="en-US" l10n="U" oldref="6"><ahelp hid="DBACCESS_MULTILINEEDIT_DLG_DIRECTSQL_ME_STATUS">Displays the results, including errors, of the SQL command that you ran.</ahelp></paragraph>
58<bookmark xml-lang="en-US" branch="hid/dbaccess:PushButton:DLG_DIRECTSQL:PB_EXECUTE" id="bm_id3148798" localize="false"/><paragraph role="heading" id="hd_id3154071" xml-lang="en-US" level="2" l10n="U" oldref="7">Run</paragraph>
59<paragraph role="paragraph" id="par_id3151210" xml-lang="en-US" l10n="U" oldref="8"><ahelp hid="DBACCESS_PUSHBUTTON_DLG_DIRECTSQL_PB_EXECUTE">Runs the command that you entered in the <emph>Command to execute </emph>box.</ahelp></paragraph>
60<embed href="text/shared/00/00000001.xhp#schliessen2"/>
61</body>
62</helpdocument>
63