Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
-- Informix.DB2 Informix
DECLARE @Id Integer(4) -- Int32
SET @Id = 1
DECLARE @Text VarChar(4) -- String
SET @Text = 'abcd'

INSERT INTO InfeedAdvicePositionDTO
(
Id,
Text
)
VALUES
(
@Id,
@Text
)

-- Informix.DB2 Informix
DECLARE @Id Integer(4) -- Int32
SET @Id = 2
DECLARE @Text VarChar(6) -- String
SET @Text = 'aabbcc'

INSERT INTO InfeedAdvicePositionDTO
(
Id,
Text
)
VALUES
(
@Id,
@Text
)

-- Informix.DB2 Informix

SELECT FIRST 2
infeed.Id,
infeed.Text
FROM
InfeedAdvicePositionDTO infeed
WHERE
regex_match(infeed.Text, 'aa.*')

Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
-- Informix.DB2 Informix
DECLARE @Id Integer(4) -- Int32
SET @Id = 1
DECLARE @Text VarChar(6) -- String
SET @Text = 'ab12cd'

INSERT INTO InfeedAdvicePositionDTO
(
Id,
Text
)
VALUES
(
@Id,
@Text
)

-- Informix.DB2 Informix
DECLARE @Id Integer(4) -- Int32
SET @Id = 2
DECLARE @Text VarChar(10) -- String
SET @Text = 'AA11bb22cc'

INSERT INTO InfeedAdvicePositionDTO
(
Id,
Text
)
VALUES
(
@Id,
@Text
)

-- Informix.DB2 Informix

SELECT
regex_replace(t1.Text, '[0-9]+', '')
FROM
InfeedAdvicePositionDTO t1
ORDER BY
t1.Id

Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
-- Informix.DB2 Informix
DECLARE @Id Integer(4) -- Int32
SET @Id = 1
DECLARE @Text VarChar(10) -- String
SET @Text = 'aa11aa22aa'

INSERT INTO InfeedAdvicePositionDTO
(
Id,
Text
)
VALUES
(
@Id,
@Text
)

-- Informix.DB2 Informix

SELECT FIRST 2
t1.Text
FROM
InfeedAdvicePositionDTO t1

Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
-- MySql.8.0 MySql.8.0.MySql.Data MySql80
DECLARE @Id Int32
SET @Id = 1
DECLARE @Text VarChar(4) -- String
SET @Text = 'abcd'

INSERT INTO `InfeedAdvicePositionDTO`
(
`Id`,
`Text`
)
VALUES
(
@Id,
@Text
)

-- MySql.8.0 MySql.8.0.MySql.Data MySql80
DECLARE @Id Int32
SET @Id = 2
DECLARE @Text VarChar(6) -- String
SET @Text = 'aabbcc'

INSERT INTO `InfeedAdvicePositionDTO`
(
`Id`,
`Text`
)
VALUES
(
@Id,
@Text
)

-- MySql.8.0 MySql.8.0.MySql.Data MySql80

SELECT
`infeed`.`Id`,
`infeed`.`Text`
FROM
`InfeedAdvicePositionDTO` `infeed`
WHERE
`infeed`.`Text` REGEXP 'aa.*'
LIMIT 2

Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
-- MySql.8.0 MySql.8.0.MySql.Data MySql80
DECLARE @Id Int32
SET @Id = 1
DECLARE @Text VarChar(6) -- String
SET @Text = 'ab12cd'

INSERT INTO `InfeedAdvicePositionDTO`
(
`Id`,
`Text`
)
VALUES
(
@Id,
@Text
)

-- MySql.8.0 MySql.8.0.MySql.Data MySql80
DECLARE @Id Int32
SET @Id = 2
DECLARE @Text VarChar(10) -- String
SET @Text = 'AA11bb22cc'

INSERT INTO `InfeedAdvicePositionDTO`
(
`Id`,
`Text`
)
VALUES
(
@Id,
@Text
)

-- MySql.8.0 MySql.8.0.MySql.Data MySql80

SELECT
REGEXP_REPLACE(`t1`.`Text`, '[0-9]+', '')
FROM
`InfeedAdvicePositionDTO` `t1`
ORDER BY
`t1`.`Id`

Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
-- MySql.8.0 MySql.8.0.MySql.Data MySql80
DECLARE @Id Int32
SET @Id = 1
DECLARE @Text VarChar(10) -- String
SET @Text = 'aa11aa22aa'

INSERT INTO `InfeedAdvicePositionDTO`
(
`Id`,
`Text`
)
VALUES
(
@Id,
@Text
)

-- MySql.8.0 MySql.8.0.MySql.Data MySql80

SELECT
REGEXP_REPLACE(`t1`.`Text`, 'aa', 'X', 3, 1)
FROM
`InfeedAdvicePositionDTO` `t1`
LIMIT 2

Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
-- MySqlConnector.8.0 MySql.8.0.MySqlConnector MySql80
DECLARE @Id Int32
SET @Id = 1
DECLARE @Text VarChar(4) -- String
SET @Text = 'abcd'

INSERT INTO `InfeedAdvicePositionDTO`
(
`Id`,
`Text`
)
VALUES
(
@Id,
@Text
)

-- MySqlConnector.8.0 MySql.8.0.MySqlConnector MySql80
DECLARE @Id Int32
SET @Id = 2
DECLARE @Text VarChar(6) -- String
SET @Text = 'aabbcc'

INSERT INTO `InfeedAdvicePositionDTO`
(
`Id`,
`Text`
)
VALUES
(
@Id,
@Text
)

-- MySqlConnector.8.0 MySql.8.0.MySqlConnector MySql80

SELECT
`infeed`.`Id`,
`infeed`.`Text`
FROM
`InfeedAdvicePositionDTO` `infeed`
WHERE
`infeed`.`Text` REGEXP 'aa.*'
LIMIT 2

Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
-- MySqlConnector.8.0 MySql.8.0.MySqlConnector MySql80
DECLARE @Id Int32
SET @Id = 1
DECLARE @Text VarChar(6) -- String
SET @Text = 'ab12cd'

INSERT INTO `InfeedAdvicePositionDTO`
(
`Id`,
`Text`
)
VALUES
(
@Id,
@Text
)

-- MySqlConnector.8.0 MySql.8.0.MySqlConnector MySql80
DECLARE @Id Int32
SET @Id = 2
DECLARE @Text VarChar(10) -- String
SET @Text = 'AA11bb22cc'

INSERT INTO `InfeedAdvicePositionDTO`
(
`Id`,
`Text`
)
VALUES
(
@Id,
@Text
)

-- MySqlConnector.8.0 MySql.8.0.MySqlConnector MySql80

SELECT
REGEXP_REPLACE(`t1`.`Text`, '[0-9]+', '')
FROM
`InfeedAdvicePositionDTO` `t1`
ORDER BY
`t1`.`Id`

Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
-- MySqlConnector.8.0 MySql.8.0.MySqlConnector MySql80
DECLARE @Id Int32
SET @Id = 1
DECLARE @Text VarChar(10) -- String
SET @Text = 'aa11aa22aa'

INSERT INTO `InfeedAdvicePositionDTO`
(
`Id`,
`Text`
)
VALUES
(
@Id,
@Text
)

-- MySqlConnector.8.0 MySql.8.0.MySqlConnector MySql80

SELECT
REGEXP_REPLACE(`t1`.`Text`, 'aa', 'X', 3, 1)
FROM
`InfeedAdvicePositionDTO` `t1`
LIMIT 2

Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
-- Oracle.11.Managed Oracle11
DECLARE @Id Int32
SET @Id = 1
DECLARE @Text Varchar2(4) -- String
SET @Text = 'abcd'

INSERT INTO "InfeedAdvicePositionDTO"
(
"Id",
"Text"
)
VALUES
(
:Id,
:Text
)

-- Oracle.11.Managed Oracle11
DECLARE @Id Int32
SET @Id = 2
DECLARE @Text Varchar2(6) -- String
SET @Text = 'aabbcc'

INSERT INTO "InfeedAdvicePositionDTO"
(
"Id",
"Text"
)
VALUES
(
:Id,
:Text
)

-- Oracle.11.Managed Oracle11

SELECT
infeed."Id",
infeed."Text"
FROM
"InfeedAdvicePositionDTO" infeed
WHERE
REGEXP_LIKE(infeed."Text", 'aa.*') AND ROWNUM <= 2

Loading