I have a regex value that I want to insert in oracle database table column but I have some problems that the value doesn't inserted correctly in the database this is the value that I want to insert :
INSERT INTO valid_value VALUES (9, 14, 'REGEX[[A-Z.,-\s]+(,\s[A-Za-z.,-\s]+)?]', 1);
the result of this insert is :
valid_value
+--------------------------------------+
REGEX[[A-Z.,-\s]+(,\s[A-Za-z.,-\s]+)]
I lose the "?" character can some one help me on this how to insert regex value in a table column.
I start the script using a batch file
set DB_CREATE_ROOT="%~dp0"
set SQL_INIT_CONF_DIR=%DB_CREATE_ROOT%\Scripts\configuration\
for /r %SQL_INIT_CONF_DIR% %%F in (*init.sql) do (
ECHO %DATE% %TIME% "%%F" >> %LOG_NAME%
sqlplus -L Test_APP/welkom@//localhost:1521/xe @"%%F" >> %LOG_NAME% 2>&1
)
thanks in advance