前言 本文将结合实例demo,阐述30条有关于优化SQL的建议,多数是实际开发中总结出来的,希望对大家有帮助。 1、查询SQL尽量不要使用select *,而是select具体字段。 反例子: select * from employee; 正例子: select id,name from empl ...
分类:
数据库 时间:
2020-07-12 00:47:36
阅读次数:
154
JDBC 概念:Java DataBase Connectivity,java数据库连接,java语言操作数据库 JDBC本质:其实是官方定义的一套操作所有关系型数据库的规则,即接口.各个数据库产商去实现这个接口,提供数据库确定jar包.这套接口编程,真正执行的是驱动jar包的实现类 快速入门 步骤 ...
分类:
数据库 时间:
2020-07-11 09:17:46
阅读次数:
83
package com.bi import java.sql.{Connection, DriverManager, Timestamp} import java.util.Calendar /** * Created by xxx on 2017/6/28. */ object MySqlConn ...
分类:
数据库 时间:
2020-07-10 23:50:33
阅读次数:
64
问题 数据库链接丢失异常 django.db.utils.OperationalError: (2013, 'Lost connection to MySQL server during query') 查询mysql全局变量SHOW GLOBAL VARIABLES;可以看到wait_timeou ...
分类:
其他好文 时间:
2020-07-10 16:53:23
阅读次数:
99
var mongooes=require("mongoose"); mongooes.connect("mongodb://localhost/my_test",{useMongoClient:true}) mongooes.connection.once("open",function(){ co ...
分类:
其他好文 时间:
2020-07-10 15:37:04
阅读次数:
64
Mac配置前端开发环境及遇到的问题与解决方案 MacOS版本:10.15.3 一,安装brew 问题:curl: (7) Failed to connect to raw.githubusercontent.com port 443: Connection refused的解决办法 解决方案:打不开 ...
分类:
系统相关 时间:
2020-07-10 15:09:17
阅读次数:
107
原文: https://wiki.mikrotik.com/wiki/Manual:IP/Fasttrack 需要两条命令来执行: /ip firewall filter add chain=forward action=fasttrack-connection connection-state=e ...
分类:
其他好文 时间:
2020-07-10 13:42:19
阅读次数:
173
pymysql.Connect()参数说明 host(str): MySQL服务器地址 port(int): MySQL服务器端口号 user(str): 用户名 passwd(str): 密码 db(str): 数据库名称 charset(str): 连接编码 connection对象支持的方法 ...
分类:
数据库 时间:
2020-07-10 13:30:04
阅读次数:
87
import warnings from selenium.webdriver.remote.webdriver import WebDriver as RemoteWebDriver from .remote_connection import ChromeRemoteConnection fro ...
分类:
其他好文 时间:
2020-07-10 11:25:17
阅读次数:
76
package com.sjw.flink import java.sql.{Connection, DriverManager, PreparedStatement} import org.apache.flink.configuration.Configurationimport org.apa ...
分类:
数据库 时间:
2020-07-10 00:01:11
阅读次数:
81