FunctionReturns a number that represents the sound of a string.GrammarSOUNDEX ( string-expression )ParametersThe string-expression string.UsageThe value of the SOUNDEX function of a string is based on the first letter and the next three consonants except H, Y, and W. Two repeating letters are counted as one letter. For exampleSOUNDEX (' apples ')Based on the letters A, P, L, and S.The SOUNDEX function ignor
Tags: custom function client Results pronunciation pos Search Compare dexThe SOUNDEX () function is an algorithm that converts any text string into a letter pattern that describes the speech representation.He considered similar to pronounced characters and bytes, and was able to compare the pronunciation of the text rather than the letter.Eg: if there is an input error when searching for a customer named Y.lee in the library, the following
Time Limit: 2 seconds memory limit: 65536 KB
Soundex coding groups together words that appear to sound alike based on their spelling. For example, "can" and "khawn", "con" and "gone" wocould be equivalent under soundex coding.
Soundex Coding involves translating each word into a series of digits in which each digit represents a letter:
1 represents B, F, P
# Include "iostream" # include "string" # include "map" using namespace STD; int main () {Map m; string STR, ans; int length, i; m ['B'] = 1, m ['F'] = 1, m ['P'] = 1, m ['V'] = 1, M ['C'] = 2, m ['G'] = 2, m ['J'] = 2, m ['K'] = 2, M ['q'] = 2, m [
Measure the test taker's basic programming skills.
Note:
1 subscript Processing
2. Review the meaning of the question and remove the Weight Based on the question.
3. How to write the code clearly and concisely.
#include #include const short
Access Permissions
-- Transaction control
COMMIT -- end the current transaction
ROLLBACK -- abort the current transaction
Set transaction -- define the data access features of the current TRANSACTION
-- Programmatic SQL
DECLARE -- set the cursor for the query
Explain -- describe the data access plan for query
OPEN -- OPEN a cursor for retrieving query results
FETCH -- retrieve a row of query results
CLOSE -- CLOSE the cursor
PREPARE -- prepare
Comparison of common functions for SQL Server to Oracle
1. Absolute ValueS: Select ABS (-1) ValueO: Select ABS (-1) value from dual
2. INTEGER (large)S: Select ceiling (-1.001) ValueO: Select Ceil (-1.001) value from dual
3. Round (small)S: Select floor (-1.001) ValueO: Select floor (-1.001) value from dual
4. Round (truncation)S: Select cast (-1.002 as INT) ValueO: Select trunc (-1.002) value from dual
5. RoundingS: Select round (1.23456, 4) value 1.
. Transaction ControlCommit -- end the current transactionRollback -- abort the current transactionSET transaction -- define the data access features of the current transaction
5,ProgramSQLDeclare -- set the cursor for the queryExplain -- describe the data access plan for queryOpen -- open a cursor for retrieving query resultsFetch -- retrieve a row of query resultsClose -- close the cursorPrepare -- prepare SQL statements for dynamic executionExecu
Domain -- create a Data Value DomainAlter Domain -- change domain definitionDrop Domain -- delete a domain from the database-- Data ControlGrant -- Grant the user access permissionDeny-Deny User AccessRevoke -- revoke User Access Permissions-- Transaction controlCommit -- end the current transactionRollback -- abort the current transactionSET transaction -- define the data access features of the current transaction-- Programmatic SQLDeclare -- set the cursor for the queryExplain -- describe the
() function of text processing function---Convert a string to lowercase Use the opposite of the upper () function! 7, SOUNDEX ()---Returns the SOUNDEX value of the string Soundex is an algorithm that converts any text string into an alphanumeric pattern that describes its voice representation. Soundex considers simila
REVOKE -- REVOKE User Access Permissions
-- Transaction control
COMMIT -- end the current transaction
ROLLBACK -- abort the current transaction
Set transaction -- define the data access features of the current TRANSACTION
-- Programmatic SQL
DECLARE -- set the cursor for the query
Explain -- describe the data access plan for query
OPEN -- OPEN a cursor for retrieving query results
FETCH -- retrieve a row of query results
CLOSE -- CLOSE the cursor
PRE
an index for a database table
Drop INDEX--deletes an index from the database
Create PROCEDURE--Creating a stored procedure
Drop PROCEDURE--removing stored procedures from the database
Create TRIGGER--creating a trigger
Drop TRIGGER--removing triggers from the database
CREATE schema--Adding a new schema to the database
Drop schema--Deletes a schema from the database
Create domain--creating a data domain
Alter domain--changing field definitions
Drop domain--deletes a field from the data
This article uses examples to parse SQL server connection fields ......
Today, icech of Western E wants to export some data of SQL Server. Originally, the year, month, and day are divided into three fields stored in staryear, starmonth, and starday, but the other's data is in one field, as follows:
Original data format
Staryear starmonth starday2005 08 212005 08 222005 11 092005 12 11
The exported format is
an INDEX from a databaseCreate procedure -- CREATE a stored PROCEDUREDrop procedure -- delete a stored PROCEDURE from a databaseCreate trigger -- CREATE a TRIGGERDrop trigger -- delete a TRIGGER from a databaseCreate schema -- Add a new SCHEMA to the databaseDrop schema -- delete a SCHEMA from the databaseCreate domain -- CREATE a Data Value DOMAINAlter domain -- change DOMAIN definitionDrop domain -- delete a DOMAIN from the database-- Data ControlGRANT -- GRANT the user access permissionDENY-
-- Transaction controlCommit -- end the current transactionRollback -- abort the current transactionSET transaction -- define the data access features of the current transaction-- Programmatic SQLDeclare -- set the cursor for the queryExplain -- describe the data access plan for queryOpen -- open a cursor for retrieving query resultsFetch -- retrieve a row of query resultsClose -- close the cursorPrepare -- prepare SQL statements for dynamic execution
SQL Server common functions
I want to record some common SQL functions before, but it has never been implemented... Hey hey...
Until today, the substring () function is used. in C #, the start value of this method is 0, while in SQL, the start value is 1. I cannot tell you clearly...
This blog is used to record SQL fun
Tags: replica trim Select Reverse PAC fuzzy function mode similarity degreePreviously, I wanted to record some of the usual functions of SQL, but it has not been implemented ... Hey... Until today, the substring () function is used, and in C # The starting value of this method is 0, and the starting value in SQL is 1. Silly points are not clear ... This blog as a function of the use of
database tableDrop INDEX--Remove the indexes from the databaseCreate PROCEDURE--Creating a stored procedureDrop PROCEDURE--delete a stored procedure from the databaseCreate TRIGGER--creating a triggerDrop TRIGGER--delete a trigger from the databaseCREATE Schema--Add a new schema to the databaseDrop schema--delete a schema from the databaseCreate domain--creating a data domainAlter domain--change field definitionDrop domain--delete a field from the database--Data controlGrant--Granting user acce
SQL Statement Encyclopedia--Statement function--Data manipulationSELECT--Retrieve data rows and columns from a database tableINSERT--Adds a new row of data to the database tableDelete--delete rows of data from a database tableUpdate-Updates data in a database table--Data definitionCREATE table--Creating a database tableDROP table--delete tables from the databaseALTER TABLE--Modify the database table structureCreate View-Creates a viewDrop View-Delete
Permissions-- Transaction controlCommit -- end the current transactionRollback -- abort the current transactionSET transaction -- define the data access features of the current transaction-- Program SQLDeclare -- set the cursor for the queryExplain -- describe the data access plan for queryOpen -- open a cursor for retrieving query resultsFetch -- retrieve a row of query resultsClose -- close the cursorPrepare -- prepare SQL statements for dynamic ex
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.