Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New Coder
    Join Date
    Jun 2002
    Posts
    73
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Looking for Documentation

    Hey all I am looking for some kind of documentation/tutorial. What I am looking for in this tutorial is examples how to create a script with some kind of if logic.

    The reasoning for this is when I am writing small scripts for sql tables i want to create the database if it doesn't exist.

    if anyone could send me in the right direction it would be great.
    Thanks in advance.

  • #2
    New Coder
    Join Date
    Jun 2002
    Posts
    73
    Thanks
    0
    Thanked 0 Times in 0 Posts
    well i figured this out. In case anyone else is curious on how to add if logic to a sql script you simply do this;

    create database if not exists dbname;

    create table if not exists tablename(tablevalues....);

  • #3
    Supreme Overlord Spookster's Avatar
    Join Date
    May 2002
    Location
    Marion, IA USA
    Posts
    6,278
    Thanks
    4
    Thanked 83 Times in 82 Posts
    Spookster
    CodingForums Supreme Overlord
    All Hail Spookster

  • #4
    New Coder
    Join Date
    Jun 2002
    Posts
    73
    Thanks
    0
    Thanked 0 Times in 0 Posts
    hahaah yeah thanks, I just wasn't paying too much attention to the documentation, as well as I wasn't looking in the documentation in the right sections. But after hours of frustration I finally realized what was going on Thanks for the links though I know I will be there quite often


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •