![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
数据库
angelseyes
这个作者很懒,什么都没留下…
展开
-
mysql 中show 命令用法详细介绍 mysql过程(procedure)的使用
a. show tables或show tables from database_name; -- 显示当前数据库中所有表的名称b. show databases; -- 显示mysql中所有数据库的名称c. show columns from table_name from database_name; 或show columns from database_转载 2009-08-18 09:56:00 · 1079 阅读 · 0 评论 -
linux下mysql命令
一、总结一下:1.linux下启动mysql的命令: mysqladmin start/ect/init.d/mysql start (前面为mysql的安装路径)2.linux下重启mysql的命令: mysqladmin restart/ect/init.d/mysql restart (前面为mysql的安装路径)3.linux下关闭mysql的命原创 2009-08-18 09:57:00 · 260 阅读 · 0 评论 -
INSERT … ON DUPLICATE KEY UPDATE
MySQL 自4.1版以后开始支持INSERT … ON DUPLICATE KEY UPDATE语法,使得原本需要执行3条SQL语句(SELECT,INSERT,UPDATE),缩减为1条语句即可完成。例如ipstats表结构如下:CREATE TABLE ipstats (ip varchar(15) not null unique,clicks smallint(5)转载 2009-10-19 16:40:00 · 212 阅读 · 0 评论