» Creating Tables
- Tap the Table tab.
- Tap the New button. This will open the 'Create Table' form (above).
- Enter a Name for the Table in the 'Table Name' field.
- Enter the Field Name you require.
- Select the Type of field: for example, Text, Integer, Double, Memo, etc.
- If you choose a 'Text' field, you can then specify the the Size of the field in the range of 1 - 255 characters. If you require a larger size than 255, you should select Memo.
Note: you can enter any number value from the Input Panel.
- Tap the '+' button to add the table.
- To add more field names, tab the New button and repeat steps 4 through 7.
- You can reposition the field by tapping the field name in the list to select it and using the Up and Dn buttons.
<Index> Creating an Index Once you have defined all the fields required, you can Create an Index.
If your database is likely to contain a large number of records, it is highly recommended that you use an Index as it will make data retrieval much faster.
- Tap the Field Name you want to create the index on.
- Choose the Index Type from the DropDown box. Index types are:
'ASC' (Ascending), 'DESC' (Descending) and 'No' (No index).
- Tap the Create Index button.
- To create indexes on another field, repeat steps 1 to 3.
Renaming and Dropping Fields
- To 'Rename' a field: Tap the fieldname you want and tap the Rename button.
- To 'Drop' (Delete) a field: Select the required field and tap the Drop button.
Set the AutoNumber Field
- To create an AutoNumber field, make sure the Field Type is set to "Integer".
- Create an 'ASC' (Ascending) Index first.
- Select the field and tap the AutoNumber Field button.
New AutoField Types
Please Note: SprintDB Pro version 1.7
now supports AutoFields other than the
AutoIncrementalField. The new features are:
- AutoIncremental
- RandomNumber
for the Integer type field.
- GUID
and RandomNumber for the Text type field.
To set the AutoField:
- In the Table Editor, select a field in the Field List.
- Check the AutoField checkbox, and then select an AutoField type.
Renaming and Dropping Tables To Rename a table:
- Enter a new table name in the Table Name field.
- Tap the Rename button.
To Drop a table:
- Tap the Drop Table button. SprintDB Pro will prompt you by asking, "Are you sure want to drop this table
"Tablename"?
- Tap 'Yes' to continue or 'No' to cancel the action.
Warning: Dropping a table Deletes the entire table from your device. There is no Undo option. <Index> Saving your Table When you have finished creating and Indexing your table, tap the Create Table button to complete the process.Tap the Quit button to Exit. Viewing the Table The Main Table Controls
To view and browse a table, tap the Table Tab > Open. This will allow you to access the File and Tools menus. Refer to the illustration (right) for information
on the 'Main Controls'. The Scroll Left & Right buttons scroll the Table columns.
<Index> Viewing Options Viewing a Single Record When viewing a table in 'List View', tapping the Detail button allows you to view the details of the selected record. You can also Add, Delete and navigate in this view.
Viewing a Single Field Tapping the Zoom
button allows you to view just the record's Field contents. Adding and Deleting Records
You can add and delete records in the 'List View', 'Detail' and 'Zoom' window views. Undo Button Tapping this button Undoes the last action. Inserting the Current DateTime
To insert the Current System Date and Time in a single string, tap
Tools > Insert Current DateTime. <Index>
Creating a New Query To create a New Query, tap File > New Query ... This opens the 'Query Builder' form. Use the following steps to build the query.
- Enter the 'Scope' in the Select field
- The From field will automatically contain the currently open table name. Other tables in the current database are listed in the Tbl DropDown box
- The i.join field allows you to select another Table and Field to use if you want to create an 'Inner Join'
- To construct the Where element of the statement, choose a FieldName from the Fld dropdown box
- To insert an 'Operator', (=, <>, etc.) select one from the DropDown box. The default is "=".
- The Order By field allows you to set a 'Filter'. Tap the Fld DropDown box and choose a field to order by.
- You can then add a 'Condition', e.g. AND, OR,
DESC, etc.
- Tap the OK button to run the Query.
Note: You can view and edit the Query by tapping the SQL tab. For more information on Queries, see Creating SQL
<Index> Saving a Query When a Query has been created, you can assign it a name and save it.
- Tap File > Save As Query
- Enter a Query Name in the Save as dialog
- Tap the OK button
Opening a Query
Once a Query has been saved, it can be opened later. Tap File > Open Query ... . This will immediately run the query.
<Index> The Tools Menu
This is located next to the File menu. It gives you access to the Filtering, Sorting, Editing, Aggregate, Go To Record and Find Records. Tap and Hold Menu Options
When you view a table in "List View", you can "Tap and Hold" the stylus on a column in table. This gives you an alternative method of accessing the items on the Tools menu, plus: Hide this Column,
Show All Columns, AutoSize this Column, AutoSize All Columns, Copy and Paste. Filtering and Sorting Your Records The following Filter options are available: |