创建数据库[BCVote].[dbo].[m_vote_record] 的索引 名称为m_vote_recordIPIndex CREATE INDEX m_vote_recordIPIndexON [BCVote].[dbo].[m_vote_record] (ip) 查询数据库中的所有索引 SE ...
分类:
数据库 时间:
2020-06-09 14:41:33
阅读次数:
472
一、使用线程的join方法 二、使用主线程的join方法 三、使用线程的wait方法 四、使用线程的线程池方法 五、使用线程的Condition(条件变量)方法 六、使用线程的CountDownLatch(倒计数)方法 七、使用线程的CyclicBarrier(回环栅栏)方法 八、使用线程的Sema ...
分类:
编程语言 时间:
2020-06-08 19:23:55
阅读次数:
63
数据库连接方式 Spring.datasource.url=jdbc:mysql://location/mydb Spring.datasource.username=root Spring.datasource.password= 显示数据库:show databases; 创建数据库:creat ...
分类:
数据库 时间:
2020-06-08 19:23:03
阅读次数:
89
一 线程Thread的使用 (1)不通过委托,直接在线程里实现方法体 namespace ConsoleApplication1{ class Program { static void Main(string[] args) { bool a =false; bool b = false; boo ...
分类:
编程语言 时间:
2020-06-08 10:51:12
阅读次数:
69
数据访问DAL和实体类 UserInfo.cs using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ...
https://blog.csdn.net/zhangbijun1230/article/details/81608252 一、 数据库设计 1.选取合适的字段 tinyint、char 、varchar 尽可能地把字段设置为 NOT NULL 2.尽可能地使用 join 代替关联查询 3.使用索引 ...
分类:
数据库 时间:
2020-06-07 21:45:51
阅读次数:
84
1.设置静态文件 第一步:在项目目录下创建static文件夹,用于存放项目的静态文件,可以在该文件夹下面继续创建文件夹,用于静态文件的分类管理。 第二步:在settings.py下面添加以下代码。设置静态文件路径。 STATICFILES_DIRS = ( os.path.join(BASE_DIR ...
分类:
Web程序 时间:
2020-06-07 14:57:55
阅读次数:
70
base = [str(x) for x in range(10)] + [chr(x) for x in range(ord('A'), ord('A') + 6)] # ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C ...
分类:
其他好文 时间:
2020-06-07 13:15:30
阅读次数:
85
IoC 和 AOP 被称为 Spring 两大基础模块,支撑着上层扩展的实现和运行。虽然 AOP 同样建立在 IoC 的实现基础之上,但是作为对 OOP(Object-Oriented Programing) 的补充,AOP(Aspect-Oriented Programming) 在程序设计领域拥 ...
分类:
编程语言 时间:
2020-06-07 01:01:18
阅读次数:
71
线程池-concurrent.futures模块 介绍 concurrent.futures模块提供了高度封装的异步调用接口 ThreadPoolExecutor:线程池,提供异步调用 ProcessPoolExecutor: 进程池,提供异步调用 方法 submit(fn, *args, **kw ...
分类:
编程语言 时间:
2020-06-06 21:45:10
阅读次数:
66