Code
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->Stopwatch Rochelle cc_stopwatch = new stopwatch ();
Rochelle cc_stopwatch.start ();
Random rad = new random ();While (true){String Ts = string. empty;While (TS. Length {String TMP = rad. Next (1, 10). tostring ();If (TS. indexof (TMP) {TS + = TMP; // obtain the number of unique digits.}}Bool flag = false;For (INT m = 2; m {If (int32.parse (TS. subs
From 1 to 9, the nine digits form a nine-digit number with no duplicates. If a number is extracted from the left, it must be divisible by 1. The number composed of two numbers can be divisible by 2. The number composed of three numbers can be divisible by 3, and so on... The number of each fetch is obtained from the left. Q: What is this number? Returns the numberAlgorithm.
CodeAs follows:
Import Java. util. arrays;
From: http://yangguo.j
= ' 907010000 ' and jobtp= ' 02 '"
DB2 "Update svmmst set prtlines=0 where jobtp= ' or jobtp= ' 03 '"
Vi. joining the database
DB2 Connect to Btpdbs
Vii. Clear Database joins
DB2 Connect Reset Disconnect Database
DB2 Terminate Disconnect Database
DB2 force applications All d
"DB2 "SELECT * from Btpoper where brhid= ' 907020000 ' and oprid= ' 0001 '"DB2 "Select OPRID,OPRNM,BRHID,PASSWD from Btpoper" Iv. Delete data from the table: DB2 "Delete from Btpoper"DB2 "Delete from Btpoper where brhid= ' 907020000 ' or brhid= ' 907010000 '" Five, modify the table data:
"Update svmmst set prtlines=0 where jobtp= ' or jobtp= ' 03 '"Vi. joining the databaseDB2 Connect to BtpdbsVII. Clearing Database joinsDB2 Connect reset Disconnects the databaseDB2 Terminate disconnecting the databaseDB2 force applications all disconnects all database connectionsViii. backing up the database1. DB2 Backup DB Btpdbs2. Db2move Btpdbs Exportdb2look-d btpdbs-e-X [-a]-o crttbl.sqlix. Recovery of the database1.
"Delete from Btpoper where brhid= ' 907020000 ' or brhid= ' 907010000 '"Five, modify the table data:DB2 "Update svmmst set prtlines=0 where brhid= ' 907010000 ' and jobtp= ' 02 '"DB2 "Update svmmst set prtlines=0 where jobtp= ' or jobtp= ' 03 '"Vi. joining the databaseDB2 Connect to BtpdbsVII. Clearing Database joinsDB2 Connect reset Disconnects the databaseDB2 Terminate disconnecting the databaseDB2 force applications all disconnects all database co
prtlines=0 where jobtp= ' or jobtp= ' 03 '"Vi. joining the databaseDB2 Connect to BtpdbsVII. Clearing Database joinsDB2 Connect reset Disconnects the databaseDB2 Terminate disconnecting the databaseDB2 force applications all disconnects all database connectionsViii. backing up the database1. DB2 Backup DB Btpdbs2. Db2move Btpdbs Exportdb2look-d btpdbs-e-X [-a]-o crttbl.sqlix. Recovery of the database1. DB2
. joining the databaseDB2 Connect to BtpdbsVII. Clearing Database joinsDB2 Connect reset Disconnects the databaseDB2 Terminate disconnecting the databaseDB2 force applications all disconnects all database connectionsViii. backing up the database1. DB2 Backup DB Btpdbs2. Db2move Btpdbs Exportdb2look-d btpdbs-e-X [-a]-o crttbl.sqlix. Recovery of the database1. DB2 restore DB Btpdbs without rolling forward2,
. joining the databaseDB2 Connect to BtpdbsVII. Clearing Database joinsDB2 Connect reset Disconnects the databaseDB2 Terminate disconnecting the databaseDB2 force applications all disconnects all database connectionsViii. backing up the database1. DB2 Backup DB Btpdbs2. Db2move Btpdbs Exportdb2look-d btpdbs-e-X [-a]-o crttbl.sqlix. Recovery of the database1. DB2 restore DB Btpdbs without rolling forward2,
applications All disconnect all database connections
Viii. Backup Database
1. DB2 Backup DB Btpdbs2, Db2move Btpdbs Export
Copy Code code as follows:
db2look-d btpdbs-e-X [-a]-o crttbl.sql
ix. Recovery of the database
1. DB2 restore DB Btpdbs without rolling forward2, DB2-TVF Crtdb.sqlCrtdb.sql File Contents:
Copy Code code as follows
This article mainly introduces jquery to determine the decimal point two digits and automatically delete decimal two digits after the number, the need for friends can refer to the following jquery to determine the decimal point two digits and automatically delete decimal two digits after the number nbsp; nbsp; Basic
See the full set of "C language problem sets"
Question: There are 1, 2, 3, 4 digits, can be composed of a number of different and no duplicate number of three digits? How much are they?
1. Procedure analysis: Can fill in the hundred, 10 digits, single-digit digits are 1, 2, 3, 4. Make up all the permutations and then
Function
When we use MSSQL, sometimes the table has a number of full-width digits, but our system can not use them correctly, then we have to replace them with half-width digits. And SQL itself doesn't seem to have this function.
No, we do it ourselves:
The following is a function I wrote myself, of course, my data volume is small, do not consider the performance!
--Convert full-width data into half-widt
#include void Main (){Double x,y;Char *ch[]={"0", "one", "II", "three", "Restaurant", "WU", "Lu", "Qi", "ba", "Nine"};Char *ch1[]={"Pick Up", "Bai", "Thousand", "Million", "Pick Up", "Bai", "thousand", "billion"};Char num[256];Long i,n,j,m,y1;printf ("Input:");scanf ("%lf", x);n= (long) x;/* integral part/y=x-n;/* to the small number of partsfor (i=0;n!=0;i++){Num[i]= (char) (N%10);n/=10;}M=i;Num[i]= '. ';for (y=y*10; (long) (y) *10);)/* If the decimal place or number (not 0) the loop continues
Combine the four digits in the middle of the phone number into a Number * and four digits into a number.
MySql APIs have functions:
INSERT (str, pos, len, newstr)
Returns the str string. Its substring starts from the pos position and is long replaced by the string newstr. If the pos length exceeds the string length, the return value is the original string. If len is longer than other strings, it
Analyze the causes of full DB2 Activity logs and solutions to full DB2 logs, db2 logs
Log usage
Displays the usage of logs under concurrent transaction conditions
There are three concurrent programs: Process 1, Process 2, and Process 3. Each program has two transactions. Blue blocks represent SQL statements, red blocks represent commit operations, and green bloc
Php implementation of adding 0 complement before formatting digits with less digits
Php format the number. when the number of digits is insufficient, add 0 to complement it. This article provides two implementation methods, sprintf and number_format, respectively. If you need it, come and have a look.Example of formatting a number in php.
1. string
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.