Custom Search
www.rocket99.com : Technical Guides Sybase Oracle UNIX Javascript


Technical Guides
Sybase
Oracle
UNIX
Javascript




Of Interest

Business Intelligence and Analytics



Oracle Training





Sybase » Transact-SQL » Coding »

Transact SQL: string functions

     






 plus sign (+)      concatenation             'one'+'two'='onetwo'
 ascii              char->ascii value         ascii('A')=65
 char               ascii->char               char(65)='A'
 charindex          similar to instring       charindex('two','onetwothree')=4
 char_length        length of string          charlength('onetwo')=6
 lower              lower case                lower('ONE')='one'
 ltrim              trim left blanks          ltrim('   one')='one'
 replicate          repeat chars              replicate('-',8)='--------'
 reverse            flip string               reverse('salad')='dalas'
 right              right chunk of string     right('Chicago',2)='go'
 rtrim              trim right blanks         rtrim('test   ')='test'
 space              spaces                    space(5)='     '
 str                float->char               str(5.6,12,2)='        5.60'
 stuff              insert chars within str   stuff('onetwothree',4,3,'-----')='one-----three'
 substring          get piece of string       substring('sybase',1,2)='sy'
 upper              upper case                upper('one')='ONE'
 






Sybase : Related Topics

Sybase : Transact-SQL : Transact SQL: numeric functions
Sybase : Transact-SQL : Transact SQL: date/time functions
Sybase : Transact-SQL : Transact SQL: misc functions
Sybase : Transact-SQL : Transact SQL: Conditionals
Sybase : Transact-SQL : Transact SQL: looping constructs
Sybase : Transact-SQL : Transact SQL: Cursors
Sybase : Transact-SQL : Transact SQL: Complex Updates
Sybase : Transact-SQL : Transact SQL: Finding duplicate rows in a table
Sybase : Transact-SQL : Using Temporary Tables
Sybase : Transact-SQL : Inner/Outer Joins
Sybase : Transact-SQL : Isolation Levels
Sybase : Transact-SQL : Reporting: SQL Performance and Tuning
Sybase : Transact-SQL : Case Statement
Sybase : Transact-SQL : Date processing: stripping time from datetime
Sybase : Transact-SQL : Safely delete a large number of rows without blowing the t-log
Sybase : Transact-SQL : Transact SQL: date/time formats
Sybase : Transact-SQL : Creating a stored procedure
Sybase : Transact-SQL : Custom query plans
Sybase : Transact-SQL : Rowcount setting - limiting result sets
Sybase : Transact-SQL : Ranking Data - with Duplicates
Sybase : Transact-SQL : Forcing an index in a query
Sybase : Transact-SQL : Median Calculation, with pure SQL
Sybase : Transact-SQL : Lead and Lag with pure SQL

Sybase Web Site
Sybase iAnywhere Mobile Web Site
Oracle Enterprise Web Site



Get the latest Rocket99 news and tech tips via






Site Index About this Guide to Sybase, Oracle, and UNIX Contact Us Advertise on this site




Copyright © 2016 Stoltenbar Inc All Rights Reserved.