随笔分类 - sql
摘要:原文链接:http://www.phpwell.com/?p=174PostgreSQLMySQL服务启动:1)#service postgresql start2)#/etc/init.d/postgresql start3)#su – postgresql$pg_ctl startPostgreSQL的进程号:1210、1207、服务启动:1)#service mysqld start2)#/etc/init.d/mysqld start3)#safe_mysqld&MySQL的进程号为1663第一次进入数据库:#su – postgres$createdb (建名为postgre
阅读全文
摘要:原文链接PostgreSQL 8.1 中文文档连接数据库, 默认的用户和数据库是postgrespsql -U user -d dbname\c dbname切换数据库,相当于mysql的use dbname\l列举数据库,相当于mysql的show databases\dt列举表,相当于show tables\d tblname查看表结构,相当于desc tblname,show columns from tbname一般性\c[onnect] [资料库名称|- 用户名称|- 主机|- 埠号|-] 连线到新的资料库 (目前是 "test")\cd [目录] 改变目前的工作
阅读全文
摘要:asp sql数据库不在乎大小写删除:<%Dim numbernumber=1connstr="driver={SQL Server};server=(local);uid=sa;pwd=1234;database=b2bb2b" Set conn = Server.CreateObject("ADODB.Connection") conn.open connstrconn.execute "delete from buzaiyu_productshow where id>20131" conn.close Set rs=
阅读全文
摘要:sql :/*MySQL Data TransferSource Host: localhostSource Database: demoTarget Host: localhostTarget Database: demoDate: 2010-9-28 18:43:29*/SET FOREIGN_KEY_CHECKS=0;-- ------------------------------ Table structure for think_access-- ----------------------------CREATE TABLE `think_access` ( `role_id`
阅读全文