![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
mysql
xpalive
这个作者很懒,什么都没留下…
展开
-
mysql 常用函数
今天在论坛中看到一个关于mysql的问题,问题如下 good_id cat_id 12654 665,569 12655 601,4722 goods_id是商品id cat_id是分类id 当我,怎么根据这种分类ID查数据(一个商品有多个分类,而且用逗号隔开了) 我现在用的是like 这样的话,输入一个分类id是688,或者4722都能出来这转载 2011-12-07 13:55:54 · 445 阅读 · 0 评论 -
My SQL 存储过程 游标
DROP PROCEDURE IF EXISTS createAppUserConfig; CREATE PROCEDURE createAppUserConfig() BEGIN DECLARE _userId BIGINT; -- 申明变量 DECLARE done int; -- 申明变量 DECLARE rs_cursor CURSOR FOR SELEC原创 2011-11-28 12:01:31 · 615 阅读 · 0 评论 -
mysql 更新表编码
ALTER TABLE users CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci;原创 2011-12-07 13:59:30 · 567 阅读 · 0 评论 -
mysql查看表结构命令
mysql查看表结构命令,如下: desc 表名; show columns from 表名; describe 表名; show create table 表名; use information_schema select * from columns where table_name='表名'; 顺便记下: show databases; use 数据库名; s转载 2014-05-29 13:35:20 · 639 阅读 · 0 评论