Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Assertion with like #135

Open
angoca opened this issue Jan 25, 2020 · 0 comments
Open

Assertion with like #135

angoca opened this issue Jan 25, 2020 · 0 comments

Comments

@angoca
Copy link
Owner

angoca commented Jan 25, 2020

http://db2-sql-cookbook.org/#_sql_predicates 3.6.7

--#SET DELIMITER ! CREATE PROCEDURE LIKE_COLUMN ( IN instr1 VARCHAR(4000) , IN instr2 VARCHAR(4000) , OUT outval SMALLINT) LANGUAGE SQL CONTAINS SQL DETERMINISTIC NO EXTERNAL ACTION BEGIN SET outval = CASE WHEN instr1 LIKE instr2 THEN 1 ELSE 0 END; RETURN; END!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant