In which language, string manipulation is an important foundation, often simple and important. Just as people speak, there is a body (graphical interface), there is a language (print string?). Clearly, the string can explain more things. PHP
Server
Problem description
Business needs are as follows:
There are tables A and B, the two tables are structurally consistent, for different business services, now write a stored procedure, the stored procedure accepts a parameter, when the
Function
24. Function LCase ()
Function: Change the character of a character type to a small write character.
Format: Lcase (String)
Parameters: String is the number of string changes
Example:
Str= "This is lcase!"
Response.Write Lcase
Server in SQL 2000, the user can create a custom function, the function return value can be a value, can also be a table.
Maybe it's not clear how the custom function works. Previously mentioned in the optimizing database posts, try not to use
Backup | recovery | data | database
Use SQL language to implement backup/restore functions of the database
Embodies four of the knowledge points in SQL Server:
1. Get the default directory on the SQL Server server
2. Use of Backup SQL statements
This article mainly introduces the PHP import CSV file encountered garbled problem solution, the need for friends can refer to the following Today is mainly to write a PHP import CSV file method, in fact, a lot of online search. Can be
---database size distribution
SET NoCount on
CREATE TABLE #DBsize
(
[DatabaseName] [nvarchar] (a) Not NULL,
[Size] [Decimal] Not NULL,
[Name] [nvarchar] (a) Not NULL,
[Filename] [nvarchar] (+) Not NULL
)
CREATE TABLE #drives
(
[Drive]
--Shrink SQL log
--exec p_compdb ' test '
Create proc P_compdb
@dbname sysname--The name of the database to compress
@bkdatabase bit=1, because the database may be corrupted in the steps of separating the logs, so you can choose whether to
server| Data | database
In fact, as long as the use of the system built-in stored procedures sp_spaceused can get information about the table
such as: sp_spaceused ' tablename '
The following is a stored procedure for easy writing, which is to save
Server
Method One:
--Let log no longer grow, but cannot compress logEXEC sp_dboption ' your_dbname ', ' trunc. Log ', ' TRUE '
Method Two:
--Super strong database file and log file compression,--After compression may cause the database to not be
Original system: MSSQL SERVER 7.0+delphi
New system: MSSQL SERVER + DELPHI
Data to be processed: SPKFK (commodity storehouse):
(SPID,//Product inside Code PK
SPBH,//commodity number Unique Index
SPMCH,//Product name
SHPGG,//Product
The CStr () is converted to a string, CInt () is converted to a number, and CLng () is converted to a Variant of a Long type
First, use the Isnumberic function to judge
Plastic...... Turn character: CStr () function
Character shaping with: CInt ()
javascript| function
/*
--------------function Retrieval-------------- Trim function: trim () LTrim () RTrim () Verify that the string is empty: Checkisnotempty (str) Verify that the string is an integral
Editor: Like our server to use tools to the log 1M programming, not too troublesome to see the manual method:
1: Delete Log
1: Detach Database Enterprise Manager-> Server-> database-> right key-> Detach database
2: Delete log file
3: Additional
In the small project needs multi-level classification, try to learn to achieve multi-level classification. Because of the stored procedure itself is not very familiar with the use of the TreeView, so the recursive logic is implemented in C #,
function | string T-SQL is less capable of handling strings, such as I'm looping through strings like 1,2,3,4,5, and if you use arrays, traversal is simple, but T-SQL does not support arrays, so it's tricky to handle. The function below implements
A few knowledge points you must know when using IBM DB2 databases:
1. After installing the DB2 database, you can use the command line or graphical interface to operate, if your database server is not on this computer, you need to be in the "Client
Data Transformation Data
The SQL sever is strong enough to convert most of the values from one type to another when needed. For example, to compare the size of smallint and int data, you do not need an explicit type conversion. The SQL sever will
function |
The function of ASP is detailedJoin (expression, "connectors")Split: Receives the relevant parameters and makes them an array.Array ()FUNCTION: Returns an arraySyntax:array (list)ARGUMENTS: Characters, numbers can beEXAMPLE:Result: An
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