Simple case example
For each customer in the sampleOe. MERsTable, the following statement lists the credit limit as "low" if it equals $100, "high" if it equals $5000, and "medium" if it equals anything else.
Select distinct, Case credit_limit
There are too many uncertainties in the path we are going to take. The admonishing of others, a flash of our own, and occasional gains and losses are all changing our fate. The world is unpredictable, and there is no need to hold things too long. No
Step 1: Open pd15 and find [database ],:
Step 2: Click Create to create a new ODBC connection.
Step 3: select the system data source and select Oracle
Step 4: note that the server must write the service name configured on the Oracle
Select * From all_tab_comments; -- query tables and views of all users.
Select * From user_tab_comments; -- Query all tables and views of the current user.
Select * From all_col_comments; -- query the column names and comments of all user tables.
After the connection is successful, you can query it. It looks like WindowsProgramIt looks like a doscommand line tool. after entering the SQL statement, select "file/Run" to execute the SQL statement.
Configuration file (this file should be
Simple ORACLE trigger example
--- Trigger for follow-up after preoperative visitCreate or replace trigger t_update_triggerAfter update or insert or deleteOn med_smartreport_templateFor each rowDeclareStatecount number;BeginSelect count (1) into
IIS cannot access Oracle
But vs2008 can access
I 've been depressed for a long time and installed ORACLE Server again
The Oracle client installed on the internet is accessible for the moment, but the Oracle listener cannot be started.
Depressing
A self-developed form jumps out of another form2 when the first form1 meets the conditions. However, when form2 is disabled, a red bar appears, that is, the progress or progress bar.
When disabled:
Solution:
First find
17. Use the table alias (alias)
18. Replace in with exists
19. replace not in with not exists
20. Replace exists with table join
21. Replace distinct with exists
22. Identify 'inefficient execution' SQL statements
23. Use the tkprof tool
Method 1,
You only need"Serial number"Define it as a formula and set it:Get_block_property ('block _ name', current_record)This can be done, or put this line of statement into"When-create-record"Trigger.
Disadvantage: the row number cannot be
In Oracle, dblink is used to access another remote database.
In MSSQL, the link server is created to remotely access another database.
Currently, Scott. Dept of Oracle is accessed from MSSQL 2005.
First, install the Oracle client PLSQL
The tablespace deleted today contains materialized view error, ORA-23515: materialized view and/or their indexes exist in the tablespace
It seems that it is necessary to delete the materialized view and perform the delete operation. Because the
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->
Import
Java. SQL.
*
;
Public
Class
Lookup {
Public
Static
Void
Main (string [] ARGs)
Throws
Sqlexception,
This is a few questions about the database recently encountered during the interview process. I feel very good, and I often encounter these questions in projects.
Question 1: There are three user tables (users), role tables (role), and user role
analysis function is a new concept introduced in Oracle 8.1.6. It provides a simple and efficient processing method for data analysis. On the analysis function in the past, we must use self-join queries, subqueries, or
Syntax:
Create global temporary table tablename ([column name Type 1], [column name Type 2]Col1 varchar2 (10 ),Col2 number ,......) On commit preserve (delete) rows;This temporary table does not occupy the tablespace, and the data of the other
Help !! Oracle connection problems, online and so on! Delphi/Windows SDK/API
Http://www.delphi2007.net/DelphiDB/html/delphi_20061215193831284.html
Connect to the Oracle database, computer name yd811, Services Name: yd811, Global Database Name
The data dictionary dict always belongs to the Oracle user SYS.
1. User:
Select username from dba_users;
Change Password
Alter user spgroup identified by spgtest;
2. tablespace:
Select * From dba_data_files;
Select * From dba_tablespaces; //
Continued Oracle notes (1)-basic content (updating in real time ..)
1. Create a table in oracleThe statement is the same as that in SQL server.
SQL> create table Course2 (cno char (8 ),3 cname varchar2 (20 ),4 ccredit int,5 cpno char (8)6 );
The
I. analysis function overOracle provides analysis functions starting from 8.1.6. analysis functions are used to calculate a group-based aggregate value. What is different from aggregation functions?Multiple rows are returned for each group, while
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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service