alex_lo

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

统计

09 2012 档案

服务端控件调用JS
摘要:1.关闭窗口,并提交表单。<asp:Button ID="Button1" OnClientClick="window.open('', '_parent', ''); window.close();" runat="server" Text="关闭当前窗口" />2.修改CSS属性方法一://page:<asp:Button ID="Button2" runat="server" Text="写入值 阅读全文

posted @ 2012-09-24 17:18 alex_lo 阅读(212) 评论(0) 推荐(0) 编辑

SQL 基础 :case when 用法
摘要:SQL中Case的使用方法Case具有两种格式。简单Case函数和Case搜索函数。--简单Case函数CASE sex WHEN '1' THEN '男' WHEN '2' THEN '女'ELSE '其他' END--Case搜索函数CASE WHEN sex = '1' THEN '男' WHEN sex = '2' THEN '女'ELSE '其他' END这两种方式,可以实现相同的功能。简单Case函数的写法相对比较简洁,但是 阅读全文

posted @ 2012-09-20 11:20 alex_lo 阅读(514) 评论(0) 推荐(1) 编辑

SQL深入 :exist 和 in 的用法和区别
摘要:in 适用于 外大内小, 而exists适用于 外小内大!假设如下应用:两张表——用户表TDefUser(userid,address,phone)和消费表TAccConsume(userid,time,amount),需要查消费超过5000的用户记录。用exists:select * from TDefUserwhere exists (select 1 from TAccConsume where TDefUser.userid=TAccConsume.userid and TAccConsume.amount>5000)用in:select * from TDefUserwhere 阅读全文

posted @ 2012-09-19 17:46 alex_lo 阅读(817) 评论(0) 推荐(1) 编辑

点击右上角即可分享
微信分享提示