coordinates, respectively, to analyze:ControlThe center point of the control is first used as the starting coordinate, and the displacement data is obtained based on the supplied parameters Xoffset and Yoffset, and the speed parameter is used to calculate the step.Steps = 1250.0/speed + 1;End.X = Start.x + xoffset;End.y = Start.y + yoffset;The starting coordinate plus the displacement is the end of the coordinates, this steps setting is still a bit confusing, I this
salesman 1600 00:00:00 300 30 ......
View the status before deletion: assume that the data has been deleted for about five minutes:
SQL> select * from EMP2 as of timestamp sysdate-5/1440;EMPNO ENAME JOB MGR HIREDATE SAL COMM DEPTNO---------- ---------- --------- ---------- ------------------- ---------- ---------- ----------7369 SMITH CLERK 7902 1980-12-17 00:00:00 800 207499 ALLEN SALESMAN 7698 1981-02-20 00:00:00 1600 300 307521 WARD SALESMAN 7698 1981-02-22 00:00:00
Today, when I was doing an exercise on Oracle query statements, I encountered A question: Find out the employee name of A, the third letter of name (ENAME) in the EMP table. The existing data in my Scott. emp table is as follows:
SQL> select * from emp;
EMPNO ENAME JOB MGR HIREDATE SAL COMM DEPTNO-----------------------------------------------------------------------------------7369 smith clerk 7902-12-80 800 207499 allen salesman 7698 20-2 month-81 1600 300 307521 ward salesman 7698 22-2 month-
// restart oracle
7. Test
A. Auto Start
Copy codeThe Code is as follows:
Last login: Mon Nov 26 19:57:06 2012 from 10.0.0.145
[Root @ ORS ~] # Su-oracle
[Oracle @ ORS ~] $ Sqlplus "/as sysdba"
SQL * Plus: Release 10.2.0.1.0-Production on Mon Nov 26 20:07:33 2012
Copyright (c) 1982,200 5, Oracle. All rights reserved.
Connected:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0-Production
With the Partitioning, OLAP and Data Mining options
SQL> set linesize 300;
SQL> set pagesize 30;
duration can be reported.
List
Create table experiment
(Experiment_id NUMBER (9 ),
Experiment_desc VARCHAR2 (80 ),
Experiment_start TIMESTAMP,
Experiment_duration interval day (1) to second (4)
);
Table created.
Insert into experiment
VALUES (
1, 'busted urban myth', '01-JUN-2006 02:00:00 ',
INTERVAL '1 2:31:15. 1250 'DAY (1) to second (4)
);
1 row created.
Col experiment_desc format a40
Col experiment_start format a30
Col experiment_duration format
contained, quotation marks are required.When no quotation marks are added, the display is in uppercase. After quotation marks are added, the display is based on what is written.Use single quotes when using strings.When writing an alias, double quotation marks are required.
2. Empty filter function: nvl (expression used when the expression is null)Select empno, ename, sal, sal * 12 as annual salary, nvl (comm, 0), (sal * 12 + nvl (comm, 0) Total incomeFrom emp
3. Remove duplicate rows-Act on a c
Common Oracle functions: nvlnullifcasewhenwm_concatreplace
Common Oracle functions: nvl/nullif/case when/wm_concat/replace
1. nvl Function The nvl function converts a null value to an actual value. The data type can be date, number, character, and must match: for example:Nvl (commision, 0) Nvl (hiredate, '01-JAN-87 ') Nvl (job_id, 'no manager ') Nvl (to_char (job_id), 'no manager ') Nvl can convert any data type, but the returned value of the converted data type must be the expr type of the f
codes.UsageAdd it to the first line of the ASP file. Use the following code based on different code pages:Usage notesIf codepage is not set for webpage A, and codepage is set for webpage B and C. When accessing webpage A, use the default IIS codepage; when accessing webpage B, use the codepage specified by webpage B; when accessing webpage A, use the codepage specified by webpage B; finally, access page C and use the codepage specified by Page C.1252 ____ Western iso-8859-1When t when 128-159 i
) Restore config_shownavigationbar to the default value.
Set \ frameworks \ base \ core \ res \ values \ config. xml
Status
Mode: Table parameter: config_shownavigationbar = false
Compile and press the three virtual buttons in flat mode. Our problem is solved. Set to flat mode. Three virtual buttons are displayed.
3. Why is there only one black box in phone mode?
The problem has been solved, but we still have a question: why didn't we achieve the desired effect after being modified by net
At the beginning, I was confused about the analytical functions. Here I reference nyfor on itpub.
Question: When first_value () or last_value () is used, using partition and order by at the same time will not achieve the desired effect.
SQL> select deptno, empno, ename, Sal,2 last_value (SAL) over (partition by deptno)3 from EMP;
Deptno empno ename Sal last_value (SAL) over (partitionb------------------------------------------------------------10 7782 Clark 2450.00 130010 7839 King 5000.00 13001
Exists indicates that the results returned by the subquery statement in () are not null, indicating that the where condition is true, the primary SQL statement is executed. If it is null, the where condition is invalid, and the SQL statement is not executed. Not exists is opposite to exists. If the subquery result is null, the where condition is true and the SQL statement is executed. Not executed.
I used to contact exists when I was learning Oracle databases. I have made several simple examples
Yesterday, I suddenly found that the Oracle server I installed does not have scott users, so I cannot import it manually.
Specific Method:
First, log on with the system user.
Import the scott. SQL script (which can be found in the oracle installation directory). For example, import the local path and write it as follows:
@ D: \ app \ Administrator \ product \ 11.2.0 \ dbhome_1 \ RDBMS \ ADMIN \ scott. SQL
Next, enter:
Alter user scott identified by tiger; change scott Password
Alter user scott
Cross-connection and full-connectionIn addition to displaying rows that meet the conditions of the join, the results also show all rows that meet the search conditions in the tables on both sides of the join operation.SQL> select e. empno, e. ename, e. sal, d. grade2 from emp e full outer join salgrade d3 on e. sal between d. losal and d. hisal;EMPNO ENAME SAL GRADE----------------------------------------7839 KING 5000 57902 FORD 3000 47788 SCOTT 3000 47566 JONES 2975 47698 BLAKE 2850 47782 CLAR
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.