Creating a Table

From InterBase
Jump to: navigation, search

Using InterBase IBConsole, we will create a very basic table with two columns.`

  1. On the toolbar, click Image 34.gif to open the Interactive SQL dialog.
  2. In the text box enter:
CREATE TABLE tweets (pkcol int, tweet varchar (255)); 
INSERT INTO tweets VALUES ( '1', 'hello world');
SELECT * FROM tweets
  1. Click Image 34.gif to execute the command.


SQLExample1.png


  1. The table with the columns and data appear in the SQL dialog.


SQLExample2.png

View and Backup the Database

  1. Click the drop-down arrow in the SQL dialog to return to IBConsole.
IBConsoleReturn.png
  1. To view the table properties double-click the table name in the right-hand panel.
    • To view the code, click the Metadata tab.
    • To view the data, click the Data tab.
  1. To backup the database, select "twitter_cache"; select Database > Maintenance > Backup / Restore > Backup, and complete the required information in the Database Backup dialog.

Advance To: