When a database is first created, the only tables in the database are the system tables, which hold the database schema. You can use SQL statements in Interactive SQL or Sybase Central to create new tables to hold your data.
There are two types of tables that you can create:
Base table A table that holds persistent data. The table and its data continue to exist until you explicitly delete the data or drop the table. It is called a base table to distinguish it from temporary tables and views.
Temporary table Data in a temporary table is held for a single connection only. Global temporary table definitions (but not data) are kept in the database until dropped. Local temporary table definitions and data exist for the duration of a single connection only. See Working with temporary tables.
Tables consist of rows and columns. Each column carries a particular kind of information, such as a phone number or a name, while each row specifies a particular entry.
Use the SQL Anywhere 12 plug-in to connect to the database as a user with DBA authority.
In the left pane, right-click Tables and choose New » Table.
Follow the instructions in the Create Table Wizard.
In the right pane, click the Columns tab and configure your table.
Choose File » Save.
Connect to the database as a user with DBA authority.
Execute a CREATE TABLE statement.
Discuter à propos de cette page dans DocCommentXchange.
|Copyright © 2010, iAnywhere Solutions, Inc. - SQL Anywhere 12.0.0|