摘要: 只需使用parseFloat(): var c = parseFloat(a) + parseFloat(b); 阅读全文
posted @ 2023-02-23 18:58 疯子110 阅读(16) 评论(0) 推荐(0) 编辑
摘要: (function ($) { $.foo = { name: 'dog', getName: function () { alert("hello:"+$.foo.name); }, run: function (n) { alert($.foo.name+" run " + n+" m"); } 阅读全文
posted @ 2023-02-23 18:56 疯子110 阅读(17) 评论(0) 推荐(0) 编辑
摘要: 代码select c.relname as 表名, a.attname as 列名, (case when a.attnotnull = true then true else false end) as 非空, (case when ( select count(pg_constraint.*) 阅读全文
posted @ 2023-02-23 14:13 疯子110 阅读(212) 评论(0) 推荐(0) 编辑
摘要: select distinct relname,attnamefrom pg_attribute att, pg_class bwhere b.oid = att.attrelidand att.attname like'%nick' --可以模糊查询 '%nick%'and attinhcount 阅读全文
posted @ 2023-02-23 14:12 疯子110 阅读(230) 评论(0) 推荐(0) 编辑