码迷,mamicode.com
首页 >  
搜索关键字:where case when    ( 36516个结果
SQL语句“增--删--改--查等 字面意思
***查询所有表中的 laugh 的这个表*** SELECT * FROM laugh;//查询整个表 ##查询 laugh 表中 id 为 1 的这一行 SELECT * FROM laugh WHERE id=1;//查询单个 ##暂时没整明白,随后更新 SELECT A.*,B.aihao, ...
分类:数据库   时间:2021-03-06 14:50:40    阅读次数:0
1037 Magic Coupon (25 分)
The magic shop in Mars is offering some magic coupons. Each coupon has an integer N printed on it, meaning that when you use this coupon with a produc ...
分类:其他好文   时间:2021-03-06 14:44:48    阅读次数:0
[CSS] Using transform: scale(0) for hiding element
For a radio button control, when hide selected status, we can use: .input__control::before { content: ""; width: 0.5em; height: 0.5em; // box-shadow w ...
分类:Web程序   时间:2021-03-06 14:44:13    阅读次数:0
sqlServer 重复数据项处理,只选其中一条,保留一条
select * from table where id in (select max(id) from table group by [去除重复的字段名列表,....]) --删除 from table where id not in (select max(id) from table grou ...
分类:数据库   时间:2021-03-06 14:17:01    阅读次数:0
SQL SERVER 查看所有触发器
https://www.cnblogs.com/guorongtao/p/13329618.html SELECT object_name(a.parent_obj) as [表名] ,a.name as [触发器名称] ,(case when b.is_disabled=0 then '启用' e ...
分类:数据库   时间:2021-03-05 13:01:52    阅读次数:0
ORM 多表查询 CreateQueryBuilder
let fieldStr = ` DENSE_RANK() OVER(order by W.wayBillCode) as 序号, W.expressCode as '分运单号', CASE WHEN P.CIQNameCn IS NULL THEN K.ProductName ELSE P.CIQ ...
分类:其他好文   时间:2021-03-04 13:11:51    阅读次数:0
tp5.1 随机查询数据
说到随机查询数据,如果用sql的话 ,直接用 order by rand() 就是说随机排序,我们取多少条都可以 例: select * from table where 1 order by rand() limit 10 那tp5.1中如何实现呢? ThinkPHP5从V5.0.17之后,如果排 ...
分类:其他好文   时间:2021-03-04 13:05:43    阅读次数:0
第三章、控制语句-条件、循环、跳转
1、if else语句 //单一条件语句语法:if(布尔表达式){ 语句块;} //二选一条件语句语法: if(布尔表达式){ 语句块1;}else{ 语句块2;}//多选一条件语句语法:if(布尔表达式1){ 语句块1;}else if(布尔表达式2){ 语句块1;} ...else { 语句块n ...
分类:其他好文   时间:2021-03-03 12:20:05    阅读次数:0
mysql常用
1,将id列放在第一列 alter table cqc_xa.cqc_xa_diff_case modify id int unsigned auto_increment first; 2,增加自增id alter table test.student add column indexxx int( ...
分类:数据库   时间:2021-03-03 12:17:55    阅读次数:0
zabbix监控kafka消费(转)
目录 一、Kafka监控的几个指标 二、查看zookeeper配置 三、查看kafka配置 四、查看kafka的group name 五、查看kafka的topic_name 六、修改zabbix配置文件 七、创建监控脚本 八、给脚本和对应文件权限 九、重启zabbix 十、监控上增加3个键值 正文 ...
分类:其他好文   时间:2021-03-03 12:11:41    阅读次数:0
36516条   上一页 1 ... 28 29 30 31 32 ... 3652 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!