Read about ora 00942 table or view not exist, The latest news, videos, and discussion topics about ora 00942 table or view not exist from alibabacloud.com
ainner join position pp on pp. lngpositionid =. flnginpositionidleft join employee e on e. lngemployeeid =. flngemployeeidwhere. flnginid
The preceding is a view in Oracle. This view is always not added several times.
The view is not added after vertices.
The reason is that in
Obtain the number of rows in each subpartition of a specified partition table in batches!
Otherwise, manual query is too troublesome!
--- View the number of rows in each sub-partition of the specified partition table
Create or replace procedure show_tabparcnt(Partiton_tablename in user_tab_partitions.table_name % type
Tags: comment here com the fetch number a sele query strThis time in the project, in order to do the database synchronization, using the trigger mechanism, for the database to do the migration, we need to obtain the database of those tables using triggers, easy to make database installation package.
Idea:The trigger is managed in MSSQL as an object, so we can get the query through the sysobjects table,So
To query the total number of fields in a table in Oracle, use an SQL statement or
Copy codeThe Code is as follows: select count (column_name) from user_tab_columns where table_name = 't_ B _AUDITOR'
The number of fields in the specified table can be found.The following is a rough view:Select tname, count (*) from col g
'/dev/rpat_bas_2 ' OFFLINE DROP;
STATUS
Tablespace_name
checkpoint_change#
NAME
ONLINE
Pat_1
3177311020
/dev/rpat_1
ONLINE
Pat_10
3177311020
/dev/rpat_10
OFFLINE
0
/dev/rpat_bas_1
OFFLINE
0
/dev/rpat_bas_2
4. Table space utilization can already be viewed at this time
--Table Space query
Select a.tablespace_name, A.total | | ' M ' Total_space, (a.total-b.free) | | ' M ' Used_space, To_c
Determine if the table exists, if it does not exist, and then create:
declare tableexist number;BeginSelect COUNT (1) into the tableexist from User_tables where Table_name=upper (' onecallprtcp ');If tableexist = 0 ThenExecute immediate' CREATE TABLE onecallprtcp (Onecallprtcpid NCHAR () not NULL,Gisprocessid NCHAR () not NULL,Ticketid NCHAR () not NULL,Ticketnum
oracle| Data | statement
How do I view a table statement for an oracle datasheet?
System environment:1, operating system: Windows Server, machine memory 128M2. Database: Oracle 8i R2 (8.1.6) for NT Enterprise Edition3, Installation path: C:\ORACLE
Implementation steps:1. Export with exp tools2. Use the SHOW=Y option when importing, log option3.
View database and table names for all tables in all databasesSELECT ' TABLES '. ' Table_schema ', ' TABLES '. ' table_name 'from ' information_schema '. ' TABLES ' View the database name and table name of all the base tables in all databasesSELECT ' TABLES '. ' Table_schema ', ' TABLES '. ' table_name 'from ' inf
The total number of fields queried for a table in Oracle, using SQL statements, or in Pl/sql
Copy Code code as follows:
Select COUNT (column_name) from user_tab_columns where table_name= ' T_b_auditor '
The number of fields that can be found to specify the table.
Here's a rough
Bulk gets the number of rows per child of the specified partition table!
Otherwise manual inquiry too troublesome!
---View the number of rows per child of a specified partition table
Create or replace procedure show_tabparcnt
(Partiton_tablename in User_tab_partitions.table_name%type)--Input parameters
As
TYPE cu
Pre-Preparation:CREATE TABLE T9 (A int, b text,c text,fulltext index Fix_test_for_t8_b (b)); #在定义表的时候加索引Create unique index ix_test_for_t8_a on T9 (A); #加朴素索引Create FULLTEXT Index Fix_test_for_t8_c on T9 (C); #加全文索引------------------------------------------------------------Workaround:Select index from TABLE_NAME.--------------------------------------------------
Tags: blog http ar for SP in log BSMethod: 1Sys.indexesindex_id = 0: Heapindex_id = 1: Clustered indexindex_id =2 ...: Nonclustered indexes-------------------------------------------------------------------------------------Example:CREATE TABLE Student (ID int NOT NULL,Name nvarchar (16),Major nvarchar (16));GoCREATE INDEX ix_for_student_idOn Dbo.student (ID);GoCreate clustered Index Ix_clu_for_student_nameON dbo. Student (Name);GoSelect object_name (
Li Wu:Heng Learn to think together, honouring teachers save Thanksgiving. Leaf See root three return to one, rivers the same oneness.Meekness Conscience Lord, willing to do without regrets to the most bitter. Reading exercises to keep the body and mind, sincere advice and the line and cherish.
Data,
data, Lingen on the data. You must be cautious about operating the database. Give the most bitter code here, and take a look at it, to have you
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.