亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? ch21.htm

?? Learn SQL in an easy way...
?? HTM
?? 第 1 頁 / 共 3 頁
字號:
<PRE><FONT COLOR="#0066FF">SQL&gt; <B>@ezinsert.sql</B></FONT></PRE><H5><FONT COLOR="#000000">OUTPUT:</FONT></H5><PRE><FONT COLOR="#0066FF">SQL&gt; spool ezinsert.lstSQL&gt; set echo onSQL&gt; set feedback onSQL&gt; insert into office_tbl values  2  ('303785523' 'SMITH', 'OFFICE OF THE STATE OF INDIANA, ADJUTANT GENERAL')  3  /     ('303785523' 'SMITH', 'OFFICE OF THE STATE OF INDIANA, ADJUTANT GENERAL')         *ERROR at line 2:ORA-00917: missing commaSQL&gt; spool offSQL&gt;</FONT></PRE><H5>ANALYSIS:</H5><P>On line 2 a comma is missing between the Social Security number and <TT>SMITH</TT>.<H3><FONT COLOR="#000077">Column Ambiguously Defined</FONT></H3><H5><FONT COLOR="#000000">INPUT:</FONT></H5><PRE><FONT COLOR="#0066FF">SQL&gt; <B>@employee_tbl</B></FONT></PRE><H5><FONT COLOR="#000000">OUTPUT:</FONT></H5><PRE><FONT COLOR="#0066FF">SQL&gt; spool employee.lstSQL&gt; set echo onSQL&gt; set feedback onSQL&gt; select p.ssn, name, e.address, e.phone  2  from employee_tbl e,  3  payroll_tbl p  4  where e.ssn =p.ssn;     select p.ssn, name, e.address, e.phone               *ERROR at line 1:ORA-00918: column ambigously definedSQL&gt; spool offSQL&gt;</FONT></PRE><H5>ANALYSIS:</H5><P>On line 1 the column name has not been defined. The tables have been given aliasesof <TT>e</TT> and <TT>p</TT>. Decide which table to pull the name from and defineit with the table alias.<H3><FONT COLOR="#000077">SQL Command Not Properly Ended</FONT></H3><H5><FONT COLOR="#000000">INPUT:</FONT></H5><PRE><FONT COLOR="#0066FF">SQL&gt; <B>create view emp_tbl as</B>  2  <B>select * from employee_tbl</B>  3  <B>order by name</B>  4 <B> /</B></FONT></PRE><H5><FONT COLOR="#000000">OUTPUT:</FONT></H5><PRE><FONT COLOR="#0066FF">     order by name     *ERROR at line 3:ORA-00933: SQL command not properly endedSQL&gt;</FONT></PRE><H5>ANALYSIS:</H5><P>Why is the command not properly ended? You know you can use a <TT>/</TT> to endan SQL statement. Another fooler. An <TT>ORDER BY</TT> clause cannot be used in a<TT>CREATE VIEW </TT>statement. Use a <TT>GROUP BY</TT> instead. Here the query processoris looking for a terminator (semicolon or forward slash) before the <TT>ORDER BY</TT>clause because the processor assumes the <TT>ORDER BY</TT> is not part of the <TT>CREATEVIEW</TT> statement. Because the terminator is not found before the <TT>ORDER BY</TT>,this error is returned instead of an error pointing to the <TT>ORDER BY</TT>.<H3><FONT COLOR="#000077">Missing Expression</FONT></H3><H5><FONT COLOR="#000000">INPUT:</FONT></H5><PRE><FONT COLOR="#0066FF">SQL&gt; <B>@tables.sql</B></FONT></PRE><H5><FONT COLOR="#000000">OUTPUT:</FONT></H5><PRE><FONT COLOR="#0066FF">SQL&gt; spool tables.lstSQL&gt; set echo onSQL&gt; set feedback onSQL&gt; set pagesize 1000SQL&gt; select owner|| '.' || table,  2  from sys.dba_tables  3  where owner = 'SYSTEM'  4  order by table_name  5  /     from sys.dba_tables    *ERROR at line 2:ORA-00936: missing expressionSQL&gt; spool offSQL&gt;</FONT></PRE><H5>ANALYSIS:</H5><P>Notice the comma after <TT>table</TT> on the first line; therefore, the queryprocessor is looking for another column in the <TT>SELECT</TT> clause. At this point,the processor is not expecting the <TT>FROM</TT> clause.<H3><FONT COLOR="#000077">Not Enough Arguments for Function</FONT></H3><H5><FONT COLOR="#000077">INPUT:</FONT></H5><PRE><FONT COLOR="#0066FF">SQL&gt; <B>@tblspc.sql</B></FONT></PRE><H5><FONT COLOR="#000000">OUTPUT:</FONT></H5><PRE><FONT COLOR="#0066FF">SQL&gt; spool tblspc.lstSQL&gt; set echo onSQL&gt; set feedback onSQL&gt; set pagesize 1000SQL&gt; select substr(tablespace_name,1,15) a,  2         decode(substr(file_name,1,45)) c, bytes  3  from sys.dba_data_files  4  order by tablespace_name;     decode(substr(file_name,1,45)) c, bytes          *ERROR at line 2:ORA-00938: not enough arguments for functionSQL&gt; spool offSQL&gt;</FONT></PRE><H5>ANALYSIS:</H5><P>There are not enough arguments for the <TT>DECODE</TT> function. Check your implementationfor the proper syntax.<H3><FONT COLOR="#000077">Not Enough Values</FONT></H3><H5><FONT COLOR="#000000">INPUT:</FONT></H5><PRE><FONT COLOR="#0066FF">SQL&gt; <B>@ezinsert.sql</B></FONT></PRE><H5><FONT COLOR="#000000">OUTPUT:</FONT></H5><PRE><FONT COLOR="#0066FF">SQL&gt; spool ezinsert.lstSQL&gt; set echo onSQL&gt; set feedback onSQL&gt; insert into employee_tbl values  2  ('303785523', 'SMITH', 'JOHN', 'JAY', 'MALE')  3  /     insert into employee_tbl values             *ERROR at line 1:ORA-00947: not enough valuesSQL&gt; spool offSQL&gt;</FONT></PRE><H5>ANALYSIS:</H5><P>A column value is missing. Perform a <TT>DESCRIBE</TT> command on the table tofind the missing column. You can insert the specified data only if you list the columnsthat are to be inserted into, as shown in the next example:</P><H5>INPUT:</H5><PRE><FONT COLOR="#0066FF">SQL&gt; <B>spool ezinsert.lst</B>SQL&gt; <B>set echo on</B>SQL&gt; <B>set feedback on</B>SQL&gt; <B>insert into employee_tbl (ssn, last_name, first_name, mid_name, sex)</B>  2  <B>values ('303785523', 'SMITH', 'JOHN', 'JAY', 'MALE')</B>  3  <B>/</B></FONT></PRE><H3><FONT COLOR="#000077">Integrity Constraint Violated--Parent Key Not Found</FONT></H3><H5><FONT COLOR="#000000">INPUT:</FONT></H5><PRE><FONT COLOR="#0066FF">SQL&gt; <B>insert into payroll_tbl values</B>  2  <B>('111111111', 'SMITH', 'JOHN')</B>  3 <B> /</B></FONT></PRE><H5><FONT COLOR="#000000">OUTPUT:</FONT></H5><PRE><FONT COLOR="#0066FF">     insert into payroll_tbl values                    *ERROR at line 1:ORA-02291: integrity constraint (employee_cons) violated - parentkey not foundSQL&gt;</FONT></PRE><H5>ANALYSIS:</H5><P>This error was caused by attempting to insert data into a table without the dataexisting in the parent table. Check the parent table for correct data. If missing,then you must insert the data into the parent table before attempting to insert datainto the child table.<H3><FONT COLOR="#000077">Oracle Not Available</FONT></H3><H5><FONT COLOR="#000000">INPUT:</FONT></H5><PRE><FONT COLOR="#0066FF">(sun_su3)/home&gt; sqlplusSQL*Plus: Release 3.2.3.0.0 - Production on Sat May 10 11:19:50 1997Copyright (c) Oracle Corporation 1979, 1994.  All rights reserved.Enter user-name: <B>rplew</B>Enter password:</FONT></PRE><H5><FONT COLOR="#000000">OUTPUT:</FONT></H5><PRE><FONT COLOR="#0066FF">ERROR: ORA-01034: ORACLE not availableORA-07318: smsget: open error when opening sgadef.dbf file.</FONT></PRE><H5>ANALYSIS:</H5><P>You were trying to sign on to SQL*PLUS. The database is probably down. Check statusof the database. Also, make sure that you are trying to connect to the correct databaseif you have access to multiple databases.<H3><FONT COLOR="#000077">Inserted Value Too Large for Column</FONT></H3><H5><FONT COLOR="#000000">INPUT:</FONT></H5><PRE><FONT COLOR="#0066FF">SQL&gt;<B> @ezinsert.sql</B></FONT></PRE><H5><FONT COLOR="#000000">OUTPUT:</FONT></H5><PRE><FONT COLOR="#0066FF">SQL&gt; spool ezinsert.lstSQL&gt; set echo onSQL&gt; set feedback onSQL&gt; insert into office_tbl values  2  ('303785523', 'SMITH', 'OFFICE OF THE STATE OF INDIANA, ADJUTANT GENERAL')  3  /     insert into office_tbl values             *ERROR at line 1:ORA-01401: inserted value too large for columnSQL&gt; spool offSQL&gt;</FONT></PRE><H5>ANALYSIS:</H5><P>One of the values being inserted is too large for the column. Use the <TT>DESCRIBE</TT>command on the table for the correct data length. If necessary, you can perform an<TT>ALTER TABLE</TT> command on the table to expand the column width.<H3><FONT COLOR="#000077">TNS:listener Could Not Resolve SID Given in Connect Descriptor</FONT></H3><H5><FONT COLOR="#000000">INPUT:</FONT></H5><PRE><FONT COLOR="#0066FF">SQLDBA&gt; <B>connect rplew/xxxx@database1</B></FONT></PRE><H5><FONT COLOR="#000000">OUTPUT:</FONT></H5><PRE><FONT COLOR="#0066FF">ORA-12505: TNS:listener could not resolve SID given in connect descriptorSQLDBA&gt; disconnectDisconnected.SQLDBA&gt;</FONT></PRE><H5>ANALYSIS:</H5><P>This error is very common in Oracle databases. The listener referred to in thepreceding error is the process that allows requests from a client to communicatewith the database on a remote server. Here you were attempting to connect to thedatabase. Either the incorrect database name was typed in or the listener is down.Check the database name and try again. If unsuccessful, notify the database administratorof the problem.<H3><FONT COLOR="#000077">Insufficient Privileges During Grants</FONT></H3><H5><FONT COLOR="#000000">INPUT:</FONT></H5><PRE><FONT COLOR="#0066FF">SQL&gt; <B>grant select on people_tbl to ron;</B></FONT></PRE><H5><FONT COLOR="#000000">OUTPUT:</FONT></H5><PRE><FONT COLOR="#0066FF">grant select on people_tbl to ron                              *ERROR at line 1:ORA-01749: you may not GRANT/REVOKE privileges to/from yourselfSQL&gt;</FONT></PRE><H5><FONT COLOR="#000000">INPUT:</FONT></H5><PRE><FONT COLOR="#0066FF">SQL&gt; <B>grant select on demo.employee to ron;</B></FONT></PRE><H5><FONT COLOR="#000000">OUTPUT:</FONT></H5><PRE><FONT COLOR="#0066FF">grant select on demo.employee to ron                     *ERROR at line 1:ORA-01031: insufficient privilegesSQL&gt;</FONT></PRE><P>This error occurs if you are trying to grant privileges on another user's tableand you do not have the proper privilege to do so. You must own the table to be ableto grant privileges on the table to other users. In Oracle you may be granted a privilegewith the Admin option, which means that you can grant the specified privilege onanother user's table to another user. Check your implementation for the particularprivileges you need to grant a privilege.<H3><FONT COLOR="#000077">Escape Character in Your Statement--Invalid Character</FONT></H3><P>Escape characters are very frustrating when trying to debug a broken SQL statement.This situation can occur if you use the backspace key while you are entering yourSQL statement in the buffer or a file. Sometimes the backspace key puts an invalidcharacter in the statement depending upon how your keys are mapped, even though youmight not be able see the character.<H3><FONT COLOR="#000077">Cannot Create Operating System File</FONT></H3><P>This error has a number of causes. The most common causes are that the associateddisk is full or incorrect permissions have been set on the file system. If the diskis full, you must remove unwanted files. If permissions are incorrect, change themto the correct settings. This error is more of an operating system error, so youmay need to get advice from your system administrator.<H2><FONT COLOR="#000077">Common Logical Mistakes</FONT></H2><P>So far today we have covered faults in SQL statements that generate actual errormessages. Most of these errors are obvious, and their resolutions leave little tothe imagination. The next few mistakes are more (or less) logical, and they may causeproblems later--if not immediately.<H3><FONT COLOR="#000077">Using Reserved Words in Your SQL statement</FONT></H3><H5><FONT COLOR="#000000">INPUT:</FONT></H5><PRE><FONT COLOR="#0066FF">SQL&gt; <B>select sysdate DATE</B>  2  <B>from dual;</B></FONT></PRE><H5><FONT COLOR="#000000">OUTPUT:</FONT></H5><PRE><FONT COLOR="#0066FF">select sysdate DATE               *ERROR at line 1:ORA-00923: FROM keyword not found where expected</FONT></PRE><H5>ANALYSIS:</H5><P>In this example the query processor is not expecting the word <TT>DATE</TT> becauseit is a reserved word. There is no comma after the pseudocolumn <TT>SYSDATE</TT>;therefore, the next element expected is the <TT>FROM</TT> clause.</P><H5>INPUT:</H5><PRE><FONT COLOR="#0066FF">SQL&gt; <B>select sysdate &quot;DATE&quot;</B>  2 <B> from dual;</B></FONT></PRE><H5><FONT COLOR="#000000">OUTPUT:</FONT></H5><PRE><FONT COLOR="#0066FF">DATE--------15-MAY-97</FONT></PRE><H5>ANALYSIS:</H5><P>Notice how the reserved word problem is alleviated by enclosing the word <TT>DATE</TT>with double quotation marks. Double quotation marks allow you to display the literalstring <TT>DATE</TT> as a column alias.<BLOCKQUOTE>	<P><HR><FONT COLOR="#000077"><B>NOTE:</B></FONT><B> </B>Be sure to check your specific database	documentation to get a list of reserved words, as these reserved words will vary	between different implementations. <HR></BLOCKQUOTE><P>You may or may not have to use double quotation marks when naming a column alias.

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美一区二区三区四区高清 | 99re8在线精品视频免费播放| 日韩欧美国产一区二区在线播放| 免费观看一级特黄欧美大片| 日韩视频免费直播| 国产一区二区美女| 中国av一区二区三区| 91性感美女视频| 亚洲国产日韩综合久久精品| 欧美喷潮久久久xxxxx| 激情欧美一区二区三区在线观看| 国产亚洲欧美一级| 99国内精品久久| 大陆成人av片| 亚洲视频电影在线| 欧美一卡二卡三卡四卡| 国产成人精品一区二区三区网站观看| 国产精品网站在线| 欧美日韩色一区| 国产精品亚洲第一区在线暖暖韩国| 中文字幕第一区二区| 在线观看视频一区| 国模大尺度一区二区三区| 亚洲色图.com| 欧美一区二区三区免费在线看| 国产精品一二三四| 亚洲风情在线资源站| 久久久久久久电影| 欧美在线观看视频在线| 狠狠狠色丁香婷婷综合久久五月| |精品福利一区二区三区| 6080yy午夜一二三区久久| 成人做爰69片免费看网站| 天堂影院一区二区| 国产精品欧美一区喷水| 欧美人动与zoxxxx乱| 成人午夜电影小说| 久久精品国产999大香线蕉| 亚洲欧美日韩在线不卡| 国产亚洲精品7777| 在线播放中文一区| 色综合激情久久| 国产91精品一区二区麻豆网站| 婷婷综合五月天| 中文字幕一区二区三区四区| 精品日韩一区二区三区| 欧美午夜寂寞影院| 色综合中文综合网| 亚洲在线中文字幕| 久久精品亚洲精品国产欧美kt∨| 欧美丝袜丝交足nylons图片| 福利一区福利二区| 久久电影网站中文字幕| 天天综合天天综合色| 亚洲精品中文在线| 中文字幕在线一区二区三区| 精品欧美黑人一区二区三区| 欧美精品第1页| 欧美精品久久久久久久多人混战| 91久久精品一区二区三| 不卡一区中文字幕| 成人深夜视频在线观看| 国产在线一区观看| 看电影不卡的网站| 美脚の诱脚舐め脚责91 | 在线观看欧美黄色| 91浏览器入口在线观看| 成人av在线观| 成av人片一区二区| www.色综合.com| 成人黄色国产精品网站大全在线免费观看| 精品一区二区精品| 九色|91porny| 精品亚洲欧美一区| 国内久久精品视频| 国产精品一品视频| 国产成+人+日韩+欧美+亚洲| 国产乱子伦一区二区三区国色天香| 麻豆成人久久精品二区三区红| 麻豆久久久久久| 狠狠色丁香婷综合久久| 国产一区二区日韩精品| 成人精品视频一区| 99久久er热在这里只有精品15| 色综合中文字幕国产 | 国产一区二区按摩在线观看| 九九精品一区二区| 国产成人在线视频网址| 成人高清在线视频| 在线精品观看国产| 欧美一区二区在线不卡| 欧美成人性福生活免费看| 久久久久99精品一区| 国产精品国产三级国产普通话99| 椎名由奈av一区二区三区| 洋洋av久久久久久久一区| 视频一区中文字幕国产| 国产在线精品一区在线观看麻豆| 国产盗摄一区二区三区| 91蜜桃在线免费视频| 欧美三级午夜理伦三级中视频| 欧美精品日韩综合在线| 久久久不卡网国产精品一区| 《视频一区视频二区| 婷婷一区二区三区| 国产精一品亚洲二区在线视频| 99re热视频这里只精品| 91精品国产日韩91久久久久久| 精品福利一二区| 中文字幕一区二区三区乱码在线| 亚洲高清三级视频| 国产一区二区三区免费观看| 一本大道久久a久久精品综合| 日韩一区二区三区免费看| 中文一区在线播放| 午夜精品123| 国产成人在线看| 欧美性感一区二区三区| 久久―日本道色综合久久| 亚洲一级片在线观看| 国产在线精品一区二区三区不卡| 在线亚洲一区观看| 国产人成一区二区三区影院| 一个色在线综合| 国产精品一卡二| 欧美精品tushy高清| 亚洲乱码中文字幕综合| 狠狠久久亚洲欧美| 欧美人狂配大交3d怪物一区| 亚洲人妖av一区二区| 久久精品国产一区二区三区免费看| av电影天堂一区二区在线| 欧美电影免费观看完整版 | 婷婷国产v国产偷v亚洲高清| 国产成人亚洲综合a∨婷婷| 欧美一区中文字幕| 一区二区在线看| 成人黄色片在线观看| 久久久午夜电影| 麻豆91在线观看| 91精品在线观看入口| 亚洲黄色小视频| 成人在线视频一区| 久久亚洲二区三区| 蜜臀av性久久久久蜜臀aⅴ| 在线影视一区二区三区| 国产精品另类一区| 国产超碰在线一区| 国产三级一区二区三区| 精品一区二区三区免费| 欧美剧在线免费观看网站 | 国产精品高潮呻吟| 国产一区二区三区av电影| 日韩精品一区二区三区在线| 日韩成人午夜精品| 欧美另类z0zxhd电影| 亚洲一区二区在线视频| 色噜噜狠狠成人中文综合 | 欧美日韩另类一区| 亚洲已满18点击进入久久| 91在线播放网址| 中文字幕一区二区三区在线播放| 成人开心网精品视频| 国产精品沙发午睡系列990531| 国产一区二区在线影院| 久久综合99re88久久爱| 精一区二区三区| 国产亚洲一本大道中文在线| 国产精品99久久久| 亚洲成人动漫在线观看| 欧美日韩免费一区二区三区| 亚州成人在线电影| 制服.丝袜.亚洲.另类.中文| 日本成人中文字幕| 久久综合一区二区| 福利91精品一区二区三区| 国产精品无遮挡| 色噜噜夜夜夜综合网| 午夜a成v人精品| 日韩欧美不卡在线观看视频| 激情国产一区二区| 中文一区二区在线观看| 色综合天天综合色综合av| 亚洲一二三区在线观看| 欧美一级高清片| 粉嫩一区二区三区性色av| 亚洲色图清纯唯美| 666欧美在线视频| 国产成人精品免费| 伊人婷婷欧美激情| 精品区一区二区| 成人一区在线观看| 亚洲自拍偷拍欧美| 久久夜色精品国产欧美乱极品| 成人理论电影网| 日本成人中文字幕| 国产精品每日更新| 欧美电影影音先锋| 国产乱码精品一区二区三区五月婷| 中文字幕一区二区三|