The introduction of print table stored procedure in oracle
All along, I think it's very easy to use the \ G parameter in MySQL to change the display mode of the output result set, especially in the command-line interface. But ORACLE database doesn't have this function. Today, when I searched a blog post of master Tom, I found that master used a stored procedure, print table, to implement such functions ...
Posted by Repgahroll on Thu, 02 Jan 2020 18:27:41 -0800
Joint query of four tables for students' course selection in Oracle database classic cases
4. Joint query of Table 4: student course selection query
Question and Description:
Students and achievement table students are the main table and achievement is the sub table
Curriculum and score table curriculum is the main table and score is the sub table
Teacher and curriculum teacher are the main table, curriculum is t ...
Posted by dcinadr on Thu, 02 Jan 2020 03:52:08 -0800
One article a day of mysql 15: perfect de duplication in mysql
There are a lot of garbage data in the table. Now delete and keep one of them (whether to judge repeatedly is based on multiple fields)
Scenario 1:
DELETE
FROM
vitae a
WHERE
(a.peopleId, a.seq) IN (
SELECT
peopleId,
seq
FROM
vitae
GROUP BY
peopleId,
seq
HAVING
count(*) > 1
)
AND rowid NOT IN (
...
Posted by svguerin3 on Thu, 02 Jan 2020 02:58:27 -0800
java database connection pool configuration
jar package required for connection pool configuration
Servlet api.jar imports the jar package under Tomcat directory by itself. If there are no other jar packages
See download link ----- > download (there's no way to set it as free, set it as the lowest point to download)
Download portal 2: YouDaoNote
These jar packag ...
Posted by coldwerturkey on Wed, 01 Jan 2020 18:04:42 -0800
Oracle storage functions
Oracle storage functions
The storage function is also a named PLSQL block.
--Note: the stored procedure has no return value, but the stored function has a return value.
The difference between stored procedure and stored function
Generally speaking, the difference between a procedure and a function is that a function can ...
Posted by hongco on Wed, 01 Jan 2020 13:45:28 -0800
Getting started with JDBC
JDBC concepts and quick start cases
1. Concept of JDBC:
Operate database by Java code (add, delete, modify, check)
2. Quick start procedure:
A.Import jar package
B.Registration driven
Class.forName("com.mysql.jdbc.Driver");
C.Acquisition drive
String url = "jdbc:mysql://127.0.0.1:3306 / EE "; / / EE is the name ...
Posted by javawizkid on Wed, 01 Jan 2020 00:58:11 -0800
PHP realizes the effect of similar question bank
PHP realizes the effect of similar question bank
Hello everyone, I think someone is back. I learned a little bit about PHP recently, and then I want to write a simple example to try. So I wrote something similar to extracting questions from the question bank, which is to input the number of questions to be extracted first, and then randomly ext ...
Posted by doox00 on Tue, 31 Dec 2019 17:05:26 -0800
C ා connect to mysql database by reading configuration file
The most common way to connect to the database is through string connection, as follows:
public static string connstr = "server = localhost; uid = root; pwd = 123456; database = db_sms;";
MySqlConnection conn = new MySqlConnection(connstr);
MySqlCommand comm = new MySqlCommand(sqlstr, conn);
However, this method is not con ...
Posted by Redlightpacket on Tue, 31 Dec 2019 07:40:54 -0800
sql: merge a field of multiple records into a record group ﹐ concat function
I. demand.
Existing user table, user role table, role table. One of the users corresponds to multiple roles. When querying user details, you need to directly query the role names of users, separated by commas.
2, sql table creation script
2.1 user table
CREATE TABLE `user` (
`uid` bigint(20) NOT NULL AUTO_INCREMENT COMMEN ...
Posted by airo on Tue, 31 Dec 2019 05:48:18 -0800
Java learning daily (using JDBC)
Learning content
Use of JDBC
Development steps
1. Select database: load database driver;
2. Connect to the database
3. Create database query
4. Get query results
5. Get query results
Complete JDBC operation code
package com.dodoke.jdbc;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.Prepared ...
Posted by cdjsjoe on Tue, 31 Dec 2019 05:34:00 -0800