Home
Recent Q&A
Java
Cloud
JavaScript
Python
SQL
PHP
HTML
C++
Data Science
DBMS
Devops
Hadoop
Machine Learning
Azure
Blockchain
Devops
Ask a Question
What are 5 commands that can be used to manipulate text in T-SQL code?
Home
Sql
What are 5 commands that can be used to manipulate text in T-SQL code?
+1
vote
asked
Jan 14, 2022
in
Sql
by
GeorgeBell
What are 5 commands that can be used to manipulate text in T-SQL code?
t-sql
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Jan 14, 2022
by
GeorgeBell
CHARINDEX( findTextData, textData, [startingPosition] ) - Returns the starting position of the specified expression in a character string. The starting position is optional.
LEFT( character_expression , integer_expression ) - Returns the left part of a character string with the specified number of characters.
LEN( textData ) - Returns integer value of the length of the string, excluding trailing blanks.
LOWER ( character_expression ) - Returns a character expression after converting uppercase character data to lowercase.
LTRIM( textData) - Removes leading blanks. PATINDEX( findTextData, textData ) - Returns integer value of the starting position of text found in the string.
REPLACE( textData, findTextData, replaceWithTextData ) - Replaces occurrences of text found in the string with a new value.
REPLICATE( character_expression , integer_expression ) - Repeats a character expression for a specified number of times.
REVERSE( character_expression ) - Returns the reverse of a character expression.
RTRIM( textData) - Removes trailing blanks. SPACE( numberOfSpaces ) - Repeats space value specified number of times.
STUFF( textData, start , length , insertTextData ) - Deletes a specified length of characters and inserts another set of characters at a specified starting point.
SUBSTRING( textData, startPosition, length ) - Returns portion of the string.
UPPER( character_expression ) - Returns a character expression with lowercase character data converted to uppercase.
Related questions
+2
votes
Q: Is it possible to import data directly from T-SQL commands without using SQL Server Integration Services? If so, what are the commands?
asked
Jan 15, 2022
in
Sql
by
GeorgeBell
t-sql
+1
vote
Q: How would you prevent T-SQL code from running on a production SQL Server?
asked
Jan 15, 2022
in
Sql
by
GeorgeBell
t-sql
0
votes
Q: what are dynamic queries in T-SQL?
asked
Dec 24, 2023
in
Sql
by
john ganales
t-sql
+2
votes
Q: What are ROLLUP and CUBE in T-SQL?
asked
Jan 14, 2022
in
Sql
by
GeorgeBell
t-sql
+2
votes
Q: What does the T-SQL command IDENT_CURRENT does?
asked
Jan 14, 2022
in
Sql
by
GeorgeBell
t-sql
+2
votes
Q: Is there a difference between T-SQL linked server and a synonym?
asked
Jan 14, 2022
in
Sql
by
GeorgeBell
t-sql
+1
vote
Q: What are the three ways that Dynamic SQL can be issued?
asked
Jan 14, 2022
in
Sql
by
GeorgeBell
t-sql
+2
votes
Q: How can you capture the length of a column when it is a Text, NText and/or Image data type?
asked
Jan 14, 2022
in
Sql
by
GeorgeBell
t-sql
+1
vote
Q: What are the two commands to remove all of the data from a table? Are there any implications with the specific commands?
asked
Jan 14, 2022
in
Sql
by
GeorgeBell
t-sql
+2
votes
Q: What are types of XML indexes in SQL Server?
asked
Jan 15, 2022
in
Sql
by
GeorgeBell
t-sql
...