Solution to the problem of JPasswordField's getText() method being out of date

In recent days, I want to make a login interface with Jframe. When connecting to the database, I found that the getText() of JPasswordField is out of date and cannot be used. After checking the data, we found that it was changed to: try{ String sql="SELECT * FROM username WHERE name=?"; conn = DB.getConnectio ...

Posted by drunkencelt on Sat, 07 Dec 2019 06:02:41 +0100

Auto repair technology of Oracle Dataguard

Oracle Active Data Guard and Automatic Block Repair Starting in Oracle Database 11g Release 2 (11.2), the primary database automatically attempts to repair the corrupted block in real time by fetching a good version of the same block from a physical standby database. This capability is referred to as automatic block repair, and it allows corrup ...

Posted by phpnewbie81 on Fri, 06 Dec 2019 11:48:32 +0100

jdbc transaction data source

Affairs: Why do you want to open a transaction? In the program, it's not just compiled, but the same as the logical line. Transactions can help us to execute logic better Data source: Database connection optimization helps us link databases faster If the data source has a database pool, you can take it directly from the database pool import co ...

Posted by arcanechaos on Thu, 05 Dec 2019 18:54:24 +0100

Big and small as you -- MySQL

Written in front Mysql is a magical relational database. I really feel that it's awesome. Because the projects I've done are quite miscellaneous, I've met Oracle database before, which gives me the impression that Oracle is very cumbersome and cumbersome, with many configurations. If it's used for small projects, it's like killing chickens and ...

Posted by BruceRowe on Thu, 05 Dec 2019 08:55:38 +0100

MySQL Database Management

Mysql Management Operations Database management operations View database structure Create and delete libraries and tables Manage records for tables Basic Operational Commands View database list information SHOW DATABASES [root@localhost ~]# mysql -u root -p Enter password: Welcome to the MySQL monitor. Commands end with ; or \g. Your ...

Posted by jdm95lude on Wed, 04 Dec 2019 15:57:19 +0100

sql injection problem

java.sql.PreparedStatement(SQL preprocessing) Prevent SQL injection As long as your sql parameters are provided by users, you need to use sql preprocessing When setting parameters, you need to select the corresponding data type to set, otherwise there will be problems when processing the type One of the advantages of setObject is that you can j ...

Posted by Adika on Wed, 04 Dec 2019 06:03:58 +0100

Oracle Dataguard next block repair technology user data table

The ABCR function of Oracle 11gr2 has been introduced. When a damaged database is retrieved, it will be automatically repaired. Now test whether the database will be automatically repaired when the database block is damaged and the instance is forced to close.First, test the general user table, baiyang.t'ou objs(I) current active and standby en ...

Posted by cristal777 on Wed, 04 Dec 2019 05:47:04 +0100

jsp built in object login cookie + session

Summary Two pages in totalWhen accessing the product list directly, it will judge whether the user is logged in. If the user is not logged in, it will jump for 3 secondsIf the user logs in, there is no jumpLogin page: for login page, enter user name and password directly. Compare with database to loginAnd save the password locally ps usually ne ...

Posted by daynah on Tue, 03 Dec 2019 18:49:28 +0100

Advanced case of spark SQL

(1) case of ashes -- UDTF seeking wordcount Data format:Each line is a string and separated by spaces.Code implementation: object SparkSqlTest { def main(args: Array[String]): Unit = { //Block redundant logs Logger.getLogger("org.apache.hadoop").setLevel(Level.WARN) Logger.getLogger("org.apache.spark").setLevel(Leve ...

Posted by marklarah on Tue, 03 Dec 2019 04:36:38 +0100

Java + spark SQL query excel

Download Spark on Spark official website Spark Download The version is free. After downloading, extract it and put it under bigdata (the directory can be changed) Download the file winutils.exe required by Hadoop under Windows Let's find it on the Internet. It won't be uploaded here. In fact, this file is optional, and error reporting doesn' ...

Posted by GrayFox12 on Tue, 03 Dec 2019 04:21:44 +0100