---------------个人学习笔记--------------- ----------------本文作者吴疆-------------- ------点击此处链接至博客园原文------ 1. 同级目录中import导入模块.包 import module1 调用时为module1.fun1() from module1 import * 调用时为fun1() from module1 import fun1 as f 调用时为f() from . import xxx(.表示同级目
MySQL-Day03回顾1.索引 1.普通索引 index 2.唯一索引(UNI,字段值不允许重复,但可以为NULL) 1.创建 1.字段名 数据类型 unique 2.unique(字段名), unique(字段名)... 3.create unique index 索引名 on 表名(字段名); 2.删除(只能一个一个删) show index from 表名; drop index 索引名 on 表名; 3.主键索引&自增长属性(PRI,字段值不允许重复且不能为NULL) 1.注意:一个
环境搭建 1.到apache下载solr,地址:http://mirrors.hust.edu.cn/apache/lucene/solr/ 2.解压到某个目录 3.cd into D:\Solr\solr-4.10.3\example 4.Execute the server by “java -jar startup.jar”Solr会自动运行在自带的Jetty上 5.访问http://localhost:8983/solr/#/ PS:solr-5.0 以上默认对schema的管理是使用m