MySQL
Q^H
这个作者很懒,什么都没留下…
展开
-
DML练习题
DDL练习 drop database if exists newTest; create database newTest;use newTest;create table student( sno varchar(10) primary key, sname varchar(20), sage int, ssex varchar(5) ); create table te原创 2017-07-24 15:43:38 · 1505 阅读 · 0 评论 -
DCL
DCL :Data Control Language创建用户/删除用户/赋权限/取消权限create user me@localhost identified by 'me123';# 将test下的所有对象的所有权限赋给用户lucasgrant all on sms.* to me@localhost;flush privileges;show grants for me@localhos原创 2017-07-24 20:09:48 · 383 阅读 · 0 评论 -
JDBC
JDBC : Java DataBase Connectivity两个部分Java自带API -> 跟具体数据库无关各个数据库厂商开发的驱动,实际上JDBC API的不同实现 -> 跟具体数据库紧密耦合常用APIDriverManager => public static Connection getConnection(url,user,passwd)Connection原创 2017-07-24 20:32:50 · 285 阅读 · 0 评论 -
DDL
DDL data define languagecreate table / index / view drop table alter table add column /modify column /drop columndesc# 加外键,orderbooklist(order_no)-> orderlist(order_no)alter table orde原创 2017-07-24 20:52:50 · 702 阅读 · 0 评论 -
DML
DML: data manpulation languageinsert 、delete、update、select、truncate#查询#查询全部select * from stu;#查询某些字段select name,gender,height from stu;#查询带多个条件select * from stu where gender='女' and class_id=1;#原创 2017-07-25 19:39:34 · 488 阅读 · 0 评论