• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Help on simple SQL required!!

 
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am trying to create a new table in my database using the CREATE of SQL however i am having a problem.
If I choose to INSERT i do:
SQLINSERT = " INSERT INTO UserDefined (Titled, Definition)
VALUES("
SQLINSERT = SQLINSERT & " '" & title & "' , "
SQLINSERT = SQLINSERT & " '" & it & "' )"

set conn = server.createobject("ADODB.Connection")
conn.open "UML"
set add=conn.execute(SQLINSERT)
conn.close
How do I construct the CREATE??
This is what I want to do:
CREATE TABLE UserTable (item char(30))
Which creates a new table in my database with 1 field heading of "item". Is the above line done correctly???
Also what goes after it? like in INSERT i do:
set conn = server.createobject("ADODB.Connection")
conn.open "UML"
set add=conn.execute(SQLINSERT)
conn.close

Help would be much appreciated
 
mister krabs
Posts: 13974
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The butler did it.
Note: this forum is NOT for serious inquiries about programming but rather it is for anything else. Try posting the above in the JDBC forum. You might have better luck.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic