Dictionary of python data type‘

1. Why need dictionary type >>> list1 = ["name", "age", "gender"] >>> list2 = ["fentiao", 5, "male"] >>> zip(list1, list2) >>>userinfo=dict(zip(list1, list2)) // Combining the two lists through zip built-in functions [('name', 'fentiao'), ('age', 5), ('gender', 'male')] >>> list ...

Added by Hooker on Mon, 20 May 2019 02:02:12 +0300

MySql Learning Notes: JOIN

Prerequisite: Create two relational tables:  CREATE TABLE t_blog(         id INT PRIMARY KEY AUTO_INCREMENT,         title VARCHAR(50),         typeId INT ); CREATE TABLE t_type(         id INT PRIMARY KEY AUTO_INCREMENT,         name VARCHAR(20) ); The table data are as follows: 1. Acquisition of Public Parts A and B MySql provides an int ...

Added by erichar11 on Sun, 19 May 2019 16:27:05 +0300

SpringBoot Unofficial Tutorial | Part 4: SpringBoot Integration JPA

For reprinting, please indicate the source:http://blog.csdn.net/forezp/article/details/70545038  This article is from Fang Zhipeng's blog The full name of JPA is Java Persistence API.JPA describes the mapping relationship of object-relational tables through JDK 5.0 annotations or XML, and persists the runtime entity objects to the database. ...

Added by Chef-Mars on Sun, 19 May 2019 12:17:31 +0300

Linux System Diagnosis Tips (15): How to Fix File System Damage with Start-Stop Problems

Digression Let's start with what file systems are and what tools are needed. file system Nowadays, there are many kinds of storage and complex stacks. But the user's direct interface is still file system . For Linux and the open source community, a lot of software is also dependent. file system . MySQL and PostgreSQL databases, for example, c ...

Added by mortona on Sun, 19 May 2019 08:56:28 +0300

Python Learning Notes _02: Using Tkinter to Connect MySQL Database to Realize Login Registration Function

1 Environmental Construction 1.1 Python installation 1.2 MySQL Environment Construction 1.3 Install MySQLdb 2. Realization 2.1 Landing Interface 2.2 Registration Interface 2.3 Specific implementation of part of the code   1 Environmental Construction 1.1 Python installation This paper implements part of Python environment: Python 2.7.1 ...

Added by sasi on Sun, 19 May 2019 06:33:34 +0300

mysql linux c api and notes

Commonly used linux C API Multithread related routines Common mysql statements Problems encountered Start mysql service to report errors Import file error reporting Commonly used linux C API MYSQL *conn = mysql_init(void); //Initialize mysql and return mysql handle //iferr(!conn) conn = mysql_real_con ...

Added by kpmonroe on Sun, 19 May 2019 05:54:15 +0300

mysql+mycat read-write separation

Environmental Science 192.168.2.118 mysql-master/mycat 192.168.2.119 mysql-slave Configure jdk tar -zxf jdk-8u151-linux-i586.tar.gz mv jdk1.8.0_151 /usr/java/ Configure environment variables and take effect vim /etc/profile export JAVA_HOME=/usr/java/ export CLASSPATH=$CLASSPATH:$JAVA_HOME/lib:$JAVA_HOME/jre/lib export ...

Added by foreknowapparel on Sun, 19 May 2019 01:48:47 +0300

Installing MySQL under CentOS 7

Installing MySQL under CentOS 7 Step 1: Download MySQL [root@tencent-centos1 opt]# wget http://mirrors.sohu.com/mysql/MySQL-5.7/mysql-5.7.17-linux-glibc2.5-x86_64.tar.gz Step 2: Unzip and download to MySQL package 1. Decompression package. Command template The directory where the tar-zxvf compression package i ...

Added by meir4u on Sat, 18 May 2019 22:40:15 +0300

Source Details Seata-Client principles and processes for distributed transactions

Preface Distributed transaction is a problem that must be solved in distributed systems. At present, the final consistency scheme is used mostly.Since Ali opened Fescar at the beginning of this year (renamed Seata in early April), the project has received tremendous attention and is now approaching 8000 Star s. Seata Distributed transaction cha ...

Added by unkwntech on Sat, 18 May 2019 13:06:43 +0300

7. View operation of MySQL database

In the last section, the view concept of MySQL database was introduced at the end. This chapter will give a detailed introduction to the centralized use of views. Before creating the view, we first create the student table, college table and student information table. By using the operation of the view to three tables, we can have a basic under ...

Added by Nacota on Sat, 18 May 2019 12:07:04 +0300