set define off - 특수 문자 삽입, 예 를 들 어 &
이 유 는 Oacle 이 & 사용자 정의 변수 로 정의 하기 때 문 입 니 다.
SQL> show all
appinfo is OFF and set to "SQL*Plus"
arraysize 15
autocommit OFF
autoprint OFF
autorecovery OFF
autotrace OFF
blockterminator "." (hex 2e)
btitle OFF and is the first few characters of the next SELECT statement
cmdsep OFF
colsep " "
compatibility version NATIVE
concat "." (hex 2e)
copycommit 0
COPYTYPECHECK is ON
define "&" (hex 26)
describe DEPTH 1 LINENUM OFF INDENT ON
echo OFF
editfile "afiedt.buf"
embedded OFF
escape OFF
escchar OFF
......
이 때 set define off 만 있 으 면 포함 & 값 을 삽입 할 수 있 습 니 다.
Using the SET DEFINE OFF Command
To avoid the prompt in the preceding example by using the
SET DEFINE OFF
command, change the entry to the following: SET DEFINE OFF
CREATE TABLE "Employees & Managers" (
Employees varchar(16),
Managers varchar(16));
SET DEFINE OFF
SET DEFINE OFF disables the parsing of commands to replace substitution variables with their values.
메모: TOAD 에서 실 행 될 경우 가 져 올 스 크 립 트 의 첫 줄 에 앞 에 있 는 define 을 닫 는 것 을 권장 합 니 다. 그렇지 않 으 면 두 번 째 특수 문자 가 있 는 스 크 립 트 를 가 져 올 때 오류 가 발생 합 니 다. SQL * PLUS 에서 실행 되 는 경우 define OFF 를 한 번 만 설정 하면 다음 에 연속 으로 가 져 올 수 있 습 니 다.define ON 을 다시 설정 할 때 까지
이 내용에 흥미가 있습니까?
현재 기사가 여러분의 문제를 해결하지 못하는 경우 AI 엔진은 머신러닝 분석(스마트 모델이 방금 만들어져 부정확한 경우가 있을 수 있음)을 통해 가장 유사한 기사를 추천합니다:
자바 작업 은 Clob 또는 NClob 데이터 형식의 저장 프로 세 스 인 스 턴 스 를 포함 합 니 다.텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
CC BY-SA 2.5, CC BY-SA 3.0 및 CC BY-SA 4.0에 따라 라이센스가 부여됩니다.