62,628
社区成员
发帖
与我相关
我的任务
分享
select monitor.MonitorType,ServerAddress,monitor.MonitorValue from monitor,equipment where monitor.EquipmentId=equipment.RecId and monitor.MonitorType = 'SnmpUpTime' and monitor.MonitorStatus = 'good' order by convert(substring_index(substring_index(MonitorValue , ',' ,1), '=' , -1), DECIMAL(9, 2)) desc limit 10

还不是我要的效果
[/quote]
把非数字的都替换掉就是你要的效果了,没有替换完[/quote]
UPTIME = 和“:”都替换掉
还不是我要的效果
[/quote]
把非数字的都替换掉就是你要的效果了,没有替换完

select monitor.MonitorType,ServerAddress,monitor.MonitorValue from monitor,equipment where monitor.EquipmentId=equipment.RecId and monitor.MonitorType = 'SnmpUpTime' and monitor.MonitorStatus = 'good' order by convert(substring_index(substring_index(MonitorValue , ',' ,1), '=' , -1), DECIMAL(9, 2)) desc limit 10
