home *** CD-ROM | disk | FTP | other *** search
Wrap
<?xml version="1.0" encoding="utf-8"?> <html><head><title>Executing SQL Commands</title><meta name="filename" content="text/common/guide/data_enter_sql"/><help:css-file-link xmlns:help="http://openoffice.org/2000/help"/><!--The CSS style header method for setting styles--><style type="text/css"> table.Tabelle1{ } span.Tabelle1A{ width:1.499cm;} span.Tabelle1B{ width:16.498cm;} tr.Tabelle11{ } td.Tabelle1A1{ } table.Tabelle3{ } span.Tabelle3A{ width:1cm;} span.Tabelle3C{ width:15.997cm;} td.Tabelle3A1{ } p.P1{ } span.T1{ font-weight:bold;} span.fr1{ } span.fr2{ } </style></head><body> <p class="P1"/> <p class="Head1"><help:paragraphinfo state="U" number="67" xmlns:help="http://openoffice.org/2000/help"/><help:key-word value="SQL; executing commands" tag="kw68130_1" xmlns:help="http://openoffice.org/2000/help"/><help:to-be-embedded Eid="data_enter_sql" xmlns:help="http://openoffice.org/2000/help"><help:link Id="68130">Executing SQL Commands</help:link></help:to-be-embedded></p> <p class="Paragraph"><help:paragraphinfo state="U" number="68" xmlns:help="http://openoffice.org/2000/help"/>With the help of SQL commands you can control the database directly, and can also create and edit tables and queries.</p> <table><tr class="Tabelle11"><th class="Tabelle1A1" style="text-align:left;"><span class="Tabelle1A"> <p class="Paragraph"><draw:image draw:name="Icon0" svg:desc="This icon marks text containing additional information." svg:pixelx="32" svg:pixely="32" svg:width="0.847cm" svg:height="0.847cm" xlink:href="65980" draw:filter-name="" xmlns:draw="http://openoffice.org/2000/drawing" xmlns:svg="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"/></p> </span></th><th class="Tabelle1A1" style="text-align:left;"><span class="Tabelle1B"> <p class="Paragraph"><help:paragraphinfo state="U" number="72" xmlns:help="http://openoffice.org/2000/help"/>Not all database types support all SQL instructions. If necessary, find out which SQL commands are supported by your database system.</p> </span></th></tr></table> <table><tr class=""><td class="Tabelle3A1" style="text-align:left;"><span class="Tabelle3A"> <p class="TableHead"><help:paragraphinfo state="U" number="87" xmlns:help="http://openoffice.org/2000/help"/>1.</p> </span></td><td class="Tabelle3A1" style="text-align:left;"><span class="Tabelle3A"> <p class="TableHead"/> </span></td><td class="Tabelle3A1" style="text-align:left;"><span class="Tabelle3C"> <p class="Paragraph"><help:paragraphinfo state="U" number="70" xmlns:help="http://openoffice.org/2000/help"/>Choose <span class="T1">Tools - Data Sources </span>to open the <span class="T1">Data Source Administration</span> dialog.</p> </span></td></tr><tr class=""><td class="Tabelle3A1" style="text-align:left;"><span class="Tabelle3A"> <p class="TextInTable"><help:paragraphinfo state="U" number="88" xmlns:help="http://openoffice.org/2000/help"/>2.</p> </span></td><td class="Tabelle3A1" style="text-align:left;"><span class="Tabelle3A"> <p class="TextInTable"/> </span></td><td class="Tabelle3A1" style="text-align:left;"><span class="Tabelle3C"> <p class="Paragraph"><help:paragraphinfo state="U" number="89" xmlns:help="http://openoffice.org/2000/help"/>Select the desired data source from the list of data sources on the left, and then select the <span class="T1">Query</span> tab page.</p> </span></td></tr><tr class=""><td class="Tabelle3A1" style="text-align:left;"><span class="Tabelle3A"> <p class="TextInTable"><help:paragraphinfo state="U" number="90" xmlns:help="http://openoffice.org/2000/help"/>3.</p> </span></td><td class="Tabelle3A1" style="text-align:left;"><span class="Tabelle3A"> <p class="TextInTable"><draw:image draw:name="Icon1" svg:desc="Icon" svg:pixelx="25" svg:pixely="25" svg:width="0.661cm" svg:height="0.661cm" xlink:href="67351" draw:filter-name="" xmlns:draw="http://openoffice.org/2000/drawing" xmlns:svg="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"/></p> </span></td><td class="Tabelle3A1" style="text-align:left;"><span class="Tabelle3C"> <p class="Paragraph"><help:paragraphinfo state="U" number="91" xmlns:help="http://openoffice.org/2000/help"/>Click the <span class="T1">New SQL Command</span> icon or</p> </span></td></tr><tr class=""><td class="Tabelle3A1" style="text-align:left;"><span class="Tabelle3A"> <p class="TextInTable"/> </span></td><td class="Tabelle3A1" style="text-align:left;"><span class="Tabelle3A"> <p class="TextInTable"><draw:image draw:name="Icon2" svg:desc="Icon" svg:pixelx="25" svg:pixely="25" svg:width="0.661cm" svg:height="0.661cm" xlink:href="67352" draw:filter-name="" xmlns:draw="http://openoffice.org/2000/drawing" xmlns:svg="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"/></p> </span></td><td class="Tabelle3A1" style="text-align:left;"><span class="Tabelle3C"> <p class="Paragraph"><help:paragraphinfo state="U" number="92" xmlns:help="http://openoffice.org/2000/help"/>Select an existing query from the list and click the <span class="T1">Enter SQL Command</span> icon.</p> </span></td></tr><tr class=""><td class="Tabelle3A1" style="text-align:left;"><span class="Tabelle3A"> <p class="TextInTable"><help:paragraphinfo state="U" number="93" xmlns:help="http://openoffice.org/2000/help"/>4.</p> </span></td><td class="Tabelle3A1" style="text-align:left;"><span class="Tabelle3A"> <p class="TextInTable"/> </span></td><td class="Tabelle3A1" style="text-align:left;"><span class="Tabelle3C"> <p class="Paragraph"><help:paragraphinfo state="U" number="94" xmlns:help="http://openoffice.org/2000/help"/>In the <span class="T1">Query</span> window, enter the SQL command that you want to execute, or edit an existing command according to your requirements.</p> </span></td></tr><tr class=""><td class="Tabelle3A1" style="text-align:left;"><span class="Tabelle3A"> <p class="TextInTable"><help:paragraphinfo state="U" number="95" xmlns:help="http://openoffice.org/2000/help"/>5.</p> </span></td><td class="Tabelle3A1" style="text-align:left;"><span class="Tabelle3A"> <p class="TextInTable"><draw:image draw:name="Icon3" svg:desc="Icon" svg:pixelx="25" svg:pixely="25" svg:width="0.661cm" svg:height="0.661cm" xlink:href="67353" draw:filter-name="" xmlns:draw="http://openoffice.org/2000/drawing" xmlns:svg="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"/></p> </span></td><td class="Tabelle3A1" style="text-align:left;"><span class="Tabelle3C"> <p class="Paragraph"><help:paragraphinfo state="U" number="96" xmlns:help="http://openoffice.org/2000/help"/>Click the <span class="T1">Run</span> icon. The result of the query is displayed in the upper window.</p> </span></td></tr><tr class=""><td class="Tabelle3A1" style="text-align:left;"><span class="Tabelle3A"> <p class="TextInTable"><help:paragraphinfo state="U" number="97" xmlns:help="http://openoffice.org/2000/help"/>6.</p> </span></td><td class="Tabelle3A1" style="text-align:left;"><span class="Tabelle3A"> <p class="TextInTable"><draw:image draw:name="Icon4" svg:desc="Icon" svg:pixelx="25" svg:pixely="25" svg:width="0.661cm" svg:height="0.661cm" xlink:href="66318" draw:filter-name="" xmlns:draw="http://openoffice.org/2000/drawing" xmlns:svg="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"/></p> </span></td><td class="Tabelle3A1" style="text-align:left;"><span class="Tabelle3C"> <p class="Paragraph"><help:paragraphinfo state="U" number="98" xmlns:help="http://openoffice.org/2000/help"/>Click the <span class="T1">Save</span> or <span class="T1">Save As</span> icon to save the query.</p> </span></td></tr></table> <p class="ParaList"><help:paragraphinfo state="S" xmlns:help="http://openoffice.org/2000/help"/><help:embedded Id="65598" Eid="related" xmlns:help="http://openoffice.org/2000/help"/></p> <p class="ParaList"><help:paragraphinfo state="U" number="105" xmlns:help="http://openoffice.org/2000/help"/><help:link Id="66162" xmlns:help="http://openoffice.org/2000/help">Query Design</help:link></p> <p class="ParaList"><help:paragraphinfo state="S" xmlns:help="http://openoffice.org/2000/help"/><help:embedded Id="68433" Eid="database_main" xmlns:help="http://openoffice.org/2000/help"/></p> </body></html>