home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / os / vms / 14123 < prev    next >
Encoding:
Internet Message Format  |  1992-08-25  |  1.7 KB

  1. Path: sparky!uunet!cis.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!ucbvax!UNIVAX.FHDA.EDU!hasan%avax.dnet
  2. From: hasan%avax.dnet@UNIVAX.FHDA.EDU (HASAN%AVAX.DNET@UNIVAX.FHDA.EDU)
  3. Newsgroups: comp.os.vms
  4. Subject: Use of Symbols with SQL
  5. Message-ID: <9208251827.AA15454@univax.fhda.edu>
  6. Date: 25 Aug 92 18:27:33 GMT
  7. Sender: daemon@ucbvax.BERKELEY.EDU
  8. Distribution: world
  9. Organization: The Internet
  10. Lines: 46
  11.  
  12.  
  13.         Hello,
  14.  
  15.         Is there a way, that I can translate symbols set via
  16.         DCL, into SQL insert statements?
  17.  
  18.         The code shown below, does not work.  SQL is not
  19.         translating the symbols A, B or C to their values.
  20.  
  21.         I am just curious, if there is any other way to use
  22.         symbol definitions in SQL?
  23.     
  24. ==========================================================================
  25.     $    A = "AAAVAX.XXYY"
  26.     $    B = "999.99.99.99"
  27.     $    C = "8650"
  28.     !
  29.     SQL
  30.     !
  31.     DECLARE SCHEMA FILENAME INTERNET_INFO;
  32.     !
  33.     INSERT INTO NODE_INFO (NAME, ADDRESS, HWARE)
  34.                 VALUES ("''A'", "''B'", "''C'"); 
  35.         |
  36.     COMMIT;
  37. ==========================================================================
  38.  
  39. Any help or suggestions, will be greatly appreciated.
  40.  
  41.  
  42.  
  43.          //================================\\
  44.         ||        Syed Mahmood Hasan       ||
  45.                 ||                                 ||
  46.                 ||        Systems Programmer       ||
  47.                 ||                                 ||
  48.                 || hasan%avax.dnet@univax.fhda.edu ||
  49.                 ||                                 ||
  50.         ||    Foothill-De Anza Community   ||
  51.         ||         College District        ||
  52.               ||      Los Altos,  California     ||
  53.                 ||                                 ||
  54.         ||         (408) 864-8242          ||
  55.          \\================================//
  56.             
  57.  
  58.