mysql和sqlserver的多行合并成一行mysql多行合并:mysql内置函数group_concat(experSEPARATOR"")exper:列明SEPARATOR"":行分隔符,这里表示的是使用空格分隔多行mysql>select*fromtmp_02;+------------+---------+|Fclient|ct|+------------+---------+|安卓|1858799||IOS|5..
分类:
数据库 时间:
2014-08-28 15:01:20
阅读次数:
305
nis从服务器接替nis主服务器步骤:1、修改/etc/default/nis文件(内容同nis主服务器,略)2、将nis主服务器的/etc/passwd、/etc/shadow、/etc/group及/etc/netgroup文件拷到nis从服务器上,将其中有效信息拷到nis从服务器对应文件中3、重启ypbind#serviceypbindstop#ypbind-bro..
分类:
其他好文 时间:
2014-08-28 14:57:40
阅读次数:
227
select d.device_id, d.device_token, d.app_name, d.user_id, d.app_name_aliases, d.app_version, vipruid
from apns_device d, user_group u
where
d.user_id
and d.status =1
and u.user_group_id = ...
分类:
数据库 时间:
2014-08-28 14:52:31
阅读次数:
604
一.创建maven工程 在eclipse的菜单栏选择File->New->Other->Maven->Maven Project 下一步后选择Create a simple project(skip archetype selection),如图 下一步后输入Group Id,Archive Id,Packaging后点击Finis...
分类:
Web程序 时间:
2014-08-27 13:12:38
阅读次数:
244
这两者本质上应该没有可比性,distinct 取出唯一列,group by 是分组,但有时候在优化的时候,在没有聚合函数的时候,他们查出来的结果也一样。举例来说可能方便一点。A表id numa 1b 2c 3a 4c 7d 3e 5如果只选出id列,用distinct和group by 一样的。se...
分类:
数据库 时间:
2014-08-27 12:39:17
阅读次数:
240
如果查询中 索引列被用在了计算表达式或者函数中,那么他一般不会使用到索引,这个是索引使用的隔离性前缀索引能很好的减少索引以及提高查询速度,但是他不能用在覆盖索引中,也不能用order by和group by在explain 一个sql语句的时候 产生的结果中的type如果值为index代表mysql...
分类:
数据库 时间:
2014-08-27 12:20:57
阅读次数:
249
一、su权限管理非root账户能否su到root,通过/etc/pam.d/su管理#Uncommentthefollowinglinetorequireausertobeinthe"wheel"group.
#authrequiredpam_wheel.souse_uid取消注释之后,所有其他用户只有在wheel组的才能su到root二、更改组的命令usermod-gwheelusername-g更改用户登..
分类:
系统相关 时间:
2014-08-27 11:08:38
阅读次数:
217
查询语句执行顺序from->where->group by->having->select->order by 当同时含有where子句、group by 子句 、having子句及聚集函数时,执行顺序如下:--执行where子句查找符合条件的数据;--使用group by 子句对数据进行分组...
分类:
数据库 时间:
2014-08-27 10:53:37
阅读次数:
251
Linux中添加用户、删除用户时新手可能遇到的问题
1.创建新用户后切换到新用户:No directory, logging in with HOME=/
添加用户
#sudo useradd -m -s /bin/bash -g group loginname
-m 创建home目录 (不加这个要手动添加目录,不然会出现No directory,Logging...
分类:
系统相关 时间:
2014-08-26 23:03:06
阅读次数:
759
1 public class SwingTest123 extends JFrame implements ActionListener { 2 3 JRadioButton boy, girl; 4 JLabel mess; 5 ButtonGroup group; 6...
分类:
其他好文 时间:
2014-08-26 21:25:56
阅读次数:
253