摘要: 1 判断数据库是否存在Sql代码 if exists (select * from sys.databases where name = ’数据库名’) drop database [数据库名] if exists (select * from sys.databases where name = 阅读全文
posted @ 2017-04-26 15:22 Hao0 阅读(490) 评论(0) 推荐(0) 编辑
摘要: --判断数据库是否有相关表 if exists (select 1 from sysobjects where id = object_id(' 表名 ') and type = ' U ' ); --判断数据库是否有相关字段 if exists (select 1 from syscolumns 阅读全文
posted @ 2017-04-26 15:16 Hao0 阅读(255) 评论(0) 推荐(0) 编辑
摘要: 今天帮朋友看了下JSON解析结果············· eval解析JSON中的注意点 在JS中将JSON的字符串解析成JSON数据格式,一般有两种方式: 1.一种为使用eval()函数。 2. 使用Function对象来进行返回解析。 使用eval函数来解析,并且使用jquery的each方法 阅读全文
posted @ 2017-04-26 15:03 Hao0 阅读(773) 评论(0) 推荐(0) 编辑