TechTip: C# for RPGers: Not All Strings Are Born Equal
Substring is very similar to an RPG BIF ... His areas of expertise include programming in the IBM i native languages (RPG, CL, and DB2 SQL) and "modern" programming languages, such as C# and Python, as...
View ArticleSQL - String Functions
SQL> UPDATE table_test -> SET blob_col=LOAD_FILE('/tmp/picture') -> WHERE id=1; ..... The first syntax returns the position of the first occurrence of substring substr in string str. The...
View ArticleExtracting data from journals using SQL
inz(%elem(Jrn)) ; 17 exec sql DECLARE C0 CURSOR FOR 18 SELECT ENTRY_TIMESTAMP,JOURNAL_CODE,JOURNAL_ENTRY_TYPE, 19 JOB_NAME,JOB_USER,JOB_NUMBER,SUBSTR(OBJECT,1,10), 20...
View ArticleExploiting blind SQL injections in ‘UPDATE’ and ‘INSERT’ statements without...
The SQL injection attack was introduced around 1998 for the first ... he needs to chop the data by string functions such as ‘SUBSTRING()’. It is impossible to fetch a whole subquery result in one...
View ArticleIDNameObjects API
By default (implicitly), when you pass the string "search" parameter in IDNameObjects API methods, it means that the [Name] property should contain this parameter as a substring ... Naturally, it is...
View ArticleBinary data types – sybase database engineer salary
Jstor database SQL Anywhere supports up to 2GB with LONG BINARY and TEXT ... Data recovery usa (Lucky for me, the system didn’t crash. )SOLUTION: use the SUBSTRING() function in the SELECT statement to...
View ArticleT-SQL: RIGHT, LEFT, SUBSTRING and CHARINDEX Functions
This article explains the functionality and uses of the LEFT, RIGHT, SUBSTRING and CHARINDEX functions in SQL. This article will leave you with sound knowledge and understanding that you can take away...
View ArticleTop 80 + SQL Query Interview Questions and Answers with Examples
Oracle Equivalent of SQL Server SUBSTRING is SUBSTR, Query : select substr(FIRST_NAME,0,3) from employee SQL Server Equivalent of Oracle SUBSTR is SUBSTRING, Query : select substring(FIRST_NAME,1,3)...
View ArticleTechTip: C# for RPGers: Not All Strings Are Born Equal
Substring is very similar to an RPG BIF ... His areas of expertise include programming in the IBM i native languages (RPG, CL, and DB2 SQL) and "modern" programming languages, such as C# and Python, as...
View ArticleExploiting blind SQL injections in ‘UPDATE’ and ‘INSERT’ statements without...
The SQL injection attack was introduced around 1998 for the first ... he needs to chop the data by string functions such as ‘SUBSTRING()’. It is impossible to fetch a whole subquery result in one...
View ArticleSQL and Data. Learning to Retrieve Data Efficiently and Accurately
Execute SQL*Plus Type describe billing_accounts Type desc orders Type SELECT???? FROM billing_accounts bact, orders ord WHERE bact.id = ord.bact_id AND substr(ord.name,1,3) = 715 AND bact.rentyp_id...
View ArticleExtracting data from journals using SQL
inz(%elem(Jrn)) ; 17 exec sql DECLARE C0 CURSOR FOR 18 SELECT ENTRY_TIMESTAMP,JOURNAL_CODE,JOURNAL_ENTRY_TYPE, 19 JOB_NAME,JOB_USER,JOB_NUMBER,SUBSTR(OBJECT,1,10), 20...
View ArticleSQL - String Functions
SQL> UPDATE table_test -> SET blob_col=LOAD_FILE('/tmp/picture') -> WHERE id=1; ..... The first syntax returns the position of the first occurrence of substring substr in string str. The...
View ArticleTop 5 T-SQL functions introduced in SQL Server 2016
Prior to the release of SQL Server 2016, many developers made used of user defined ... 1 INSERT INTO @output (splitdata) VALUES(SUBSTRING(@string, @start, @end - @start)) SET @start = @end + 1 SET @end...
View ArticleSQL Server 2012: T-SQL Code Snippets
Author> Expansion <![CDATA[ --Author: Saleem Hakani (Microsoft Corporation) --Website: Http://sqlcommunity.com Select 'Login Name'= Substring(upper(SUSER ...
View ArticleT-SQL: RIGHT, LEFT, SUBSTRING and CHARINDEX Functions
This article explains the functionality and uses of the LEFT, RIGHT, SUBSTRING and CHARINDEX functions in SQL. This article will leave you with sound knowledge and understanding that you can take away...
View ArticleIDNameObjects API
By default (implicitly), when you pass the string "search" parameter in IDNameObjects API methods, it means that the [Name] property should contain this parameter as a substring ... Naturally, it is...
View ArticleTop 80 + SQL Query Interview Questions and Answers with Examples
Oracle Equivalent of SQL Server SUBSTRING is SUBSTR, Query : select substr(FIRST_NAME,0,3) from employee SQL Server Equivalent of Oracle SUBSTR is SUBSTRING, Query : select substring(FIRST_NAME,1,3)...
View ArticleTop 5 T-SQL functions introduced in SQL Server 2016
Prior to the release of SQL Server 2016, many developers made used of user defined ... 1 INSERT INTO @output (splitdata) VALUES(SUBSTRING(@string, @start, @end - @start)) SET @start = @end + 1 SET @end...
View ArticleSQL Server 2012: T-SQL Code Snippets
Author> Expansion <![CDATA[ --Author: Saleem Hakani (Microsoft Corporation) --Website: Http://sqlcommunity.com Select 'Login Name'= Substring(upper(SUSER ...
View Article