3, ROUND function ROUND (number, num_digits) rounds numbers to only num_digits decimal places. 4, Lpad, Rpad function Lpad () function: The Lpad function fills the left string with some specific characters whose syntax is as follows: Lpad
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
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
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
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
--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
---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]
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
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 ()
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
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
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
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
javascript| function
/*
--------------function Retrieval-------------- Trim function: trim () LTrim () RTrim () Verify that the string is empty: Checkisnotempty (str) Verify that the string is an integral
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
Used today in the project to remove the last character in the stringThe original string 1,2,3,4,5,6,Remove the last character "," and the end result is 1,2,3,4,5,6The code is as follows:The code is as follows:
$str = "1,2,3,4,5,6,";
$newstr =
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.