Beginning SQL
Beginning SQL Beginning SQL
Appendix B 428 Then click the Run icon and you’re warned that you’re about to append one row to the table. Click Yes and the data is entered into MyTable. Now clear the SQL entry box, type the following statement, and click Run: INSERT INTO MyTable(MyColumn) VALUES(888); To see what data is in MyTable, clear the SQL entry box and type the following statement: SELECT * FROM MyTable Click Execute, and you should see the screen that appears in Figure B-59: Figure B-59 To return to the Code view, you need to either select SQL View from the main menu’s View menu or click on the Design icon on the far left of the toolbar and hold down the mouse button and select the SQL icon. MyTable isn’t needed again in this book, so delete it by entering the following statement into the SQL entry box and clicking Execute: DROP TABLE MyTable Close the query, saying no to saving it. Return to Table view, and you can see that MyTable is no longer listed.
- Page 846: Figure B-22 Click Ignore to continu
- Page 850: Figure B-26 Click the Add New Conne
- Page 854: Figure B-29 Click the triangle next
- Page 858: Installing and Using IBM DB2 A free
- Page 862: Figure B-34 The default option of T
- Page 866: Click Next to continue to the conta
- Page 870: The screen in Figure B-42 allows yo
- Page 874: Figure B-45 Figure B-46 Setting Up
- Page 878: Figure B-48 Setting Up and Using th
- Page 882: Figure B-50 You must reconnect to t
- Page 886: You can see that DB2 automatically
- Page 890: The box in the middle of the screen
- Page 894: If you select MyTable from the list
- Page 900: Appendix B 430 The next screen (see
- Page 904: Appendix B 432 On the next screen,
- Page 908: Appendix B 434 Click Next to procee
- Page 912: Appendix B 436 Figure B-72 The huge
- Page 916: Appendix B 438 Figure B-74 Notice t
- Page 920: Appendix B 440 Figure B-76 The Obje
- Page 924: Appendix B 442 Figure B-78 Chapter
- Page 928: Appendix B You don’t need MyTable
- Page 932: Appendix B 446 Figure B-82 To begin
- Page 936: Appendix B Using Oracle’s SQL*Plu
- Page 940: Appendix B 450 Figure B-87 Another
- Page 944: Appendix C Category Table The follo
Appendix B<br />
428<br />
Then click the Run icon and you’re warned that you’re about to append one row to the table. Click Yes<br />
and the data is entered into MyTable. Now clear the <strong>SQL</strong> entry box, type the following statement, and<br />
click Run:<br />
INSERT INTO MyTable(MyColumn) VALUES(888);<br />
To see what data is in MyTable, clear the <strong>SQL</strong> entry box and type the following statement:<br />
SELECT * FROM MyTable<br />
Click Execute, and you should see the screen that appears in Figure B-59:<br />
Figure B-59<br />
To return to the Code view, you need to either select <strong>SQL</strong> View from the main menu’s View menu or<br />
click on the Design icon on the far left of the toolbar and hold down the mouse button and select the<br />
<strong>SQL</strong> icon. MyTable isn’t needed again in this book, so delete it by entering the following statement into<br />
the <strong>SQL</strong> entry box and clicking Execute:<br />
DROP TABLE MyTable<br />
Close the query, saying no to saving it. Return to Table view, and you can see that MyTable is no longer<br />
listed.