表示 进入内容 581 去 590 的 972 « 先前的 10 新的记录 | 下一步 10 较早的记录 » Displaying posts with tag: 函数 (reset) Nov 07 2017 mysql中将数字转为字母 Posted by mysql-云栖社区 on Tue 07 Nov 2017 05:43 UTC Tags: charset, varchar, MySQL, create, 函数 找了半天没有找到对应的函数可以使用,于是自己了一个简单的函数 DELIMITER $$ USE `test`$$ DROP FUNCTION IF EXISTS `idToChar`$$ CREATE DEFINER=`sucre`@`localhost` FUNCTI... 【mysql】 【函数】 【charset】 【Create】 【varchar】 点击查看原文> Nov 06 2017 MySQL自带information_schema数据库使用 Posted by mysql-云栖社区 on Mon 06 Nov 2017 23:20 UTC Tags: MySQL, 数据库, 字符集, 存储, 函数, 数据类型 MySQL的information_schema数据库是什么,有什么作用? 大家在安装或使用MYSQL时,会发现除了自己安装的数据库以外,还有一个 information_schema数据库。 【mysql】 【函数】 【数据库】 【字符集】 【存储】 【数据类型】 点击查看原文> Nov 06 2017 服务器架构之性能扩展-第五章(6) Posted by mysql-云栖社区 on Mon 06 Nov 2017 19:48 UTC Tags: socket, MySQL, 数据库, 索引, create, 日志, 字符集, 服务器, 性能, 架构, 函数, 空格 第五章 Mysql性能优化 5.1mysql基本操作 5.1.1mysql表复制 Mysql>create table t2 like t1; //复制表结构 Mysql>insert into t2 select * from t1; //复制数据内容 2.1.2 mysql索引 索引是一种快速查询的有效方法,可以通过alter增加索引或create语句创建。 【架构】 【服务器】 【mysql】 【函数】 【性能】 …[获取更多] Nov 06 2017 MySQL基本操作 Posted by mysql-云栖社区 on Mon 06 Nov 2017 19:17 UTC Tags: email, MySQL, 数据库, 字符集, 存储过程, 服务器, 数组, 函数 01 MySQL基本操作 一、使用MySQL命令行 1、连接与断开MySQL服务器:mysql –h host –u user –p,回车后输入密码。 断开连接:quit或者exit 2、执行SQL语句:语句以“;”结束。 【服务器】 【mysql】 【函数】 【数据库】 【字符集】 【存储过程】 【email】 …[获取更多] Nov 06 2017 MySQL数据库的datetime与timestamp Posted by mysql-云栖社区 on Mon 06 Nov 2017 17:32 UTC Tags: timestamp, server, MySQL, 数据库, 函数, 数据类型 MySQL数据库中有datetime与timestamp两种日期时间型数据类型,其中timestamp可以用timestamp(n)来表示年月日时分秒的取值精度,如果n=14则完整匹配于datetime的精度,那为什么还需要datetime这种类型呢?我做过试验,timestamp可以跟日期函数和时间函数直接比较和判断,比如timestamp1 【mysql】 【函数】 【数据库】 【Server】 【timestamp】 【数据类型】 …[获取更多] Nov 06 2017 MySQL计算百分比方法介绍 Posted by mysql-云栖社区 on Mon 06 Nov 2017 12:50 UTC Tags: Blog, Co, MySQL, CTO, 函数 根据相应条件抽出相应count数(myCount) 抽出总count数(totalCount) 计算百分比:myCount / totalCount * 100 四舍五入:使用ROUND函数ROUND(number,要保留的小数位),ROUND(myCount / totalCount * 100,1) 下面给出示例供参考: SELECT ROUND(T1. 【mysql】 【函数】 【co】 【cto】 【Blog】 点击查看原文> Nov 06 2017 mysql查看当前库使用的引擎及简单操作 Posted by mysql-云栖社区 on Mon 06 Nov 2017 11:05 UTC Tags: database, source, variables, mariadb, MySQL, 数据库, create, 服务器, 存储, 函数 随手写下一些操作 mysql现在已提供什么存储引擎: mysql> show engines; mysql当前默认的存储引擎: mysql> show variables like '%storage_engine%'; ... 【服务器】 【mysql】 【函数】 【数据库】 【Mariadb】 【Create】 …[获取更多] Nov 06 2017 MySQL查询日期型数值常用SQL Posted by mysql-云栖社区 on Mon 06 Nov 2017 07:23 UTC Tags: sql, test, TYPE, MySQL, 函数, 表达式 1.MySQL 获得当前日期/时间函数: TO_DAYS()函数返回的一个天数,这个天数等于从epoch到给定日期的天数; 查询今天新增的记录 # 字段名不需要加引号; SELECT * FROM test WHERE TO_DAYS... 【mysql】 【函数】 【SQL】 【表达式】 【test】 【type】 点击查看原文> Nov 06 2017 mysql常用命令与存储引擎 Posted by mysql-云栖社区 on Mon 06 Nov 2017 05:55 UTC Tags: sql, session, variables, test, MySQL, 索引, create, 日志, 服务器, 存储, 函数, 表空间, 数据类型 mariadb or mysql 客户端程序; mysql:交换式工具 mysqldump:备份工具 mysqladmin:基于mysql协议管理mysqld mysqlimprot:数据导入工具; 非客户端类的管理工具: myisamchk,myisampack 如何获... 【服务器】 【mysql】 【函数】 【SQL】 【日志】 【索引】 …[获取更多] Nov 05 2017 mooon db wrapper Posted by mysql-云栖社区 on Sun 05 Nov 2017 18:37 UTC Tags: db, Class, string, MySQL, Exception, 数据库, 测试, 函数, 内存泄漏 mooon db wrapper 1. 前言 mooon db wrapper不是一个DB,仅是对现有的DB API的封装,使得使用更为简单。项目地址:http://code.google.com/p/mooon,可使用SVN下载最新代码。 【mysql】 【函数】 【数据库】 【内存泄漏】 【测试】 【DB】 【string】 …[获取更多] 表示 进入内容 581 去 590 的 972 « 先前的 10 新的记录 | 下一步 10 较早的记录 » Oracle MySQL Blogs Oracle's MySQL Blog (35) MySQL 其他链接 MySQL Downloads MySQL Docs MySQL Bugs MySQL Forums