Beginning SQL

Beginning SQL Beginning SQL

marjan.fesb.hr
from marjan.fesb.hr More from this publisher
20.07.2013 Views

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.

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.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!