parse_sql_comments: remove comments from sql statements.

Description Usage Arguments Examples

Description

This function is used to parse comments from sql statments. It removes something like /* coments*/ or –. But it won't work if there is something like select * from tname where x = '–test'.

Usage

1
parse_sql_comments(input_sql)

Arguments

input_sql

the statements of sql in string variable

Examples

1
parse_sql_comments("select * from t --select \n where t <2")

dajuntian/emr4washu documentation built on May 14, 2019, 3:29 p.m.