SQL Server FullText 能启动,全文索引用不起。

我自己建立了一个最小权限的账户,分别设置sql server和SQL Server FullText Search 用这个账户登录,他们都能正常启动,但全文索引用不起。

但如果用系统system启动这两个服务,全文索引就能正常使用,请问怎么办?

Microsoft OLE DB Provider for SQL Server 错误 '80040e14'

SQL Server 无法与全文服务(msftesql)进行通信。系统管理员必须确保两项服务使用的服务帐户相同并且此服务帐户有权自动启动全文服务。

2个回答

在一个产品介绍网站中查询产品时,由于产品的介绍性文字可能会很长,如果使用对产品介绍字段使用like进行模糊查询,性能肯定会是问题。那么如何解决这个问题呢?第一个想法就是使用全文索引。那么全文索引是什么、应该如何应用、在应用的过程中又应该注意哪些事情呢?这个POST作为学习全文检索的笔记。 1、是什么     [摘录自SQL Server2000联机从书] &nbs......
答案就在这里:SQL Server全文索引
----------------------你好,人类,我是来自CSDN星球的问答机器人小C,以上是依据我对问题的理解给出的答案,如果解决了你的问题,望采纳。

错误提示你了,需要账户对应以及有权限

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
使用朴素贝叶斯进行交叉验证时解析不出文档
原代码 ``` def textParse(bigString): import re listOfTokens =re.split(r'\W*',bigString) return [tok.lower() for tok in listOfTokens if len(tok) > 2] def spamTest(): docList=[]; classList=[]; fullText=[] for i in range(1,25): #❶ (以下 七行) 导入 并解 析 文本 文件 wordList = textParse(open('email/spam/%d.txt'%i).read()) docList.append(wordList) fullText.extend(wordList) classList.append(1) wordList = textParse(open('email/spam/%d.txt'%i).read()) docList.append(wordList) fullText.extend(wordList) classList.append(0) vocabList = createVocabList(docList) trainingSet = list(range(26)); testSet=[] #❷( 以下 四行) 随机 构建 训练 集 for i in range(10): randIndex = int(random.uniform(0,len(trainingSet))) testSet.append(trainingSet[randIndex]) del(trainingSet[randIndex]) trainMat=[]; trainClasses =[] for docIndex in trainingSet: trainMat.append(setOfWords2Vec(vocabList,docList[docIndex])) trainClasses.append(classList[docIndex]) p0V,p1V,pSpam = trainNB0(array(trainMat),array(trainClasses)) errorCount = 0 #❸( 以下 四行) 对 测试 集 分类 for docIndex in testSet: wordVector = setOfWords2Vec(vocabList,docList[docIndex]) if classifyNB(array(wordVector),p0V,p1V,pSpam)!= classList[docIndex]: errorCount += 1 print('the error rate is:',float(errorCount)/len(testSet)) return wordList,docList,classList,fullText,vocabList,testSet,trainingSet ``` 终端输出,解析结果是空的 ``` >>> wordList,docList,classList,fullText,vocabList,testSet,trainingSet=bayes.spamTest() the error rate is: 0.7 >>> wordList [] >>> docList [[], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], []] >>> classList [1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0] >>> fullText [] ```
corseek 中文检索时搜不出结果 搜英文单词正常
[root@abc testpack]# /usr/local/coreseek/bin/indexer -c etc/sphinx.conf --all Coreseek Fulltext 4.1 [ Sphinx 2.0.2-dev (r2922)] Copyright (c) 2007-2011, Beijing Choice Software Technologies Inc (http://www.coreseek.com) using config file 'etc/sphinx.conf'... indexing index 'test1'... WARNING: Attribute count is 0: switching to none docinfo collected 5 docs, 0.0 MB sorted 0.0 Mhits, 100.0% done total 5 docs, 186 bytes total 0.064 sec, 2870 bytes/sec, 77.16 docs/sec total 2 reads, 0.000 sec, 0.0 kb/call avg, 0.0 msec/call avg total 6 writes, 0.000 sec, 0.0 kb/call avg, 0.0 msec/call avg 检索中文 不出结果 [root@abc testpack]# /usr/local/coreseek/bin/search -c etc/sphinx.conf '水火不容' Coreseek Fulltext 4.1 [ Sphinx 2.0.2-dev (r2922)] Copyright (c) 2007-2011, Beijing Choice Software Technologies Inc (http://www.coreseek.com) using config file 'etc/sphinx.conf'... index 'test1': query '水火不容 ': returned 0 matches of 0 total in 0.000 sec words: 1. '水火': 0 documents, 0 hits 2. '不容': 0 documents, 0 hits 检索英文就能出结果 [root@abc testpack]# /usr/local/coreseek/bin/search -c etc/sphinx.conf 'apple' Coreseek Fulltext 4.1 [ Sphinx 2.0.2-dev (r2922)] Copyright (c) 2007-2011, Beijing Choice Software Technologies Inc (http://www.coreseek.com) using config file 'etc/sphinx.conf'... index 'test1': query 'apple ': returned 1 matches of 1 total in 0.001 sec displaying matches: 1. document=5, weight=2780 id=5 title=apple content=apple,banana words: 1. 'apple': 1 documents, 2 hits 这个是数据库 mysql> select * from tt; +----+--------------+-----------------+ | id | title | content | +----+--------------+-----------------+ | 1 | 西水 | 水水 | | 2 | 水火不容 | 水火不容 | | 3 | 水啊啊 | 啊水货 | | 4 | 东南西水 | 啊西西哈哈 | | 5 | apple | apple,banana | +----+--------------+-----------------+ 5 rows in set (0.00 sec) 下面是配置那个文件 # # Sphinx configuration file sample # # WARNING! While this sample file mentions all available options, # it contains (very) short helper descriptions only. Please refer to # doc/sphinx.html for details. # ############################################################################# ## data source definition ############################################################################# source src1 { # data source type. mandatory, no default value # known types are mysql, pgsql, mssql, xmlpipe, xmlpipe2, odbc type = mysql ##################################################################### ## SQL settings (for 'mysql' and 'pgsql' types) ##################################################################### # some straightforward parameters for SQL source types sql_host = localhost sql_user = root sql_pass = 123456 sql_db = haha sql_port = 3306 # optional, default is 3306 # UNIX socket name # optional, default is empty (reuse client library defaults) # usually '/var/lib/mysql/mysql.sock' on Linux # usually '/tmp/mysql.sock' on FreeBSD # sql_sock = /var/lib/mysql/mysql.sock # MySQL specific client connection flags # optional, default is 0 # # mysql_connect_flags = 32 # enable compression # MySQL specific SSL certificate settings # optional, defaults are empty # # mysql_ssl_cert = /etc/ssl/client-cert.pem # mysql_ssl_key = /etc/ssl/client-key.pem # mysql_ssl_ca = /etc/ssl/cacert.pem # MS SQL specific Windows authentication mode flag # MUST be in sync with charset_type index-level setting # optional, default is 0 # # mssql_winauth = 1 # use currently logged on user credentials # MS SQL specific Unicode indexing flag # optional, default is 0 (request SBCS data) # # mssql_unicode = 1 # request Unicode data from server # ODBC specific DSN (data source name) # mandatory for odbc source type, no default value # # odbc_dsn = DBQ=C:\data;DefaultDir=C:\data;Driver={Microsoft Text Driver (*.txt; *.csv)}; # sql_query = SELECT id, data FROM documents.csv # ODBC and MS SQL specific, per-column buffer sizes # optional, default is auto-detect # # sql_column_buffers = content=12M, comments=1M # pre-query, executed before the main fetch query # multi-value, optional, default is empty list of queries # sql_query_pre = SET NAMES utf8 sql_query_pre = SET SESSION query_cache_type=OFF # main document fetch query # mandatory, integer document ID field MUST be the first selected column sql_query = \ SELECT id, title, content FROM tt # joined/payload field fetch query # joined fields let you avoid (slow) JOIN and GROUP_CONCAT # payload fields let you attach custom per-keyword values (eg. for ranking) # # syntax is FIELD-NAME 'from' ( 'query' | 'payload-query' ); QUERY # joined field QUERY should return 2 columns (docid, text) # payload field QUERY should return 3 columns (docid, keyword, weight) # # REQUIRES that query results are in ascending document ID order! # multi-value, optional, default is empty list of queries # # sql_joined_field = tags from query; SELECT docid, CONCAT('tag',tagid) FROM tags ORDER BY docid ASC # sql_joined_field = wtags from payload-query; SELECT docid, tag, tagweight FROM tags ORDER BY docid ASC # file based field declaration # # content of this field is treated as a file name # and the file gets loaded and indexed in place of a field # # max file size is limited by max_file_field_buffer indexer setting # file IO errors are non-fatal and get reported as warnings # # sql_file_field = content_file_path # sql_query_info = SELECT * FROM tt WHERE id=$id # range query setup, query that must return min and max ID values # optional, default is empty # # sql_query will need to reference $start and $end boundaries # if using ranged query: # # sql_query = \ # SELECT doc.id, doc.id AS group, doc.title, doc.data \ # FROM documents doc \ # WHERE id>=$start AND id<=$end # # sql_query_range = SELECT MIN(id),MAX(id) FROM documents # range query step # optional, default is 1024 # # sql_range_step = 1000 # unsigned integer attribute declaration # multi-value (an arbitrary number of attributes is allowed), optional # optional bit size can be specified, default is 32 # # sql_attr_uint = author_id # sql_attr_uint = forum_id:9 # 9 bits for forum_id #sql_attr_uint = group_id # boolean attribute declaration # multi-value (an arbitrary number of attributes is allowed), optional # equivalent to sql_attr_uint with 1-bit size # # sql_attr_bool = is_deleted # bigint attribute declaration # multi-value (an arbitrary number of attributes is allowed), optional # declares a signed (unlike uint!) 64-bit attribute # # sql_attr_bigint = my_bigint_id # UNIX timestamp attribute declaration # multi-value (an arbitrary number of attributes is allowed), optional # similar to integer, but can also be used in date functions # # sql_attr_timestamp = posted_ts # sql_attr_timestamp = last_edited_ts #sql_attr_timestamp = date_added # string ordinal attribute declaration # multi-value (an arbitrary number of attributes is allowed), optional # sorts strings (bytewise), and stores their indexes in the sorted list # sorting by this attr is equivalent to sorting by the original strings # # sql_attr_str2ordinal = author_name # floating point attribute declaration # multi-value (an arbitrary number of attributes is allowed), optional # values are stored in single precision, 32-bit IEEE 754 format # # sql_attr_float = lat_radians # sql_attr_float = long_radians # multi-valued attribute (MVA) attribute declaration # multi-value (an arbitrary number of attributes is allowed), optional # MVA values are variable length lists of unsigned 32-bit integers # # syntax is ATTR-TYPE ATTR-NAME 'from' SOURCE-TYPE [;QUERY] [;RANGE-QUERY] # ATTR-TYPE is 'uint' or 'timestamp' # SOURCE-TYPE is 'field', 'query', or 'ranged-query' # QUERY is SQL query used to fetch all ( docid, attrvalue ) pairs # RANGE-QUERY is SQL query used to fetch min and max ID values, similar to 'sql_query_range' # # sql_attr_multi = uint tag from query; SELECT docid, tagid FROM tags # sql_attr_multi = uint tag from ranged-query; \ # SELECT docid, tagid FROM tags WHERE id>=$start AND id<=$end; \ # SELECT MIN(docid), MAX(docid) FROM tags # string attribute declaration # multi-value (an arbitrary number of these is allowed), optional # lets you store and retrieve strings # # sql_attr_string = stitle # wordcount attribute declaration # multi-value (an arbitrary number of these is allowed), optional # lets you count the words at indexing time # # sql_attr_str2wordcount = stitle # combined field plus attribute declaration (from a single column) # stores column as an attribute, but also indexes it as a full-text field # # sql_field_string = author # sql_field_str2wordcount = title # post-query, executed on sql_query completion # optional, default is empty # # sql_query_post = # post-index-query, executed on successful indexing completion # optional, default is empty # $maxid expands to max document ID actually fetched from DB # # sql_query_post_index = REPLACE INTO counters ( id, val ) \ # VALUES ( 'max_indexed_id', $maxid ) # ranged query throttling, in milliseconds # optional, default is 0 which means no delay # enforces given delay before each query step sql_ranged_throttle = 0 # document info query, ONLY for CLI search (ie. testing and debugging) # optional, default is empty # must contain $id macro and must fetch the document by that id sql_query_info = SELECT * FROM tt WHERE id=$id # kill-list query, fetches the document IDs for kill-list # k-list will suppress matches from preceding indexes in the same query # optional, default is empty # # sql_query_killlist = SELECT id FROM documents WHERE edited>=@last_reindex # columns to unpack on indexer side when indexing # multi-value, optional, default is empty list # # unpack_zlib = zlib_column # unpack_mysqlcompress = compressed_column # unpack_mysqlcompress = compressed_column_2 # maximum unpacked length allowed in MySQL COMPRESS() unpacker # optional, default is 16M # # unpack_mysqlcompress_maxsize = 16M ##################################################################### ## xmlpipe2 settings ##################################################################### # type = xmlpipe # shell command to invoke xmlpipe stream producer # mandatory # # xmlpipe_command = cat /usr/local/coreseek/var/test.xml # xmlpipe2 field declaration # multi-value, optional, default is empty # # xmlpipe_field = subject # xmlpipe_field = content # xmlpipe2 attribute declaration # multi-value, optional, default is empty # all xmlpipe_attr_XXX options are fully similar to sql_attr_XXX # # xmlpipe_attr_timestamp = published # xmlpipe_attr_uint = author_id # perform UTF-8 validation, and filter out incorrect codes # avoids XML parser choking on non-UTF-8 documents # optional, default is 0 # # xmlpipe_fixup_utf8 = 1 } # inherited source example # # all the parameters are copied from the parent source, # and may then be overridden in this source definition source src1throttled : src1 { sql_ranged_throttle = 100 } ############################################################################# ## index definition ############################################################################# # local index example # # this is an index which is stored locally in the filesystem # # all indexing-time options (such as morphology and charsets) # are configured per local index index test1 { # index type # optional, default is 'plain' # known values are 'plain', 'distributed', and 'rt' (see samples below) # type = plain # document source(s) to index # multi-value, mandatory # document IDs must be globally unique across all sources source = src1 # index files path and file name, without extension # mandatory, path must be writable, extensions will be auto-appended #path = /usr/local/coreseek/var/data/test1 # document attribute values (docinfo) storage mode # optional, default is 'extern' # known values are 'none', 'extern' and 'inline' docinfo = extern # memory locking for cached data (.spa and .spi), to prevent swapping # optional, default is 0 (do not mlock) # requires searchd to be run from root mlock = 0 # a list of morphology preprocessors to apply # optional, default is empty # # builtin preprocessors are 'none', 'stem_en', 'stem_ru', 'stem_enru', # 'soundex', and 'metaphone'; additional preprocessors available from # libstemmer are 'libstemmer_XXX', where XXX is algorithm code # (see libstemmer_c/libstemmer/modules.txt) # # morphology = stem_en, stem_ru, soundex # morphology = libstemmer_german # morphology = libstemmer_sv morphology = none # minimum word length at which to enable stemming # optional, default is 1 (stem everything) # # min_stemming_len = 1 path = /root/rearch_dir # stopword files list (space separated) # optional, default is empty # contents are plain text, charset_table and stemming are both applied # # stopwords = /usr/local/coreseek/var/data/stopwords.txt # wordforms file, in "mapfrom > mapto" plain text format # optional, default is empty # # wordforms = /usr/local/coreseek/var/data/wordforms.txt # tokenizing exceptions file # optional, default is empty # # plain text, case sensitive, space insensitive in map-from part # one "Map Several Words => ToASingleOne" entry per line # # exceptions = /usr/local/coreseek/var/data/exceptions.txt # minimum indexed word length # default is 1 (index everything) min_word_len = 1 # charset encoding type # optional, default is 'sbcs' # known types are 'sbcs' (Single Byte CharSet) and 'utf-8' charset_type = zh_cn.utf-8 charset_dictpath = /usr/local/mmseg3/etc/ # charset definition and case folding rules "table" # optional, default value depends on charset_type # # defaults are configured to include English and Russian characters only # you need to change the table to include additional ones # this behavior MAY change in future versions # # 'sbcs' default value is # charset_table = 0..9, A..Z->a..z, _, a..z, U+A8->U+B8, U+B8, U+C0..U+DF->U+E0..U+FF, U+E0..U+FF # # 'utf-8' default value is #charset_table = 0..9, A..Z->a..z, _, a..z, U+410..U+42F->U+430..U+44F, U+430..U+44F # ignored characters list # optional, default value is empty # # ignore_chars = U+00AD # minimum word prefix length to index # optional, default is 0 (do not index prefixes) # # min_prefix_len = 0 # minimum word infix length to index # optional, default is 0 (do not index infixes) # # min_infix_len = 0 # list of fields to limit prefix/infix indexing to # optional, default value is empty (index all fields in prefix/infix mode) # # prefix_fields = filename # infix_fields = url, domain # enable star-syntax (wildcards) when searching prefix/infix indexes # search-time only, does not affect indexing, can be 0 or 1 # optional, default is 0 (do not use wildcard syntax) # # enable_star = 1 # expand keywords with exact forms and/or stars when searching fit indexes # search-time only, does not affect indexing, can be 0 or 1 # optional, default is 0 (do not expand keywords) # # expand_keywords = 1 # n-gram length to index, for CJK indexing # only supports 0 and 1 for now, other lengths to be implemented # optional, default is 0 (disable n-grams) # ngram_len = 0 # n-gram characters list, for CJK indexing # optional, default is empty # # ngram_chars = U+3000..U+2FA1F # phrase boundary characters list # optional, default is empty # # phrase_boundary = ., ?, !, U+2026 # horizontal ellipsis # phrase boundary word position increment # optional, default is 0 # # phrase_boundary_step = 100 # blended characters list # blended chars are indexed both as separators and valid characters # for instance, AT&T will results in 3 tokens ("at", "t", and "at&t") # optional, default is empty # # blend_chars = +, &, U+23 # blended token indexing mode # a comma separated list of blended token indexing variants # known variants are trim_none, trim_head, trim_tail, trim_both, skip_pure # optional, default is trim_none # # blend_mode = trim_tail, skip_pure # whether to strip HTML tags from incoming documents # known values are 0 (do not strip) and 1 (do strip) # optional, default is 0 html_strip = 0 # what HTML attributes to index if stripping HTML # optional, default is empty (do not index anything) # # html_index_attrs = img=alt,title; a=title; # what HTML elements contents to strip # optional, default is empty (do not strip element contents) # # html_remove_elements = style, script # whether to preopen index data files on startup # optional, default is 0 (do not preopen), searchd-only # # preopen = 1 # whether to keep dictionary (.spi) on disk, or cache it in RAM # optional, default is 0 (cache in RAM), searchd-only # # ondisk_dict = 1 # whether to enable in-place inversion (2x less disk, 90-95% speed) # optional, default is 0 (use separate temporary files), indexer-only # # inplace_enable = 1 # in-place fine-tuning options # optional, defaults are listed below # # inplace_hit_gap = 0 # preallocated hitlist gap size # inplace_docinfo_gap = 0 # preallocated docinfo gap size # inplace_reloc_factor = 0.1 # relocation buffer size within arena # inplace_write_factor = 0.1 # write buffer size within arena # whether to index original keywords along with stemmed versions # enables "=exactform" operator to work # optional, default is 0 # # index_exact_words = 1 # position increment on overshort (less that min_word_len) words # optional, allowed values are 0 and 1, default is 1 # # overshort_step = 1 # position increment on stopword # optional, allowed values are 0 and 1, default is 1 # # stopword_step = 1 # hitless words list # positions for these keywords will not be stored in the index # optional, allowed values are 'all', or a list file name # # hitless_words = all # hitless_words = hitless.txt # detect and index sentence and paragraph boundaries # required for the SENTENCE and PARAGRAPH operators to work # optional, allowed values are 0 and 1, default is 0 # # index_sp = 1 # index zones, delimited by HTML/XML tags # a comma separated list of tags and wildcards # required for the ZONE operator to work # optional, default is empty string (do not index zones) # # index_zones = title, h*, th } # inherited index example # # all the parameters are copied from the parent index, # and may then be overridden in this index definition #index test1stemmed : test1 #{ # path = /usr/local/coreseek/var/data/test1stemmed # morphology = stem_en #} # distributed index example # # this is a virtual index which can NOT be directly indexed, # and only contains references to other local and/or remote indexes #index dist1 #{ # 'distributed' index type MUST be specified # type = distributed # local index to be searched # there can be many local indexes configured # local = test1 # local = test1stemmed # remote agent # multiple remote agents may be specified # syntax for TCP connections is 'hostname:port:index1,[index2[,...]]' # syntax for local UNIX connections is '/path/to/socket:index1,[index2[,...]]' # agent = localhost:9313:remote1 # agent = localhost:9314:remote2,remote3 # agent = /var/run/searchd.sock:remote4 # blackhole remote agent, for debugging/testing # network errors and search results will be ignored # # agent_blackhole = testbox:9312:testindex1,testindex2 # remote agent connection timeout, milliseconds # optional, default is 1000 ms, ie. 1 sec # agent_connect_timeout = 1000 # remote agent query timeout, milliseconds # optional, default is 3000 ms, ie. 3 sec # agent_query_timeout = 3000 #} # realtime index example # # you can run INSERT, REPLACE, and DELETE on this index on the fly # using MySQL protocol (see 'listen' directive below) #index rt #{ # 'rt' index type must be specified to use RT index #type = rt # index files path and file name, without extension # mandatory, path must be writable, extensions will be auto-appended # path = /usr/local/coreseek/var/data/rt # RAM chunk size limit # RT index will keep at most this much data in RAM, then flush to disk # optional, default is 32M # # rt_mem_limit = 512M # full-text field declaration # multi-value, mandatory # rt_field = title # rt_field = content # unsigned integer attribute declaration # multi-value (an arbitrary number of attributes is allowed), optional # declares an unsigned 32-bit attribute # rt_attr_uint = gid # RT indexes currently support the following attribute types: # uint, bigint, float, timestamp, string # # rt_attr_bigint = guid # rt_attr_float = gpa # rt_attr_timestamp = ts_added # rt_attr_string = content #} ############################################################################# ## indexer settings ############################################################################# indexer { # memory limit, in bytes, kiloytes (16384K) or megabytes (256M) # optional, default is 32M, max is 2047M, recommended is 256M to 1024M mem_limit = 256M # maximum IO calls per second (for I/O throttling) # optional, default is 0 (unlimited) # # max_iops = 40 # maximum IO call size, bytes (for I/O throttling) # optional, default is 0 (unlimited) # # max_iosize = 1048576 # maximum xmlpipe2 field length, bytes # optional, default is 2M # # max_xmlpipe2_field = 4M # write buffer size, bytes # several (currently up to 4) buffers will be allocated # write buffers are allocated in addition to mem_limit # optional, default is 1M # # write_buffer = 1M # maximum file field adaptive buffer size # optional, default is 8M, minimum is 1M # # max_file_field_buffer = 32M } ############################################################################# ## searchd settings ############################################################################# searchd { # [hostname:]port[:protocol], or /unix/socket/path to listen on # known protocols are 'sphinx' (SphinxAPI) and 'mysql41' (SphinxQL) # # multi-value, multiple listen points are allowed # optional, defaults are 9312:sphinx and 9306:mysql41, as below # # listen = 127.0.0.1 # listen = 192.168.0.1:9312 # listen = 9312 # listen = /var/run/searchd.sock listen = 9312 #listen = 9306:mysql41 # log file, searchd run info is logged here # optional, default is 'searchd.log' log = /usr/local/coreseek/var/log/searchd.log # query log file, all search queries are logged here # optional, default is empty (do not log queries) query_log = /usr/local/coreseek/var/log/query.log # client read timeout, seconds # optional, default is 5 read_timeout = 5 # request timeout, seconds # optional, default is 5 minutes client_timeout = 300 # maximum amount of children to fork (concurrent searches to run) # optional, default is 0 (unlimited) max_children = 30 # PID file, searchd process ID file name # mandatory pid_file = /usr/local/coreseek/var/log/searchd.pid # max amount of matches the daemon ever keeps in RAM, per-index # WARNING, THERE'S ALSO PER-QUERY LIMIT, SEE SetLimits() API CALL # default is 1000 (just like Google) max_matches = 1000 # seamless rotate, prevents rotate stalls if precaching huge datasets # optional, default is 1 seamless_rotate = 1 # whether to forcibly preopen all indexes on startup # optional, default is 1 (preopen everything) preopen_indexes = 0 # whether to unlink .old index copies on succesful rotation. # optional, default is 1 (do unlink) unlink_old = 1 # attribute updates periodic flush timeout, seconds # updates will be automatically dumped to disk this frequently # optional, default is 0 (disable periodic flush) # # attr_flush_period = 900 # instance-wide ondisk_dict defaults (per-index value take precedence) # optional, default is 0 (precache all dictionaries in RAM) # # ondisk_dict_default = 1 # MVA updates pool size # shared between all instances of searchd, disables attr flushes! # optional, default size is 1M mva_updates_pool = 1M # max allowed network packet size # limits both query packets from clients, and responses from agents # optional, default size is 8M max_packet_size = 8M # crash log path # searchd will (try to) log crashed query to 'crash_log_path.PID' file # optional, default is empty (do not create crash logs) # # crash_log_path = /usr/local/coreseek/var/log/crash # max allowed per-query filter count # optional, default is 256 max_filters = 256 # max allowed per-filter values count # optional, default is 4096 max_filter_values = 4096 # socket listen queue length # optional, default is 5 # # listen_backlog = 5 # per-keyword read buffer size # optional, default is 256K # # read_buffer = 256K # unhinted read size (currently used when reading hits) # optional, default is 32K # # read_unhinted = 32K # max allowed per-batch query count (aka multi-query count) # optional, default is 32 max_batch_queries = 32 # max common subtree document cache size, per-query # optional, default is 0 (disable subtree optimization) # # subtree_docs_cache = 4M # max common subtree hit cache size, per-query # optional, default is 0 (disable subtree optimization) # # subtree_hits_cache = 8M # multi-processing mode (MPM) # known values are none, fork, prefork, and threads # optional, default is fork # workers = threads # for RT to work # max threads to create for searching local parts of a distributed index # optional, default is 0, which means disable multi-threaded searching # should work with all MPMs (ie. does NOT require workers=threads) # # dist_threads = 4 # binlog files path; use empty string to disable binlog # optional, default is build-time configured data directory # # binlog_path = # disable logging # binlog_path = /usr/local/coreseek/var/data # binlog.001 etc will be created there # binlog flush/sync mode # 0 means flush and sync every second # 1 means flush and sync every transaction # 2 means flush every transaction, sync every second # optional, default is 2 # # binlog_flush = 2 # binlog per-file size limit # optional, default is 128M, 0 means no limit # # binlog_max_log_size = 256M # per-thread stack size, only affects workers=threads mode # optional, default is 64K # # thread_stack = 128K # per-keyword expansion limit (for dict=keywords prefix searches) # optional, default is 0 (no limit) # # expansion_limit = 1000 # RT RAM chunks flush period # optional, default is 0 (no periodic flush) # # rt_flush_period = 900 # query log file format # optional, known values are plain and sphinxql, default is plain # # query_log_format = sphinxql # version string returned to MySQL network protocol clients # optional, default is empty (use Sphinx version) # # mysql_version_string = 5.0.37 # trusted plugin directory # optional, default is empty (disable UDFs) # # plugin_dir = /usr/local/sphinx/lib # default server-wide collation # optional, default is libc_ci # # collation_server = utf8_general_ci # server-wide locale for libc based collations # optional, default is C # # collation_libc_locale = ru_RU.UTF-8 # threaded server watchdog (only used in workers=threads mode) # optional, values are 0 and 1, default is 1 (watchdog on) # # watchdog = 1 # SphinxQL compatibility mode (legacy columns and their names) # optional, default is 0 (SQL compliant syntax and result sets) # # compat_sphinxql_magics = 1 } # --eof-- 求救一下 不知道哪里错了 中文搜不出结果来
想用C++抽取txt文件中某标签对里面内容并保存到另外一个txt文件中,求大神帮助
A文件中,内容是这样的: [fullText]abcd[rating] [fullText]efg[rating] 我想要抽取[fullText] [rating]之间的内容,并将其保存到B文件中, 不同标签对的内容用空格隔开。 应该怎么写呢?
MySQL 中索引类型是什么
MySQL 中,索引类型是:普通索引、唯一索引、主键索引、组合索引。还是:B-Tree 索引、Hash索引、Fulltext 索引和 R-Tree 索引 查资料有的说是第一个,有的说第二个,不知道哪个对?
PHP网站语句如何优化,希望和高手一起探讨下
我的网站是PHP网站,使用的数据库是MySQL 的目前直接用网上的采集插件出现了很多慢查询和扫全表的动作,自己也在对应的表里建立了普通索引,但还是无法得到解决,一直报错在SQL语句里,对于这块本人学习尚浅。 MySQL引擎是InnoDB,下面是索引截图: ![图片说明](https://img-ask.csdn.net/upload/201906/16/1560632068_941383.jpg) 报错语句: select url from ve123_links_temp where url like 'jmw.com.cn%' UPDATE `ve123_links_temp` SET `no_id`='1' WHERE url='http://app.hiapk.com/hiapk/about/agreement' 还请各位高手指点迷津,到底如何优化 语句: <?php //抓全站--- 多线程 function all_links_duo($site_id,$ceng,$include_word,$not_include_word) { global $db; $new_url=array(); $fenge=array(); $nei=1;//1代表只收内链 2代表外链 空代表所有 $numm=2;//开启多少线程 echo "<br><b>开始抓取第".$ceng."层</b><br>"; $ceng++; $row=$db->get_one("select * from ve123_links_temp where site_id='".$site_id."' and no_id='0'"); if(empty($row)){echo " ---------- 没有新链接了<br>";return;}//如果找不到新增加url,则结束 $query=$db->query("select * from ve123_links_temp where site_id='".$site_id."' and no_id='0'"); while($row=$db->fetch_array($query)) { $new_url[]=$row[url]; } $he_num = ceil(count($new_url)/$numm);//计算需要循环多少次 $fenge=array_chunk($new_url,$numm);//把数组分割成多少块数组 每块大小$numm /* echo "一共多少个"; echo count($new_url); echo "需要循环"; echo $he_num; echo "次<br>"; */ for($i=0;$i<=$he_num;$i++) { /*echo "开始循环第 ".$i." 次<br>"; print_r($fenge[$i]); echo "<br>";*/ $fen_url = array(); $fen_url = cmi($fenge[$i]); //需要把得到的数组 (数组只包括 网址和源码) 分析 写入数据库 , /*echo "<b>本次抓完的网址为</b>"; print_r($fen_url[url]); echo "<br>";*/ foreach ((array)$fen_url as $url => $file) { $links = array(); $temp_links = array(); $cha_temp = array(); $loy = array(); $new_links = array(); $cha_links = array(); $cha_links_num = array(); $links = _striplinks($file); //从htmlcode中提取网址 $links = _expandlinks($links, $url); //补全网址 $links=check_wai($links,$nei,$url); $links=array_values(array_unique($links)); $bianma = bianma($file); //获取得到htmlcode的编码 $file = Convert_File($file,$bianma); //转换所有编码为gb2312 $loy = clean_lry($file,$url,"html"); $title=$loy["title"]; //从数组中得到标题,赋值给title $pagesize=number_format(strlen($file)/1024, 0, ".", ""); $fulltxt=Html2Text($loy["fulltext"]); $description=$loy["description"]; //从数组中得到标题,赋值给description $keywords=$loy["keywords"]; //从数组中得到标题,赋值给keywords $lrymd5=md5($fulltxt); $updatetime=time(); if($title==""){$title=str_cut($fulltxt,65); } //根据url,更新内容 $array=array('lrymd5'=>$lrymd5,'title'=>$title,'fulltxt'=>$fulltxt,'description'=>$description,'keywords'=>$keywords,'pagesize'=>$pagesize,'updatetime'=>$updatetime); $db->update("ve123_links",$array,"url='".$url."'"); $all_num = count($links); //开始读取 ve123_links_temp 中所有site_id 为$site_id 的url 然后和抓取的 $links 数组比较,将得到的差集创建到 ve123_links_temp 中 $query=$db->query("select url from ve123_links_temp where url like '%".getdomain($url)."%'"); while($row=$db->fetch_array($query)) { $temp_links[]=rtrim($row[url],"/"); } $cha_temp=array_diff($links,$temp_links); foreach((array)$cha_temp as $value) { if(check_include($value, $include_word, $not_include_word )) { $arral=array('url'=>$value,'site_id'=>$site_id); $db->insert("ve123_links_temp",$arral); } } //开始读取 ve123_links 中所有site_id 为 $site_id 的url 然后和抓取的 $links 数组比较,将得到的差集创建到 ve123_links 中 合集则输出 已存在了 $query=$db->query("select url from ve123_links where url like '%".getdomain($url)."%'"); while($row=$db->fetch_array($query)) { $new_links[]=rtrim($row[url],"/"); } $cha_links=array_diff($links,$new_links); foreach((array)$cha_links as $value) { if(check_include($value, $include_word, $not_include_word )) { $array=array('url'=>$value,'site_id'=>$site_id,'level'=>'1'); $db->insert("ve123_links",$array); $cha_links_num[]=$value; } } $cha_num = count($cha_links_num); printLinksReport($cha_num, $all_num, $cl=0); echo "<a href=".$url." target=_blank>".$url. "</a><br>"; $arral=array('no_id'=>1); $db->update("ve123_links_temp",$arral,"url='$url'"); ob_flush(); flush(); } } all_links_duo($site_id,$ceng,$include_word,$not_include_word);//再次调用本函数开始循环 } //一键找站 function find_sites($site_id,$ceng) { global $db; $new_url=array(); $fenge=array(); $numm=20;//开启多少线程 echo "<br><b>开始抓取第".$ceng."层</b><br>"; $ceng++; $row=$db->get_one("select * from ve123_sites_temp where site_id='".$site_id."' and no_id='0'"); if(empty($row)){echo " ---------- 没有新链接了<br>";return;}//如果找不到新增加url,则结束 $query=$db->query("select * from ve123_sites_temp where site_id='".$site_id."' and no_id='0'"); while($row=$db->fetch_array($query)) { $new_url[]=$row[url]; } $he_num = ceil(count($new_url)/$numm);//计算需要循环多少次 $fenge=array_chunk($new_url,$numm);//把数组分割成多少块数组 每块大小$numm for($i=0;$i<=$he_num;$i++) { $fen_url = array(); $fen_url = cmi($fenge[$i]); //需要把得到的数组 (数组只包括 网址和源码) 分析 写入数据库 , foreach ((array)$fen_url as $url => $file) { $links = array(); $fen_link = array(); $nei_link = array(); $wai_link = array(); $new_temp = array(); $cha_temp = array(); $new_site = array(); $cha_site = array(); $new_lik = array(); $cha_lik = array(); $links = _striplinks($file); //从htmlcode中提取网址 $links = _expandlinks($links, $url); //补全网址 $fen_link=fen_link($links,$url); //把内链和外链分开 $nei_link=array_values(array_unique($fen_link[nei])); //过滤内链 重复的网址 $wai_link=GetSiteUrl($fen_link[wai]); //把外链都转换成首页 $wai_link=array_values(array_unique($wai_link)); //过滤外链 重复的网址 //读出 ve123_sites_temp 中所有 site_id=-1 and no_id=0 $query=$db->query("select url from ve123_sites_temp where site_id='".$site_id."'"); while($row=$db->fetch_array($query)) { $new_temp[]=$row[url]; } $cha_temp=array_diff($nei_link,$new_temp);//与内链进行比较 得出差集 //将差集创建到 ve123_sites_temp 中 foreach((array)$cha_temp as $value) { $arral=array('url'=>$value,'site_id'=>$site_id,'no_id'=>0); $db->insert("ve123_sites_temp",$arral); } //读出 ve123_sites 中所有 site_id=-1 global $db; $query=$db->query("select url from ve123_sites where site_no='".$site_id."'"); while($row=$db->fetch_array($query)) { $new_site[]=$row[url]; } $cha_site=array_diff($wai_link,$new_site);//与外链进行比较 得出差集 //将差集创建到 ve123_sites 中 foreach((array)$cha_site as $value) { $arral=array('url'=>$value,'site_no'=>$site_id); $db->insert("ve123_sites",$arral); } //读出 ve123_links 中所有 site_id=-1 global $db; global $db; $query=$db->query("select url from ve123_links where site_id='".$site_id."'"); while($row=$db->fetch_array($query)) { $new_lik[]=$row[url]; } $cha_lik=array_diff($wai_link,$new_lik);//与外链进行比较 得出差集 //将得到的差集 创建到 ve123_links foreach ((array)$cha_lik as $value) { $array=array('url'=>$value,'site_id'=>$site_id); $db->insert("ve123_links",$array); echo "<font color=#C60A00><b>抓取到:</b></font>"; echo "<a href=".$value." target=_blank>".$value."</a><br>"; } $arral=array('no_id'=>1); $db->update("ve123_sites_temp",$arral,"url='$url'"); ob_flush(); flush(); } } find_sites($site_id,$ceng);//再次调用本函数开始循环 } //一键更新 已抓站 function Update_sites($site_id) { global $db; $numm=20;//开启多少线程 $new_url = array(); $fenge = array(); $query=$db->query("select url from ve123_links where site_id='".$site_id."' and length(lrymd5)!=32"); while($row=$db->fetch_array($query)) { $new_url[]=$row[url]; } $he_num = ceil(count($new_url)/$numm);//计算需要循环多少次 $fenge=array_chunk($new_url,$numm);//把数组分割成多少块数组 每块大小$numm for($i=0;$i<=$he_num;$i++) { $fen_url = array(); $fen_url = cmi($fenge[$i]); //需要把得到的数组 (数组只包括 网址和源码) 分析 写入数据库 , foreach ((array)$fen_url as $url => $file) { $links = array(); $temp_links = array(); $cha_temp = array(); $loy = array(); $new_links = array(); $cha_links = array(); $cha_links_num = array(); $bianma = bianma($file); //获取得到htmlcode的编码 $file = Convert_File($file,$bianma); //转换所有编码为gb2312 if($file==-1) {echo "<b><font color=#C60A00>抓取失败</b></font> ".$url."<br>"; continue;} $loy = clean_lry($file,$url,"html"); //设置分析数组 $title=$loy["title"]; //从数组中得到标题,赋值给title $pagesize=number_format(strlen($file)/1024, 0, ".", ""); $fulltxt=Html2Text($loy["fulltext"]); $description=$loy["description"]; //从数组中得到标题,赋值给description $keywords=$loy["keywords"]; //从数组中得到标题,赋值给keywords $lrymd5=md5($fulltxt); $updatetime=time(); if($title==""){$title=str_cut($fulltxt,65); } //根据url,更新内容 echo "<b><font color=#0Ae600>已更新</font></b>"; echo $title; echo "<a href=".$url." target=_blank>".$url. "</a><br>"; $array=array('lrymd5'=>$lrymd5,'title'=>$title,'fulltxt'=>$fulltxt,'description'=>$description,'keywords'=>$keywords,'pagesize'=>$pagesize,'updatetime'=>$updatetime); $db->update("ve123_links",$array,"url='".$url."'"); } } } //一键找站 暂时不用的 function find_sites_($url) { $oldtime=time(); $site_id = -1; $numm=10; $links=array(); $fen_link=array(); $lrp =array(); $nei_link =array(); $wai_link =array(); $new_temp =array(); $cha_temp =array(); $new_site =array(); $cha_site =array(); $new_lik =array(); $cha_lik =array(); $fenge =array(); $lrp = cmi($url); $links = _striplinks($lrp[$url]); //从htmlcode中提取网址 $links = _expandlinks($links, $url); //补全网址 $fen_link=fen_link($links,$url); //把内链和外链分开 $nei_link=array_values(array_unique($fen_link[nei])); //过滤内链 重复的网址 $wai_link=GetSiteUrl($fen_link[wai]); //把外链都转换成首页 $wai_link=array_values(array_unique($wai_link)); //过滤外链 重复的网址 /*print_r($nei_link); echo "<br><br>"; print_r($wai_link);*/ //读出 ve123_sites_temp 中所有 site_id=-1 and no_id=0 global $db; $query=$db->query("select url from ve123_sites_temp where site_id='-1' and no_id='0'"); while($row=$db->fetch_array($query)) { $new_temp[]=$row[url]; } $cha_temp=array_diff($nei_link,$new_temp);//与内链进行比较 得出差集 //将差集创建到 ve123_sites_temp 中 foreach((array)$cha_temp as $value) { $arral=array('url'=>$value,'site_id'=>$site_id,'no_id'=>0); $db->insert("ve123_sites_temp",$arral); } //读出 ve123_temp 中所有 site_id=-1 global $db; global $db; $query=$db->query("select url from ve123_sites where site_no='-1'"); while($row=$db->fetch_array($query)) { $new_site[]=$row[url]; } $cha_site=array_diff($wai_link,$new_site);//与外链进行比较 得出差集 //将差集创建到 ve123_sites 中 foreach((array)$cha_site as $value) { $arral=array('url'=>$value,'site_no'=>$site_id); $db->insert("ve123_sites",$arral); } //读出 ve123_links 中所有 site_id=-1 global $db; global $db; $query=$db->query("select url from ve123_sites where site_id='-1'"); while($row=$db->fetch_array($query)) { $new_lik[]=$row[url]; } $cha_lik=array_diff($wai_link,$new_lik);//与外链进行比较 得出差集 //将得到的差集 创建到 ve123_links $he_num = ceil(count($cha_lik)/$numm);//计算需要循环多少次 $fenge=array_chunk($cha_lik,$numm);//把数组分割成多少块数组 每块大小$numm for($i=0;$i<=$he_num;$i++) { $fen_url = array(); $fen_url = cmi($fenge[$i]); //多线程开始采集 foreach ((array)$fen_url as $url => $file) { $bianma = bianma($file); //获取得到htmlcode的编码 $file = Convert_File($file,$bianma); //转换所有编码为gb2312 $loy = clean_lry($file,$url,"html"); //过滤 file 中标题等 到数组 $title=$loy["title"]; //从数组中得到标题,赋值给title $pagesize=number_format(strlen($file)/1024, 0, ".", ""); $fulltxt=Html2Text($loy["fulltext"]); $description=$loy["description"]; //从数组中得到标题,赋值给description $keywords=$loy["keywords"]; //从数组中得到标题,赋值给keywords $lrymd5=md5($fulltxt); $updatetime=time(); if($title==""){$title=str_cut($fulltxt,65); } //根据url,更新内容 $array=array('url'=>$value,'lrymd5'=>$lrymd5,'title'=>$title,'fulltxt'=>$fulltxt,'description'=>$description,'keywords'=>$keywords,'pagesize'=>$pagesize,'updatetime'=>$updatetime); $db->insert("ve123_links",$array); echo "<font color=#C60A00><b>抓取到:</b></font>".$title; echo "<a href=".$url." target=_blank>".$url."</a><br>"; } } $newtime=time(); echo " --- <b>用时:</b>"; echo date("H:i:s",$newtime-$oldtime-28800); echo "<br>"; del_links_temp($site_id); } //抓全站--- 单线程 function all_url_dan($url,$old,$nei,$ooo,$site_id,$include_word,$not_include_word) { if(!is_url($url)) { return false;} global $db,$config; $snoopy = new Snoopy; //国外snoopy程序 $snoopy->fetchlry($url); $links=$snoopy->resulry; if(!is_array($links)) {return;} $links=check_wai($links,$nei,$url); $links=array_values(array_unique($links)); $title=$snoopy->title; $fulltxt=$snoopy->fulltxt; $lrymd5=md5($fulltxt); $pagesize=$snoopy->pagesize; $description=$snoopy->description; $keywords=$snoopy->keywords; $updatetime=time(); if($title==""){$title=str_cut($fulltxt,65); } //读取url,更新内容 $array=array('lrymd5'=>$lrymd5,'title'=>$title,'fulltxt'=>$fulltxt,'description'=>$description,'keywords'=>$keywords,'pagesize'=>$pagesize,'updatetime'=>$updatetime); $db->update("ve123_links",$array,"url='".$url."'"); $all_num = count($links); $temp_links=array(); $cha_temp=array(); //开始读取 ve123_links_temp 中所有site_id 为$site_id 的url 然后和抓取的 $links 数组比较,将得到的差集创建到 ve123_links_temp 中 $query=$db->query("select url from ve123_links_temp where url like '%".getdomain($url)."%'"); while($row=$db->fetch_array($query)) { $temp_links[]=rtrim($row[url],"/"); } $cha_temp=array_diff($links,$temp_links); foreach((array)$cha_temp as $value) { $arral=array('url'=>$value,'site_id'=>$site_id); $db->insert("ve123_links_temp",$arral); } //开始读取 ve123_links 中所有site_id 为 $site_id 的url 然后和抓取的 $links 数组比较,将得到的差集创建到 ve123_links 中 合集则输出 已存在了 $query=$db->query("select url from ve123_links where url like '%".getdomain($url)."%'"); while($row=$db->fetch_array($query)) { $new_links[]=rtrim($row[url],"/"); } $cha_links=array_diff($links,$new_links); $cha_num = count($cha_links); foreach((array)$cha_links as $value) { if(check_include($value, $include_word, $not_include_word )) { $array=array('url'=>$value,'site_id'=>$site_id,'level'=>'1'); $db->insert("ve123_links",$array); } } printLinksReport($cha_num, $all_num, $cl=0); echo "<a href=".$old." target=_blank>".$old. "</a>"; ob_flush(); flush(); } //抓全站--- 单线程---不用的 function add_all_url_ ($url,$old,$numm,$ooo,$site_id,$include_word,$not_include_word) { if(!is_url($url)) { return false;} global $db,$config; $snoopy = new Snoopy; //国外snoopy程序 $snoopy->fetchlry($url); $links=$snoopy->resulry; if(!is_array($links)) {return;} $links=check_wai($links,$numm,$url); $links=array_values(array_unique($links)); $title=$snoopy->title; $fulltxt=$snoopy->fulltxt; $lrymd5=md5($fulltxt); $pagesize=$snoopy->pagesize; $description=$snoopy->description; $keywords=$snoopy->keywords; $updatetime=time(); if($title==""){$title=str_cut($fulltxt,65); } //读取url,更新内容 $array=array('lrymd5'=>$lrymd5,'title'=>$title,'fulltxt'=>$fulltxt,'description'=>$description,'keywords'=>$keywords,'pagesize'=>$pagesize,'updatetime'=>$updatetime); $db->update("ve123_links",$array,"url='".$url."'"); $all_num = count($links); $temp_links=array(); $cha_temp=array(); //开始读取 ve123_links_temp 中所有site_id 为$site_id 的url 然后和抓取的 $links 数组比较,将得到的差集创建到 ve123_links_temp 中 $query=$db->query("select url from ve123_links_temp where url like '%".getdomain($url)."%'"); while($row=$db->fetch_array($query)) { $temp_links[]=rtrim($row[url],"/"); } $cha_temp=array_diff($links,$temp_links); foreach((array)$cha_temp as $value) { $arral=array('url'=>$value,'site_id'=>$site_id); $db->insert("ve123_links_temp",$arral); } //开始读取 ve123_links 中所有site_id 为 $site_id 的url 然后和抓取的 $links 数组比较,将得到的差集创建到 ve123_links 中 合集则输出 已存在了 $query=$db->query("select url from ve123_links where url like '%".getdomain($url)."%'"); while($row=$db->fetch_array($query)) { $new_links[]=rtrim($row[url],"/"); } $he_links=array_intersect($links,$new_links); $he_num = count($he_links); $cha_links=array_diff($links,$new_links); $cha_num = count($cha_links); foreach((array)$cha_links as $value) { if(check_include($value, $include_word, $not_include_word )) { $array=array('url'=>$value,'site_id'=>$site_id,'level'=>'1'); $db->insert("ve123_links",$array); } } printLinksReport($cha_num, $all_num, $cl=0); echo "<a href=".$old." target=_blank>".$old. "</a>"; ob_flush(); flush(); } function printLinksReport($cha_num, $all_num, $cl) { global $print_results, $log_format; $cha_html = " <font color=\"blue\">页面包含<b>$all_num</b>条链接</font>。 <font color=\"red\"><b>$cha_num</b>条新链接。</font>\n"; $no_html = " <font color=\"blue\">页面包含<b>$all_num</b>条链接</font>。 没有新链接。\n"; if($cha_num==0) {print $no_html; flush();} else{print $cha_html;} } function add_links_insite($link,$old,$numm,$ooo,$site_id,$include_word,$not_include_word) { if(!is_url($link)) { return false; } global $db,$config; /* $spider=new spider; //系统自带蜘蛛 echo "<b>网站编码</b>(默认GB2312)<b>:"; $spider->url($link); echo "</b><br>"; $links= $spider->get_insite_links(); */ //$site_url=GetSiteUrl($link); $url_old=GetSiteUrl($old); echo "原始页=".$url_old." - - <"; echo "首层 id=".$site_id."> - - <"; echo "包含字段=".$include_word.">"; echo "<br>"; /*if($ooo==0) { $site=$db->get_one("select * from ve123_sites where url='".$url_old."'"); $site_id=$site["site_id"]; $include_word=$site["include_word"]; $not_include_word=$site["not_include_word"]; $spider_depth=$site["spider_depth"]; } */ $snoopy = new Snoopy; //国外snoopy程序 $snoopy->fetchlinks($link); $links=$snoopy->results; $links=check_wai($links,$numm,$link); $links=array_values(array_unique($links)); foreach((array)$links as $value) { $row=$db->get_one("select * from ve123_links_temp where url='".$value."'"); if(empty($row)) { $arral=array('url'=>$value,'site_id'=>$site_id); $db->insert("ve123_links_temp",$arral); } $value=rtrim($value,"/"); $row=$db->get_one("select * from ve123_links where url='".$value."'"); if (check_include($value, $include_word, $not_include_word )) { if(empty($row)&&is_url($value)) { echo "<font color=#C60A00><b>抓取到:</b></font>"; $array=array('url'=>$value,'site_id'=>$site_id,'level'=>'1'); $db->insert("ve123_links",$array); } else { echo "<b>已存在了:</b>";} echo "<a href=".$value." target=_blank>".$value. "</a><br>"; ob_flush(); flush(); //$row=$db->get_one("select * from ve123_links_temp where url='".$value."'"); // if(empty($row)&&is_url($value)) // { // $array=array('url'=>$value,'site_id'=>$site_id); // $db->insert("ve123_links_temp",$array); // } } } } //只保留内链或者外链 function check_wai($lry_all,$nei,$url) { $lry_nei=array();//站内链接数组 $lry_wai=array();//站外链接数组 $new_url=getdomain($url); if($nei=="") { foreach ((array)$lry_all as $value) { $lry_nei[]=rtrim($value,"/"); } return $lry_nei; } foreach ((array)$lry_all as $value) { if(getdomain($value)==$new_url) { $lry_nei[]=rtrim($value,"/"); //$lry_nei[]=$value; } else { $lry_wai[]=rtrim($value,"/"); } } if($nei==1){return $lry_nei;} if($nei==2){return $lry_wai;} } //把内链和外链分开 function fen_link($lry_all,$url) { $data=array();//站外链接数组 $new_url=getdomain($url); foreach ((array)$lry_all as $value) { if(getdomain($value)==$new_url) { $data['nei'][]=rtrim($value,"/"); } else { $data['wai'][]=rtrim($value,"/"); } } return $data; } function check_include($link, $include_word, $not_include_word) { $url_word = Array (); $not_url_word = Array (); $is_shoulu = true; if ($include_word != "") { $url_word = explode(",", $include_word); } if ($not_include_word != "") { $not_url_word = explode(",", $not_include_word); } foreach ($not_url_word as $v_key) { $v_key = trim($v_key); if ($v_key != "") { if (substr($v_key, 0, 1) == '*') { if (preg_match(substr($v_key, 1), $link)) { $is_shoulu = false; break; } } else { if (!(strpos($link, $v_key) === false)) { $is_shoulu = false; break; } } } } if ($is_shoulu && $include_word != "") { $is_shoulu = false; foreach ($url_word as $v_key) { $v_key = trim($v_key); if ($v_key != "") { if (substr($v_key, 0, 1) == '*') { if (preg_match(substr($v_key, 1), $link)) { $is_shoulu = true; break 2; } } else { if (strpos($link, $v_key) !== false) { $is_shoulu = true; break; } } } } } return $is_shoulu; } function add_links_site_fromtemp($in_url) { global $db; $domain=getdomain($in_url); $query=$db->query("select * from ve123_links_temp where url like '%".$domain."%' and no_id='0'"); while($row=$db->fetch_array($query)) { @$db->query("update ve123_links_temp set no_id='1' where url='".$row["url"]."'"); add_links_insite($row["url"],$row["url"],1,1); //sleep(3); } //sleep(5); add_links_site_fromtemp($in_url) ; } function insert_links($url) { global $db,$config; $spider=new spider; $spider->url($url); $links= $spider->links(); $sites= $spider->sites(); foreach($sites as $value) { $site_url=GetSiteUrl($link); $site=$db->get_one("select * from ve123_sites where url='".$site_url."'"); $site_id=$site["site_id"]; $row=$db->get_one("select * from ve123_links where url='".$value."'"); if(empty($row)&&is_url($value)) { echo $value."<br>"; $array=array('url'=>$value,'site_id'=>$site_id,'level'=>'0'); $db->insert("ve123_links",$array); } else { echo "已存在:".$value."<br>"; } ob_flush(); flush(); //sleep(1); $row=$db->get_one("select * from ve123_sites where url='".$value."'"); if(empty($row)&&is_url($value)) { $array=array('url'=>$value,'spider_depth'=>$config["spider_depth"],'addtime'=>time()); $db->insert("ve123_sites",$array); } } //sleep(1); foreach($links as $value) { $row=$db->get_one("select * from ve123_links_temp where url='".$value."'"); if(empty($row)&&is_url($value)) { $array=array('url'=>$value); $db->insert("ve123_links_temp",$array); } } } function GetUrl_AllSite($in_url) { global $db; $query=$db->query("select * from ve123_links_temp where url like '%".$in_url."%' and updatetime<='".(time()-(86400*30))."'"); while($row=$db->fetch_array($query)) { @$db->query("update ve123_links_temp set updatetime='".time()."' where url='".$row["url"]."'"); insert_links($row["url"]); //sleep(3); } //sleep(5); GetUrl_AllSite($in_url) ; } function Updan_link($url,$site_id) { global $db; $row=$db->get_one("select * from ve123_links_temp where url='".$url."'"); if(empty($row)) { $arral=array('url'=>$url,'site_id'=>$site_id); $db->insert("ve123_links_temp",$arral); } $row=$db->get_one("select * from ve123_links where url like '%".$url."%'"); if(empty($row)) { echo "<font color=#C60A00><b>抓取到:</b></font>".$url."<br>"; $array=array('url'=>$url,'site_id'=>$site_id,'level'=>'1'); $db->insert("ve123_links",$array); } else { echo "已存在:".$url."<br>"; } } function Updan_zhua($url,$site_id) { global $db; $lrp = array(); $links = array(); $fen_link = array(); $nei_link = array(); $new_temp = array(); $cha_temp = array(); $lrp = cmi($url); $links = _striplinks($lrp[$url]); //从htmlcode中提取网址 $links = _expandlinks($links, $url); //补全网址 $fen_link=fen_link($links,$url); //把内链和外链分开 $nei_link=array_values(array_unique($fen_link[nei])); //过滤内链 重复的网址 //读出 ve123_sites_temp 中所有 site_id=-1 and no_id=0 $query=$db->query("select url from ve123_sites_temp where site_id='".$site_id."'"); while($row=$db->fetch_array($query)) { $new_temp[]=$row[url]; } $cha_temp=array_diff($nei_link,$new_temp);//与内链进行比较 得出差集 //将差集创建到 ve123_sites_temp 中 foreach((array)$cha_temp as $value) { $arral=array('url'=>$value,'site_id'=>$site_id,'no_id'=>0); $db->insert("ve123_sites_temp",$arral); } } function Update_link($url) { global $db,$bug_url; $is_success=FALSE; $is_shoulu=FALSE; /*$spider=new spider; $spider->url($url); $title=$spider->title; $fulltxt=$spider->fulltxt; $lrymd5=md5($spider->fulltxt); $pagesize=$spider->pagesize; $keywords=$spider->keywords; $htmlcode=$spider->htmlcode; $description=$spider->description;*/ $snoopy = new Snoopy; //国外snoopy程序 $snoopy->fetchtext($url); $title=$snoopy->title; $fulltxt=$snoopy->fulltxt; $lrymd5=md5($fulltxt); $pagesize=$snoopy->pagesize; $description=$snoopy->description; $keywords=$snoopy->keywords; //echo "fulltxt=".$fulltxt."<br>"; $updatetime=time(); //$site_url=GetSiteUrl($url); //$site=$db->get_one("select * from ve123_sites where url='".$site_url."'"); //$site_id=$site["site_id"]; //echo "site_id".$site["site_id"]."<br>"; if($title==""){$title=str_cut($fulltxt,65); } echo "<b><font color=#0Ae600>已更新</font></b>"; echo $title; $array=array('lrymd5'=>$lrymd5,'title'=>$title,'fulltxt'=>$fulltxt,'description'=>$description,'keywords'=>$keywords,'pagesize'=>$pagesize,'updatetime'=>$updatetime); //$db->query("update ve123_links set updatetime='".time()."' where url='".$url."'"); //更新时间 //$s=array(); //$s=explode("?",$title); //$domain=GetSiteUrl($url); //$site=$db->get_one("select * from ve123_sites where url='".$domain."'"); $db->update("ve123_links",$array,"url='".$url."'"); $is_success=TRUE; if(empty($bug_url)) { exit(); } return $is_success; } function Update_All_Link_($in_url='',$days,$qiangzhi) { global $db; $new_url=array(); $fen_url=array(); $fenge=array(); $numm=20;//开启多少线程 //if($qiangzhi==0){ $lry="and strlen(lrymd5)!=32";} //else { ;} if(empty($in_url)) { $sql="select url from ve123_links where length(lrymd5)!=32 order by link_id desc"; } else { $sql="select url from ve123_links where url like '%".getdomain($in_url)."%' and length(lrymd5)!=32 order by link_id desc"; } echo $sql."<br>"; $query=$db->query($sql); while($row=$db->fetch_array($query)) { $new_url[]=$row[url]; } $he_num = ceil(count($new_url)/$numm);//计算需要循环多少次 //echo "<br><b>需要循环多少次=</b>".$he_num."<br>"; $fenge=array_chunk($new_url,$numm);//把数组分割成多少块数组 每块大小$numm for($i=0;$i<=$he_num;$i++) //for($i=0;$i<=1;$i++) { $fen_url=cmi($fenge[$i]); //需要把得到的数组 (数组只包括 网址和源码) 分析 写入数据库 , foreach ((array)$fen_url as $url => $file) { $bianma = bianma($file); //获取得到htmlcode的编码 $file = Convert_File($file,$bianma); //转换所有编码为gb2312 $lry = clean_lry($file,$url,"html"); $title=$lry["title"]; //从数组中得到标题,赋值给title $pagesize=number_format(strlen($file)/1024, 0, ".", ""); $fulltxt=Html2Text($lry["fulltext"]); $description=$lry["description"]; //从数组中得到标题,赋值给description $keywords=$lry["keywords"]; //从数组中得到标题,赋值给keywords $lrymd5=md5($fulltxt); $updatetime=time(); if($title==""){$title=str_cut($fulltxt,65); } echo "<b><font color=#0Ae600>已更新</font></b>"; echo $title; echo "<a href=".$url." target=_blank>".$url. "</a><br>"; $array=array('lrymd5'=>$lrymd5,'title'=>$title,'fulltxt'=>$fulltxt,'description'=>$description,'keywords'=>$keywords,'pagesize'=>$pagesize,'updatetime'=>$updatetime); $db->update("ve123_links",$array,"url='".$url."'"); } } } function cmi($links,$killspace=TRUE,$forhtml=TRUE,$timeout=6,$header=0,$follow=1){ $res=array();//用于保存结果 $mh = curl_multi_init();//创建多curl对象,为了几乎同时执行 foreach ((array)$links as $i => $url) { $conn[$url]=curl_init($url);//若url中含有gb2312汉字,例如FTP时,要在传入url的时候处理一下,这里不用 curl_setopt($conn[$url], CURLOPT_TIMEOUT, $timeout);//此时间须根据页面的HTML源码出来的时间,一般是在1s内的,慢的话应该也不会6秒,极慢则是在16秒内 curl_setopt($conn[$url], CURLOPT_HEADER, $header);//不返回请求头,只要源码 curl_setopt($conn[$url],CURLOPT_RETURNTRANSFER,1);//必须为1 curl_setopt($conn[$url], CURLOPT_FOLLOWLOCATION, $follow);//如果页面含有自动跳转的代码如301或者302HTTP时,自动拿转向的页面 curl_multi_add_handle ($mh,$conn[$url]);//关键,一定要放在上面几句之下,将单curl对象赋给多对象 } //下面一大步的目的是为了减少cpu的无谓负担,暂时不明,来自php.net的建议,几乎是固定用法 do { $mrc = curl_multi_exec($mh,$active);//当无数据时或请求暂停时,active=true } while ($mrc == CURLM_CALL_MULTI_PERFORM);//当正在接受数据时 while ($active and $mrc == CURLM_OK) {//当无数据时或请求暂停时,active=true,为了减少cpu的无谓负担,这一步很难明啊 if (curl_multi_select($mh) != -1) { do { $mrc = curl_multi_exec($mh, $active); } while ($mrc == CURLM_CALL_MULTI_PERFORM); } } foreach ((array)$links as $i => $url) { $cinfo=curl_getinfo($conn[$url]);//可用于取得一些有用的参数,可以认为是header $res[$url]=curl_multi_getcontent($conn[$url]); if(!$forhtml){//节约内存 $res[$url]=NULL; } /*下面这一段放一些高消耗的程序代码,用来处理HTML,我保留的一句=NULL是要提醒,及时清空对象释放内存,此程序在并发过程中如果源码太大,内在消耗严重 //事实上,这里应该做一个callback函数或者你应该将你的逻辑直接放到这里来,我为了程序可重复,没这么做 preg_match_all($preg,$res[$i],$matchlinks); $res[$i]=NULL;*/ curl_close($conn[$url]);//关闭所有对象 curl_multi_remove_handle($mh , $conn[$url]); //用完马上释放资源 } curl_multi_close($mh);$mh=NULL;$conn=NULL;$links=NULL; return $res; } function clean_lry($file, $url, $type) { $data=array(); $file = preg_replace("/<link rel[^<>]*>/i", " ", $file); //$file = preg_replace("@<!--sphider_noindex-->.*?<!--\/sphider_noindex-->@si", " ",$file); $file = preg_replace("@<!--.*?-->@si", " ",$file); $file = preg_replace("@<script[^>]*?>.*?</script>@si", " ",$file); $file = preg_replace("/&nbsp;/", " ", $file); $file = preg_replace("/&raquo;/", " ", $file); $file=str_replace("'","‘",$file); $regs = Array (); preg_match("/<meta +name *=[\"']?description[\"']? *content=[\"']?([^<>'\"]+)[\"']?/i", $file, $regs); if (isset ($regs)) { $description = $regs[1]; $file = str_replace($regs[0], "", $file); } $regs = Array (); preg_match("/<meta +name *=[\"']?keywords[\"']? *content=[\"']?([^<>'\"]+)[\"']?/i", $file, $regs); if (isset ($regs)) { $keywords = $regs[1]; $file = str_replace($regs[0], "", $file); } $regs = Array (); $keywords = preg_replace("/[, ]+/", " ", $keywords); if (preg_match("@<title *>(.*?)<\/title*>@si", $file, $regs)) { $title = trim($regs[1]); $file = str_replace($regs[0], "", $file); } $file = preg_replace("@<style[^>]*>.*?<\/style>@si", " ", $file); //create spaces between tags, so that removing tags doesnt concatenate strings $file = preg_replace("/<[\w ]+>/", "\\0 ", $file); $file = preg_replace("/<\/[\w ]+>/", "\\0 ", $file); $file = strip_tags($file); //$fulltext = $file; //$file .= " ".$title; $file = preg_replace('~&#x([0-9a-f]+);~ei', 'chr(hexdec("\\1"))', $file); $file = preg_replace('~&#([0-9]+);~e', 'chr("\\1")', $file); $file = strtolower($file); $file = preg_replace("/&[a-z]{1,6};/", " ", $file); $file = preg_replace("/[\*\^\+\?\\\.\[\]\^\$\|\{\)\(\}~!\"\/@#?%&=`?><:,]+/", " ", $file); $file = preg_replace("/\s+/", " ", $file); //$data['fulltext'] = $fulltext; $data['fulltext'] = addslashes($file); $data['title'] = addslashes($title); $data['description'] = $description; $data['keywords'] = $keywords; return $data; } function bianma($file) { preg_match_all("/<meta.+?charset=([-\w]+)/i",$file,$rs); $chrSet=strtoupper(trim($rs[1][0])); return $chrSet; } function Convert_File($file,$charSet) { $conv_file = html_entity_decode($file); $charSet = strtoupper(trim($charSet)); if($charSet != "GB2312"&&$charSet != "GBK") { $file=convertfile($charSet,"GB2312",$conv_file); if($file==-1){ return -1; } } return $file; } function convertfile($in_charset, $out_charset, $str) { //if(function_exists('mb_convert_encoding')) //{ $in_charset=explode(',',$in_charset); $encode_arr = array('GB2312','GBK','UTF-8','ASCII','BIG5','JIS','eucjp-win','sjis-win','EUC-JP'); $cha_temp=array_intersect($encode_arr,$in_charset); $cha_temp=implode('',$cha_temp); if(empty($in_charset)||empty($cha_temp)) { $encoded = mb_detect_encoding($str, $encode_arr); $in_charset=$encoded; } if(empty($in_charset)){ return -1; } echo $in_charset; return mb_convert_encoding($str, $out_charset, $in_charset); /*} else { require_once PATH.'include/charset.func.php'; $in_charset = strtoupper($in_charset); $out_charset = strtoupper($out_charset); if($in_charset == 'UTF-8' && ($out_charset == 'GBK' || $out_charset == 'GB2312')) { return utf8_to_gbk($str); } if(($in_charset == 'GBK' || $in_charset == 'GB2312') && $out_charset == 'UTF-8') { return gbk_to_utf8($str); } return $str; }*/ } function Update_All_Link($in_url='',$days,$qiangzhi) { global $db; if(empty($in_url)) { //$sql="select * from ve123_links where updatetime<='".(time()-(86400*$days))."' order by link_id desc";//echo $days."<br>"; $sql="select * from ve123_links where updatetime+86400 <".time()." order by link_id ";//echo $days."<br>"; } else { $sql="select * from ve123_links where url like '%".getdomain($in_url)."%' order by link_id desc";//echo $days."<br>"; //$sql="select * from ve123_links where url like '%".$in_url."%' order by link_id desc";//echo $days."<br>"; } //$sql="select * from ve123_links order by link_id"; echo $sql."<br>"; $query=$db->query($sql); while($row=$db->fetch_array($query)) { if(is_url($row["url"])) { // echo "呵呵呵呵".$row["lrymd5"]."<br>"; ob_flush(); flush(); //sleep(1); //if($row["lrymd5"]==""){ Update_link($row["url"],$row["lrymd5"]); } if($qiangzhi==1){ Update_link($row["url"]); } else { if(strlen($row["lrymd5"])!=32){ Update_link($row["url"]); } else {echo ""; } } echo ""; } ////sleep(2); } // echo "<br><b>全部更新完成</b> 完成日期:"; // echo date("Y年m月d日 H:i:s",time()); //sleep(2); // Update_All_Link($in_url) ; } function url_ce($val, $parent_url, $can_leave_domain) { global $ext, $mainurl, $apache_indexes, $strip_sessids; $valparts = parse_url($val); $main_url_parts = parse_url($mainurl); //if ($valparts['host'] != "" && $valparts['host'] != $main_url_parts['host'] && $can_leave_domain != 1) {return '';} reset($ext); while (list ($id, $excl) = each($ext)) if (preg_match("/\.$excl$/i", $val)) return ''; if (substr($val, -1) == '\\') {return '';} if (isset($valparts['query'])) {if ($apache_indexes[$valparts['query']]) {return '';}} if (preg_match("/[\/]?mailto:|[\/]?javascript:|[\/]?news:/i", $val)) {return '';} if (isset($valparts['scheme'])) {$scheme = $valparts['scheme'];} else {$scheme ="";} if (!($scheme == 'http' || $scheme == '' || $scheme == 'https')) {return '';} $regs = Array (); while (preg_match("/[^\/]*\/[.]{2}\//", $valpath, $regs)) { $valpath = str_replace($regs[0], "", $valpath); } $valpath = preg_replace("/\/+/", "/", $valpath); $valpath = preg_replace("/[^\/]*\/[.]{2}/", "", $valpath); $valpath = str_replace("./", "", $valpath); if(substr($valpath,0,1)!="/") {$valpath="/".$valpath;} $query = ""; if (isset($val_parts['query'])) {$query = "?".$val_parts['query'];} if ($main_url_parts['port'] == 80 || $val_parts['port'] == "") {$portq = "";} else {$portq = ":".$main_url_parts['port'];} return $val; } function iframe_ce($val, $parent_url, $can_leave_domain) { global $ext, $mainurl, $apache_indexes, $strip_sessids; $valparts = parse_url($val); $main_url_parts = parse_url($mainurl); //if ($valparts['host'] != "" && $valparts['host'] != $main_url_parts['host'] && $can_leave_domain != 1) {return '';} reset($ext); while (list ($id, $excl) = each($ext)) if (preg_match("/\.$excl$/i", $val)) return ''; if (substr($val, -1) == '\\') {return '';} if (isset($valparts['query'])) {if ($apache_indexes[$valparts['query']]) {return '';}} if (preg_match("/[\/]?mailto:|[\/]?javascript:|[\/]?news:/i", $val)) {return '';} if (isset($valparts['scheme'])) {$scheme = $valparts['scheme'];} else {$scheme ="";} if (!($scheme == 'http' || $scheme == '' || $scheme == 'https')) {return '';} $regs = Array (); while (preg_match("/[^\/]*\/[.]{2}\//", $valpath, $regs)) { $valpath = str_replace($regs[0], "", $valpath); } $valpath = preg_replace("/\/+/", "/", $valpath); $valpath = preg_replace("/[^\/]*\/[.]{2}/", "", $valpath); $valpath = str_replace("./", "", $valpath); if(substr($valpath,0,1)!="/") {$valpath="/".$valpath;} $query = ""; if (isset($val_parts['query'])) {$query = "?".$val_parts['query'];} if ($main_url_parts['port'] == 80 || $val_parts['port'] == "") {$portq = "";} else {$portq = ":".$main_url_parts['port'];} return $val; } function _striplinks($document) { $match = array(); $links = array(); preg_match_all("'<\s*(a\s.*?href|[i]*frame\s.*?src)\s*=\s*([\'\"])?([+:%\/\?~=&\\\(\),._a-zA-Z0-9-]*)'isx",$document,$links,PREG_PATTERN_ORDER); foreach ($links[3] as $val) { if (($a = url_ce($val, $url, $can_leave_domain)) != '') { $match[] = $a; } $checked_urls[$val[1]] = 1; } return $match; } function _expandlinks($links,$URI) { preg_match("/^[^\?]+/",$URI,$match); $match = preg_replace("|/[^\/\.]+\.[^\/\.]+$|","",$match[0]); $match = preg_replace("|/$|","",$match); $match_part = parse_url($match); $match_root = $match_part["scheme"]."://".$match_part["host"]; $URI_PARTS = parse_url($URI); $host = $URI_PARTS["host"]; $search = array( "|^http://".preg_quote($host)."|i", "|^(\/)|i", "|^(?!http://)(?!mailto:)|i", "|/\./|", "|/[^\/]+/\.\./|" ); $replace = array( "", $match_root."/", $match."/", "/", "/" ); $expandedLinks = preg_replace($search,$replace,$links); return $expandedLinks; } function foothtml() { echo "<div style=\"text-align:center;\"><a target=\"_blank\" href=\"http://www.php.com\"> Php</a></div>"; } ?> ``` ```
scrapy response解析不全打印结果缺失
``` # -*- coding: utf-8 -*- import scrapy from scrapy.conf import settings class ContentSpider(scrapy.Spider): name = "content" allowed_domains = ["pkulaw.cn"] start_urls = ( 'http://www.pkulaw.cn/', ) headers = settings.get('HEADERS') surl = 'http://www.pkulaw.cn/fulltext_form.aspx?Db=chl&Gid=58178&keyword=&EncodingName=&Search_Mode=accurate' def parse(self, response): yield scrapy.Request(url=self.surl, headers=self.headers, callback=self.parse_con ) def parse_con(self, response): content = ''.join(response.xpath('.//*[@id="div_content"]').extract()) self.logger.info("--content--:%s" % content) ``` ![图片说明](https://img-ask.csdn.net/upload/201701/04/1483511185_293371.png)<p align='center'><font class='MTitle'>人才市场管理规定<br> (2001年9月11日人事部、国家工商行政管理总局令第1号发布 2005年3月22日根据《人事部、国家工商行政管理总局关于修改<人才市场管理规定>的决定》修正 2005年3月22日人事部、国家工商行政管理总局令第4号发布)</font></p> 打印结果”<人才管理规定>“不存在,有什么解决办法吗
每次都自动执行到master数据库,能默认执行到我创建的数据库吗,
1 每次都自动执行到master数据库,能默认执行到我创建的数据库吗, 每次都要切换创建的数据库吗,不智能。执行到master数据库可以撤销吗,恢复master 2 老是语法错误啊 sql没问题的 是不是 master数据库弄坏了 ``` USE [fhadmin] GO /****** Object: Database [fhadmin] Script Date: 2016/2/4 11:00:37 ******/ CREATE DATABASE [fhadmin] CONTAINMENT = NONE ON PRIMARY ( NAME = N'fhadmin', FILENAME = N'D:\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\DATA\fhadmin.mdf' , SIZE = 5120KB , MAXSIZE = UNLIMITED, FILEGROWTH = 1024KB ) LOG ON ( NAME = N'fhadmin_log', FILENAME = N'D:\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\DATA\fhadmin_log.ldf' , SIZE = 1024KB , MAXSIZE = 2048GB , FILEGROWTH = 10%) GO ALTER DATABASE [fhadmin] SET COMPATIBILITY_LEVEL = 110 GO IF (1 = FULLTEXTSERVICEPROPERTY('IsFullTextInstalled')) begin EXEC [fhadmin].[dbo].[sp_fulltext_database] @action = 'enable' en' GO ALTER DATABASE [fhadmin] SET ANSI_NULL_DEFAULT OFF GO ALTER DATABASE [fhadmin] SET ANSI_NULLS OFF GO ALTER DATABASE [fhadmin] SET ANSI_PADDING OFF GO ALTER DATABASE [fhadmin] SET ANSI_WARNINGS OFF GO ALTER DATABASE [fhadmin] SET ARITHABORT OFF GO ALTER DATABASE [fhadmin] SET AUTO_CLOSE OFF GO ALTER DATABASE [fhadmin] SET AUTO_CREATE_STATISTICS ON GO ALTER DATABASE [fhadmin] SET AUTO_SHRINK OFF GO ALTER DATABASE [fhadmin] SET AUTO_UPDATE_STATISTICS ON GO ALTER DATABASE [fhadmin] SET CURSOR_CLOSE_ON_COMMIT OFF GO ALTER DATABASE [fhadmin] SET CURSOR_DEFAULT GLOBAL GO ALTER DATABASE [fhadmin] SET CONCAT_NULL_YIELDS_NULL OFF GO ALTER DATABASE [fhadmin] SET NUMERIC_ROUNDABORT OFF GO ALTER DATABASE [fhadmin] SET QUOTED_IDENTIFIER OFF GO ALTER DATABASE [fhadmin] SET RECURSIVE_TRIGGERS OFF GO ALTER DATABASE [fhadmin] SET DISABLE_BROKER GO ALTER DATABASE [fhadmin] SET AUTO_UPDATE_STATISTICS_ASYNC OFF GO ALTER DATABASE [fhadmin] SET DATE_CORRELATION_OPTIMIZATION OFF GO ALTER DATABASE [fhadmin] SET TRUSTWORTHY OFF GO ALTER DATABASE [fhadmin] SET ALLOW_SNAPSHOT_ISOLATION OFF GO ALTER DATABASE [fhadmin] SET PARAMETERIZATION SIMPLE GO ALTER DATABASE [fhadmin] SET READ_COMMITTED_SNAPSHOT OFF GO ALTER DATABASE [fhadmin] SET HONOR_BROKER_PRIORITY OFF GO ALTER DATABASE [fhadmin] SET RECOVERY FULL GO ALTER DATABASE [fhadmin] SET MULTI_USER GO ALTER DATABASE [fhadmin] SET PAGE_VERIFY CHECKSUM GO ALTER DATABASE [fhadmin] SET DB_CHAINING OFF GO ALTER DATABASE [fhadmin] SET FILESTREAM( NON_TRANSACTED_ACCESS = OFF ) GO ALTER DATABASE [fhadmin] SET TARGET_RECOVERY_TIME = 0 SECONDS GO EXEC sys.sp_db_vardecimal_storage_format N'fhadmin', N'ON' GO USE [fhadmin] GO /****** Object: Table [dbo].[FH_TESTFH] Script Date: 2016/2/4 11:00:37 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE TABLE [dbo].[FH_TESTFH]( [TESTFH_ID] [nvarchar](100) NOT NULL, [NAME] [nvarchar](255) NULL, [AGE] [int] NOT NULL, [BIRTHDAY] [nvarchar](32) NULL, PRIMARY KEY CLUSTERED ( [TESTFH_ID] ASC )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO /****** Object: Table [dbo].[sys_app_user] Script Date: 2016/2/4 11:00:37 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE TABLE [dbo].[sys_app_user]( [USER_ID] [nvarchar](100) NOT NULL, [USERNAME] [nvarchar](255) NULL, [PASSWORD] [nvarchar](255) NULL, [NAME] [nvarchar](255) NULL, [RIGHTS] [nvarchar](255) NULL, [ROLE_ID] [nvarchar](100) NULL, [LAST_LOGIN] [nvarchar](255) NULL, [IP] [nvarchar](100) NULL, [STATUS] [nvarchar](32) NULL, [BZ] [nvarchar](255) NULL, [PHONE] [nvarchar](100) NULL, [SFID] [nvarchar](100) NULL, [START_TIME] [nvarchar](100) NULL, [END_TIME] [nvarchar](100) NULL, [YEARS] [int] NULL, [NUMBER] [nvarchar](100) NULL, [EMAIL] [nvarchar](32) NULL, PRIMARY KEY CLUSTERED ( [USER_ID] ASC )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO /****** Object: Table [dbo].[sys_createcode] Script Date: 2016/2/4 11:00:37 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE TABLE [dbo].[sys_createcode]( [CREATECODE_ID] [nvarchar](100) NOT NULL, [PACKAGENAME] [nvarchar](50) NULL, [OBJECTNAME] [nvarchar](50) NULL, [TABLENAME] [nvarchar](50) NULL, [FIELDLIST] [nvarchar](4000) NULL, [CREATETIME] [nvarchar](100) NULL, [TITLE] [nvarchar](255) NULL, PRIMARY KEY CLUSTERED ( [CREATECODE_ID] ASC )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO /****** Object: Table [dbo].[sys_department] Script Date: 2016/2/4 11:00:37 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE TABLE [dbo].[sys_department]( [DEPARTMENT_ID] [nvarchar](100) NOT NULL, [NAME] [nvarchar](30) NULL, [NAME_EN] [nvarchar](50) NULL, [BIANMA] [nvarchar](50) NULL, [PARENT_ID] [nvarchar](100) NULL, [BZ] [nvarchar](255) NULL, [HEADMAN] [nvarchar](30) NULL, [TEL] [nvarchar](50) NULL, [FUNCTIONS] [nvarchar](255) NULL, [ADDRESS] [nvarchar](255) NULL, PRIMARY KEY CLUSTERED ( [DEPARTMENT_ID] ASC )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO /****** Object: Table [dbo].[sys_dictionaries] Script Date: 2016/2/4 11:00:37 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE TABLE [dbo].[sys_dictionaries]( [DICTIONARIES_ID] [nvarchar](100) NOT NULL, [NAME] [nvarchar](30) NULL, [NAME_EN] [nvarchar](50) NULL, [BIANMA] [nvarchar](50) NULL, [ORDER_BY] [int] NOT NULL, [PARENT_ID] [nvarchar](100) NULL, [BZ] [nvarchar](255) NULL, [TBSNAME] [nvarchar](100) NULL, PRIMARY KEY CLUSTERED ( [DICTIONARIES_ID] ASC )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO /****** Object: Table [dbo].[sys_fhbutton] Script Date: 2016/2/4 11:00:37 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE TABLE [dbo].[sys_fhbutton]( [FHBUTTON_ID] [nvarchar](100) NOT NULL, [NAME] [nvarchar](30) NULL, [QX_NAME] [nvarchar](50) NULL, [BZ] [nvarchar](255) NULL, PRIMARY KEY CLUSTERED ( [FHBUTTON_ID] ASC )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO /****** Object: Table [dbo].[sys_fhsms] Script Date: 2016/2/4 11:00:37 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE TABLE [dbo].[sys_fhsms]( [FHSMS_ID] [nvarchar](100) NOT NULL, [CONTENT] [nvarchar](1000) NULL, [TYPE] [nvarchar](5) NULL, [TO_USERNAME] [nvarchar](255) NULL, [FROM_USERNAME] [nvarchar](255) NULL, [SEND_TIME] [nvarchar](100) NULL, [STATUS] [nvarchar](5) NULL, [SANME_ID] [nvarchar](100) NULL, PRIMARY KEY CLUSTERED ( [FHSMS_ID] ASC )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO /****** Object: Table [dbo].[sys_menu] Script Date: 2016/2/4 11:00:37 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE TABLE [dbo].[sys_menu]( [MENU_ID] [int] NOT NULL, [MENU_NAME] [nvarchar](255) NULL, [MENU_URL] [nvarchar](255) NULL, [PARENT_ID] [nvarchar](100) NULL, [MENU_ORDER] [nvarchar](100) NULL, [MENU_ICON] [nvarchar](60) NULL, [MENU_TYPE] [nvarchar](10) NULL, [MENU_STATE] [int] NULL, PRIMARY KEY CLUSTERED ( [MENU_ID] ASC )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO /****** Object: Table [dbo].[sys_role] Script Date: 2016/2/4 11:00:37 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE TABLE [dbo].[sys_role]( [ROLE_ID] [nvarchar](100) NOT NULL, [ROLE_NAME] [nvarchar](100) NULL, [RIGHTS] [nvarchar](255) NULL, [PARENT_ID] [nvarchar](100) NULL, [ADD_QX] [nvarchar](255) NULL, [DEL_QX] [nvarchar](255) NULL, [EDIT_QX] [nvarchar](255) NULL, [CHA_QX] [nvarchar](255) NULL, PRIMARY KEY CLUSTERED ( [ROLE_ID] ASC )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO /****** Object: Table [dbo].[sys_role_fhbutton] Script Date: 2016/2/4 11:00:37 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE TABLE [dbo].[sys_role_fhbutton]( [RB_ID] [nvarchar](100) NOT NULL, [ROLE_ID] [nvarchar](100) NULL, [BUTTON_ID] [nvarchar](100) NULL, PRIMARY KEY CLUSTERED ( [RB_ID] ASC )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO /****** Object: Table [dbo].[sys_user] Script Date: 2016/2/4 11:00:37 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO SET ANSI_PADDING ON GO CREATE TABLE [dbo].[sys_user]( [USER_ID] [char](32) NOT NULL, [USERNAME] [nvarchar](100) NULL, [PASSWORD] [nvarchar](100) NULL, [NAME] [nvarchar](100) NULL, [RIGHTS] [nvarchar](255) NULL, [ROLE_ID] [nvarchar](100) NULL, [LAST_LOGIN] [nvarchar](100) NULL, [IP] [nvarchar](15) NULL, [STATUS] [nvarchar](32) NULL, [BZ] [nvarchar](255) NULL, [SKIN] [nvarchar](100) NULL, [EMAIL] [nvarchar](50) NULL, [NUMBER] [nvarchar](100) NULL, [PHONE] [nvarchar](100) NULL, CONSTRAINT [PK_sys_user] PRIMARY KEY CLUSTERED ( [USER_ID] ASC )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO SET ANSI_PADDING OFF GO /****** Object: Table [dbo].[tb_pictures] Script Date: 2016/2/4 11:00:37 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE TABLE [dbo].[tb_pictures]( [PICTURES_ID] [nvarchar](100) NOT NULL, [TITLE] [nvarchar](255) NULL, [NAME] [nvarchar](255) NULL, [PATH] [nvarchar](255) NULL, [CREATETIME] [nvarchar](100) NULL, [MASTER_ID] [nvarchar](255) NULL, [BZ] [nvarchar](255) NULL, PRIMARY KEY CLUSTERED ( [PICTURES_ID] ASC )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO /****** Object: Table [dbo].[weixin_command] Script Date: 2016/2/4 11:00:37 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE TABLE [dbo].[weixin_command]( [COMMAND_ID] [nvarchar](100) NOT NULL, [KEYWORD] [nvarchar](255) NULL, [COMMANDCODE] [nvarchar](255) NULL, [CREATETIME] [nvarchar](255) NULL, [STATUS] [int] NOT NULL, [BZ] [nvarchar](255) NULL, PRIMARY KEY CLUSTERED ( [COMMAND_ID] ASC )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO /****** Object: Table [dbo].[weixin_imgmsg] Script Date: 2016/2/4 11:00:37 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE TABLE [dbo].[weixin_imgmsg]( [IMGMSG_ID] [nvarchar](100) NOT NULL, [KEYWORD] [nvarchar](255) NULL, [CREATETIME] [nvarchar](100) NULL, [STATUS] [int] NOT NULL, [BZ] [nvarchar](255) NULL, [TITLE1] [nvarchar](255) NULL, [DESCRIPTION1] [nvarchar](255) NULL, [IMGURL1] [nvarchar](255) NULL, [TOURL1] [nvarchar](255) NULL, [TITLE2] [nvarchar](255) NULL, [DESCRIPTION2] [nvarchar](255) NULL, [IMGURL2] [nvarchar](255) NULL, [TOURL2] [nvarchar](255) NULL, [TITLE3] [nvarchar](255) NULL, [DESCRIPTION3] [nvarchar](255) NULL, [IMGURL3] [nvarchar](255) NULL, [TOURL3] [nvarchar](255) NULL, [TITLE4] [nvarchar](255) NULL, [DESCRIPTION4] [nvarchar](255) NULL, [IMGURL4] [nvarchar](255) NULL, [TOURL4] [nvarchar](255) NULL, [TITLE5] [nvarchar](255) NULL, [DESCRIPTION5] [nvarchar](255) NULL, [IMGURL5] [nvarchar](255) NULL, [TOURL5] [nvarchar](255) NULL, [TITLE6] [nvarchar](255) NULL, [DESCRIPTION6] [nvarchar](255) NULL, [IMGURL6] [nvarchar](255) NULL, [TOURL6] [nvarchar](255) NULL, [TITLE7] [nvarchar](255) NULL, [DESCRIPTION7] [nvarchar](255) NULL, [IMGURL7] [nvarchar](255) NULL, [TOURL7] [nvarchar](255) NULL, [TITLE8] [nvarchar](255) NULL, [DESCRIPTION8] [nvarchar](255) NULL, [IMGURL8] [nvarchar](255) NULL, [TOURL8] [nvarchar](255) NULL, PRIMARY KEY CLUSTERED ( [IMGMSG_ID] ASC )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO /****** Object: Table [dbo].[weixin_textmsg] Script Date: 2016/2/4 11:00:37 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE TABLE [dbo].[weixin_textmsg]( [TEXTMSG_ID] [nvarchar](100) NOT NULL, [KEYWORD] [nvarchar](255) NULL, [CONTENT] [nvarchar](255) NULL, [CREATETIME] [nvarchar](100) NULL, [STATUS] [int] NULL, [BZ] [nvarchar](255) NULL, PRIMARY KEY CLUSTERED ( [TEXTMSG_ID] ASC )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO INSERT [dbo].[sys_app_user] ([USER_ID], [USERNAME], [PASSWORD], [NAME], [RIGHTS], [ROLE_ID], [LAST_LOGIN], [IP], [STATUS], [BZ], [PHONE], [SFID], [START_TIME], [END_TIME], [YEARS], [NUMBER], [EMAIL]) VALUES (N'1e89e6504be349a68c025976b3ecc1d1', N'a1', N'698d51a19d8a121ce581499d7b701668', N'会员甲', N'', N'115b386ff04f4352b060dffcd2b5d1da', N'', N'', N'1', N'121', N'1212', N'1212', N'2015-12-02', N'2015-12-25', 2, N'111', N'313596790@qq.com') INSERT [dbo].[sys_app_user] ([USER_ID], [USERNAME], [PASSWORD], [NAME], [RIGHTS], [ROLE_ID], [LAST_LOGIN], [IP], [STATUS], [BZ], [PHONE], [SFID], [START_TIME], [END_TIME], [YEARS], [NUMBER], [EMAIL]) VALUES (N'ead1f56708e4409c8d071e0a699e5633', N'a2', N'bcbe3365e6ac95ea2c0343a2395834dd', N'会员乙', N'', N'1b67fc82ce89457a8347ae53e43a347e', N'', N'', N'0', N'', N'', N'', N'2015-12-01', N'2015-12-24', 1, N'121', N'978336446@qq.com') INSERT [dbo].[sys_createcode] ([CREATECODE_ID], [PACKAGENAME], [OBJECTNAME], [TABLENAME], [FIELDLIST], [CREATETIME], [TITLE]) VALUES (N'002ea762e3e242a7a10ea5ca633701d8', N'system', N'Buttonrights', N'sys_,fh,BUTTONRIGHTS', N'NAME,fh,String,fh,名称,fh,是,fh,无,fh,255Q313596790', N'2016-01-16 23:20:36', N'按钮权限') INSERT [dbo].[sys_createcode] ([CREATECODE_ID], [PACKAGENAME], [OBJECTNAME], [TABLENAME], [FIELDLIST], [CREATETIME], [TITLE]) VALUES (N'11c0f9b57ec94cefa21d58ed5c6161ae', N'system', N'Testfh', N'FH_,fh,TESTFH', N'NAME,fh,String,fh,姓名,fh,是,fh,无,fh,255Q313596790AGE,fh,Integer,fh,年龄,fh,是,fh,无,fh,11Q313596790BIRTHDAY,fh,Date,fh,生日,fh,是,fh,无,fh,32Q313596790', N'2016-02-01 15:45:18', N'测试') INSERT [dbo].[sys_createcode] ([CREATECODE_ID], [PACKAGENAME], [OBJECTNAME], [TABLENAME], [FIELDLIST], [CREATETIME], [TITLE]) VALUES (N'c7586f931fd44c61beccd3248774c68c', N'system', N'Department', N'SYS_,fh,DEPARTMENT', N'NAME,fh,String,fh,名称,fh,是,fh,无,fh,30Q313596790NAME_EN,fh,String,fh,英文,fh,是,fh,无,fh,50Q313596790BIANMA,fh,String,fh,编码,fh,是,fh,无,fh,50Q313596790PARENT_ID,fh,String,fh,上级ID,fh,否,fh,无,fh,100Q313596790BZ,fh,String,fh,备注,fh,是,fh,无,fh,255Q313596790HEADMAN,fh,String,fh,负责人,fh,是,fh,无,fh,30Q313596790TEL,fh,String,fh,电话,fh,是,fh,无,fh,50Q313596790FUNCTIONS,fh,String,fh,部门职能,fh,是,fh,无,fh,255Q313596790ADDRESS,fh,String,fh,地址,fh,是,fh,无,fh,255Q313596790', N'2015-12-20 01:49:25', N'组织机构') INSERT [dbo].[sys_createcode] ([CREATECODE_ID], [PACKAGENAME], [OBJECTNAME], [TABLENAME], [FIELDLIST], [CREATETIME], [TITLE]) VALUES (N'dbd7b8330d774dcabd184eca8668a295', N'system', N'Fhsms', N'SYS_,fh,FHSMS', N'CONTENT,fh,String,fh,内容,fh,是,fh,无,fh,1000Q313596790TYPE,fh,String,fh,类型,fh,否,fh,无,fh,5Q313596790TO_USERNAME,fh,String,fh,收信人,fh,是,fh,无,fh,255Q313596790FROM_USERNAME,fh,String,fh,发信人,fh,是,fh,无,fh,255Q313596790SEND_TIME,fh,String,fh,发信时间,fh,是,fh,无,fh,100Q313596790STATUS,fh,String,fh,状态,fh,否,fh,无,fh,5Q313596790SANME_ID,fh,String,fh,共同ID,fh,是,fh,无,fh,100Q313596790', N'2016-01-23 01:44:15', N'站内信') INSERT [dbo].[sys_createcode] ([CREATECODE_ID], [PACKAGENAME], [OBJECTNAME], [TABLENAME], [FIELDLIST], [CREATETIME], [TITLE]) VALUES (N'fe239f8742194481a5b56f90cad71520', N'system', N'Fhbutton', N'SYS_,fh,FHBUTTON', N'NAME,fh,String,fh,名称,fh,是,fh,无,fh,30Q313596790QX_NAME,fh,String,fh,权限标识,fh,是,fh,无,fh,50Q313596790BZ,fh,String,fh,备注,fh,是,fh,无,fh,255Q313596790', N'2016-01-15 18:38:40', N'按钮管理') INSERT [dbo].[sys_department] ([DEPARTMENT_ID], [NAME], [NAME_EN], [BIANMA], [PARENT_ID], [BZ], [HEADMAN], [TEL], [FUNCTIONS], [ADDRESS]) VALUES (N'0956d8c279274fca92f4091f2a69a9ad', N'销售会计', N'xiaokuai', N'05896', N'd41af567914a409893d011aa53eda797', N'', N'', N'', N'', N'') INSERT [dbo].[sys_department] ([DEPARTMENT_ID], [NAME], [NAME_EN], [BIANMA], [PARENT_ID], [BZ], [HEADMAN], [TEL], [FUNCTIONS], [ADDRESS]) VALUES (N'3e7227e11dc14b4d9e863dd1a1fcedf6', N'成本会计', N'chengb', N'03656', N'd41af567914a409893d011aa53eda797', N'', N'', N'', N'', N'') INSERT [dbo].[sys_department] ([DEPARTMENT_ID], [NAME], [NAME_EN], [BIANMA], [PARENT_ID], [BZ], [HEADMAN], [TEL], [FUNCTIONS], [ADDRESS]) VALUES (N'5cccdb7c432449d8b853c52880058140', N'B公司', N'b', N'002', N'0', N'冶铁', N'李四', N'112', N'冶铁', N'河北') INSERT [dbo].[sys_department] ([DEPARTMENT_ID], [NAME], [NAME_EN], [BIANMA], [PARENT_ID], [BZ], [HEADMAN], [TEL], [FUNCTIONS], [ADDRESS]) VALUES (N'83a25761c618457cae2fa1211bd8696d', N'销售B组', N'xiaob', N'002365', N'cbbc84eddde947ba8af7d509e430eb70', N'', N'李四', N'', N'', N'') INSERT [dbo].[sys_department] ([DEPARTMENT_ID], [NAME], [NAME_EN], [BIANMA], [PARENT_ID], [BZ], [HEADMAN], [TEL], [FUNCTIONS], [ADDRESS]) VALUES (N'8f8b045470f342fdbc4c312ab881d62b', N'销售A组', N'xiaoA', N'0326', N'cbbc84eddde947ba8af7d509e430eb70', N'', N'张三', N'0201212', N'', N'') INSERT [dbo].[sys_department] ([DEPARTMENT_ID], [NAME], [NAME_EN], [BIANMA], [PARENT_ID], [BZ], [HEADMAN], [TEL], [FUNCTIONS], [ADDRESS]) VALUES (N'a0982dea52554225ab682cd4b421de47', N'1队', N'yidui', N'02563', N'8f8b045470f342fdbc4c312ab881d62b', N'', N'小王', N'12356989', N'', N'') INSERT [dbo].[sys_department] ([DEPARTMENT_ID], [NAME], [NAME_EN], [BIANMA], [PARENT_ID], [BZ], [HEADMAN], [TEL], [FUNCTIONS], [ADDRESS]) VALUES (N'a6c6695217ba4a4dbfe9f7e9d2c06730', N'A公司', N'a', N'001', N'0', N'挖煤', N'张三', N'110', N'洼煤矿', N'山西') INSERT [dbo].[sys_department] ([DEPARTMENT_ID], [NAME], [NAME_EN], [BIANMA], [PARENT_ID], [BZ], [HEADMAN], [TEL], [FUNCTIONS], [ADDRESS]) VALUES (N'cbbc84eddde947ba8af7d509e430eb70', N'销售部', N'xiaoshoubu', N'00201', N'5cccdb7c432449d8b853c52880058140', N'推销商品', N'小明', N'11236', N'推销商品', N'909办公室') INSERT [dbo].[sys_department] ([DEPARTMENT_ID], [NAME], [NAME_EN], [BIANMA], [PARENT_ID], [BZ], [HEADMAN], [TEL], [FUNCTIONS], [ADDRESS]) VALUES (N'd41af567914a409893d011aa53eda797', N'财务部', N'caiwubu', N'00101', N'a6c6695217ba4a4dbfe9f7e9d2c06730', N'负责发工资', N'王武', N'11236', N'管理财务', N'308办公室') INSERT [dbo].[sys_dictionaries] ([DICTIONARIES_ID], [NAME], [NAME_EN], [BIANMA], [ORDER_BY], [PARENT_ID], [BZ], [TBSNAME]) VALUES (N'096e4ec8986149d994b09e604504e38d', N'黄浦区', N'huangpu', N'0030201', 1, N'f1ea30ddef1340609c35c88fb2919bee', N'黄埔', N'') INSERT [dbo].[sys_dictionaries] ([DICTIONARIES_ID], [NAME], [NAME_EN], [BIANMA], [ORDER_BY], [PARENT_ID], [BZ], [TBSNAME]) VALUES (N'12a62a3e5bed44bba0412b7e6b733c93', N'北京', N'beijing', N'00301', 1, N'be4a8c5182c744d28282a5345783a77f', N'北京', N'') INSERT [dbo].[sys_dictionaries] ([DICTIONARIES_ID], [NAME], [NAME_EN], [BIANMA], [ORDER_BY], [PARENT_ID], [BZ], [TBSNAME]) VALUES (N'507fa87a49104c7c8cdb52fdb297da12', N'宣武区', N'xuanwuqu', N'0030101', 1, N'12a62a3e5bed44bba0412b7e6b733c93', N'宣武区', N'') INSERT [dbo].[sys_dictionaries] ([DICTIONARIES_ID], [NAME], [NAME_EN], [BIANMA], [ORDER_BY], [PARENT_ID], [BZ], [TBSNAME]) VALUES (N'8994f5995f474e2dba6cfbcdfe5ea07a', N'语文', N'yuwen', N'00201', 1, N'fce20eb06d7b4b4d8f200eda623f725c', N'语文', N'') INSERT [dbo].[sys_dictionaries] ([DICTIONARIES_ID], [NAME], [NAME_EN], [BIANMA], [ORDER_BY], [PARENT_ID], [BZ], [TBSNAME]) VALUES (N'8ea7c44af25f48b993a14f791c8d689f', N'分类', N'fenlei', N'001', 1, N'0', N'分类', N'') INSERT [dbo].[sys_dictionaries] ([DICTIONARIES_ID], [NAME], [NAME_EN], [BIANMA], [ORDER_BY], [PARENT_ID], [BZ], [TBSNAME]) VALUES (N'be4a8c5182c744d28282a5345783a77f', N'地区', N'diqu', N'003', 3, N'0', N'地区', N'') INSERT [dbo].[sys_dictionaries] ([DICTIONARIES_ID], [NAME], [NAME_EN], [BIANMA], [ORDER_BY], [PARENT_ID], [BZ], [TBSNAME]) VALUES (N'd428594b0494476aa7338d9061e23ae3', N'红色', N'red', N'00101', 1, N'8ea7c44af25f48b993a14f791c8d689f', N'红色', N'') INSERT [dbo].[sys_dictionaries] ([DICTIONARIES_ID], [NAME], [NAME_EN], [BIANMA], [ORDER_BY], [PARENT_ID], [BZ], [TBSNAME]) VALUES (N'de9afadfbed0428fa343704d6acce2c4', N'绿色', N'green', N'00102', 2, N'8ea7c44af25f48b993a14f791c8d689f', N'绿色', N'') INSERT [dbo].[sys_dictionaries] ([DICTIONARIES_ID], [NAME], [NAME_EN], [BIANMA], [ORDER_BY], [PARENT_ID], [BZ], [TBSNAME]) VALUES (N'f1ea30ddef1340609c35c88fb2919bee', N'上海', N'shanghai', N'00302', 2, N'be4a8c5182c744d28282a5345783a77f', N'上海', N'') INSERT [dbo].[sys_dictionaries] ([DICTIONARIES_ID], [NAME], [NAME_EN], [BIANMA], [ORDER_BY], [PARENT_ID], [BZ], [TBSNAME]) VALUES (N'fce20eb06d7b4b4d8f200eda623f725c', N'课程', N'kecheng', N'002', 2, N'0', N'课程', N'') INSERT [dbo].[sys_fhbutton] ([FHBUTTON_ID], [NAME], [QX_NAME], [BZ]) VALUES (N'3542adfbda73410c976e185ffe50ad06', N'导出EXCEL', N'toExcel', N'导出EXCEL') INSERT [dbo].[sys_fhbutton] ([FHBUTTON_ID], [NAME], [QX_NAME], [BZ]) VALUES (N'46992ea280ba4b72b29dedb0d4bc0106', N'发邮件', N'email', N'发送电子邮件') INSERT [dbo].[sys_fhbutton] ([FHBUTTON_ID], [NAME], [QX_NAME], [BZ]) VALUES (N'4efa162fce8340f0bd2dcd3b11d327ec', N'导入EXCEL', N'FromExcel', N'导入EXCEL到系统用户') INSERT [dbo].[sys_fhbutton] ([FHBUTTON_ID], [NAME], [QX_NAME], [BZ]) VALUES (N'cc51b694d5344d28a9aa13c84b7166cd', N'发短信', N'sms', N'发送短信') INSERT [dbo].[sys_fhbutton] ([FHBUTTON_ID], [NAME], [QX_NAME], [BZ]) VALUES (N'da7fd386de0b49ce809984f5919022b8', N'站内信', N'FHSMS', N'发送站内信') INSERT [dbo].[sys_fhsms] ([FHSMS_ID], [CONTENT], [TYPE], [TO_USERNAME], [FROM_USERNAME], [SEND_TIME], [STATUS], [SANME_ID]) VALUES (N'05879f5868824f35932ee9f2062adc03', N'你好', N'2', N'admin', N'san', N'2016-01-25 14:05:31', N'1', N'b311e893228f42d5a05dbe16917fd16f') INSERT [dbo].[sys_fhsms] ([FHSMS_ID], [CONTENT], [TYPE], [TO_USERNAME], [FROM_USERNAME], [SEND_TIME], [STATUS], [SANME_ID]) VALUES (N'2635dd035c6f4bb5a091abdd784bd899', N'你好', N'2', N'san', N'admin', N'2016-01-25 14:05:02', N'2', N'1b7637306683460f89174c2b025862b5') INSERT [dbo].[sys_fhsms] ([FHSMS_ID], [CONTENT], [TYPE], [TO_USERNAME], [FROM_USERNAME], [SEND_TIME], [STATUS], [SANME_ID]) VALUES (N'52378ccd4e2d4fe08994d1652af87c68', N'你好', N'1', N'admin', N'san', N'2016-01-25 16:26:44', N'1', N'920b20dafdfb4c09b560884eb277c51d') INSERT [dbo].[sys_fhsms] ([FHSMS_ID], [CONTENT], [TYPE], [TO_USERNAME], [FROM_USERNAME], [SEND_TIME], [STATUS], [SANME_ID]) VALUES (N'77ed13f9c49a4c4bb460c41b8580dd36', N'gggg', N'2', N'admin', N'san', N'2016-01-24 21:22:43', N'2', N'dd9ee339576e48c5b046b94fa1901d00') INSERT [dbo].[sys_fhsms] ([FHSMS_ID], [CONTENT], [TYPE], [TO_USERNAME], [FROM_USERNAME], [SEND_TIME], [STATUS], [SANME_ID]) VALUES (N'98a6869f942042a1a037d9d9f01cb50f', N'你好', N'1', N'admin', N'san', N'2016-01-25 14:05:02', N'2', N'1b7637306683460f89174c2b025862b5') INSERT [dbo].[sys_fhsms] ([FHSMS_ID], [CONTENT], [TYPE], [TO_USERNAME], [FROM_USERNAME], [SEND_TIME], [STATUS], [SANME_ID]) VALUES (N'9e00295529014b6e8a27019cbccb3da1', N'柔柔弱弱', N'1', N'admin', N'san', N'2016-01-24 21:22:57', N'1', N'a29603d613ea4e54b5678033c1bf70a6') INSERT [dbo].[sys_fhsms] ([FHSMS_ID], [CONTENT], [TYPE], [TO_USERNAME], [FROM_USERNAME], [SEND_TIME], [STATUS], [SANME_ID]) VALUES (N'd3aedeb430f640359bff86cd657a8f59', N'你好', N'1', N'admin', N'san', N'2016-01-24 21:22:12', N'1', N'f022fbdce3d845aba927edb698beb90b') INSERT [dbo].[sys_fhsms] ([FHSMS_ID], [CONTENT], [TYPE], [TO_USERNAME], [FROM_USERNAME], [SEND_TIME], [STATUS], [SANME_ID]) VALUES (N'e5376b1bd54b489cb7f2203632bd74ec', N'管理员好', N'2', N'admin', N'san', N'2016-01-25 14:06:13', N'2', N'b347b2034faf43c79b54be4627f3bd2b') INSERT [dbo].[sys_fhsms] ([FHSMS_ID], [CONTENT], [TYPE], [TO_USERNAME], [FROM_USERNAME], [SEND_TIME], [STATUS], [SANME_ID]) VALUES (N'e613ac0fcc454f32895a70b747bf4fb5', N'你也好', N'2', N'admin', N'san', N'2016-01-25 16:27:54', N'2', N'ce8dc3b15afb40f28090f8b8e13f078d') INSERT [dbo].[sys_fhsms] ([FHSMS_ID], [CONTENT], [TYPE], [TO_USERNAME], [FROM_USERNAME], [SEND_TIME], [STATUS], [SANME_ID]) VALUES (N'f25e00cfafe741a3a05e3839b66dc7aa', N'你好', N'2', N'san', N'admin', N'2016-01-25 16:26:44', N'1', N'920b20dafdfb4c09b560884eb277c51d') INSERT [dbo].[sys_menu] ([MENU_ID], [MENU_NAME], [MENU_URL], [PARENT_ID], [MENU_ORDER], [MENU_ICON], [MENU_TYPE], [MENU_STATE]) VALUES (1, N'系统管理', N'#', N'0', N'1', N'menu-icon fa fa-desktop blue', N'2', 1) INSERT [dbo].[sys_menu] ([MENU_ID], [MENU_NAME], [MENU_URL], [PARENT_ID], [MENU_ORDER], [MENU_ICON], [MENU_TYPE], [MENU_STATE]) VALUES (2, N'权限管理', N'#', N'1', N'1', N'menu-icon fa fa-lock black', N'1', 1) INSERT [dbo].[sys_menu] ([MENU_ID], [MENU_NAME], [MENU_URL], [PARENT_ID], [MENU_ORDER], [MENU_ICON], [MENU_TYPE], [MENU_STATE]) VALUES (6, N'信息管理', N'#', N'0', N'5', N'menu-icon fa fa-credit-card green', N'2', 1) INSERT [dbo].[sys_menu] ([MENU_ID], [MENU_NAME], [MENU_URL], [PARENT_ID], [MENU_ORDER], [MENU_ICON], [MENU_TYPE], [MENU_STATE]) VALUES (7, N'图片管理', N'pictures/list.do', N'6', N'1', N'menu-icon fa fa-folder-o pink', N'2', 1) INSERT [dbo].[sys_menu] ([MENU_ID], [MENU_NAME], [MENU_URL], [PARENT_ID], [MENU_ORDER], [MENU_ICON], [MENU_TYPE], [MENU_STATE]) VALUES (8, N'性能监控', N'druid/index.html', N'9', N'1', N'menu-icon fa fa-tachometer red', N'1', 1) INSERT [dbo].[sys_menu] ([MENU_ID], [MENU_NAME], [MENU_URL], [PARENT_ID], [MENU_ORDER], [MENU_ICON], [MENU_TYPE], [MENU_STATE]) VALUES (9, N'系统工具', N'#', N'0', N'3', N'menu-icon fa fa-cog black', N'2', 1) INSERT [dbo].[sys_menu] ([MENU_ID], [MENU_NAME], [MENU_URL], [PARENT_ID], [MENU_ORDER], [MENU_ICON], [MENU_TYPE], [MENU_STATE]) VALUES (10, N'接口测试', N'tool/interfaceTest.do', N'9', N'2', N'menu-icon fa fa-exchange green', N'1', 1) INSERT [dbo].[sys_menu] ([MENU_ID], [MENU_NAME], [MENU_URL], [PARENT_ID], [MENU_ORDER], [MENU_ICON], [MENU_TYPE], [MENU_STATE]) VALUES (11, N'发送邮件', N'tool/goSendEmail.do', N'9', N'3', N'menu-icon fa fa-envelope-o green', N'1', 1) INSERT [dbo].[sys_menu] ([MENU_ID], [MENU_NAME], [MENU_URL], [PARENT_ID], [MENU_ORDER], [MENU_ICON], [MENU_TYPE], [MENU_STATE]) VALUES (12, N'置二维码', N'tool/goTwoDimensionCode.do', N'9', N'4', N'menu-icon fa fa-barcode green', N'1', 1) INSERT [dbo].[sys_menu] ([MENU_ID], [MENU_NAME], [MENU_URL], [PARENT_ID], [MENU_ORDER], [MENU_ICON], [MENU_TYPE], [MENU_STATE]) VALUES (14, N'地图工具', N'tool/map.do', N'9', N'6', N'menu-icon fa fa-globe black', N'1', 1) INSERT [dbo].[sys_menu] ([MENU_ID], [MENU_NAME], [MENU_URL], [PARENT_ID], [MENU_ORDER], [MENU_ICON], [MENU_TYPE], [MENU_STATE]) VALUES (15, N'微信管理', N'#', N'0', N'4', N'menu-icon fa fa-comments purple', N'2', 1) INSERT [dbo].[sys_menu] ([MENU_ID], [MENU_NAME], [MENU_URL], [PARENT_ID], [MENU_ORDER], [MENU_ICON], [MENU_TYPE], [MENU_STATE]) VALUES (16, N'文本回复', N'textmsg/list.do', N'15', N'2', N'menu-icon fa fa-comment green', N'2', 1) INSERT [dbo].[sys_menu] ([MENU_ID], [MENU_NAME], [MENU_URL], [PARENT_ID], [MENU_ORDER], [MENU_ICON], [MENU_TYPE], [MENU_STATE]) VALUES (17, N'应用命令', N'command/list.do', N'15', N'4', N'menu-icon fa fa-comment grey', N'2', 1) INSERT [dbo].[sys_menu] ([MENU_ID], [MENU_NAME], [MENU_URL], [PARENT_ID], [MENU_ORDER], [MENU_ICON], [MENU_TYPE], [MENU_STATE]) VALUES (18, N'图文回复', N'imgmsg/list.do', N'15', N'3', N'menu-icon fa fa-comment pink', N'2', 1) INSERT [dbo].[sys_menu] ([MENU_ID], [MENU_NAME], [MENU_URL], [PARENT_ID], [MENU_ORDER], [MENU_ICON], [MENU_TYPE], [MENU_STATE]) VALUES (19, N'关注回复', N'textmsg/goSubscribe.do', N'15', N'1', N'menu-icon fa fa-comment orange', N'2', 1) INSERT [dbo].[sys_menu] ([MENU_ID], [MENU_NAME], [MENU_URL], [PARENT_ID], [MENU_ORDER], [MENU_ICON], [MENU_TYPE], [MENU_STATE]) VALUES (20, N'在线管理', N'onlinemanager/list.do', N'1', N'6', N'menu-icon fa fa-laptop green', N'1', 1) INSERT [dbo].[sys_menu] ([MENU_ID], [MENU_NAME], [MENU_URL], [PARENT_ID], [MENU_ORDER], [MENU_ICON], [MENU_TYPE], [MENU_STATE]) VALUES (21, N'打印测试', N'tool/printTest.do', N'9', N'7', N'menu-icon fa fa-hdd-o grey', N'1', 1) INSERT [dbo].[sys_menu] ([MENU_ID], [MENU_NAME], [MENU_URL], [PARENT_ID], [MENU_ORDER], [MENU_ICON], [MENU_TYPE], [MENU_STATE]) VALUES (22, N'一级菜单', N'#', N'0', N'6', N'menu-icon fa fa-fire orange', N'2', 1) INSERT [dbo].[sys_menu] ([MENU_ID], [MENU_NAME], [MENU_URL], [PARENT_ID], [MENU_ORDER], [MENU_ICON], [MENU_TYPE], [MENU_STATE]) VALUES (23, N'二级菜单', N'#', N'22', N'1', N'menu-icon fa fa-leaf black', N'1', 1) INSERT [dbo].[sys_menu] ([MENU_ID], [MENU_NAME], [MENU_URL], [PARENT_ID], [MENU_ORDER], [MENU_ICON], [MENU_TYPE], [MENU_STATE]) VALUES (24, N'三级菜单', N'#', N'23', N'1', N'menu-icon fa fa-leaf black', N'1', 1) INSERT [dbo].[sys_menu] ([MENU_ID], [MENU_NAME], [MENU_URL], [PARENT_ID], [MENU_ORDER], [MENU_ICON], [MENU_TYPE], [MENU_STATE]) VALUES (30, N'四级菜单', N'#', N'24', N'1', N'menu-icon fa fa-leaf black', N'1', 1) INSERT [dbo].[sys_menu] ([MENU_ID], [MENU_NAME], [MENU_URL], [PARENT_ID], [MENU_ORDER], [MENU_ICON], [MENU_TYPE], [MENU_STATE]) VALUES (31, N'五级菜单1', N'#', N'30', N'1', N'menu-icon fa fa-leaf black', N'1', 1) INSERT [dbo].[sys_menu] ([MENU_ID], [MENU_NAME], [MENU_URL], [PARENT_ID], [MENU_ORDER], [MENU_ICON], [MENU_TYPE], [MENU_STATE]) VALUES (32, N'五级菜单2', N'#', N'30', N'2', N'menu-icon fa fa-leaf black', N'1', 1) INSERT [dbo].[sys_menu] ([MENU_ID], [MENU_NAME], [MENU_URL], [PARENT_ID], [MENU_ORDER], [MENU_ICON], [MENU_TYPE], [MENU_STATE]) VALUES (33, N'六级菜单', N'#', N'31', N'1', N'menu-icon fa fa-leaf black', N'1', 1) INSERT [dbo].[sys_menu] ([MENU_ID], [MENU_NAME], [MENU_URL], [PARENT_ID], [MENU_ORDER], [MENU_ICON], [MENU_TYPE], [MENU_STATE]) VALUES (34, N'六级菜单2', N'login_default.do', N'31', N'2', N'menu-icon fa fa-leaf black', N'1', 1) INSERT [dbo].[sys_menu] ([MENU_ID], [MENU_NAME], [MENU_URL], [PARENT_ID], [MENU_ORDER], [MENU_ICON], [MENU_TYPE], [MENU_STATE]) VALUES (35, N'四级菜单2', N'login_default.do', N'24', N'2', N'menu-icon fa fa-leaf black', N'1', 1) INSERT [dbo].[sys_menu] ([MENU_ID], [MENU_NAME], [MENU_URL], [PARENT_ID], [MENU_ORDER], [MENU_ICON], [MENU_TYPE], [MENU_STATE]) VALUES (36, N'角色(基础权限)', N'role.do', N'2', N'1', N'menu-icon fa fa-key orange', N'1', 1) INSERT [dbo].[sys_menu] ([MENU_ID], [MENU_NAME], [MENU_URL], [PARENT_ID], [MENU_ORDER], [MENU_ICON], [MENU_TYPE], [MENU_STATE]) VALUES (37, N'按钮权限', N'buttonrights/list.do', N'2', N'2', N'menu-icon fa fa-key green', N'1', 1) INSERT [dbo].[sys_menu] ([MENU_ID], [MENU_NAME], [MENU_URL], [PARENT_ID], [MENU_ORDER], [MENU_ICON], [MENU_TYPE], [MENU_STATE]) VALUES (38, N'菜单管理', N'menu/listAllMenu.do', N'1', N'3', N'menu-icon fa fa-folder-open-o brown', N'1', 1) INSERT [dbo].[sys_menu] ([MENU_ID], [MENU_NAME], [MENU_URL], [PARENT_ID], [MENU_ORDER], [MENU_ICON], [MENU_TYPE], [MENU_STATE]) VALUES (39, N'按钮管理', N'fhbutton/list.do', N'1', N'2', N'menu-icon fa fa-download orange', N'1', 1) INSERT [dbo].[sys_menu] ([MENU_ID], [MENU_NAME], [MENU_URL], [PARENT_ID], [MENU_ORDER], [MENU_ICON], [MENU_TYPE], [MENU_STATE]) VALUES (40, N'用户管理', N'#', N'0', N'2', N'menu-icon fa fa-users blue', N'2', 1) INSERT [dbo].[sys_menu] ([MENU_ID], [MENU_NAME], [MENU_URL], [PARENT_ID], [MENU_ORDER], [MENU_ICON], [MENU_TYPE], [MENU_STATE]) VALUES (41, N'系统用户', N'user/listUsers.do', N'40', N'1', N'menu-icon fa fa-users green', N'1', 1) INSERT [dbo].[sys_menu] ([MENU_ID], [MENU_NAME], [MENU_URL], [PARENT_ID], [MENU_ORDER], [MENU_ICON], [MENU_TYPE], [MENU_STATE]) VALUES (42, N'会员管理', N'happuser/listUsers.do', N'40', N'2', N'menu-icon fa fa-users orange', N'1', 1) INSERT [dbo].[sys_menu] ([MENU_ID], [MENU_NAME], [MENU_URL], [PARENT_ID], [MENU_ORDER], [MENU_ICON], [MENU_TYPE], [MENU_STATE]) VALUES (43, N'数据字典', N'dictionaries/listAllDict.do?DICTIONARIES_ID=0', N'1', N'4', N'menu-icon fa fa-book purple', N'1', 1) INSERT [dbo].[sys_menu] ([MENU_ID], [MENU_NAME], [MENU_URL], [PARENT_ID], [MENU_ORDER], [MENU_ICON], [MENU_TYPE], [MENU_STATE]) VALUES (44, N'代码生成', N'createCode/list.do', N'9', N'0', N'menu-icon fa fa-cogs brown', N'1', 1) INSERT [dbo].[sys_menu] ([MENU_ID], [MENU_NAME], [MENU_URL], [PARENT_ID], [MENU_ORDER], [MENU_ICON], [MENU_TYPE], [MENU_STATE]) VALUES (45, N'七级菜单1', N'#', N'33', N'1', N'menu-icon fa fa-leaf black', N'1', 1) INSERT [dbo].[sys_menu] ([MENU_ID], [MENU_NAME], [MENU_URL], [PARENT_ID], [MENU_ORDER], [MENU_ICON], [MENU_TYPE], [MENU_STATE]) VALUES (46, N'七级菜单2', N'#', N'33', N'2', N'menu-icon fa fa-leaf black', N'1', 1) INSERT [dbo].[sys_menu] ([MENU_ID], [MENU_NAME], [MENU_URL], [PARENT_ID], [MENU_ORDER], [MENU_ICON], [MENU_TYPE], [MENU_STATE]) VALUES (47, N'八级菜单', N'login_default.do', N'45', N'1', N'menu-icon fa fa-leaf black', N'1', 1) INSERT [dbo].[sys_menu] ([MENU_ID], [MENU_NAME], [MENU_URL], [PARENT_ID], [MENU_ORDER], [MENU_ICON], [MENU_TYPE], [MENU_STATE]) VALUES (48, N'图表报表', N' tool/fusionchartsdemo.do', N'9', N'5', N'menu-icon fa fa-bar-chart-o black', N'1', 1) INSERT [dbo].[sys_menu] ([MENU_ID], [MENU_NAME], [MENU_URL], [PARENT_ID], [MENU_ORDER], [MENU_ICON], [MENU_TYPE], [MENU_STATE]) VALUES (49, N'组织机构', N'department/listAllDepartment.do?DEPARTMENT_ID=0', N'1', N'5', N'menu-icon fa fa-users blue', N'1', 1) INSERT [dbo].[sys_menu] ([MENU_ID], [MENU_NAME], [MENU_URL], [PARENT_ID], [MENU_ORDER], [MENU_ICON], [MENU_TYPE], [MENU_STATE]) VALUES (50, N'站内信', N'fhsms/list.do', N'6', N'2', N'menu-icon fa fa-envelope green', N'1', 1) INSERT [dbo].[sys_role] ([ROLE_ID], [ROLE_NAME], [RIGHTS], [PARENT_ID], [ADD_QX], [DEL_QX], [EDIT_QX], [CHA_QX]) VALUES (N'1', N'系统管理组', N'4503598587174854', N'0', N'1', N'1', N'1', N'1') INSERT [dbo].[sys_role] ([ROLE_ID], [ROLE_NAME], [RIGHTS], [PARENT_ID], [ADD_QX], [DEL_QX], [EDIT_QX], [CHA_QX]) VALUES (N'115b386ff04f4352b060dffcd2b5d1da', N'中级会员', N'498', N'2', N'0', N'0', N'0', N'0') INSERT [dbo].[sys_role] ([ROLE_ID], [ROLE_NAME], [RIGHTS], [PARENT_ID], [ADD_QX], [DEL_QX], [EDIT_QX], [CHA_QX]) VALUES (N'1b67fc82ce89457a8347ae53e43a347e', N'初级会员', N'498', N'2', N'0', N'0', N'0', N'0') INSERT [dbo].[sys_role] ([ROLE_ID], [ROLE_NAME], [RIGHTS], [PARENT_ID], [ADD_QX], [DEL_QX], [EDIT_QX], [CHA_QX]) VALUES (N'2', N'会员组', N'498', N'0', N'0', N'0', N'0', N'1') INSERT [dbo].[sys_role] ([ROLE_ID], [ROLE_NAME], [RIGHTS], [PARENT_ID], [ADD_QX], [DEL_QX], [EDIT_QX], [CHA_QX]) VALUES (N'3264c8e83d0248bb9e3ea6195b4c0216', N'一级管理员', N'4503598587174854', N'1', N'2251798773489606', N'2251798773489606', N'1125898866646982', N'2251798773489606') INSERT [dbo].[sys_role] ([ROLE_ID], [ROLE_NAME], [RIGHTS], [PARENT_ID], [ADD_QX], [DEL_QX], [EDIT_QX], [CHA_QX]) VALUES (N'46294b31a71c4600801724a6eb06bb26', N'职位组', N'', N'0', N'0', N'0', N'0', N'0') INSERT [dbo].[sys_role] ([ROLE_ID], [ROLE_NAME], [RIGHTS], [PARENT_ID], [ADD_QX], [DEL_QX], [EDIT_QX], [CHA_QX]) VALUES (N'5466347ac07044cb8d82990ec7f3a90e', N'主管', N'', N'46294b31a71c4600801724a6eb06bb26', N'0', N'0', N'0', N'0') INSERT [dbo].[sys_role] ([ROLE_ID], [ROLE_NAME], [RIGHTS], [PARENT_ID], [ADD_QX], [DEL_QX], [EDIT_QX], [CHA_QX]) VALUES (N'68f8e4a39efe47c7bb869e9d15ab925d', N'二级管理员', N'4503598587174854', N'1', N'0', N'0', N'2251798773489606', N'0') INSERT [dbo].[sys_role] ([ROLE_ID], [ROLE_NAME], [RIGHTS], [PARENT_ID], [ADD_QX], [DEL_QX], [EDIT_QX], [CHA_QX]) VALUES (N'856849f422774ad390a4e564054d8cc8', N'经理', N'', N'46294b31a71c4600801724a6eb06bb26', N'0', N'0', N'0', N'0') INSERT [dbo].[sys_role] ([ROLE_ID], [ROLE_NAME], [RIGHTS], [PARENT_ID], [ADD_QX], [DEL_QX], [EDIT_QX], [CHA_QX]) VALUES (N'8b70a7e67f2841e7aaba8a4d92e5ff6f', N'高级会员', N'498', N'2', N'0', N'0', N'0', N'0') INSERT [dbo].[sys_role] ([ROLE_ID], [ROLE_NAME], [RIGHTS], [PARENT_ID], [ADD_QX], [DEL_QX], [EDIT_QX], [CHA_QX]) VALUES (N'c21cecf84048434b93383182b1d98cba', N'组长', N'', N'46294b31a71c4600801724a6eb06bb26', N'0', N'0', N'0', N'0') INSERT [dbo].[sys_role] ([ROLE_ID], [ROLE_NAME], [RIGHTS], [PARENT_ID], [ADD_QX], [DEL_QX], [EDIT_QX], [CHA_QX]) VALUES (N'd449195cd8e7491080688c58e11452eb', N'总监', N'', N'46294b31a71c4600801724a6eb06bb26', N'0', N'0', N'0', N'0') INSERT [dbo].[sys_role] ([ROLE_ID], [ROLE_NAME], [RIGHTS], [PARENT_ID], [ADD_QX], [DEL_QX], [EDIT_QX], [CHA_QX]) VALUES (N'de9de2f006e145a29d52dfadda295353', N'三级管理员', N'4503598587174854', N'1', N'0', N'0', N'0', N'0') INSERT [dbo].[sys_user] ([USER_ID], [USERNAME], [PASSWORD], [NAME], [RIGHTS], [ROLE_ID], [LAST_LOGIN], [IP], [STATUS], [BZ], [SKIN], [EMAIL], [NUMBER], [PHONE]) VALUES (N'1 ', N'admin', N'de41b7fb99201d8334c23c014db35ecd92df81bc', N'系统管理员', N'1133671055321055258374707980945218933803269864762743594642571294', N'1', N'2016-02-01 16:36:10', N'127.0.0.1', N'0', N'最高统治者', N'default', N'QQ313596790@main.com', N'001', N'18788888888') INSERT [dbo].[sys_user] ([USER_ID], [USERNAME], [PASSWORD], [NAME], [RIGHTS], [ROLE_ID], [LAST_LOGIN], [IP], [STATUS], [BZ], [SKIN], [EMAIL], [NUMBER], [PHONE]) VALUES (N'69177258a06e4927b4639ab1684c3320', N'san', N'47c4a8dc64ac2f0bb46bbd8813b037c9718f9349', N'三', N'', N'3264c8e83d0248bb9e3ea6195b4c0216', N'2016-01-25 16:25:36', N'192.168.1.102', N'0', N'111', N'default', N'978336446@qq.com', N'333', N'13562202556') INSERT [dbo].[sys_user] ([USER_ID], [USERNAME], [PASSWORD], [NAME], [RIGHTS], [ROLE_ID], [LAST_LOGIN], [IP], [STATUS], [BZ], [SKIN], [EMAIL], [NUMBER], [PHONE]) VALUES (N'9991f4d7782a4ccfb8a65bd96ea7aafa', N'lisi', N'2612ade71c1e48cd7150b5f4df152faa699cedfe', N'李四', N'', N'3264c8e83d0248bb9e3ea6195b4c0216', N'2016-01-06 01:24:26', N'127.0.0.1', N'0', N'小李', N'default', N'313596790@qq.com', N'1102', N'13566233663') INSERT [dbo].[sys_user] ([USER_ID], [USERNAME], [PASSWORD], [NAME], [RIGHTS], [ROLE_ID], [LAST_LOGIN], [IP], [STATUS], [BZ], [SKIN], [EMAIL], [NUMBER], [PHONE]) VALUES (N'e29149962e944589bb7da23ad18ddeed', N'zhangsan', N'c2da1419caf053885c492e10ebde421581cdc03f', N'张三', N'', N'3264c8e83d0248bb9e3ea6195b4c0216', N'', N'', N'0', N'小张', N'default', N'zhangsan@www.com', N'1101', N'2147483647') INSERT [dbo].[tb_pictures] ([PICTURES_ID], [TITLE], [NAME], [PATH], [CREATETIME], [MASTER_ID], [BZ]) VALUES (N'b06010340ee54cfab49b8bfbe2387557', N'图片', N'5e6ba5ad3067482e9a8063b0627ee983.png', N'20160125/5e6ba5ad3067482e9a8063b0627ee983.png', N'2016-01-25 16:49:44', N'1', N'图片管理处上传') INSERT [dbo].[tb_pictures] ([PICTURES_ID], [TITLE], [NAME], [PATH], [CREATETIME], [MASTER_ID], [BZ]) VALUES (N'c9f1eca620c94c27bfa7028c66911f41', N'图片', N'928da750ec8542ceb7b2495f45ea6a9e.jpg', N'20160125/928da750ec8542ceb7b2495f45ea6a9e.jpg', N'2016-01-25 16:49:44', N'1', N'图片管理处上传') INSERT [dbo].[weixin_command] ([COMMAND_ID], [KEYWORD], [COMMANDCODE], [CREATETIME], [STATUS], [BZ]) VALUES (N'2636750f6978451b8330874c9be042c2', N'锁定服务器', N'rundll32.exe user32.dll,LockWorkStation', N'2015-05-10 21:25:06', 1, N'锁定计算机') INSERT [dbo].[weixin_command] ([COMMAND_ID], [KEYWORD], [COMMANDCODE], [CREATETIME], [STATUS], [BZ]) VALUES (N'46217c6d44354010823241ef484f7214', N'打开浏览器', N'C:/Program Files/Internet Explorer/iexplore.exe', N'2015-05-09 02:43:02', 1, N'打开浏览器操作') INSERT [dbo].[weixin_command] ([COMMAND_ID], [KEYWORD], [COMMANDCODE], [CREATETIME], [STATUS], [BZ]) VALUES (N'576adcecce504bf3bb34c6b4da79a177', N'关闭浏览器', N'taskkill /f /im iexplore.exe', N'2015-05-09 02:36:48', 2, N'关闭浏览器操作') INSERT [dbo].[weixin_command] ([COMMAND_ID], [KEYWORD], [COMMANDCODE], [CREATETIME], [STATUS], [BZ]) VALUES (N'854a157c6d99499493f4cc303674c01f', N'关闭QQ', N'taskkill /f /im qq.exe', N'2015-05-10 21:25:46', 1, N'关闭QQ') INSERT [dbo].[weixin_command] ([COMMAND_ID], [KEYWORD], [COMMANDCODE], [CREATETIME], [STATUS], [BZ]) VALUES (N'ab3a8c6310ca4dc8b803ecc547e55ae7', N'打开QQ', N'D:/SOFT/QQ/QQ/Bin/qq.exe', N'2015-05-10 21:25:25', 1, N'打开QQ') INSERT [dbo].[weixin_textmsg] ([TEXTMSG_ID], [KEYWORD], [CONTENT], [CREATETIME], [STATUS], [BZ]) VALUES (N'63681adbe7144f10b66d6863e07f23c2', N'你好', N'你也好', N'2015-05-09 02:39:23', 1, N'文本回复') INSERT [dbo].[weixin_textmsg] ([TEXTMSG_ID], [KEYWORD], [CONTENT], [CREATETIME], [STATUS], [BZ]) VALUES (N'695cd74779734231928a253107ab0eeb', N'吃饭', N'吃了噢噢噢噢', N'2015-05-10 22:52:27', 1, N'文本回复') INSERT [dbo].[weixin_textmsg] ([TEXTMSG_ID], [KEYWORD], [CONTENT], [CREATETIME], [STATUS], [BZ]) VALUES (N'd4738af7aea74a6ca1a5fb25a98f9acb', N'关注', N'这里是关注后回复的内容', N'2015-05-11 02:12:36', 1, N'关注回复') ALTER TABLE [dbo].[FH_TESTFH] ADD DEFAULT (NULL) FOR [NAME] GO ALTER TABLE [dbo].[FH_TESTFH] ADD DEFAULT (NULL) FOR [BIRTHDAY] GO ALTER TABLE [dbo].[sys_app_user] ADD DEFAULT (NULL) FOR [USERNAME] GO ALTER TABLE [dbo].[sys_app_user] ADD DEFAULT (NULL) FOR [PASSWORD] GO ALTER TABLE [dbo].[sys_app_user] ADD DEFAULT (NULL) FOR [NAME] GO ALTER TABLE [dbo].[sys_app_user] ADD DEFAULT (NULL) FOR [RIGHTS] GO ALTER TABLE [dbo].[sys_app_user] ADD DEFAULT (NULL) FOR [ROLE_ID] GO ALTER TABLE [dbo].[sys_app_user] ADD DEFAULT (NULL) FOR [LAST_LOGIN] GO ALTER TABLE [dbo].[sys_app_user] ADD DEFAULT (NULL) FOR [IP] GO ALTER TABLE [dbo].[sys_app_user] ADD DEFAULT (NULL) FOR [STATUS] GO ALTER TABLE [dbo].[sys_app_user] ADD DEFAULT (NULL) FOR [BZ] GO ALTER TABLE [dbo].[sys_app_user] ADD DEFAULT (NULL) FOR [PHONE] GO ALTER TABLE [dbo].[sys_app_user] ADD DEFAULT (NULL) FOR [SFID] GO ALTER TABLE [dbo].[sys_app_user] ADD DEFAULT (NULL) FOR [START_TIME] GO ALTER TABLE [dbo].[sys_app_user] ADD DEFAULT (NULL) FOR [END_TIME] GO ALTER TABLE [dbo].[sys_app_user] ADD DEFAULT (NULL) FOR [YEARS] GO ALTER TABLE [dbo].[sys_app_user] ADD DEFAULT (NULL) FOR [NUMBER] GO ALTER TABLE [dbo].[sys_app_user] ADD DEFAULT (NULL) FOR [EMAIL] GO ALTER TABLE [dbo].[sys_createcode] ADD DEFAULT (NULL) FOR [PACKAGENAME] GO ALTER TABLE [dbo].[sys_createcode] ADD DEFAULT (NULL) FOR [OBJECTNAME] GO ALTER TABLE [dbo].[sys_createcode] ADD DEFAULT (NULL) FOR [TABLENAME] GO ALTER TABLE [dbo].[sys_createcode] ADD DEFAULT (NULL) FOR [FIELDLIST] GO ALTER TABLE [dbo].[sys_createcode] ADD DEFAULT (NULL) FOR [CREATETIME] GO ALTER TABLE [dbo].[sys_createcode] ADD DEFAULT (NULL) FOR [TITLE] GO ALTER TABLE [dbo].[sys_department] ADD DEFAULT (NULL) FOR [NAME] GO ALTER TABLE [dbo].[sys_department] ADD DEFAULT (NULL) FOR [NAME_EN] GO ALTER TABLE [dbo].[sys_department] ADD DEFAULT (NULL) FOR [BIANMA] GO ALTER TABLE [dbo].[sys_department] ADD DEFAULT (NULL) FOR [PARENT_ID] GO ALTER TABLE [dbo].[sys_department] ADD DEFAULT (NULL) FOR [BZ] GO ALTER TABLE [dbo].[sys_department] ADD DEFAULT (NULL) FOR [HEADMAN] GO ALTER TABLE [dbo].[sys_department] ADD DEFAULT (NULL) FOR [TEL] GO ALTER TABLE [dbo].[sys_department] ADD DEFAULT (NULL) FOR [FUNCTIONS] GO ALTER TABLE [dbo].[sys_department] ADD DEFAULT (NULL) FOR [ADDRESS] GO ALTER TABLE [dbo].[sys_dictionaries] ADD DEFAULT (NULL) FOR [NAME] GO ALTER TABLE [dbo].[sys_dictionaries] ADD DEFAULT (NULL) FOR [NAME_EN] GO ALTER TABLE [dbo].[sys_dictionaries] ADD DEFAULT (NULL) FOR [BIANMA] GO ALTER TABLE [dbo].[sys_dictionaries] ADD DEFAULT (NULL) FOR [PARENT_ID] GO ALTER TABLE [dbo].[sys_dictionaries] ADD DEFAULT (NULL) FOR [BZ] GO ALTER TABLE [dbo].[sys_dictionaries] ADD DEFAULT (NULL) FOR [TBSNAME] GO ALTER TABLE [dbo].[sys_fhbutton] ADD DEFAULT (NULL) FOR [NAME] GO ALTER TABLE [dbo].[sys_fhbutton] ADD DEFAULT (NULL) FOR [QX_NAME] GO ALTER TABLE [dbo].[sys_fhbutton] ADD DEFAULT (NULL) FOR [BZ] GO ALTER TABLE [dbo].[sys_fhsms] ADD DEFAULT (NULL) FOR [CONTENT] GO ALTER TABLE [dbo].[sys_fhsms] ADD DEFAULT (NULL) FOR [TYPE] GO ALTER TABLE [dbo].[sys_fhsms] ADD DEFAULT (NULL) FOR [TO_USERNAME] GO ALTER TABLE [dbo].[sys_fhsms] ADD DEFAULT (NULL) FOR [FROM_USERNAME] GO ALTER TABLE [dbo].[sys_fhsms] ADD DEFAULT (NULL) FOR [SEND_TIME] GO ALTER TABLE [dbo].[sys_fhsms] ADD DEFAULT (NULL) FOR [STATUS] GO ALTER TABLE [dbo].[sys_fhsms] ADD DEFAULT (NULL) FOR [SANME_ID] GO ALTER TABLE [dbo].[sys_menu] ADD DEFAULT (NULL) FOR [MENU_NAME] GO ALTER TABLE [dbo].[sys_menu] ADD DEFAULT (NULL) FOR [MENU_URL] GO ALTER TABLE [dbo].[sys_menu] ADD DEFAULT (NULL) FOR [PARENT_ID] GO ALTER TABLE [dbo].[sys_menu] ADD DEFAULT (NULL) FOR [MENU_ORDER] GO ALTER TABLE [dbo].[sys_menu] ADD DEFAULT (NULL) FOR [MENU_ICON] GO ALTER TABLE [dbo].[sys_menu] ADD DEFAULT (NULL) FOR [MENU_TYPE] GO ALTER TABLE [dbo].[sys_menu] ADD DEFAULT (NULL) FOR [MENU_STATE] GO ALTER TABLE [dbo].[sys_role] ADD DEFAULT (NULL) FOR [ROLE_NAME] GO ALTER TABLE [dbo].[sys_role] ADD DEFAULT (NULL) FOR [RIGHTS] GO ALTER TABLE [dbo].[sys_role] ADD DEFAULT (NULL) FOR [PARENT_ID] GO ALTER TABLE [dbo].[sys_role] ADD DEFAULT (NULL) FOR [ADD_QX] GO ALTER TABLE [dbo].[sys_role] ADD DEFAULT (NULL) FOR [DEL_QX] GO ALTER TABLE [dbo].[sys_role] ADD DEFAULT (NULL) FOR [EDIT_QX] GO ALTER TABLE [dbo].[sys_role] ADD DEFAULT (NULL) FOR [CHA_QX] GO ALTER TABLE [dbo].[sys_role_fhbutton] ADD DEFAULT (NULL) FOR [ROLE_ID] GO ALTER TABLE [dbo].[sys_role_fhbutton] ADD DEFAULT (NULL) FOR [BUTTON_ID] GO ALTER TABLE [dbo].[tb_pictures] ADD DEFAULT (NULL) FOR [TITLE] GO ALTER TABLE [dbo].[tb_pictures] ADD DEFAULT (NULL) FOR [NAME] GO ALTER TABLE [dbo].[tb_pictures] ADD DEFAULT (NULL) FOR [PATH] GO ALTER TABLE [dbo].[tb_pictures] ADD DEFAULT (NULL) FOR [CREATETIME] GO ALTER TABLE [dbo].[tb_pictures] ADD DEFAULT (NULL) FOR [MASTER_ID] GO ALTER TABLE [dbo].[tb_pictures] ADD DEFAULT (NULL) FOR [BZ] GO ALTER TABLE [dbo].[weixin_command] ADD DEFAULT (NULL) FOR [KEYWORD] GO ALTER TABLE [dbo].[weixin_command] ADD DEFAULT (NULL) FOR [COMMANDCODE] GO ALTER TABLE [dbo].[weixin_command] ADD DEFAULT (NULL) FOR [CREATETIME] GO ALTER TABLE [dbo].[weixin_command] ADD DEFAULT (NULL) FOR [BZ] GO ALTER TABLE [dbo].[weixin_imgmsg] ADD DEFAULT (NULL) FOR [KEYWORD] GO ALTER TABLE [dbo].[weixin_imgmsg] ADD DEFAULT (NULL) FOR [CREATETIME] GO ALTER TABLE [dbo].[weixin_imgmsg] ADD DEFAULT (NULL) FOR [BZ] GO ALTER TABLE [dbo].[weixin_imgmsg] ADD DEFAULT (NULL) FOR [TITLE1] GO ALTER TABLE [dbo].[weixin_imgmsg] ADD DEFAULT (NULL) FOR [DESCRIPTION1] GO ALTER TABLE [dbo].[weixin_imgmsg] ADD DEFAULT (NULL) FOR [IMGURL1] GO ALTER TABLE [dbo].[weixin_imgmsg] ADD DEFAULT (NULL) FOR [TOURL1] GO ALTER TABLE [dbo].[weixin_imgmsg] ADD DEFAULT (NULL) FOR [TITLE2] GO ALTER TABLE [dbo].[weixin_imgmsg] ADD DEFAULT (NULL) FOR [DESCRIPTION2] GO ALTER TABLE [dbo].[weixin_imgmsg] ADD DEFAULT (NULL) FOR [IMGURL2] GO ALTER TABLE [dbo].[weixin_imgmsg] ADD DEFAULT (NULL) FOR [TOURL2] GO ALTER TABLE [dbo].[weixin_imgmsg] ADD DEFAULT (NULL) FOR [TITLE3] GO ALTER TABLE [dbo].[weixin_imgmsg] ADD DEFAULT (NULL) FOR [DESCRIPTION3] GO ALTER TABLE [dbo].[weixin_imgmsg] ADD DEFAULT (NULL) FOR [IMGURL3] GO ALTER TABLE [dbo].[weixin_imgmsg] ADD DEFAULT (NULL) FOR [TOURL3] GO ALTER TABLE [dbo].[weixin_imgmsg] ADD DEFAULT (NULL) FOR [TITLE4] GO ALTER TABLE [dbo].[weixin_imgmsg] ADD DEFAULT (NULL) FOR [DESCRIPTION4] GO ALTER TABLE [dbo].[weixin_imgmsg] ADD DEFAULT (NULL) FOR [IMGURL4] GO ALTER TABLE [dbo].[weixin_imgmsg] ADD DEFAULT (NULL) FOR [TOURL4] GO ALTER TABLE [dbo].[weixin_imgmsg] ADD DEFAULT (NULL) FOR [TITLE5] GO ALTER TABLE [dbo].[weixin_imgmsg] ADD DEFAULT (NULL) FOR [DESCRIPTION5] GO ALTER TABLE [dbo].[weixin_imgmsg] ADD DEFAULT (NULL) FOR [IMGURL5] GO ALTER TABLE [dbo].[weixin_imgmsg] ADD DEFAULT (NULL) FOR [TOURL5] GO ALTER TABLE [dbo].[weixin_imgmsg] ADD DEFAULT (NULL) FOR [TITLE6] GO ALTER TABLE [dbo].[weixin_imgmsg] ADD DEFAULT (NULL) FOR [DESCRIPTION6] GO ALTER TABLE [dbo].[weixin_imgmsg] ADD DEFAULT (NULL) FOR [IMGURL6] GO ALTER TABLE [dbo].[weixin_imgmsg] ADD DEFAULT (NULL) FOR [TOURL6] GO ALTER TABLE [dbo].[weixin_imgmsg] ADD DEFAULT (NULL) FOR [TITLE7] GO ALTER TABLE [dbo].[weixin_imgmsg] ADD DEFAULT (NULL) FOR [DESCRIPTION7] GO ALTER TABLE [dbo].[weixin_imgmsg] ADD DEFAULT (NULL) FOR [IMGURL7] GO ALTER TABLE [dbo].[weixin_imgmsg] ADD DEFAULT (NULL) FOR [TOURL7] GO ALTER TABLE [dbo].[weixin_imgmsg] ADD DEFAULT (NULL) FOR [TITLE8] GO ALTER TABLE [dbo].[weixin_imgmsg] ADD DEFAULT (NULL) FOR [DESCRIPTION8] GO ALTER TABLE [dbo].[weixin_imgmsg] ADD DEFAULT (NULL) FOR [IMGURL8] GO ALTER TABLE [dbo].[weixin_imgmsg] ADD DEFAULT (NULL) FOR [TOURL8] GO ALTER TABLE [dbo].[weixin_textmsg] ADD DEFAULT (NULL) FOR [KEYWORD] GO ALTER TABLE [dbo].[weixin_textmsg] ADD DEFAULT (NULL) FOR [CONTENT] GO ALTER TABLE [dbo].[weixin_textmsg] ADD DEFAULT (NULL) FOR [CREATETIME] GO ALTER TABLE [dbo].[weixin_textmsg] ADD DEFAULT (NULL) FOR [STATUS] GO ALTER TABLE [dbo].[weixin_textmsg] ADD DEFAULT (NULL) FOR [BZ] GO ALTER TABLE [dbo].[sys_role_fhbutton] WITH NOCHECK ADD CONSTRAINT [FK_sys_role_fhbutton_sys_fhbutton] FOREIGN KEY([BUTTON_ID]) REFERENCES [dbo].[sys_fhbutton] ([FHBUTTON_ID]) ON DELETE CASCADE NOT FOR REPLICATION GO ALTER TABLE [dbo].[sys_role_fhbutton] CHECK CONSTRAINT [FK_sys_role_fhbutton_sys_fhbutton] GO ALTER TABLE [dbo].[sys_role_fhbutton] WITH NOCHECK ADD CONSTRAINT [FK_sys_role_fhbutton_sys_role] FOREIGN KEY([ROLE_ID]) REFERENCES [dbo].[sys_role] ([ROLE_ID]) ON DELETE CASCADE NOT FOR REPLICATION GO ALTER TABLE [dbo].[sys_role_fhbutton] CHECK CONSTRAINT [FK_sys_role_fhbutton_sys_role] GO USE [master] GO ALTER DATABASE [fhadmin] SET READ_WRITE GO ``` 老是语法错误啊 sql没问题的 是不是 master数据库弄坏了 消息 102,级别 15,状态 1,第 3 行 'CONTAINMENT' 附近有语法错误。 消息 15048,级别 16,状态 1,第 1 行 数据库兼容级别的有效值为 80、90 或 100。 消息 102,级别 15,状态 1,第 4 行 'en' 附近有语法错误。 消息 168,级别 15,状态 1,第 422 行 浮点值 '3e7227' 超出了计算机表示范围(8 个字节)。 消息 168,级别 15,状态 1,第 450 行 浮点值 '9e00295529014' 超出了计算机表示范围(8 个字节)。 消息 1007,级别 15,状态 1,第 509 行 数字 '1133671055321055258374707980945218933803269864762743594642571294' 超出了数值表示范围(最大精度为 38)。 消息 105,级别 15,状态 1,第 522 行 字符串 ')
jquery函数 读取 json 文件后的运用
我试图通过jquery读取一份json文件,然后把他放到php中进行动态布局并输出。现在遇到一个问题,就是我不知道如何将函数读取到的json中的参数值保存下来,然后用php读到这些值。希望有哪位朋友知道可以给与帮助(最好有代码)。 首先,json文件格式如下: [ { "counter": "0", "contentID": "5876", "score": "1.20501602970259", "presentationID": "3496", "conferenceID": "85", "title": "Personalized Network Updates: Increasing Social Interactions and Contributions in Social Networks", "acmlink": "null", "DOI": "http://www.springerlink.com/content/872x206h570ln625/fulltext.pdf", "contentType": "Long Research Paper", "contentTrack": "1", "authors": [ { "authorID": "160", "name": "Shlomo Berkovsky" } , { "authorID": "155", "name": "Jill Freyne" } , { "authorID": "2947", "name": "Gregory Smith" } ], "tags": ["3545", "contribution", "evaluation", "motivation", "news feed", "personalisation", "personalization", "personalized news feeds", "ranking", "recommender", "recsys", "shlomo berkovsky", "sna", "social network", "social networks", "social-network"], "methodID": [0, 102, 101] } , { "counter": "1", "contentID": "5883", "score": "0.984497667264824", "presentationID": "3503", "conferenceID": "85", "title": "Users and Noise: Estimating the Magic Barrier of Recommender Systems", "acmlink": "null", "DOI": "http://www.springerlink.com/content/g70242127h5kj186/fulltext.pdf", "contentType": "Long Research Paper", "contentTrack": "1", "authors": [ { "authorID": "3120", "name": "Alan Said" } ] 我用jquery读取json文件的代码: $(function() { $("#btn").click(function() { $.getJSON("communityRecSys.json",function (data) { var $jsontip = $("#jsonTip"); var strHtml = " ";//存储变量 $jsontip.empty();//清空内容 $.each(data,function (infoIndex,info) { strHtml += "title:"+info["title"]+"<br>"; strHtml += "Authors:"+info["authors"]+"<br>"; strHtml += "Types:"+info["type"]+"<br>"; strHtml += "Track:"+info["contentTrack"]+"<br>"; strHtml += "DOI:"+info["DOI"]+"<br>"; strHtml += "<hr>" //这里只取了几个需要的值 }); }); }); }); 然后在PHP中用这段代码测试,值能够正常显示: <input type="button" value="test" id="btn"/> <div id="jsonTip"> </div> 说明值已经正常被读入。 下面是我希望进行php布局的代码。(proceedings是对每个模块的命名,method是我想用来代表json文件自己设的变量名称) foreach( $proceedings as $method) { <tr id="paper-<?php echo $method['contentID'];?>"> <tr> <td style="background-color:#FFFF00;">&nbsp;</td> <td colspan="1" rowspan="5" name="paper" style="padding:5px;background-color:white"> <?php echo "<div class=\"title\"><div class=\"presentation-title\" ><span class=\"paper-title\"><a id=\"title-".$method['contentID']."\" href=\"presentation2.php?conferenceID=".$method['conferenceID']."&presentationID=".$method['presentationID']."\">".$method['title']."</a></span>"; ?> 请问怎么样能够把函数读到的json文件用变量$method保存,这样所有json内的参数我就可以用method.XX的方式直接取到值。感谢大神赐教!
IOS,SQLite批量插入错误
在数据库中插入数据的时候,报错:`Prepare-error library routine called out of sequence` 代码如下,麻烦帮我看看错误出在哪儿了。谢谢 NSString *databaseName = @"DB.sqlite"; NSArray *documentPaths = NSSearchPathForDirectoriesInDomains(NSCachesDirectory, NSUserDomainMask, YES); NSString *documentsDir = [documentPaths objectAtIndex:0]; NSString *databasePath = [documentsDir stringByAppendingPathComponent:databaseName]; sqlite3 *concertsDB; const char *dbpath = [databasePath UTF8String]; if (sqlite3_open(dbpath, &concertsDB) == SQLITE_OK) { sqlite3_exec(concertsDB, "BEGIN TRANSACTION", 0, 0, 0); const char *sqlStatement = "INSERT INTO concertsData VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)"; sqlite3_stmt *compiledStatement; if (sqlite3_prepare_v2(concertsDB, sqlStatement, -1, &compiledStatement, NULL) == SQLITE_OK) { int hasError; for (int i=0; i<[events count]; i++) { sqlite3_bind_text(compiledStatement, 1, [[[events objectAtIndex:i] title] UTF8String], -1, SQLITE_TRANSIENT); sqlite3_bind_int(compiledStatement, 2, [[[events objectAtIndex:i] date] timeIntervalSince1970]); sqlite3_bind_text(compiledStatement, 3, [[[events objectAtIndex:i] time] UTF8String], -1, SQLITE_TRANSIENT); sqlite3_bind_text(compiledStatement, 4, [[[events objectAtIndex:i] shortDesription] UTF8String], -1, SQLITE_TRANSIENT); sqlite3_bind_text(compiledStatement, 5, [[[events objectAtIndex:i] conductor] UTF8String], -1, SQLITE_TRANSIENT); sqlite3_bind_text(compiledStatement, 6, [[[events objectAtIndex:i] location] UTF8String], -1, SQLITE_TRANSIENT); sqlite3_bind_text(compiledStatement, 7, [[[events objectAtIndex:i] durations] UTF8String], -1, SQLITE_TRANSIENT); sqlite3_bind_text(compiledStatement, 8, [[[events objectAtIndex:i] works] UTF8String], -1, SQLITE_TRANSIENT); sqlite3_bind_text(compiledStatement, 9, [[[events objectAtIndex:i] solists] UTF8String], -1, SQLITE_TRANSIENT); sqlite3_bind_text(compiledStatement, 10, [[[events objectAtIndex:i] fulltext] UTF8String], -1, SQLITE_TRANSIENT); sqlite3_bind_text(compiledStatement, 11, [[[[events objectAtIndex:i] concertUrl] absoluteString] UTF8String], -1, SQLITE_TRANSIENT); sqlite3_bind_text(compiledStatement, 12, [[[[events objectAtIndex:i] buyUrl] absoluteString] UTF8String], -1, SQLITE_TRANSIENT); sqlite3_bind_text(compiledStatement, 13, [[[events objectAtIndex:i] imageName] UTF8String], -1, SQLITE_TRANSIENT); if (sqlite3_step(compiledStatement) != SQLITE_DONE) { hasError=1; NSLog(@"Prepare-error %s", sqlite3_errmsg(concertsDB)); } sqlite3_clear_bindings(compiledStatement); } sqlite3_reset(compiledStatement); if( hasError == 0 ) { sqlite3_exec(concertsDB, "COMMIT", 0, 0, 0); } else { sqlite3_exec(concertsDB, "ROLLBACK", 0, 0, 0); } } sqlite3_close(concertsDB); }
相见恨晚的超实用网站
搞学习 知乎:www.zhihu.com 简答题:http://www.jiandati.com/ 网易公开课:https://open.163.com/ted/ 网易云课堂:https://study.163.com/ 中国大学MOOC:www.icourse163.org 网易云课堂:study.163.com 哔哩哔哩弹幕网:www.bilibili.com 我要自学网:www.51zxw
花了20分钟,给女朋友们写了一个web版群聊程序
参考博客 [1]https://www.byteslounge.com/tutorials/java-ee-html5-websocket-example
爬虫福利二 之 妹子图网MM批量下载
爬虫福利一:27报网MM批量下载    点击 看了本文,相信大家对爬虫一定会产生强烈的兴趣,激励自己去学习爬虫,在这里提前祝:大家学有所成! 目标网站:妹子图网 环境:Python3.x 相关第三方模块:requests、beautifulsoup4 Re:各位在测试时只需要将代码里的变量 path 指定为你当前系统要保存的路径,使用 python xxx.py 或IDE运行即可。
字节跳动视频编解码面经
引言 本文主要是记录一下面试字节跳动的经历。 三四月份投了字节跳动的实习(图形图像岗位),然后hr打电话过来问了一下会不会opengl,c++,shador,当时只会一点c++,其他两个都不会,也就直接被拒了。 七月初内推了字节跳动的提前批,因为内推没有具体的岗位,hr又打电话问要不要考虑一下图形图像岗,我说实习投过这个岗位不合适,不会opengl和shador,然后hr就说秋招更看重基础。我当时
Java学习的正确打开方式
在博主认为,对于入门级学习java的最佳学习方法莫过于视频+博客+书籍+总结,前三者博主将淋漓尽致地挥毫于这篇博客文章中,至于总结在于个人,实际上越到后面你会发现学习的最好方式就是阅读参考官方文档其次就是国内的书籍,博客次之,这又是一个层次了,这里暂时不提后面再谈。博主将为各位入门java保驾护航,各位只管冲鸭!!!上天是公平的,只要不辜负时间,时间自然不会辜负你。 何谓学习?博主所理解的学习,它
程序员必须掌握的核心算法有哪些?
由于我之前一直强调数据结构以及算法学习的重要性,所以就有一些读者经常问我,数据结构与算法应该要学习到哪个程度呢?,说实话,这个问题我不知道要怎么回答你,主要取决于你想学习到哪些程度,不过针对这个问题,我稍微总结一下我学过的算法知识点,以及我觉得值得学习的算法。这些算法与数据结构的学习大多数是零散的,并没有一本把他们全部覆盖的书籍。下面是我觉得值得学习的一些算法以及数据结构,当然,我也会整理一些看过
大学四年自学走来,这些私藏的实用工具/学习网站我贡献出来了
大学四年,看课本是不可能一直看课本的了,对于学习,特别是自学,善于搜索网上的一些资源来辅助,还是非常有必要的,下面我就把这几年私藏的各种资源,网站贡献出来给你们。主要有:电子书搜索、实用工具、在线视频学习网站、非视频学习网站、软件下载、面试/求职必备网站。 注意:文中提到的所有资源,文末我都给你整理好了,你们只管拿去,如果觉得不错,转发、分享就是最大的支持了。 一、电子书搜索 对于大部分程序员...
linux系列之常用运维命令整理笔录
本博客记录工作中需要的linux运维命令,大学时候开始接触linux,会一些基本操作,可是都没有整理起来,加上是做开发,不做运维,有些命令忘记了,所以现在整理成博客,当然vi,文件操作等就不介绍了,慢慢积累一些其它拓展的命令,博客不定时更新 顺便拉下票,我在参加csdn博客之星竞选,欢迎投票支持,每个QQ或者微信每天都可以投5票,扫二维码即可,http://m234140.nofollow.ax.
比特币原理详解
一、什么是比特币 比特币是一种电子货币,是一种基于密码学的货币,在2008年11月1日由中本聪发表比特币白皮书,文中提出了一种去中心化的电子记账系统,我们平时的电子现金是银行来记账,因为银行的背后是国家信用。去中心化电子记账系统是参与者共同记账。比特币可以防止主权危机、信用风险。其好处不多做赘述,这一层面介绍的文章很多,本文主要从更深层的技术原理角度进行介绍。 二、问题引入 假设现有4个人...
Python 基础(一):入门必备知识
目录1 标识符2 关键字3 引号4 编码5 输入输出6 缩进7 多行8 注释9 数据类型10 运算符10.1 常用运算符10.2 运算符优先级 1 标识符 标识符是编程时使用的名字,用于给变量、函数、语句块等命名,Python 中标识符由字母、数字、下划线组成,不能以数字开头,区分大小写。 以下划线开头的标识符有特殊含义,单下划线开头的标识符,如:_xxx ,表示不能直接访问的类属性,需通过类提供
这30个CSS选择器,你必须熟记(上)
关注前端达人,与你共同进步CSS的魅力就是让我们前端工程师像设计师一样进行网页的设计,我们能轻而易举的改变颜色、布局、制作出漂亮的影音效果等等,我们只需要改几行代码,不需...
国产开源API网关项目进入Apache孵化器:APISIX
点击蓝色“程序猿DD”关注我回复“资源”获取独家整理的学习资料!近日,又有一个开源项目加入了这个Java开源界大名鼎鼎的Apache基金会,开始进行孵化器。项目名称:AP...
程序员接私活怎样防止做完了不给钱?
首先跟大家说明一点,我们做 IT 类的外包开发,是非标品开发,所以很有可能在开发过程中会有这样那样的需求修改,而这种需求修改很容易造成扯皮,进而影响到费用支付,甚至出现做完了项目收不到钱的情况。 那么,怎么保证自己的薪酬安全呢? 我们在开工前,一定要做好一些证据方面的准备(也就是“讨薪”的理论依据),这其中最重要的就是需求文档和验收标准。一定要让需求方提供这两个文档资料作为开发的基础。之后开发
网页实现一个简单的音乐播放器(大佬别看。(⊙﹏⊙))
今天闲着无事,就想写点东西。然后听了下歌,就打算写个播放器。 于是乎用h5 audio的加上js简单的播放器完工了。 欢迎 改进 留言。 演示地点跳到演示地点 html代码如下`&lt;!DOCTYPE html&gt; &lt;html&gt; &lt;head&gt; &lt;title&gt;music&lt;/title&gt; &lt;meta charset="utf-8"&gt
Python十大装B语法
Python 是一种代表简单思想的语言,其语法相对简单,很容易上手。不过,如果就此小视 Python 语法的精妙和深邃,那就大错特错了。本文精心筛选了最能展现 Python 语法之精妙的十个知识点,并附上详细的实例代码。如能在实战中融会贯通、灵活使用,必将使代码更为精炼、高效,同时也会极大提升代码B格,使之看上去更老练,读起来更优雅。 1. for - else 什么?不是 if 和 else 才
数据库优化 - SQL优化
前面一篇文章从实例的角度进行数据库优化,通过配置一些参数让数据库性能达到最优。但是一些“不好”的SQL也会导致数据库查询变慢,影响业务流程。本文从SQL角度进行数据库优化,提升SQL运行效率。 判断问题SQL 判断SQL是否有问题时可以通过两个表象进行判断: 系统级别表象 CPU消耗严重 IO等待严重 页面响应时间过长
2019年11月中国大陆编程语言排行榜
2019年11月2日,我统计了某招聘网站,获得有效程序员招聘数据9万条。针对招聘信息,提取编程语言关键字,并统计如下: 编程语言比例 rank pl_ percentage 1 java 33.62% 2 c/c++ 16.42% 3 c_sharp 12.82% 4 javascript 12.31% 5 python 7.93% 6 go 7.25% 7
通俗易懂地给女朋友讲:线程池的内部原理
餐厅的约会 餐盘在灯光的照耀下格外晶莹洁白,女朋友拿起红酒杯轻轻地抿了一小口,对我说:“经常听你说线程池,到底线程池到底是个什么原理?”我楞了一下,心里想女朋友今天是怎么了,怎么突然问出这么专业的问题,但做为一个专业人士在女朋友面前也不能露怯啊,想了一下便说:“我先给你讲讲我前同事老王的故事吧!” 大龄程序员老王 老王是一个已经北漂十多年的程序员,岁数大了,加班加不动了,升迁也无望,于是拿着手里
经典算法(5)杨辉三角
杨辉三角 是经典算法,这篇博客对它的算法思想进行了讲解,并有完整的代码实现。
编写Spring MVC控制器的14个技巧
本期目录 1.使用@Controller构造型 2.实现控制器接口 3.扩展AbstractController类 4.为处理程序方法指定URL映射 5.为处理程序方法指定HTTP请求方法 6.将请求参数映射到处理程序方法 7.返回模型和视图 8.将对象放入模型 9.处理程序方法中的重定向 10.处理表格提交和表格验证 11.处理文件上传 12.在控制器中自动装配业务类 ...
腾讯算法面试题:64匹马8个跑道需要多少轮才能选出最快的四匹?
昨天,有网友私信我,说去阿里面试,彻底的被打击到了。问了为什么网上大量使用ThreadLocal的源码都会加上private static?他被难住了,因为他从来都没有考虑过这个问题。无独有偶,今天笔者又发现有网友吐槽了一道腾讯的面试题,我们一起来看看。 腾讯算法面试题:64匹马8个跑道需要多少轮才能选出最快的四匹? 在互联网职场论坛,一名程序员发帖求助到。二面腾讯,其中一个算法题:64匹
面试官:你连RESTful都不知道我怎么敢要你?
面试官:了解RESTful吗? 我:听说过。 面试官:那什么是RESTful? 我:就是用起来很规范,挺好的 面试官:是RESTful挺好的,还是自我感觉挺好的 我:都挺好的。 面试官:… 把门关上。 我:… 要干嘛?先关上再说。 面试官:我说出去把门关上。 我:what ?,夺门而去 文章目录01 前言02 RESTful的来源03 RESTful6大原则1. C-S架构2. 无状态3.统一的接
求小姐姐抠图竟遭白眼?痛定思痛,我决定用 Python 自力更生!
点击蓝色“Python空间”关注我丫加个“星标”,每天一起快乐的学习大家好,我是 Rocky0429,一个刚恰完午饭,正在用刷网页浪费生命的蒟蒻...一堆堆无聊八卦信息的网页内容慢慢使我的双眼模糊,一个哈欠打出了三斤老泪,就在此时我看到了一张图片:是谁!是谁把我女朋友的照片放出来的!awsl!太好看了叭...等等,那个背景上的一堆鬼画符是什么鬼?!真是看不下去!叔叔婶婶能忍,隔壁老王的三姨妈的四表...
为啥国人偏爱Mybatis,而老外喜欢Hibernate/JPA呢?
关于SQL和ORM的争论,永远都不会终止,我也一直在思考这个问题。昨天又跟群里的小伙伴进行了一番讨论,感触还是有一些,于是就有了今天这篇文。 声明:本文不会下关于Mybatis和JPA两个持久层框架哪个更好这样的结论。只是摆事实,讲道理,所以,请各位看官勿喷。 一、事件起因 关于Mybatis和JPA孰优孰劣的问题,争论已经很多年了。一直也没有结论,毕竟每个人的喜好和习惯是大不相同的。我也看
SQL-小白最佳入门sql查询一
不要偷偷的查询我的个人资料,即使你再喜欢我,也不要这样,真的不好;
项目中的if else太多了,该怎么重构?
介绍 最近跟着公司的大佬开发了一款IM系统,类似QQ和微信哈,就是聊天软件。我们有一部分业务逻辑是这样的 if (msgType = "文本") { // dosomething } else if(msgType = "图片") { // doshomething } else if(msgType = "视频") { // doshomething } else { // doshom...
致 Python 初学者
欢迎来到“Python进阶”专栏!来到这里的每一位同学,应该大致上学习了很多 Python 的基础知识,正在努力成长的过程中。在此期间,一定遇到了很多的困惑,对未来的学习方向感到迷茫。我非常理解你们所面临的处境。我从2007年开始接触 python 这门编程语言,从2009年开始单一使用 python 应对所有的开发工作,直至今天。回顾自己的学习过程,也曾经遇到过无数的困难,也曾经迷茫过、困惑过。开办这个专栏,正是为了帮助像我当年一样困惑的 Python 初学者走出困境、快速成长。希望我的经验能真正帮到你
“狗屁不通文章生成器”登顶GitHub热榜,分分钟写出万字形式主义大作
一、垃圾文字生成器介绍 最近在浏览GitHub的时候,发现了这样一个骨骼清奇的雷人项目,而且热度还特别高。 项目中文名:狗屁不通文章生成器 项目英文名:BullshitGenerator 根据作者的介绍,他是偶尔需要一些中文文字用于GUI开发时测试文本渲染,因此开发了这个废话生成器。但由于生成的废话实在是太过富于哲理,所以最近已经被小伙伴们给玩坏了。 他的文风可能是这样的: 你发现,...
程序员:我终于知道post和get的区别
是一个老生常谈的话题,然而随着不断的学习,对于以前的认识有很多误区,所以还是需要不断地总结的,学而时习之,不亦说乎
《程序人生》系列-这个程序员只用了20行代码就拿了冠军
你知道的越多,你不知道的越多 点赞再看,养成习惯GitHub上已经开源https://github.com/JavaFamily,有一线大厂面试点脑图,欢迎Star和完善 前言 这一期不算《吊打面试官》系列的,所有没前言我直接开始。 絮叨 本来应该是没有这期的,看过我上期的小伙伴应该是知道的嘛,双十一比较忙嘛,要值班又要去帮忙拍摄年会的视频素材,还得搞个程序员一天的Vlog,还要写BU...
加快推动区块链技术和产业创新发展,2019可信区块链峰会在京召开
11月8日,由中国信息通信研究院、中国通信标准化协会、中国互联网协会、可信区块链推进计划联合主办,科技行者协办的2019可信区块链峰会将在北京悠唐皇冠假日酒店开幕。   区块链技术被认为是继蒸汽机、电力、互联网之后,下一代颠覆性的核心技术。如果说蒸汽机释放了人类的生产力,电力解决了人类基本的生活需求,互联网彻底改变了信息传递的方式,区块链作为构造信任的技术有重要的价值。   1...
程序员把地府后台管理系统做出来了,还有3.0版本!12月7号最新消息:已在开发中有github地址
第一幕:缘起 听说阎王爷要做个生死簿后台管理系统,我们派去了一个程序员…… 996程序员做的梦: 第一场:团队招募 为了应对地府管理危机,阎王打算找“人”开发一套地府后台管理系统,于是就在地府总经办群中发了项目需求。 话说还是中国电信的信号好,地府都是满格,哈哈!!! 经常会有外行朋友问:看某网站做的不错,功能也简单,你帮忙做一下? 而这次,面对这样的需求,这个程序员...
网易云6亿用户音乐推荐算法
网易云音乐是音乐爱好者的集聚地,云音乐推荐系统致力于通过 AI 算法的落地,实现用户千人千面的个性化推荐,为用户带来不一样的听歌体验。 本次分享重点介绍 AI 算法在音乐推荐中的应用实践,以及在算法落地过程中遇到的挑战和解决方案。 将从如下两个部分展开: AI算法在音乐推荐中的应用 音乐场景下的 AI 思考 从 2013 年 4 月正式上线至今,网易云音乐平台持续提供着:乐屏社区、UGC...
【技巧总结】位运算装逼指南
位算法的效率有多快我就不说,不信你可以去用 10 亿个数据模拟一下,今天给大家讲一讲位运算的一些经典例子。不过,最重要的不是看懂了这些例子就好,而是要在以后多去运用位运算这些技巧,当然,采用位运算,也是可以装逼的,不信,你往下看。我会从最简单的讲起,一道比一道难度递增,不过居然是讲技巧,那么也不会太难,相信你分分钟看懂。 判断奇偶数 判断一个数是基于还是偶数,相信很多人都做过,一般的做法的代码如下...
【管理系统课程设计】美少女手把手教你后台管理
【文章后台管理系统】URL设计与建模分析+项目源码+运行界面 栏目管理、文章列表、用户管理、角色管理、权限管理模块(文章最后附有源码) 1. 这是一个什么系统? 1.1 学习后台管理系统的原因 随着时代的变迁,现如今各大云服务平台横空出世,市面上有许多如学生信息系统、图书阅读系统、停车场管理系统等的管理系统,而本人家里就有人在用烟草销售系统,直接在网上完成挑选、购买与提交收货点,方便又快捷。 试想,若没有烟草销售系统,本人家人想要购买烟草,还要独自前往药...
8年经验面试官详解 Java 面试秘诀
作者 |胡书敏 责编 | 刘静 出品 | CSDN(ID:CSDNnews) 本人目前在一家知名外企担任架构师,而且最近八年来,在多家外企和互联网公司担任Java技术面试官,前后累计面试了有两三百位候选人。在本文里,就将结合本人的面试经验,针对Java初学者、Java初级开发和Java开发,给出若干准备简历和准备面试的建议。 Java程序员准备和投递简历的实...
面试官如何考察你的思维方式?
1.两种思维方式在求职面试中,经常会考察这种问题:北京有多少量特斯拉汽车?某胡同口的煎饼摊一年能卖出多少个煎饼?深圳有多少个产品经理?一辆公交车里能装下多少个乒乓球?一个正常成年人有多少根头发?这类估算问题,被称为费米问题,是以科学家费米命名的。为什么面试会问这种问题呢?这类问题能把两类人清楚地区分出来。一类是具有文科思维的人,擅长赞叹和模糊想象,它主要依靠的是人的第一反应和直觉,比如小孩...
碎片化的时代,如何学习
今天周末,和大家聊聊学习这件事情。 在如今这个社会,我们的时间被各类 APP 撕的粉碎。 刷知乎、刷微博、刷朋友圈; 看论坛、看博客、看公号; 等等形形色色的信息和知识获取方式一个都不错过。 貌似学了很多,但是却感觉没什么用。 要解决上面这些问题,首先要分清楚一点,什么是信息,什么是知识。 那什么是信息呢? 你一切听到的、看到的,都是信息,比如微博上的明星出轨、微信中的表情大战、抖音上的...
so easy! 10行代码写个"狗屁不通"文章生成器
前几天,GitHub 有个开源项目特别火,只要输入标题就可以生成一篇长长的文章。 背后实现代码一定很复杂吧,里面一定有很多高深莫测的机器学习等复杂算法 不过,当我看了源代码之后 这程序不到50行 尽管我有多年的Python经验,但我竟然一时也没有看懂 当然啦,原作者也说了,这个代码也是在无聊中诞生的,平时撸码是不写中文变量名的, 中文...
知乎高赞:中国有什么拿得出手的开源软件产品?(整理自本人原创回答)
知乎高赞:中国有什么拿得出手的开源软件产品? 在知乎上,有个问题问“中国有什么拿得出手的开源软件产品(在 GitHub 等社区受欢迎度较好的)?” 事实上,还不少呢~ 本人于2019.7.6进行了较为全面的回答,对这些受欢迎的 Github 开源项目分类整理如下: 分布式计算、云平台相关工具类 1.SkyWalking,作者吴晟、刘浩杨 等等 仓库地址: apache/skywalking 更...
相关热词 如何提升c#开发能力 矩阵乘法c# c#调用谷歌浏览器 c# 去空格去转义符 c#用户登录窗体代码 c# 流 c# linux 可视化 c# mvc 返回图片 c# 像素空间 c# 日期 最后一天
立即提问