1. SELECT 关键字用法: 检索单个列:select 列名 from 表名; 例:select ename from emp; 检索多个列: select [列1,列2, ... ,列N] from 表名; 例:select ename , sal from emp; 检索所有列:select * from 表名 1. SELECT 关键字用法: 检索单个列:select 列名 from 表
常用的代码 UPDATE `表名` SET `字段名`=ceiling(rand()*500000+500000) WHERE (条件); update `表名` set click=click*0.01 where classid='2' and click2000 我们经常会遇到使用随机的问题,下面就是一种解决随机数的 常用的代码 UPDATE `表名` SET `字段名`=ceiling(r
desc 表名; show columns from 表名; describe 表名; show create table 表名; use information_schema select * from columns where table_name='表名'; 顺便记下: show databases; 也可以这样 use information_schema select table_sc