Java face test-database article 11
As a Java back-end developer, database knowledge is essential to the database to master the familiarity of the investigation is the person has a solid basic skills. Especially for novice developers, the interview may not ask about framework-related knowledge, but will not go to the database knowledge, here to collect some common types of SQL statements, whether for the normal development or preparation for the interview, will be helpful.
Basic table structure:
Tags: exec show ack ade fun ber hang cname specificTimer Job1. DefinitionA timer is a specific operation that is performed at a specific time.Can be executed multiple times.DescriptionSpecific actions: Refers to a stored procedure that completes a specific function.Multiple executions: It is possible to run periodically, hourly, daily, weekly, Monthly, quarterly, yearly, etc.2. Preparatory workSOURCE table: STUDENT,COURSE,SCCREATE TABLE Student(Sno Number (6) Not null primary key,Sname varchar2
First, there are three concepts in mind:1. exists found by sub-queryA commit not found in a EXISTS subqueryDescription: Do not translate to exist and not exist, the head dizzy.2. Establish the concept of a program loop, which is a dynamic query process. such as for loops.3. exists executes the process exists first executes the outer query, and then executes the memory query, in the opposite direction. The process is to first remove the outsideThe first tuple in the layer, then executes the inner
Mpls vpn service shunting case
1. Configure the basic information of each vro2. OSPF standard configuration. Change the network type to point-to-point and configure the passive interface.3. The MPLS backbone network runs OSPF and the Label Distribution Protocol is LDP.4. Run MP_IPGP in RT4 and RT5, and use mpls vpn to distribute production and office services.5. RT4 vrf SC and RT6 run RIP, RT4 vrf bg and RT7 configure Static Routing, RT5 vrf
-"command line program, right-click menu, select" Run as Administrator. "
In this way, the administrator to open a command-line program, input SC plus parameters on it, the use of the method is very simple:
SC Delete "service name" (if there is a space between the service name, you need to enclose the quotation marks)
As for the above: SC Delete Ksd2service
when the computer restarts, it will not start again.
There are two options for deletion:
Method One: Use sc.exe this Windows command
Click Start Menu-"All Programs-" accessories-"command line program, right-click menu, select" Run as Administrator. "
In this way, the administrator to open a command-line program, input SC plus parameters on it, the use of the method is very simple:
SC Delete "serv
Minimize Winform interception, maximize, close events [arrangement], and minimize winform
1 const int WM_SYSCOMMAND = 0x112; 2 // form close Message 3 const int SC _CLOSE = 0xf060; 4 // form minimize message 5 const int SC _MINIMIZE = 0xf020; 6 // form maximize Message 7 const int SC _MAXIMIZE = 0xf030; 8 // form restore Message 9 const int
Uchome implements an encapsulation class for MySQL databases without using open-source database frameworks such as ADODB or pear. The advantage of doing so is that there are very few files and the space is very small.
1. Database ConfigurationLike many PHP projects, the uchome database configuration is placed in the config. PHP configuration file, from row 9th to line 16:
$ _ SC ['Dbhost'] = 'localhost '; // Du ???? $ _
Save the following characters as a batch file. bat
Copy Code code as follows:
echo is stopping service ...
NET stop test Service
echo is removing service ...
SC Delete Test Service
Echo Press any key to exit ...
Pause
SC Help file can use SC/? Get
Error: Unknown command
Describe:
SC is
Database Experiment Two
1. Create a database
--**************************--*** 1. Building a Database SC * * *--************************** Create db SC Go------------------- -----------using, locating the database SC----------------------------use SC go
2. Create a data table
--**************************--*** 2. Cre
Label:1, the inquiry "001" course is higher than "002" of all students of the school number;Select a. ' s# ' from (select ' s# ', score from SC where ' C # ' = "001") A,(SELECT ' s# ', score from SC where ' C # ' = "002") bwhere A.score>b.score and A. ' s# ' =b. ' s# '; 2, the query average score is more than 60 points of the student's number and average score;Select ' s# ', AVG (score)From SCGROUP BY ' s#
Introduction The dynamic loading of device drivers is mainly completed by Service Control Manager (SCM) system components. SCM components can provide many services, such, start, stop, and control services. Write and load the driver, which is mainly used to operate the SCM component. Generally, the following APIs are used to operate the SCM component: SC _handle winapi openscmanager (
_ In_opt lpctstr lpmachinename, // computer name
_ In_opt lpctstr lp
. Grant
8. to cancel the existing table s in the database, use ().
A. Delete table s B. Delete s
C. Drop table s d. Drop s
9. To add a CN (Course name) column to basic table S, use ().
A. Add Table S (CN char (8 ))
B. Add Table s alter (CN char (8 ))
C. alter table s add (CN char (8 ))
D. alter table s (add CN char (8 ))
10. The Student Relationship Model S (s #, sname, Sex, Age) and S attributes indicate the student's student ID, name, gender, and age. To delete an attribute "A
Database: SC _source and SC _dest
Requirement: Copy all objects under the product user in SC _source to SC _dest.
I. preparations:
1.1 place the SC _source and SC _dest databases in the archive Mode
1.2 if some tables do not have
Database --- Experiment 2 Data Query --- Data Query
(1) Multi-table join query I. query the Student name, course number, and score of each selected student. (2 table join) SQL> select student. sname, SC. cno, SC. grade from student, SC where student. sno = SC. sno; ii. student ID, name, and course name and score. (3 t
Common SQL Server test questions (1) Question 1 Problem description: create three tables for managing job business training information: S (s #, Sn, SD, SA) s #, Sn, SD, SA stands for student ID, Student name, organization, student age C (C #, CN) C #, CN stands for course number, course name SC (s #, CN respectively #, C #, g) s #, C #, and g respectively represent the student ID, the number of the elective course, and the score 1. use the standard S
First of all:1. EXISTS found by sub-queryA commit not found in a EXISTS subqueryDescription: Do not translate to exist and not exist, the head dizzy.2. Establish the concept of a program loop, which is a dynamic query process. such as for loops.3. exists executes the process exists first executes the outer query, and then executes the memory query, in the opposite direction. The process is to first remove the outsideThe first tuple in the layer, then executes the inner query, substituting the fi
Student (s#,sname,sage,ssex) Student Table Course (c#,cname,t#) Timetable SC (s#,c#,score) score table teacher (t#,tname) Teacher table question: 1, query "001" Course than "002" School number of all students with high course performance; Select a.s# from (select S#,score from SC where c#= ' 001 ') A, (select S#,scorefrom SC where c#= ' 002 ') bwhere A . Score>b.
To load your own driver with vc, perform the following steps: 1. to load the driver service, use the following functions: SC _HANDLEWINAPIOpenSCManagerA (_ handler ,__ in_optLPCSTRlpDatabaseName ,__ inDWORDdwDesiredAccess ); create driver service SC _HANDLEWI
To load your own driver with vc, perform the following steps: 1. to load the driver service, use the following functions:
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.