20.07.2013 Views

Beginning SQL

Beginning SQL

Beginning SQL

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Appendix B<br />

404<br />

At the very top of the program screen is a large textbox, which is where you enter your <strong>SQL</strong>. Once it’s<br />

entered and you’re happy with it, you need to click the Execute button (the button with a flash through<br />

it directly to the right of the textbox). This then runs or executes the <strong>SQL</strong>. The first task is to create the<br />

Film Club database. Enter the following <strong>SQL</strong> into the <strong>SQL</strong> box:<br />

CREATE DATABASE FILMCLUB;<br />

Figure B-24 shows the <strong>SQL</strong> in the <strong>SQL</strong> box:<br />

Figure B-24<br />

This is not a query returning information; rather, it is <strong>SQL</strong> that changes the database system, in this case,<br />

adding a new database. Therefore, you don’t see any results as such, but if you right-click in the<br />

Schemata box (on the right-hand side of the window) and select Refresh Schemata List, you see that the<br />

database, or what My<strong>SQL</strong> calls a schema, called filmclub now appears (see Figure B-25):<br />

Figure B-25<br />

Now close down Query Browser and reopen it. The same login-type screen appears, but this time you<br />

need to create a connection to the Film Club database. Click the button with three dots inside it next to<br />

the Connection drop-down box. The screen shown in Figure B-26 should appear:

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

Saved successfully!

Ooh no, something went wrong!