易截截图软件、单文件、免安装、纯绿色、仅160KB

mysql 命令使用

mysql 命令学习:
1. mysql -uroot  ;
2.mysql -h ip -ubusiusr -pbusiusr newdrmdb;
3.show databases ;                 //显示所有的数据库 ;
4.show tables ;                       //显示所有的表 ;
5.set names gbk ;                   //设置字符集 ;
6.desc tmonthfees201004 ;    //显示表结构 ;
7.alter table tcontents change cVersion cVersion varchar(128) null ;   //修改mysql表中字段的属性 ;
8. show index from tcontents from newdrmdb;
    show index from newdrmdb.tcontents ;
    show keys from tcontents ;                         
    show indexes from tcontents ;                     //查看表的索引 ;


相关文档:

mysql的配置文件my.ini

# MySQL Server Instance Configuration File
# ----------------------------------------------------------------------
# Generated by the MySQL Server Instance Configuration Wizard
#
#
# Installation Instructions
# ----------------------------------------------------------------------
#
# On Li ......

MySQL常用语句

/*查询数据库*/
show databases;
/*创建数据库*/
create database dengheping;
/*使用数据库*/
use dengheping;
/*创建表*/
create table user(id int primary key auto_increment,name char(255));
/*查询表*/
show tables;
/*显示表结构*/
desc user;
/*插入字段*/
alter table user add password varchar(6 ......

php PDO 链接 mysql 最简单 实例

define("DB_SERVER","127.0.0.1");
define("DB_PORT",3306);
define("DB_CATALOG","uab");
define("DB_USERID","root");
define("DB_PASSWORD","");
$dsn="mysql:host=".DB_SERVER.";port=".DB_PORT.";dbname=".DB_CATALOG;
self::$__PDO=new PDO($dsn, DB_USERID, DB_PASSWORD);
//support long connection
self:: ......

PowerDesigner设定MySQL字段identity类型

自增长类型增加
1.如果dbms是MsSql,则选定表后,database-> edit   current   dbms-> 出现DBMS   properties对话框,选择General页,左侧的树选择SQL   2000-> Profile-> Column-> Extended   Attributes   下面的ExtIdentityIncrement是步进 ......

mysql 子查询删除记录

    mysql 可以通过子查询得到要删除的记录条件,然后通过子查询得结果匹配要删除的记录。但是 mysql 不能直接删除子查询表中的数据,必须通过一个临时表来解决。例如:
    delete from t_transaction where exists
    (select d.* from t_ti_category a,t_category b,t_ ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号