- 博客(5)
- 资源 (3)
- 收藏
- 关注
原创 Linux下修改MySQL用户root的密码
装完ubuntu server-11.04忘记刚刚设计的密码,于是就在网上找了解决方案。 以下为操作全过程 [code="shell"]sudo /etc/init.d/mysql stop[/code] Rather than invoking init scripts through /etc/init.d, use the service(8) utility, e.g. servi...
2011-06-17 18:00:55 138
原创 获取Google Map坐标
1 打开 http://ditu.google.com/maps 2 找到你要获得坐标的地点, 把他置于屏幕中央 3 在浏览器栏输入 [code="javascript"] javascript:void(prompt('',gApplication.getMap().getCenter())); [/code]...
2010-11-18 17:08:12 169
原创 三种方式查询A表的数据没有出现在B表的数据中(not in, left join, not exists)
A表(users) 字段: uid int not null primary key, uname nvarchar(30) not null B表(results) 字段: rid int not null primary key, uid int not null(引用users表的uid) 查询A表中的数据没有出现在B表中 1.使用 not in [c...
2010-10-27 23:30:15 837
原创 分组统计商品一星期每天的销售情况
商品销售表(orders) 字段: 订单号(order_id int) 商品名(product_name nvarchar) 销售时间(sale_date int)记录星期如(1,2,3,4,5,6,7) 销售数量(sale_count int) 查询商品一星期每天的销售记录,如下方式显示 [table] |product_name|Sun|Mon|Tue|We...
2010-10-27 15:25:51 970
原创 [[1,2],[3,4],[5,6]] 转 [1,2,3,4,5,6]
方案一: [code="Python"] l = [[1,2],[3,4],[5,6]] [l[i/2][i%2] for i in range(0,len(l*2))] [/code] 方案二: [code="Python"] sum([[1,2],[3,4],[5,6]],[]) [/code] 刚刚学习Python.
2010-09-09 20:40:47 260
Microsoft ExpressionStudio_UltimateTrial 4 简体中文正式版注册密匙
2010-11-22
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人