I'd like to do this but I know this isn't the right syntax:
INSERT INTO TBL1
SELECT Col1
FROM TBL2
WHERE Col1.endswith('s')
I'd like to do this but I know this isn't the right syntax:
INSERT INTO TBL1
SELECT Col1
FROM TBL2
WHERE Col1.endswith('s')
INSERT INTO TBL1
SELECT Col1
FROM TBL2
WHERE col1 LIKE '%s'
where %
works like *
in wildcard and .+
in RegEx. It is SQL Server RegEx pattern indeed.
WHERE col1 like '%s'
% is the wildcard character which takes any value or any number of characters.
This site is good for learning this kind of thing: http://www.w3schools.com/sql/sql_like.asp