Results 1 to 4 of 4

Thread: Sample database script to create tables

  1. #1
    Join Date
    Feb 2009
    Posts
    39

    Sample database script to create tables

    I am looking for sample database script to create tables. The script must create password for the user, data for each user store in different section.

  2. #2
    Join Date
    May 2008
    Posts
    2,297

    Re: Sample database script to create tables

    To create a MySQL table you need to open the phpMyAdmin tool for the coresponding database. Before you can enter data (rows) into a table, you must first define what kinds of data will be stored (columns). The columns specify what the data is going to be, while the rows contain the actual data.Once the new table is created you can specify the fields' names, length, collation, attributes, etc.

  3. #3
    Join Date
    Jan 2009
    Posts
    199

    Re: Sample database script to create tables

    Sample database script to create tables :

    Code:
    <?php
    // First create sol connection 
    mysql_connect("localhost", "admin", "1admin") or die(mysql_error());
    mysql_select_db("test") or die(mysql_error());
    mysql_query("CREATE TABLE example(
    id INT NOT NULL AUTO_INCREMENT, 
    PRIMARY KEY(id),
     empname VARCHAR(30), 
     empage INT)")
     or die(mysql_error());  
    
    echo "Table is Created!";
    
    ?>

  4. #4
    Join Date
    Dec 2008
    Posts
    177

    Re: Sample database script to create tables

    You create the database tables and fields by using PHPMagic software, this software generates all the code for you. Simply upload the generated code to your server and run the generated setup file in your browser or you can also use Optimization Advisor wizard, it provides an SQL script to create the recommended summary tables.

Similar Threads

  1. Sample Script for DSADD for Bulk Users
    By Debra Brown in forum Active Directory
    Replies: 8
    Last Post: 05-05-2012, 10:58 AM
  2. Why is a tables in a database alisased ?
    By Vaikuntam in forum Software Development
    Replies: 4
    Last Post: 07-01-2011, 06:18 AM
  3. How to create MySQL Database and Tables in PHP?
    By Orton in forum Software Development
    Replies: 4
    Last Post: 23-02-2010, 06:45 AM
  4. External Tables in database
    By Cayden in forum Software Development
    Replies: 4
    Last Post: 17-02-2010, 11:02 PM
  5. Creating partition of database tables
    By LaMarcus in forum Software Development
    Replies: 4
    Last Post: 30-01-2010, 11:48 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,714,132,081.54251 seconds with 16 queries