Beruflich Dokumente
Kultur Dokumente
Copyright (c) 2000, 2012, Oracle and/or its affiliates. All rights reserved.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> exit
Bye
kashish@pesit-HP-Compaq-dx2300-Microtower:~$ mysql -u kashish -r
ERROR 1045 (28000): Access denied for user 'kashish'@'localhost' (using password:
NO)
kashish@pesit-HP-Compaq-dx2300-Microtower:~$ mysql -u kashish -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 50
Server version: 5.5.28-0ubuntu0.12.04.3 (Ubuntu)
Copyright (c) 2000, 2012, Oracle and/or its affiliates. All rights reserved.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql>
mysql>
mysql>
mysql>
mysql>
mysql> create table ORDERS(OrdNo int,PurchaseAmt int,OrdDate date,Customerid
char(5),Salesmanid char(5),primary key(OrdNo),foreign key(Salesmanid) references
SALESMAN(Salesmanid) ON DELETE CASCADE ON UPDATE CASCADE,foreign key(Customerid)
references CUSTOMER(Customerid) ON DELETE CASCADE ON UPDATE CASCADE);
Query OK, 0 rows affected (0.11 sec)
mysql>