Student (s #, sname, sage, ssex) Student tableCourse (C #, cname, T #) CurriculumSC (s #, C #, score) Orders tableTeacher (T #, tname) Instructor table
Problem:1. query the student ID of all students whose score is higher than that of the "002" course;Select a. s # From (select s #, score from SC where C # = '001') A, (select s #, scoreFrom SC where C # = '002') BWhere a. score> B. score and a. s # = B. S #
Student (s#,sname,sage,ssex) Student tableCourse (c#,cname,t#) timetableSC (s#,c#,score) score sheetTeacher (t#,tname) Teacher's TableProblem:1, Query the "001" Course than "002" course scores of all students of the school number;
Copy Code code as follows:
Select a.s# from (select S#,score from SC where c#= ' 001 ') A, (select S#,score
From SC where c#= ' 002 ') b
where A.score>b.score a
This text has been reprinted online, and some SQL statements are suitable for use in application systems. Some "reports" have a heavier feeling, mainly to review the former.
This text has been reprinted online, and some SQL statements are suitable for use in application systems. Some "reports" are more likely to be used, mainly to review the former.
50 common SQL statements
Student (S #, Sname, Sage, Ssex) Student table
Course (C #, Cname, T #) Curriculum
SC (S #, C #, score) Orders table
Teac
50 SQL statements involved in one question
Student (s #, sname, sage, ssex) Student tableCourse (C #, cname, T #) CurriculumSC (s #, C #, score) Orders tableTeacher (T #, tname) Instructor table
Problem:1. query the student ID of all students whose score is higher than that of the "002" course;Select a. s # From (select s #, score from SC where C # = '001') A, (select s #, scoreFrom SC where C # = '002
50 Common SQL statements
Student (s#,sname,sage,ssex) Student table
Course (c#,cname,t#) timetable
SC (s#,c#,score) score sheet
Teacher (t#,tname) Teacher's Table
Problem:
1, Query the "001" Course than "002" course scores 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 ') b
where A.score>b.score and a.s#=b.s#;
"Hello!"(integer) 0
127.0.0.1:6379> hget myhash Field"Hello"
③hmset method
Set multiple field of hash at the same time
Cases
Copy Code code as follows:
127.0.0.1:6379> hmset user:002 name Dee specialty PHP
Ok
127.0.0.1:6379> hget user:002 Name"Dee."
127.0.0.1:6379> Hget user:002 Specialty"PHP"
④hget method
Gets the spe
Student (s#,sname,sage,ssex) Student tableCourse (c#,cname,t#) timetableSC (s#,c#,score) score tableTeacher (t#,tname) Teacher tableProblem: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#,scoreFrom SC where c#= ' 002 ') bwhere A.score>b.score and a.s#=b.s#;2, the query average score is more than
Use the sys_connect_by_path (column,
Use the sys_connect_by_path (column,
Oracle peer groupingUse the sys_connect_by_path (column, '') function as an example ^.
Table Structure:
Create table test (
Bookid char (3) not null,
Author varchar2 (10) not null
);
Insert into test values ('001', 'jack ');
Insert into test values ('001', 'Tom ');
Insert into test values ('002 ', 'wang ');
Insert into test values ('
Clipboard
. htm,. html format: web page file
. par format: For exchanging files
. pwl format: For password file (Password)
. xls/.xlsx Format: Excel file
Third, graphic image file type
Open mode: General use of graphics to view the software can be opened, for example: ACD format: See software, if it is a specific professional software, then you must use professional design software open, CDR files must be opened with CorelDRAW Software, DWG must be opened with AutoCAD.
. bmp format: Wind
\ Samples \ C ++ \ DirectShow \ Editing \ TimelineTest.
First, we will notice a preprocessing macro at the beginning of TimelineTest. cpp:
#001 # ifdef STRICT
#002 # undef STRICT
#003 # endif
Let's take a look at the STRICT macro. In MSDN, the STRICT macro is used for STRICT type detection. Windows. the h header file defines a series of macros and structures used to make the compiled code run between different Windows versions. When we compile the co
This article mainly introduced the Nodejs realization obtains the current URL address and the URL various parameter values, this article directly gives the code example, needs the friend to be possible to refer to under
The code is as follows:
Module HTTP URL that needs to be used
Current URL http://localhost:8888/select?aa=001bb=002
var http = require (' http ');
var URL = require (' URL ');
Http.createserver (function (req, res) {
var arg = U
I. Preparation
Download httpd-2.2.21.tar.gz
Download apache-tomcat-7.0.23.tar.gz
Download tomcat-connectors-1.2.32-src.tar.gz connection
Ii. Installation
① Install apache:
Unzip: tar zxvf httpd-2.2.21.tar.gz
Renamed: mv httpd-2.2.21 apache
#./Configure -- prefix =/002/apache
# Make
# Make install
② Install tomcat
Tomcat can be directly run without installation or decompression
Compile and install atat-connectors-1.2.32-src.tar.gz
1. Unzi
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.