上一页 1 ··· 26 27 28 29 30 31 32 33 34 ··· 37 下一页
摘要: 1.$mysql = new SaeMysql(); sql = "select * from CostList"; $data=$mysql->getData($sql);print_r($data);$mysql->closeDb()2. $newsql="insert into costlist(name,sum,cost,balance,information) values('$User','400','$Costs','$balance','$Information&# 阅读全文
posted @ 2012-08-01 14:52 Epirus 阅读(387) 评论(0) 推荐(0) 编辑
摘要: 1.$embed="this embed string"; so->$str2="fjweojfoiejwi{$embed}fewlk";2.fuction name(){ return "str";} $str1="fwejfowiej".name()."fjlejwl"; $str2="fjweo{$name()}fjweiofjweo"; 阅读全文
posted @ 2012-08-01 09:32 Epirus 阅读(136) 评论(0) 推荐(0) 编辑
摘要: 1.create index index_name table_name(name,id);2.create table table_name( id int not null, name text, price int , primary key(id), key index_name(name) index index_name(price)//save as above key };3.create table bookmark(username varchar(16) not null,bm_URL varchar(256) not null,index(username... 阅读全文
posted @ 2012-07-31 16:45 Epirus 阅读(153) 评论(0) 推荐(0) 编辑
摘要: 1.数值型 Integer: Float: 2.char char(m): 固定长度字符串,固定几个就是几个,不会多,也不会少,最多255个字节 varchar(m):可变长度字符串,永远是内容加一个字节 3.string text:words blob:binary data like (pic ,rar file); ENUM: all memers is :65525;每次只能用插入一个的值,像星期这种的数据 SET:all members is 64;集合可以插入多个 4.data and tim... 阅读全文
posted @ 2012-07-31 15:26 Epirus 阅读(414) 评论(0) 推荐(0) 编辑
摘要: 1.create table table_name(var1 type1,var2 type2)CREATE TABLE Persons( Id_P int, LastName varchar(255), FirstName varchar(255), Address varchar(255), City varchar(255) )create table if not exists table_name(same ....);2.desc table_name //to see the structure of table3.delete from table_name where ... 阅读全文
posted @ 2012-07-30 15:03 Epirus 阅读(200) 评论(0) 推荐(0) 编辑
上一页 1 ··· 26 27 28 29 30 31 32 33 34 ··· 37 下一页