Advertisement
Guest User

Untitled

a guest
Jun 7th, 2017
532
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MySQL 1.47 KB | None | 0 0
  1. use ics311su1014;
  2.  
  3. create table user (
  4.         email           char(100)       primary key,
  5.         firstname       char(30)        not null,
  6.         lastname        char(30)        not null,
  7.         jobtitle        char(80)        not null,
  8.         department      char(80)        not null,
  9.         organization    char(80)        not null,
  10.         workphone       char(20)        not null,
  11.         homephone       char(20),
  12.         fax             char(20),
  13.         breakfast       char(30),
  14.         lunch           char(30),
  15.         vegetarian      char(10),
  16.         specialneed     char(100),
  17.         fee             char(30),
  18.         mnscu           char(10),
  19.         date            date
  20. );
  21.  
  22. insert into user values
  23.   ("kuodi.jian@msn.com", "Kuodi", "Jian", "Assistant Professor", "Information and Computer Science", "Metropolitan State University", "651-793-1478", "651-765-9603", "651-793-1246", "breakfast", "lunch", "Yes", "Vegetarian Meals", "$50", "Yes", "2003-08-01"),
  24.   ("bogus.jian@msn.com", "Bogus", "Jian", "President of United States", "Homeland security", "The powerful of the land company", "701-345-8888", "701-666-8970", NULL, "breakfast", NULL, "No", "Vegetarian Meals", "0", "No", "2004-01-02"),
  25.   ("Julia.Thie@msn.com", "Julia", "Thie", "Business Consultant", "Iowa branch", "The mississppi river silver and gold mine LLC", "899-555-4444","888-345-9807", NULL, NULL, "lunch", "Yes", "vegetarian food", "$50", "Yes", "2004-09-02");
  26.  
  27. select *
  28. from user;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement