码迷,mamicode.com
首页 >  
搜索关键字:aid    ( 654个结果
mysql function
1. 关联查询,关联部分结果,避免重复 a left join b on a.id = b.aid a与b为一对多关系,查询出来的结果必然是a中数据重复,不同的地方在于查询出的b属性. 查询结果不让a重复,一对多,多的部分用集合表示 column 代表数据库字段,property代表对象中的属性,两 ...
分类:数据库   时间:2017-03-23 20:25:00    阅读次数:271
事物的回滚
创建表: CREATE TABLE ashui(aid INT AUTO_INCREMENT PRIMARY KEY,aname VARCHAR(20)); 设置回滚点:START TRANSACTION; 给表插入数据:INSERT INTO ashui(aname)VALUE('sdag'); ...
分类:其他好文   时间:2017-03-21 12:41:59    阅读次数:127
hdu1301 Jungle Roads 最小生成树
The Head Elder of the tropical island of Lagrishan has a problem. A burst of foreign aid money was spent on extra roads between villages some years ag ...
分类:其他好文   时间:2017-03-19 10:57:55    阅读次数:178
两表通过字段关联进行级联删除。
create table ta(id int not null) create table tb(id int , aid int) insert into ta values(1) insert into ta values(2) insert into tb values(1 , 1) inse ...
分类:其他好文   时间:2017-03-07 16:01:14    阅读次数:181
SQL之LEFT JOIN,EIGHT JOIN,INSERT JOIN的区别
left join(左联接) 返回包括左表中的所有记录和右表中联结字段相等的记录 right join(右联接) 返回包括右表中的所有记录和左表中联结字段相等的记录inner join(等值连接) 只返回两个表中联结字段相等的行 举例如下: 表A记录如下:aID aNum1 a200501112 a ...
分类:数据库   时间:2017-02-26 11:06:33    阅读次数:288
2016-09-02 16:50:15 webqq 协议分析
2016-09-02 16:50:15 webqq 协议分析1. 扫描二维码登录https://ssl.ptlogin2.qq.com/ptqrlogin?webqq_type=10&remember_uin=1&login2qq=1&aid=501004106&u1=http%3A%2F%2Fw.... ...
分类:Web程序   时间:2017-02-25 12:28:03    阅读次数:287
English (一)
Phrase do somebody a favour give sb a hand do something for sb come to sb aid 帮助某人 what can i do for you? = Is there anything i can do for you? 我可以帮助你 ...
分类:其他好文   时间:2017-02-24 22:23:02    阅读次数:190
小例子理解SQL的左连接与右连接
假设有A,B两个表。 表A记录如下: aID aNum 1 a20050111 2 a20050112 3 a20050113 4 a20050114 5 a20050115 表B记录如下: bID bName 1 2006032401 2 2006032402 3 ... ...
分类:数据库   时间:2017-02-18 17:02:50    阅读次数:254
sql之left join、right join、inner join的区别
left join(左联接) 返回包括左表中的所有记录和右表中联结字段相等的记录 right join(右联接) 返回包括右表中的所有记录和左表中联结字段相等的记录inner join(等值连接) 只返回两个表中联结字段相等的行 举例如下: 表A记录如下:aID aNum1 a200501112 a ...
分类:数据库   时间:2017-02-18 00:50:25    阅读次数:181
POJ 2010 Moo University - Financial Aid
http://poj.org/problem?id=2010 贪心策略 按score从大到小排列 枚举i位置 让i以前的cow中选N / 2个的aid和最小 l_aid[] 同理让i以后的cow中选N / 2的aid 和最小r_aid[] 正向一次求得l_aid[] 每次入队优先队列吐出最大的 算出 ...
分类:其他好文   时间:2017-02-14 00:45:03    阅读次数:155
654条   上一页 1 ... 13 14 15 16 17 ... 66 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!