Beginning SQL

Beginning SQL Beginning SQL

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

Appendix B 418 You can also enter and execute SQL statements one at a time in the Interactive tab. Click the Interactive tab, and you’ll see the screen change to that shown in Figure B-47: Figure B-47 To select a database connection (to choose which database the SQL queries are executed against), you can type the following SQL: CONNECT TO database_name Alternatively, you can click the button to the right of the database connection line, which allows you to browse the database system for databases to connect to. Currently there are no databases on the system, so you can start by creating the Film Club database. Type the following SQL into the Command box (as shown in Figure B-48) and click Execute or click the Execute icon from the Interactive menu. CREATE DATABASE FILMCLUB USING CODESET UTF-8 TERRITORY US

Appendix B<br />

418<br />

You can also enter and execute <strong>SQL</strong> statements one at a time in the Interactive tab. Click the Interactive<br />

tab, and you’ll see the screen change to that shown in Figure B-47:<br />

Figure B-47<br />

To select a database connection (to choose which database the <strong>SQL</strong> queries are executed against), you<br />

can type the following <strong>SQL</strong>:<br />

CONNECT TO database_name<br />

Alternatively, you can click the button to the right of the database connection line, which allows you to<br />

browse the database system for databases to connect to. Currently there are no databases on the system,<br />

so you can start by creating the Film Club database. Type the following <strong>SQL</strong> into the Command box (as<br />

shown in Figure B-48) and click Execute or click the Execute icon from the Interactive menu.<br />

CREATE DATABASE FILMCLUB USING CODESET UTF-8 TERRITORY US

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

Saved successfully!

Ooh no, something went wrong!