- 博客(3)
- 收藏
- 关注
原创 Robot Frame里的数据类型转换问题
Robot Frame里的数据类型转换问题1.今天写自动化的时候,需要比较数据库查出的一个值,这个值是decimal的类型,拿出来在python语言下的Robot Frame中,使用float(),long()均没法转换比较。后想到直接数据库输出前强制转换:select CAST(idAS float ) from bank2.数据库里传送来一个中文的字符串,直接取
2016-11-28 15:57:49
24220
原创 Postgrel 查找模糊字段
postgrel查找模糊字段:例子:select substring(mech_name from 0 for 4) as mech_name from cib_mechant where mid in (select mid from cib_mechant order by create_time asc limit 1);使用substring()函数发表于 2016-
2016-11-16 08:59:49
956
转载 查询数据库中的任意一条语句sql、 random
关于取数据库中的任意一条语句的总结:MySQL:select * from table order by rand() limit 1PostgreSQL:select * from table order by random() limit 1Microsoft SQL Server:select top 1 colimn from table orde
2016-11-15 16:15:21
3323
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人