--- Oracle debugging: setserveroutputon; shoerrorssetautotraceon; selecttextfromuser_sourcewherename
--- Oracle debugging: set serveroutput on; sho errorsset autotrace on; select text from user_source where name =
--- Oracle debugging:Set serveroutput on;Sho errorsSet autotrace on;Select text from user_source where;--- The
the expected value is 0, in the returned value, 68% is between + 1 and-1, 95% is between + 2 and-2, and 99% is between + 3 and-3.
Function random return BINARY_INTEGER, (Generate Random Numeric Values ),
Function string (opt char, length Number) return varchar2 (the maximum is 60), returns a string of the specified length (Create Random Strings), opt seed values:
'A', 'A' n
Q: My questions at work: the supervisor asked me to randomly retrieve quali
random numeric values ),Function string (OPT char, length number) return varchar2 (the maximum is 60), returns a string of the specified length (create random strings), opt seed values:'A', 'A' n
Q: My questions at work: the supervisor asked me to randomly retrieve qualified email or mobile phone number users for an activity to issue award notifications or oth
way the Oralce standard gets the year is simple:
Select To_char (to_date (' 1997/01/01 ', ' yyyy/mm/dd '), ' YYYY ') from dual;
Select To_char (to_date (' 1997/12/31 ', ' yyyy/mm/dd '), ' YYYY ') from dual;
Are all back to 1997.
2. ISO standard-IYYY
Select To_char (to_date (' 1997/01/01 ', ' yyyy/mm/dd '), ' iyyy ') from dual;
Select To_char (to_date (' 1997/12/31 ', ' yyyy/mm/dd '), ' iyyy ') from dual;Return: 1997, 1998
Is it strange that the 1997/12/31 year was 1998.
In fact, the reas
SELECT‘-100‘ FROMdualWHEREREGEXP_LIKE(‘-100‘,‘(^[+-]?\d{0,}\.?\d{0,}$)‘);Regexp_like usage:Turn]oracle 10g Regular expression Regexp_like usageJanuary 13, 2010 Wednesday 14:29
The source is at the bottom of the article./*There are four main functions in Oracle that support regular expressions:1,regexp_like: Similar to the function of like2,REGEXP_INS
Tags: ESC arch phone src ber step Delete varchar add--Modify the Data Oracle field type from number to varchar--Example: Modifying the Rescue_phone field type in the Ta_sp_org_invoice table, converting from number to varchar--STEP1: Add an original type buffer fieldALTER TABLE Ta_sp_org_invoice add permile_temp
Tags: query menu error article incorrect sdn ACL number write codeArticle turned from: 68490265Oracle Stitching Strings concat Small things to be aware ofIn the SSM framework when writing code, because the database replaced by Oracle, when the fuzzy query data suddenly found an errorSELECT * from Sys_menu where URL like concat ('% ', #{rolename}, '% ')The number
the least number of employees: grouping function, sorting, subquery, and rownumsql statement: [SQL] select * from (select count (*) coun, d_id deptId from t_emp group by d_id order by coun asc) where rownum = 1 www.2cto.com analysis: Step 1: select count (*) coun, d_id deptId from t_emp group by d_id query t_emp table, query the number of people in each department by the Department d_id group. Step 2: sele
Delete all
If you are deleting all the data for a table and do not need to roll back, use TRUNCATE to OK. About Trancate See here http://blog.csdn.net/gnolhh168/archive/2011/05/24/6442561.aspx
Sql> TRUNCATE TABLE table_name;
Conditional Deletion
If there is a condition for deleting the data, such as delete from tablename where col1 = ' Lucy '; At this time, in addition to Gazzo, you can delete the Add no logging option, do not write log speed up the deletion
Quote SB. "The tens of millions of-
What is the difference between number and BINARY_DOUBLE in oracle?The main advantage is: it is more efficient than number, faster, and takes less space, but the version compatibility is poor.Numeric numeric typeNUMBER: this is a real decimal data type. It is also the only numeric type in PL/SQL that is fully platform-independent.PLSINTEGER and BINARYINTEGER: Thes
, (Generate random Numeric Values),
function string (opt char,length number) return VARCHAR2 (the maximum is 60) returns a string of the specified length (Create Random Strings), opt seed V Alues:
' A ', ' a ' n
Q: I work the problem: The supervisor let me for an event to randomly remove some qualified email or mobile phone number users to issue award-winning no
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.