摘要: 条件修改: update 表名 set 列名 = 值 where 列名 =值 条件删除: delete from 表名 where 列名 = />=/<=/>/</!= 值 and or 条件查询 select * from 表名 查看列 将* 改成列名 查看多列列名之间用逗号隔开 筛选条件 :wh 阅读全文
posted @ 2017-06-24 13:52 纡ゾ少︶ㄣ 阅读(228) 评论(0) 推荐(0) 编辑
摘要: T-sql语句: 1、创建数据库:create database 数据库名 。不能中文,不能数字开头,不能符号开头 2、删除数据库:drop database 数据库名 表 1、创建表:creat table 表名 create table 表名 ( 列名 数据类型, ....... ...... 阅读全文
posted @ 2017-06-24 13:52 纡ゾ少︶ㄣ 阅读(142) 评论(0) 推荐(0) 编辑
摘要: 数据库:一些存储在硬盘上的数据文件。数据库名,表名,列名不允许使用汉字 内存:计算机临时存储的一些数据 .net SQL Server php Mysql Java Oreacl 数据库中的数据类型: int 整形 decimal(长度,小数位数) bit 布尔型 1--true 0--flase 阅读全文
posted @ 2017-06-24 13:52 纡ゾ少︶ㄣ 阅读(139) 评论(0) 推荐(0) 编辑
摘要: --条件查询select * from car where oil<8 --从car表中查看oil小于8的结果select name as 车型名称,oil as 油耗 from car where oil<8 --只看name和oil字断看 加个as将name改成车型名字 oil改成油耗 as可以 阅读全文
posted @ 2017-06-24 13:52 纡ゾ少︶ㄣ 阅读(113) 评论(0) 推荐(0) 编辑