数据库课程笔记.docxVIP

  • 11
  • 0
  • 约3.69千字
  • 约 9页
  • 2016-08-23 发布于重庆
  • 举报
数据库课程笔记

7.15创建数据库:create database表名(名称不能含空格符等)数据库建表(主键不可少)约束也很重要删除数据库:drop database表名数据库数据类型:Char:定长字符串,最大2000字节varcahr4000字节最多Integer、int、smallit、decimal(设置含2个小数位) 1、查询t_user_base_info表中字段为name值为‘abc’的记录select * from t_user_base_info where user_name=abc2、更新t_user_base_info表中字段为user_name的值从‘u’更新为 ’abc’update t_user_base_info SET user_name=abc where user_name=u3、向t_user_base_info中插入一条记录insert?into?t_user_base_info(id,user_id,user_name,salary,num,consume)记录的值如下:value(4,999,eee,3.14,20,9.15)4、删除t_user_base_info表中id=‘5’的那条记录delete from t_user_base_info where id=55、创建一个表名为t_user_test_info的表CREATE TABLE t_u

文档评论(0)

1亿VIP精品文档

相关文档