home *** CD-ROM | disk | FTP | other *** search
/ Turbo Toolbox / Turbo_Toolbox.iso / 1990 / 03 / ssql / insert.shr < prev    next >
Encoding:
Text File  |  1979-12-31  |  2.0 KB  |  66 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.          INSERT
  7.  
  8.          The insert command is used to put data into your database.  
  9.  
  10.          SYNTAX:
  11.  
  12.          insert filename
  13.  
  14.          EXAMPLE:
  15.  
  16.          insert cust
  17.  
  18.          After the command is entered, you are prompted for each column 
  19.          in a row of data. It is important to remember that you must not 
  20.          end the insert command with a ';' as you would with most other 
  21.          commands.
  22.  
  23.          MAKING CORRECTIONS
  24.  
  25.          Within each prompt for a column, the maximum number of 
  26.          characters or digits is represented by underlines.  The only key 
  27.          you can use for making corrections to a line you are on is by 
  28.          using the backspace key.  
  29.  
  30.          If you made a mistake on a previous column in the row you are 
  31.          on, or you want to cancel the current row, press the ESC key and 
  32.          you will exit from the insert command.  The current row is not 
  33.          added to the table.
  34.  
  35.          THE NULL ENTRY
  36.  
  37.          For the null entry, press the ENTER key at the first position of
  38.          the prompt.
  39.          
  40.          In some cases, you want to make the database realize that data 
  41.          is not appropriate for a certain column in a certain row.  It is 
  42.          different from a zero.  For example, in the manufacturing 
  43.          table, we have a column for the percent of defects.  For some of 
  44.          the items, defects are not tracked.  This is not to say that 
  45.          there are zero defects - we just don't have the data.  
  46.  
  47.          The where clause in the select command has special ways of 
  48.          handling the null.  You can select rows that just have nulls in 
  49.          a column or rows that do not have nulls in a column.  Any 
  50.          numeric operation (such as avg or min) skips a row where the 
  51.          numeric column is null. 
  52.          
  53.          TO EXIT THE INSERT MODE
  54.  
  55.          Press the ESC at the prompt for the first column in the row.
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                    INSERT-1
  64.  
  65.  
  66.