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

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

?? apf.htm

?? Learn SQL in an easy way...
?? HTM
?? 第 1 頁 / 共 5 頁
字號:
</DL><BLOCKQUOTE>	<PRE><FONT COLOR="#0066FF">SQL&gt; <B>create unique view debts as     select * from debts_tbl;</B></FONT></PRE></BLOCKQUOTE><DL>	<DD>No. There is no such thing as a unique view.	<P><B>5.</B> Is the following <TT>CREATE</TT> statement correct?</DL><BLOCKQUOTE>	<PRE><FONT COLOR="#0066FF">SQL&gt; <B>drop * from view debts;</B></FONT></PRE></BLOCKQUOTE><DL>	<DD>No. The correct syntax is</DL><BLOCKQUOTE>	<PRE><FONT COLOR="#0066FF">drop view debts;</FONT></PRE></BLOCKQUOTE><DL>	<DD><B>6.</B> Is the following <TT>CREATE</TT> statement correct?</DL><BLOCKQUOTE>	<PRE><FONT COLOR="#0066FF">SQL&gt; <B>create index id_index on bills     (account_id);</B></FONT></PRE></BLOCKQUOTE><DL>	<DD>Yes. This syntax is correct.</DL><H3><FONT COLOR="#000077">Exercise Answers</FONT></H3><DL>	<DD><B>1.</B> Examine the database system you are using. Does it support views? What	options are you allowed to use when creating a view? Write a simple SQL statement	that will create a view using the appropriate syntax. Perform some traditional operations	such as <TT>SELECT</TT> or <TT>DELETE</TT> and then <TT>DROP</TT> the view.	<P>Check your implementation's data dictionary for the proper tables to query for	information on views.</P>	<P><B>2.</B> Examine the database system you are using to determine how it supports	indexes. You will undoubtedly have a wide range of options. Try out some of these	options on a table that exists within your database. In particular, determine whether	you are allowed to create <TT>UNIQUE</TT> or <TT>CLUSTERED</TT> indexes on a table	within your database.</P>	<P>Microsoft Access allows developers to use graphical tools to add indexes to a	table. These indexes can combine multiple fields, and the sort order can also be	set graphically. Other systems require you to type the <TT>CREATE INDEX</TT> statement	at a command line.</P>	<P><B>3.</B> If possible, locate a table that has several thousand records. Use a	stopwatch or clock to time various operations against the database. Add some indexes	and see whether you can notice a performance improvement. Try to follow the tips	given to you today.</P>	<P>Indexes improve performance when the operation returns a small subset of records.	As queries return a larger portion of a table's records, the performance improvement	gained by using indexes becomes negligible. Using indexes can even slow down queries	in some situations.</DL><H2><FONT COLOR="#000077">Day 11, &quot;Controlling Transactions&quot;</FONT></H2><H3><FONT COLOR="#000077">Quiz Answers</FONT></H3><DL>	<DD><B>1.</B> When nesting transactions, does issuing a <TT>ROLLBACK TRANSACTION</TT>	command cancel the current transaction and roll back the batch of statements into	the upper-level transaction? Why or why not?	<P>No. When nesting transactions, any rollback of a transaction cancels all the transactions	currently in progress. The effect of all the transactions will not truly be saved	until the outer transaction has been committed.</P>	<P><B>2. </B>Can savepoints be used to &quot;save off&quot; portions of a transaction?	Why or why not?<BR>	Yes. Savepoints allow the programmer to save off statements within a transaction.	If desired, the transaction can then be rolled back to this savepoint instead of	to the beginning of the transaction.</P>	<P><B>3.</B> Can a <TT>COMMIT</TT> command be used by itself or must it be embedded?<BR>	A <TT>COMMIT</TT> command can be issued by itself or in the transaction.</P>	<P><B>4.</B> If you issue the <TT>COMMIT</TT> command and then discover a mistake,	can you still use the <TT>ROLLBACK</TT> command?<BR>	Yes and No. You can issue the command, but it will not roll back the changes.</P>	<P><B>5.</B> Will using a savepoint in the middle of a transaction save all that	happened before it automatically?</P>	<P>No. A savepoint comes into play only if a <TT>ROLLBACK</TT> command is issued--and	then only the changes made after the savepoint will be rolled back.</DL><H3><FONT COLOR="#000077">Exercise Answers</FONT></H3><DL>	<DD><B>1. </B>Use Personal Oracle7 syntax and correct the syntax (if necessary) for	the following:</DL><BLOCKQUOTE>	<PRE><FONT COLOR="#0066FF">SQL&gt; <B>START TRANSACTION     INSERT INTO CUSTOMERS VALUES     ('SMITH', 'JOHN')</B>SQL&gt;<B> COMMIT;</B></FONT></PRE>	<P><FONT COLOR="#000000"><I>Answer:</I></FONT></P>	<PRE><FONT COLOR="#0066FF">SQL&gt; <B>SET TRANSACTION;     INSERT INTO CUSTOMERS VALUES     ('SMITH', 'JOHN');</B>SQL&gt; <B>COMMIT;</B></FONT></PRE></BLOCKQUOTE><DL>	<DD><B>2.</B> Use Personal Oracle7 syntax and correct the syntax (if necessary) for	the following:</DL><PRE></PRE><BLOCKQUOTE>	<PRE><FONT COLOR="#0066FF">SQL&gt; <B>SET TRANSACTION;     UPDATE BALANCES SET CURR_BAL = 25000;</B>SQL&gt; <B>COMMIT;</B></FONT></PRE>	<P><I>Answer:</I></BLOCKQUOTE><PRE></PRE><BLOCKQUOTE>	<PRE><FONT COLOR="#0066FF">SQL&gt; <B>SET TRANSACTION;         UPDATE BALANCES SET CURR_BAL = 25000;</B>SQL&gt; <B>COMMIT;</B></FONT></PRE></BLOCKQUOTE><DL>	<DD>This statement is correct and will work quite well; however, you have just updated	everyone's current balance to $25,000!	<P><B>3. </B>Use Personal Oracle7 syntax and correct the syntax (if necessary) for	the following:</DL><PRE></PRE><BLOCKQUOTE>	<PRE><FONT COLOR="#0066FF">SQL&gt; <B>SET TRANSACTION;     INSERT INTO BALANCES VALUES     ('567.34', '230.00', '8');</B>SQL&gt;<B> ROLLBACK;</B></FONT></PRE></BLOCKQUOTE><DL>	<DD>This statement is correct. Nothing will be inserted.</DL><H2><FONT COLOR="#000077">Day 12, &quot;Database Security&quot;</FONT></H2><H3><FONT COLOR="#000077">Quiz Answers</FONT></H3><DL>	<DD><B>1.</B> What is wrong with the following statement?</DL><BLOCKQUOTE>	<PRE><FONT COLOR="#0066FF">SQL&gt; <B>GRANT CONNECTION TO DAVID;</B></FONT></PRE></BLOCKQUOTE><DL>	<DD>There is no <TT>CONNECTION</TT> role. The proper syntax is</DL><BLOCKQUOTE>	<PRE><FONT COLOR="#0066FF">SQL&gt; <B>GRANT CONNECT TO DAVID;</B></FONT></PRE></BLOCKQUOTE><DL>	<DD><B>2. </B>True or False (and why): Dropping a user will cause all objects owned	by that user to be dropped as well.	<P>This statement is true only if the <TT>DROP USER </TT>user name<TT> CASCADE</TT>	statement is executed. The <TT>CASCADE</TT> option tells the system to drop all objects	owned by the user as well as that user.</P>	<P><B>3.</B> What would happen if you created a table and granted select privileges	on the table to <TT>public</TT>?</P>	<P>Everyone could select from your table, even users you may not want to be able	to view your data.</P>	<P><B>4.</B> Is the following SQL statement correct?</DL><BLOCKQUOTE>	<PRE><FONT COLOR="#0066FF">SQL&gt; <B>create user RON     identified by RON;</B></FONT></PRE></BLOCKQUOTE><DL>	<DD>Yes. This syntax creates a user. However, the user will acquire the default settings,	which may not be desirable. Check your implementation for these settings.	<P><B>5. </B>Is the following SQL statement correct?</DL><PRE></PRE><BLOCKQUOTE>	<PRE><FONT COLOR="#0066FF">SQL&gt; <B>alter RON     identified by RON;</B></FONT></PRE></BLOCKQUOTE><DL>	<DD>No. The user is missing. The correct syntax is</DL><PRE></PRE><BLOCKQUOTE>	<PRE><FONT COLOR="#0066FF">SQL&gt; <B>alter user RON     identified by RON;</B></FONT></PRE></BLOCKQUOTE><DL>	<DD><B>6. </B>Is the following SQL statement correct?</DL><BLOCKQUOTE>	<PRE><FONT COLOR="#0066FF">SQL&gt; <B>grant connect, resource to RON;</B></FONT></PRE></BLOCKQUOTE><DL>	<DD>Yes. The syntax is correct.	<P><B>7.</B> If you own a table, who can select from that table?</P>	<P>Only users with the select privilege on your table.</DL><H3><FONT COLOR="#000077">Exercise Answer</FONT></H3><P>Experiment with your database system's security by creating a table and then bycreating a user. Give this user various privileges and then take them away.</P><P>(On your own.)<H2><FONT COLOR="#000077">Day 13, &quot;Advanced SQL Topics&quot;</FONT></H2><H3><FONT COLOR="#000077">Quiz Answers</FONT></H3><DL>	<DD><B>1.</B> True or False: Microsoft Visual C++ allows programmers to call the	ODBC API directly.	<P>False. Microsoft Visual C++ encapsulates the ODBC library with a set of C++ classes.	These classes provide a higher-level interface to the ODBC functions, which results	in an easier-to-use set of functions. However, the overall functionality is somewhat	limited. If you purchase the ODBC Software Development Kit (SDK) (you can obtain	the SDK by joining the Microsoft Developers Network), you can call the API directly	from within a Visual C++ application.</P>	<P><B>2.</B> True or False: The ODBC API can be called directly only from a C program.<BR>	False. The ODBC API resides within DLLs that can be bound by a number of languages,	including Visual Basic and Borland's Object Pascal.</P>	<P><B>3.</B> True or False: Dynamic SQL requires the use of a precompiler.<BR>	False. Static SQL requires a precomplier. Dynamic SQL is just that: dynamic. The	SQL statements used with Dynamic SQL can be prepared and executed at runtime.</P>	<P><B>4. </B>What does the <TT>#</TT> in front of a temporary table signify?<BR>	SQL Server uses the <TT>#</TT> to flag a temporary table.</P>	<P><B>5.</B> What must be done after closing a cursor to return memory?<BR>	You must deallocate the cursor. The syntax is</DL><BLOCKQUOTE>	<PRE><FONT COLOR="#0066FF">SQL&gt; deallocate cursor cursor_name;</FONT></PRE></BLOCKQUOTE><DL>	<DD><B>6.</B> Are triggers used with the <TT>SELECT</TT> statement?	<P>No. They are executed by the use of <TT>UPDATE</TT>, <TT>DELETE</TT>, or <TT>INSERT</TT>.</P>	<P><B>7.</B> If you have a trigger on a table and the table is dropped, does the	trigger still exist?</P>	<P>No. The trigger is automatically dropped when the table is dropped.</DL><H3><FONT COLOR="#000077">Exercise Answers</FONT></H3><DL>	<DD><B>1. </B>Create a sample database application. (We used a music collection to	illustrate these points today.) Break this application into logical data groupings.	<P><B>2.</B> List of queries you think will be required to complete this application.</P>	<P><B>3.</B> List the various rules you want to maintain in the database.</P>	<P><B>4. </B>Create a database schema for the various groups of data you described	in step 1.</P>	<P><B>5. </B>Convert the queries in step 2 to stored procedures.</P>	<P><B>6.</B> Convert the rules in step 3 to triggers.</P>	<P><B>7.</B> Combine steps 4, 5, and 6 into a large script file that can be used	to build the database and all its associated procedures.</P>	<P><B>8.</B> Insert some sample data. (This step can also be a part of the script	file in step 7.)</P>	<P><B>9.</B> Execute the procedures you have created to test their functionality.<BR>	(On your own.)</DL><H2><FONT COLOR="#000077">Day 14, &quot;Dynamic Uses of SQL&quot;</FONT></H2><H3><FONT COLOR="#000077">Quiz Answers</FONT></H3><DL>	<DD><B>1.</B> In which object does Microsoft Visual C++ place its SQL?<BR>	In the <TT>CRecordSet</TT> object's <TT>GetDefaultSQL</TT> member. Remember, you	can change the string held here to manipulate your table.	<P><B>2.</B> In which object does Delphi place its SQL?<BR>	In the <TT>TQuery</TT> object.</P>	<P><B>3. </B>What is ODBC?<BR>	ODBC stands for open database connectivity. This technology enables Windows-based	programs to access a database through a driver.</P>	<P><B>4. </B>What does Delphi do?<BR>	Delphi provides a scalable interface to various databases.</DL><H3><FONT COLOR="#000077">Exercise Answers</FONT></H3><DL>	<DD><B>1. </B>Change the sort order in the C++ example from ascending to descending	on the <TT>State</TT> field.	<P>Change the return value of <TT>GetDefaultSQL</TT> as shown in the following code	fragment:</DL><PRE></PRE><BLOCKQUOTE>	<PRE><FONT COLOR="#0066FF"><B>CString CTyssqlSet::GetDefaultSQL(){return &quot; SELECT * FROM CUSTOMER ORDER DESC BY STATE &quot;;}</B></FONT></PRE></BLOCKQUOTE><DL>	<DD><B>2. </B>Go out, find an application that needs SQL, and use it.<BR>	(On your own.)</DL><H2><FONT COLOR="#000077">Day 15, &quot;Streamlining SQL Statements for ImprovedPerformance&quot;</FONT></H2><H3><FONT COLOR="#000077">Quiz Answers</FONT></H3><DL>	<DD><B>1.</B> What does <I>streamline an SQL statement</I> mean?<BR>	Streamlining an SQL statement is taking the path with the least resistance by carefully	planning your statement and arranging the elements within your clauses properly.	<P><B>2.</B> Should tables and their corresponding indexes reside on the same disk?<BR>	Absolutely not. If possible, always store tables and indexes separately to avoid	disk contention.</P>	<P><B>3. </B>Why is the arrangement of conditions in an SQL statement important?<BR>	For more efficient data access (the path with the least resistance).</P>	<P><B>4. </B>What happens during a full-table scan?<BR>	A table is read row by row instead of using an index that points to specific rows.</P>	<P><B>5.</B> How can you avoid a full-table scan?<BR>	A full-table scan can be avoided by creating an index or rearranging the conditions	in an SQL statement that are indexed.</P>	<P><B>6. </B>What are some common hindrances of general performance?<BR>	Common performance pitfalls include</P>	<UL>		<LI>Insufficient shared memory		<P>		<LI>Limited number of available disk drives		<P>		<LI>Improper usage of available disk drives		<P>		<LI>Running large batch loads that are unscheduled		<P>		<LI>Failing to commit or rollback transactions		<P>		<LI>Improper sizing of tables and indexes	</UL></DL><H3><FONT COLOR="#000077">Exercise Answers</FONT></H3><DL>	<DD><B>1. </B>Make the following SQL statement more readable.</DL>

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲欧洲日韩在线| 一本大道av伊人久久综合| 色综合久久88色综合天天6| 精品对白一区国产伦| 亚洲地区一二三色| 在线观看精品一区| 亚洲午夜日本在线观看| 精品一二三四在线| 欧美大片免费久久精品三p| 天天色综合天天| 在线观看av一区| 亚洲人成小说网站色在线| 色综合中文字幕国产 | 极品销魂美女一区二区三区| 欧美一级高清片在线观看| 天堂蜜桃一区二区三区 | 国产69精品久久777的优势| 久久综合色综合88| 看电视剧不卡顿的网站| 日韩欧美国产精品一区| 老汉av免费一区二区三区| 精品久久人人做人人爽| 在线观看视频91| 亚洲第一久久影院| 欧美一区二区视频免费观看| 麻豆精品新av中文字幕| 国产亚洲欧美中文| 国产suv精品一区二区883| 1024成人网| 欧美中文字幕一区二区三区亚洲 | 一区二区三区影院| 欧美日韩国产一级片| 日本不卡一区二区| 久久综合久久99| 国产一区二区三区四区五区美女| 久久婷婷综合激情| 99精品视频免费在线观看| 亚洲成av人片在线| 日韩精品中文字幕一区| 高清不卡一区二区| 有坂深雪av一区二区精品| 欧美电影在线免费观看| 日本va欧美va精品| 中文字幕第一区综合| 99riav久久精品riav| 日韩成人午夜电影| 欧美激情自拍偷拍| 欧美亚洲图片小说| 国产老女人精品毛片久久| 亚洲激情中文1区| 26uuu亚洲婷婷狠狠天堂| 欧美激情资源网| 欧美日韩一区二区在线视频| 国模冰冰炮一区二区| 亚洲黄色尤物视频| 久久综合资源网| 91亚洲国产成人精品一区二区三| 日韩精品国产精品| 中文字幕一区二区三区av| 欧美一区日本一区韩国一区| 国产一区二区三区精品欧美日韩一区二区三区 | 精品国产a毛片| 97精品超碰一区二区三区| 蜜桃av一区二区在线观看| 综合精品久久久| 在线综合亚洲欧美在线视频| 不卡一二三区首页| 蜜芽一区二区三区| 亚洲视频免费看| 精品久久久久久久人人人人传媒 | 国产精品夫妻自拍| 欧美zozozo| 亚洲欧美成aⅴ人在线观看| 日韩欧美成人午夜| 欧美巨大另类极品videosbest| 粉嫩一区二区三区在线看| 国产一区福利在线| 国产成人精品www牛牛影视| 国产精品中文字幕日韩精品 | 在线观看欧美黄色| 欧美午夜不卡视频| 欧美日韩国产天堂| 91精品国产福利| 精品日本一线二线三线不卡| 日韩三级高清在线| ww久久中文字幕| 国产欧美日韩激情| 国产精品第四页| 一区精品在线播放| 亚洲一区二区三区三| 日韩精品亚洲专区| 美女网站在线免费欧美精品| 国产一区中文字幕| 99久久精品国产一区二区三区| 91麻豆免费观看| 欧美日韩精品专区| 精品欧美黑人一区二区三区| 中文字幕的久久| 亚洲男人的天堂一区二区| 一区二区高清免费观看影视大全 | 久久精品99久久久| 国产成人精品www牛牛影视| 91亚洲永久精品| 在线不卡的av| 日本一区二区三区国色天香| 亚洲免费在线看| 日本女优在线视频一区二区| 国产精品影音先锋| 欧洲一区二区三区免费视频| 日韩一区二区免费视频| 欧美激情一区二区三区全黄| 亚洲精品国产精华液| 免费一级欧美片在线观看| 国产精品自在在线| 欧美日韩在线播放三区| 久久久久久亚洲综合| 亚洲精品日日夜夜| 精品中文字幕一区二区| 99这里只有精品| 91精品国产色综合久久久蜜香臀| 久久久久久久一区| 亚洲电影第三页| 国产a视频精品免费观看| 欧美色图天堂网| 国产网站一区二区| 亚洲福利一区二区| 国产成人福利片| 欧美性猛片xxxx免费看久爱| 久久综合九色综合97婷婷女人 | 欧美视频三区在线播放| 久久精品网站免费观看| 午夜久久久影院| 99re热视频这里只精品| 精品国产乱码久久久久久浪潮| 亚洲免费大片在线观看| 国产一区在线不卡| 欧美放荡的少妇| 99久久er热在这里只有精品15 | 日本欧美在线观看| 91麻豆免费在线观看| 久久综合久久99| 日本欧美肥老太交大片| 欧美在线一区二区| 综合亚洲深深色噜噜狠狠网站| 精品在线播放免费| 欧美日韩黄色影视| 一区二区三区四区五区视频在线观看 | 国产精品一级片| 日韩欧美亚洲国产另类| 香蕉乱码成人久久天堂爱免费| aaa亚洲精品一二三区| 国产日产欧美精品一区二区三区| 日本系列欧美系列| 欧美日韩高清一区| 亚洲午夜一区二区三区| 色综合天天综合色综合av| 国产欧美日韩视频在线观看| 精品一区二区在线看| 91精品国产综合久久久蜜臀粉嫩| 亚洲人吸女人奶水| av资源网一区| 国产精品久久久久久久久久免费看| 精品一区二区三区视频在线观看 | 综合欧美一区二区三区| 成人开心网精品视频| 国产欧美一区在线| 国产+成+人+亚洲欧洲自线| 久久久精品免费观看| 国产一区二区剧情av在线| 久久综合久久综合九色| 国产精品综合在线视频| 久久久久久久久久久久电影| 激情小说亚洲一区| 国产网红主播福利一区二区| 成人午夜在线视频| 亚洲视频一区在线| 欧美在线一区二区三区| 亚洲成a人v欧美综合天堂| 欧美日韩黄视频| 美女www一区二区| 久久在线免费观看| 国产一二精品视频| 中文字幕第一区综合| 一本一道综合狠狠老| 亚洲成a人片综合在线| 欧美一级夜夜爽| 国产麻豆精品视频| 国产精品盗摄一区二区三区| 欧美性受xxxx黑人xyx性爽| 午夜精品福利在线| 日韩欧美国产一二三区| 国产酒店精品激情| 亚洲女厕所小便bbb| 91精品午夜视频| 国产精一区二区三区| 亚洲精选免费视频| 日韩美一区二区三区| 2021中文字幕一区亚洲| 成人免费高清在线观看| 亚洲综合丁香婷婷六月香|