<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>iTouch - Programing story</title>
    <link>https://itouch.tistory.com/</link>
    <description>A   u   ready??</description>
    <language>ko</language>
    <pubDate>Thu, 18 Jun 2026 17:37:06 +0900</pubDate>
    <generator>TISTORY</generator>
    <ttl>100</ttl>
    <managingEditor>아이터치</managingEditor>
    <item>
      <title>QueryDsl UnsupportedOperationException:null</title>
      <link>https://itouch.tistory.com/131</link>
      <description>&lt;p data-ke-size=&quot;size16&quot;&gt;JPAExpression.select를&amp;nbsp;이용해서&amp;nbsp;발생했던&amp;nbsp;문제.&lt;br /&gt;-&amp;gt;&amp;nbsp;JPAQueryFactory(entityManager)로&amp;nbsp;이용했더니&amp;nbsp;됨.&lt;br /&gt;&lt;br /&gt;구글링&amp;nbsp;내용&lt;br /&gt;출처:&amp;nbsp;&lt;a href=&quot;https://velog.io/@sigint_107/GraphQL-QueryDsl-null-Fetching-Error&quot; target=&quot;_blank&quot; rel=&quot;noopener&amp;nbsp;noreferrer&quot;&gt;https://velog.io/@sigint_107/GraphQL-QueryDsl-null-Fetching-Error&lt;/a&gt;&lt;br /&gt;GraphQL디버거에서&amp;nbsp;나온&amp;nbsp;에러내용&lt;br /&gt;&quot;Exception&amp;nbsp;while&amp;nbsp;fetching&amp;nbsp;data&amp;nbsp;(/comparePartsCond)&amp;nbsp;:&amp;nbsp;null&quot;,&lt;br /&gt;IntelliJ&amp;nbsp;console에서&amp;nbsp;나오는&amp;nbsp;에러내용&lt;br /&gt;UnsupportedOperationException:&amp;nbsp;null&lt;br /&gt;원인은&amp;nbsp;queryDsl쿼리를&amp;nbsp;JPAexpression객체로&amp;nbsp;불러서&amp;nbsp;나오는&amp;nbsp;에러였다.&amp;nbsp;&lt;br /&gt;원래대로라면&amp;nbsp;JPAQueryFactory가&amp;nbsp;QueryDsl쿼리를&amp;nbsp;부르는&amp;nbsp;맞는&amp;nbsp;객체이다.&lt;/p&gt;</description>
      <category>QueryDSL</category>
      <author>아이터치</author>
      <guid isPermaLink="true">https://itouch.tistory.com/131</guid>
      <comments>https://itouch.tistory.com/131#entry131comment</comments>
      <pubDate>Tue, 6 Feb 2024 18:03:05 +0900</pubDate>
    </item>
    <item>
      <title>[Spring] 서버 재시작 없이 설정 파일 Reload (동적으로 설정파일 읽기)</title>
      <link>https://itouch.tistory.com/130</link>
      <description>&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;- ReloadConfig&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;@Component&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;public class ReloadConfig {&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp; private ReloadingFileBasedConfigurationBuilder&amp;lt;PropertiesConfiguration&amp;gt; builder;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp; @Value(&quot;${spring.profiles.active}&quot;)&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp; private String active;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp; @PostConstruct&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp; void init() {&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp; &amp;nbsp; builder = new ReloadingFileBasedConfigurationBuilder&amp;lt;&amp;gt;(PropertiesConfiguration.class)&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .configure(new Parameters().fileBased().setFile(new File(&quot;./properties-&quot; + active + &quot;.properties&quot;)));&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp; &amp;nbsp; PeriodicReloadingTrigger periodicReloadingTrigger = new PeriodicReloadingTrigger(&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; builder.getReloadingController(), null, 50, TimeUnit.SECONDS&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp; &amp;nbsp; );&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp; &amp;nbsp; periodicReloadingTrigger.start();&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp; }&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp; public Configuration getConfig() {&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp; &amp;nbsp; try {&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp; &amp;nbsp; } catch(ConfigurationException e) {&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; e.printStackTrace();&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp; &amp;nbsp; }&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp; &amp;nbsp; return null;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp; }&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;}&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;- properties-local.properties&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;mail.receivers:aaa@aaa.com,bbb@bbb.com,ccc@ccc.com&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;- 사용&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;@Autowired&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;private ReloadConfig reloadConfig;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;public void sendEmail() {&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp; String[] mailReceivers = reloadConfig.getConfig().getString(&quot;mail.receivers&quot;).split(&quot;,&quot;);&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;}&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;script src=&quot;https://ads-partners.coupang.com/g.js&quot;&gt;&lt;/script&gt;
&lt;script&gt;
	new PartnersCoupang.G({&quot;id&quot;:709365,&quot;template&quot;:&quot;carousel&quot;,&quot;trackingCode&quot;:&quot;AF9964440&quot;,&quot;width&quot;:&quot;680&quot;,&quot;height&quot;:&quot;140&quot;,&quot;tsource&quot;:&quot;&quot;});
&lt;/script&gt;
&lt;/br&gt;
&quot;이 포스팅은 쿠팡 파트너스 활동의 일환으로, 이에 따른 일정액의 수수료를 제공받습니다.&quot;</description>
      <category>spring</category>
      <author>아이터치</author>
      <guid isPermaLink="true">https://itouch.tistory.com/130</guid>
      <comments>https://itouch.tistory.com/130#entry130comment</comments>
      <pubDate>Thu, 21 Sep 2023 14:24:51 +0900</pubDate>
    </item>
    <item>
      <title>[Thymeleaf] th:block 이용하여 left menu 처리 (without Thymeleaf Layout Dialect)</title>
      <link>https://itouch.tistory.com/129</link>
      <description>&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;Thymeleaf Layout Dialect 사용하지 않고 left 메뉴를 분리처리&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;thymeleaf-layout-dialect 를 만든 이유가 분명 있지만... 사용할 수 없는 환경에서 th:block을 이용하여 아래와 같이 처리&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;디렉토리 구조&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;-- resouces&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp; -- static&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp; &amp;nbsp; -- css&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; style.css&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp; -- templates&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp; &amp;nbsp; main.html&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp; &amp;nbsp; head.html&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp; &amp;nbsp; left.html&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;- main.html&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;lt;html&amp;gt;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp; &amp;lt;th:block th:include=&quot;head&quot;&amp;gt;&amp;lt;/th:block&amp;gt;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp; &amp;lt;body&amp;gt;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;lt;th:block th:include=&quot;left&quot;&amp;gt;&amp;lt;/th:block&amp;gt;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp; &amp;nbsp; Main화면~~~&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp; &amp;lt;body&amp;gt;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;lt;/html&amp;gt;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;- head.html&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;lt;head&amp;gt;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp; &amp;lt;title&amp;gt;Title&amp;lt;/title&amp;gt;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp; &amp;lt;link ref=&quot;stylesheet&quot; th:href=&quot;@{/css/style.css}&quot;&amp;gt;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;lt;/head&amp;gt;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;- left.html&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;lt;div&amp;gt;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp; &amp;lt;ul&amp;gt;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;lt;li&amp;gt;메뉴1&amp;lt;/li&amp;gt;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;lt;li&amp;gt;메뉴2&amp;lt;/li&amp;gt;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp; &amp;lt;/ul&amp;gt;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;lt;/div&amp;gt;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;/br&gt;
&lt;/br&gt;
&lt;script src=&quot;https://ads-partners.coupang.com/g.js&quot;&gt;&lt;/script&gt;
&lt;script&gt;
	new PartnersCoupang.G({&quot;id&quot;:709365,&quot;template&quot;:&quot;carousel&quot;,&quot;trackingCode&quot;:&quot;AF9964440&quot;,&quot;width&quot;:&quot;680&quot;,&quot;height&quot;:&quot;140&quot;,&quot;tsource&quot;:&quot;&quot;});
&lt;/script&gt;
&lt;/br&gt;
&quot;이 포스팅은 쿠팡 파트너스 활동의 일환으로, 이에 따른 일정액의 수수료를 제공받습니다.&quot;
&lt;/br&gt;
&lt;/br&gt;</description>
      <category>Thymeleaf</category>
      <author>아이터치</author>
      <guid isPermaLink="true">https://itouch.tistory.com/129</guid>
      <comments>https://itouch.tistory.com/129#entry129comment</comments>
      <pubDate>Thu, 14 Sep 2023 10:38:13 +0900</pubDate>
    </item>
    <item>
      <title>[Thymeleaf] a href 다이나믹 경로 (파라미터 전달, onclick 사용)</title>
      <link>https://itouch.tistory.com/128</link>
      <description>&lt;p data-ke-size=&quot;size16&quot;&gt;* a href 다이나믹 경로 설정&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;- 데이터&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;{&quot;menu&quot;: {&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp; &quot;name&quot;:&quot;한식&quot;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp; , &quot;code&quot;:&quot;KR&quot;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp; }&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;}&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;- 코드&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp; &amp;lt;a th:text=&quot;${menu.name}&quot; th:href=&quot;@{/menu/} + ${menu.code}&quot;&amp;gt;&amp;lt;/a&amp;gt;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp; &amp;nbsp; 또는&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp; &amp;lt;a th:text=&quot;${menu.name}&quot; th:href=&quot;@{/menu/{code}(code=${menu.code})}&quot;&amp;gt;&amp;lt;/a&amp;gt;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;gt;&amp;gt; '/menu/kr' 로 이동&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;* a href Get 파라미터 설정&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;- 데이터&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;{&quot;menu&quot;: {&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp; &quot;name&quot;:&quot;한식&quot;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp; , &quot;code&quot;:&quot;KR&quot;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp; }&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;}&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;- 코드&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp; &amp;lt;a th:text=&quot;${menu.name}&quot; th:href=&quot;@{/menu(code=${menu.code})}&quot;&amp;gt;&amp;lt;/a&amp;gt;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;gt;&amp;gt; '/menu?code=kr' 로 이동&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;* a href onclick 사용&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;- 데이터&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;{&quot;menu&quot;: {&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp; &quot;name&quot;:&quot;한식&quot;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp; , &quot;code&quot;:&quot;KR&quot;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp; }&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;}&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;- 스크립트&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;lt;script&amp;gt;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp; function goMenu(url) {&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp; &amp;nbsp; document.location.href=url;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp; }&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;lt;/script&amp;gt;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;- 코드&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp; &amp;lt;a th:text=&quot;${menu.name}&quot; href=&quot;javascript:void(0)&quot; th:onclick=&quot;'goMenu(\'' + @{/menu(code=${menu.code})} + '\')'&quot;&amp;gt;&amp;lt;/a&amp;gt;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;gt;&amp;gt; '/menu?code=kr' 로 이동&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;/br&gt;
&lt;/br&gt;
&lt;script src=&quot;https://ads-partners.coupang.com/g.js&quot;&gt;&lt;/script&gt;
&lt;script&gt;
	new PartnersCoupang.G({&quot;id&quot;:709365,&quot;template&quot;:&quot;carousel&quot;,&quot;trackingCode&quot;:&quot;AF9964440&quot;,&quot;width&quot;:&quot;680&quot;,&quot;height&quot;:&quot;140&quot;,&quot;tsource&quot;:&quot;&quot;});
&lt;/script&gt;
&lt;/br&gt;
&quot;이 포스팅은 쿠팡 파트너스 활동의 일환으로, 이에 따른 일정액의 수수료를 제공받습니다.&quot;
&lt;/br&gt;
&lt;/br&gt;</description>
      <category>Thymeleaf</category>
      <author>아이터치</author>
      <guid isPermaLink="true">https://itouch.tistory.com/128</guid>
      <comments>https://itouch.tistory.com/128#entry128comment</comments>
      <pubDate>Thu, 14 Sep 2023 10:33:14 +0900</pubDate>
    </item>
    <item>
      <title>[QueryDSL] SELECT SubQuery LIMIT 최신 데이터 가져오기</title>
      <link>https://itouch.tistory.com/127</link>
      <description>&lt;p data-ke-size=&quot;size16&quot;&gt;SELECT SubQuery LIMIT 최신 데이터 가져오기&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;select 절에서 SubQuery 최신 limit 1 을 가져올 수 없는 문제가 있어서 해결한 방법&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;Scalar subquery contains more than one row.... 이런 오류가 난다...&lt;/p&gt;
&lt;/br&gt;
&lt;/br&gt;
&lt;script src=&quot;https://ads-partners.coupang.com/g.js&quot;&gt;&lt;/script&gt;
&lt;script&gt;
	new PartnersCoupang.G({&quot;id&quot;:709365,&quot;template&quot;:&quot;carousel&quot;,&quot;trackingCode&quot;:&quot;AF9964440&quot;,&quot;width&quot;:&quot;680&quot;,&quot;height&quot;:&quot;140&quot;,&quot;tsource&quot;:&quot;&quot;});
&lt;/script&gt;
&lt;/br&gt;
&quot;이 포스팅은 쿠팡 파트너스 활동의 일환으로, 이에 따른 일정액의 수수료를 제공받습니다.&quot;
&lt;/br&gt;
&lt;/br&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;SELECT SUBQuery를 이용하여사용자의 최근 주문 번호를 가져온다고 가정&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;QUser user = QUser.user;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;QUrder order = QOrder.order;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;factory&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;.select(&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp;user.username&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp;, JPAExpressions&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;.select(order.orderId)&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;.from(order)&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;.where(order.seq.eq(JPAExpressions&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;.select(order.seq.max())&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;.from(order)&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;.where(order.userId.eq(user.userId))&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;.from(user)&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;.where(user.userId.eq(@id)&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;.fetchFirst();&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;임의 작성이라 정상적인 쿼리는 아니지만... 이런식으로 처리하는 방법밖에 없는 듯 합니다.&lt;/p&gt;</description>
      <category>QueryDSL</category>
      <author>아이터치</author>
      <guid isPermaLink="true">https://itouch.tistory.com/127</guid>
      <comments>https://itouch.tistory.com/127#entry127comment</comments>
      <pubDate>Wed, 13 Sep 2023 15:56:26 +0900</pubDate>
    </item>
    <item>
      <title>[QueryDSL] SELF JOIN 셀프조인</title>
      <link>https://itouch.tistory.com/126</link>
      <description>&lt;p data-ke-size=&quot;size16&quot;&gt;[QueryDSL] SELF JOIN 셀프조인&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;QCategory category1 = new QCategory(&quot;category1&quot;);&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;QCategory category2 = new QCategory(&quot;category2&quot;);&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;factory&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp; .select(&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp; &amp;nbsp; Projections.fields(&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; ...DTO.class,&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; category1.categoryCode.as(&quot;parentCategoryCode&quot;),&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; category2.categoryCode,&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; ...&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp; &amp;nbsp; )&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp; )&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp; .from(category1, category2)&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp; .where(&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp; &amp;nbsp; category1.categoryCode.eq(category2.parentCategoryCode)&lt;/p&gt;
&lt;p data-ke-size=&quot;size16&quot;&gt;&amp;nbsp; )&lt;/p&gt;</description>
      <category>QueryDSL</category>
      <author>아이터치</author>
      <guid isPermaLink="true">https://itouch.tistory.com/126</guid>
      <comments>https://itouch.tistory.com/126#entry126comment</comments>
      <pubDate>Wed, 13 Sep 2023 15:54:52 +0900</pubDate>
    </item>
    <item>
      <title>RestTemplate Send MULTIPART_FORM_DATA multipart/form-data</title>
      <link>https://itouch.tistory.com/125</link>
      <description>&lt;p&gt;import java.io.File;&lt;br /&gt;import java.io.IOException;&lt;br /&gt;import java.nio.file.Files;&lt;br /&gt;import java.nio.file.Path;&lt;/p&gt;
&lt;p&gt;import org.json.simple.JSONObject;&lt;br /&gt;import org.springframework.beans.factory.annotation.Value;&lt;br /&gt;import org.springframework.core.io.FileSystemResource;&lt;br /&gt;import org.springframework.core.io.Resource;&lt;br /&gt;import org.springframework.http.HttpEntity;&lt;br /&gt;import org.springframework.http.HttpHeaders;&lt;br /&gt;import org.springframework.http.MediaType;&lt;br /&gt;import org.springframework.http.ResponseEntity;&lt;br /&gt;import org.springframework.stereotype.Component;&lt;br /&gt;import org.springframework.util.LinkedMultiValueMap;&lt;br /&gt;import org.springframework.util.MultiValueMap;&lt;br /&gt;import org.springframework.web.client.RestTemplate;&lt;/p&gt;
&lt;p&gt;public static void main(String...strings) throws IOException {&lt;br /&gt;HttpHeaders headers = new HttpHeaders();&lt;br /&gt;headers.setContentType(MediaType.MULTIPART_FORM_DATA);&lt;br /&gt;headers.add(&quot;X-TOKEN&quot;, &quot;eyJhbGciOiJIUzI1NiJ9.eyJzdW4NH0.VqrBBwVnzOsqrkPKA&quot;);&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;MultiValueMap body&lt;br /&gt;= new LinkedMultiValueMap&amp;lt;&amp;gt;();&lt;br /&gt;body.add(&quot;file&quot;, new FileSystemResource(new File(&quot;C:\\Users\\foo\\Downloads\\test.png&quot;)));&lt;/p&gt;
&lt;p&gt;HttpEntity&amp;gt; requestEntity&lt;br /&gt;= new HttpEntity&amp;lt;&amp;gt;(body, headers);&lt;/p&gt;
&lt;p&gt;String serverUrl = &quot;&lt;a href=&quot;https://iims-dev-v1.richnco.kr/ess/cmmn/atch/add&quot;&gt;https://localhost/atch/add&lt;/a&gt;&quot;;&lt;/p&gt;
&lt;p&gt;RestTemplate restTemplate = new RestTemplate();&lt;br /&gt;ResponseEntity response = restTemplate&lt;br /&gt;.postForEntity(serverUrl, requestEntity, String.class);&lt;/p&gt;
&lt;p&gt;System.out.println(response);&lt;br /&gt;System.out.println(response.getBody());&lt;br /&gt;}&lt;/p&gt;
&lt;p&gt;public static Resource getTestFile() throws IOException {&lt;br /&gt;Path testFile = Files.createTempFile(&quot;test-file&quot;, &quot;.txt&quot;);&lt;br /&gt;System.out.println(&quot;Creating and Uploading Test File: &quot; + testFile);&lt;br /&gt;Files.write(testFile, &quot;Hello World !!, This is a test file.&quot;.getBytes());&lt;br /&gt;return new FileSystemResource(testFile.toFile());&lt;br /&gt;}&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;</description>
      <category>java</category>
      <author>아이터치</author>
      <guid isPermaLink="true">https://itouch.tistory.com/125</guid>
      <comments>https://itouch.tistory.com/125#entry125comment</comments>
      <pubDate>Fri, 24 Jul 2020 15:18:15 +0900</pubDate>
    </item>
    <item>
      <title>자바스크립트 정규식(Regular Expressions)</title>
      <link>https://itouch.tistory.com/124</link>
      <description>&lt;h1&gt;정규식(Regular Expressions)&lt;/h1&gt;
&lt;hr /&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;정규식은 문자열에 포함된 문자 조합을 찾기&amp;nbsp;위해 사용되는 패턴입니다. 코드를 간략하게 만들 수 있으나, 가독성이 떨어질 수 있습니다.&lt;/p&gt;
&lt;p&gt;RegExp의 exec, test 메소드와 String의 match, replace, search, split&amp;nbsp;메소드와 함께 사용됩니다.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;h2&gt;1. 정규식&lt;/h2&gt;
&lt;p&gt;두가지 방법으로 정규식을 만들 수 있습니다.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;h3&gt;정규식 패턴이&amp;nbsp;계속 지속될 경우&lt;/h3&gt;
&lt;table style=&quot;border-collapse: collapse; width: 100%;&quot; border=&quot;1&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td style=&quot;width: 9.4186%;&quot;&gt;
&lt;p&gt;1&lt;/p&gt;
&lt;/td&gt;
&lt;td style=&quot;width: 90.4651%;&quot;&gt;
&lt;p&gt;var re = /ab+c/;&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;정규식이 계속 지속 될 경우 위와 같은 리터럴 방법을 사용하는 것이 좋습니다.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;h3&gt;정규식 패턴이 변경되는 경우&lt;/h3&gt;
&lt;table style=&quot;border-collapse: collapse; width: 100%;&quot; border=&quot;1&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td style=&quot;width: 9.6512%;&quot;&gt;
&lt;p&gt;1&lt;/p&gt;
&lt;/td&gt;
&lt;td style=&quot;width: 90.2326%;&quot;&gt;
&lt;p&gt;var re = new RegExp(&quot;ab+c&quot;);&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;정규식 패턴이 바뀌는 경우, 생성자 함수를 사용하여 동적으로 정규식을 만들 수 있습니다.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;h2&gt;2. 정규식 패턴 만들기&lt;/h2&gt;
&lt;p&gt;정규식 패턴은 /abc/와 같이 단순한 문자열로 만들 수 있습니다. 또한 /ab*c/ 또는 /(\d+)\.=d%/ 와 같이 특수 문자와 단순 문자열의 조합으로 정규식 패턴을 만들 수 있습니다.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;h3&gt;단순 문자열 패턴&lt;/h3&gt;
&lt;p&gt;단순 문자열 패턴은 직접 찾고자 하는 문자들로 구성됩니다.&lt;/p&gt;
&lt;p&gt;예를 들어, /abc/는 this is abc의 abc에 매칭됩니다.&lt;/p&gt;
&lt;table style=&quot;border-collapse: collapse; width: 100%;&quot; border=&quot;1&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td style=&quot;width: 9.76744%;&quot;&gt;
&lt;p&gt;1&lt;/p&gt;
&lt;/td&gt;
&lt;td style=&quot;width: 90.1163%;&quot;&gt;
&lt;p&gt;/abc/.exec(&quot;this is abc&quot;);&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;&lt;figure class=&quot;imageblock alignCenter&quot; width=&quot;196&quot; height=&quot;37&quot;&gt;&lt;span data-url=&quot;https://blog.kakaocdn.net/dn/Kqbt4/btqt1G6U5nO/kps2rQ5RUmk8qo2fuVfJk1/img.png&quot; data-phocus=&quot;https://blog.kakaocdn.net/dn/Kqbt4/btqt1G6U5nO/kps2rQ5RUmk8qo2fuVfJk1/img.png&quot;&gt;&lt;img src=&quot;https://blog.kakaocdn.net/dn/Kqbt4/btqt1G6U5nO/kps2rQ5RUmk8qo2fuVfJk1/img.png&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;amp;fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2FKqbt4%2Fbtqt1G6U5nO%2Fkps2rQ5RUmk8qo2fuVfJk1%2Fimg.png&quot; width=&quot;196&quot; height=&quot;37&quot; onerror=&quot;this.onerror=null; this.src='//t1.daumcdn.net/tistory_admin/static/images/no-image-v1.png'; this.srcset='//t1.daumcdn.net/tistory_admin/static/images/no-image-v1.png';&quot;/&gt;&lt;/span&gt;&lt;/figure&gt;
&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span&gt;단순 문자열 패턴&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;하지만 /abc/는 this is ab c에 매칭 되지 않습니다.&lt;/p&gt;
&lt;table style=&quot;border-collapse: collapse; width: 100%;&quot; border=&quot;1&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td style=&quot;width: 9.76744%;&quot;&gt;
&lt;p&gt;1&lt;/p&gt;
&lt;/td&gt;
&lt;td style=&quot;width: 90.1163%;&quot;&gt;
&lt;p&gt;/abc/.exec(&quot;this is ab c&quot;);&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;&lt;figure class=&quot;imageblock alignCenter&quot; width=&quot;202&quot; height=&quot;35&quot;&gt;&lt;span data-url=&quot;https://blog.kakaocdn.net/dn/lhQ83/btqt240kDnQ/kxKheh7NikOFzeqmqL4QP0/img.png&quot; data-phocus=&quot;https://blog.kakaocdn.net/dn/lhQ83/btqt240kDnQ/kxKheh7NikOFzeqmqL4QP0/img.png&quot;&gt;&lt;img src=&quot;https://blog.kakaocdn.net/dn/lhQ83/btqt240kDnQ/kxKheh7NikOFzeqmqL4QP0/img.png&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;amp;fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2FlhQ83%2Fbtqt240kDnQ%2FkxKheh7NikOFzeqmqL4QP0%2Fimg.png&quot; width=&quot;202&quot; height=&quot;35&quot; onerror=&quot;this.onerror=null; this.src='//t1.daumcdn.net/tistory_admin/static/images/no-image-v1.png'; this.srcset='//t1.daumcdn.net/tistory_admin/static/images/no-image-v1.png';&quot;/&gt;&lt;/span&gt;&lt;/figure&gt;
&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span&gt;단순 문자열 패턴&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;h3&gt;특수문자를 사용한 패턴&lt;/h3&gt;
&lt;p&gt;하나 이상의 b를 찾거나, 단순 문자열 패턴보다 다양한 문자열을 찾기 위해 사용됩니다.&lt;/p&gt;
&lt;p&gt;예를 들어, /ab*c/ 패턴은 'a' 뒤에 0개 이상의 'b'와 바로 뒤에 'c'가 있는 문자열을 찾습니다. /ab*c/는 abbbbbbbbbce에서 abbbbbbbbbc와 매칭됩니다.&lt;/p&gt;
&lt;table style=&quot;border-collapse: collapse; width: 100%;&quot; border=&quot;1&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td style=&quot;width: 10.1163%;&quot;&gt;
&lt;p&gt;1&lt;/p&gt;
&lt;/td&gt;
&lt;td style=&quot;width: 89.7675%;&quot;&gt;
&lt;p&gt;/ab*c/.exec(&quot;this is abbbbbbbbbce&quot;);&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;&lt;figure class=&quot;imageblock alignCenter&quot; width=&quot;262&quot; height=&quot;37&quot;&gt;&lt;span data-url=&quot;https://blog.kakaocdn.net/dn/lN14a/btqt2asWXCM/h10xbkSayeY6tCvpqxgoO1/img.png&quot; data-phocus=&quot;https://blog.kakaocdn.net/dn/lN14a/btqt2asWXCM/h10xbkSayeY6tCvpqxgoO1/img.png&quot;&gt;&lt;img src=&quot;https://blog.kakaocdn.net/dn/lN14a/btqt2asWXCM/h10xbkSayeY6tCvpqxgoO1/img.png&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;amp;fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2FlN14a%2Fbtqt2asWXCM%2Fh10xbkSayeY6tCvpqxgoO1%2Fimg.png&quot; width=&quot;262&quot; height=&quot;37&quot; onerror=&quot;this.onerror=null; this.src='//t1.daumcdn.net/tistory_admin/static/images/no-image-v1.png'; this.srcset='//t1.daumcdn.net/tistory_admin/static/images/no-image-v1.png';&quot;/&gt;&lt;/span&gt;&lt;/figure&gt;
&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span&gt;특수 문자를 사용한 패턴&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;정규식에서의 특수문자&lt;/p&gt;
&lt;table style=&quot;border-collapse: collapse; width: 100%;&quot; border=&quot;1&quot; width=&quot;898&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td style=&quot;width: 9.4186%;&quot;&gt;문자&lt;/td&gt;
&lt;td style=&quot;width: 90.4651%;&quot;&gt;의미&amp;nbsp;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&quot;width: 9.4186%;&quot;&gt;\&lt;/td&gt;
&lt;td style=&quot;width: 90.4651%;&quot;&gt;1. 단순문자 앞에 \
&lt;p&gt;단순문자 앞에 \는 앞에 있는 단순문자를 단순문자로 해석되지 않고, 다른 의미로 해석되어집니다.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;/a\d/는 단순 ad와 매칭되지 않습니다.&amp;nbsp;\d는 새로운 의미를 가지게 됩니다. (\d는 0부터 9까지의 숫자와 매칭됩니다.)&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span&gt;단순문자 앞에 \&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
2. 특수문자 앞에 \
&lt;p&gt;특수문자 앞에 \는 앞에 있는 특수문자를 단순문자로 해석합니다.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;/a\*/는 aaaaaaa와 매칭되지 않습니다. \*은 단순문자 *로 해석됩니다. (특수문자 *은 앞 문자가 0개 이상일 경우 매칭됩니다.)&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span&gt;특수문자 앞에 \&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&quot;width: 9.4186%;&quot;&gt;^&lt;/td&gt;
&lt;td style=&quot;width: 90.4651%;&quot;&gt;
&lt;p&gt;입력의 시작 문자열에 매칭됩니다.&lt;/p&gt;
&lt;p&gt;Multi-line 플래그가 참으로 설정되어 있다면, 줄 바꿈 문자 바로 다음 문자에도 매칭됩니다.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;/^A/는 &quot;an A&quot;와 매칭되지 않습니다. 하지만 &quot;An E&quot;와는 첫번째 'A'와 매칭됩니다.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span&gt;특수문자 ^ 패턴&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;i&gt;^는 문자셋([abc]) 패턴의 첫글자로 쓰인다면, 다른 의미를 가집니다. ([^abc]는 위에 언급한 내용되 다른 의미를 가짐)&lt;/i&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&quot;width: 9.4186%;&quot;&gt;$&lt;/td&gt;
&lt;td style=&quot;width: 90.4651%;&quot;&gt;
&lt;p&gt;입력의 끝 문자열에 매칭됩니다.&lt;/p&gt;
&lt;p&gt;Multi-line 플래그가 참으로 설정되어 있다면, 줄 바꿈 문자 바로 전 문자에도 매칭됩니다.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;/$t/는 eater에 매칭되지 않지만, eat의 마지막 문자 t에 매칭됩니다.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span&gt;특수문자 $ 패턴&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&quot;width: 9.4186%;&quot;&gt;*&lt;/td&gt;
&lt;td style=&quot;width: 90.4651%;&quot;&gt;
&lt;p&gt;0번 이상 반복되는 문자열에 매칭됩니다. {0, }와 동일합니다.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;/bo*/은 &quot;A ghost booooed&quot;의 &quot;boooo&quot;과 매칭됩니다.&lt;/p&gt;
&lt;p&gt;/bo*/은 &quot;A bird warbled&quot;의 'b'에 매칭됩니다.&lt;/p&gt;
&lt;p&gt;하지만, /bo*/은 &quot;A goat grunted&quot;와는 매칭되지 않습니다.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span&gt;특수문자 * 패턴&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;/o*/은 &quot;abcd&quot;와 동일한 문자를 가지고 있지 않습니다. 하지만, 특수문자 *의 의미는 0번 이상 반복되는 문자열에 매칭되기 때문에, 동일한 문자가 없더라도 매칭되는 결과를 확인 할 수 있습니다.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span&gt;특수문자 * 패턴&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&quot;width: 9.4186%;&quot;&gt;+&lt;/td&gt;
&lt;td style=&quot;width: 90.4651%;&quot;&gt;
&lt;p&gt;1번 이상 반복되는 문자열에 매칭됩니다. {1, }과&amp;nbsp;동일합니다.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;/a+/는 &quot;candy&quot;의 'a'에 매칭됩니다.&lt;/p&gt;
&lt;p&gt;/a+/는 &quot;caaaaaaandy&quot;의 &quot;aaaaaaa&quot;와 매칭됩니다.&lt;/p&gt;
&lt;p&gt;하지만, /a+/는 &quot;cndy&quot;와는 매칭되지 않습니다.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span&gt;특수문자 + 패턴&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&quot;width: 9.4186%;&quot;&gt;?&lt;/td&gt;
&lt;td style=&quot;width: 90.4651%;&quot;&gt;
&lt;p&gt;0~1번 반복되는 문자열에 매칭됩니다. {0, 1}과 동일합니다.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;/e?le?/은 'e'가 0~1번 반복 후, 'l'이 온후 'e'가 0~번 반복된 문자열을 찾습니다.&lt;/p&gt;
&lt;p&gt;/e?le?/은 &quot;angel&quot;의 &quot;el&quot;에 매칭됩니다.&lt;/p&gt;
&lt;p&gt;/e?le?/은 &quot;oslo&quot;의 'l'에 매칭됩니다.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span&gt;특수문자 ? 패턴&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;*, +, ?, {} 패턴은 가능 한 많은 문자열을 매칭시킵니다.&lt;/p&gt;
&lt;p&gt;*, +, ?, {} 패턴 뒤에 ? 패턴을 사용하면, 가능한 가장 적은 문자열을 매칭시킵니다.&lt;/p&gt;
&lt;p&gt;/\d+/는 &quot;123abc&quot;에 &quot;123&quot;과 &amp;nbsp;매칭됩니다.&lt;/p&gt;
&lt;p&gt;하지만, /\d+?/의 경우는 &quot;123abc&quot;에 '1'과만&amp;nbsp;매칭됩니다.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span&gt;*, +, ?, {} 패턴 뒤에 ? 패턴을 사용&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;x(?=y)와 x(!?y)와 같이 검증에서도 사용됩니다.&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&quot;width: 9.4186%;&quot;&gt;.&lt;/td&gt;
&lt;td style=&quot;width: 90.4651%;&quot;&gt;
&lt;p&gt;다음 줄 문자(개행 문자)를 제외한 문자열에 매칭됩니다.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;/.n/은 &quot;an apple&quot;에 &quot;an&quot;에 매칭됩니다.&lt;/p&gt;
&lt;p&gt;하지만 /.n/은 &quot;nay&quot;와는 매칭되지 않습니다.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span&gt;특수문자 . 패턴&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&quot;width: 9.4186%;&quot;&gt;(x)&lt;/td&gt;
&lt;td style=&quot;width: 90.4651%;&quot;&gt;
&lt;p&gt;'x'에 일치하고 일치한 것을 기억합니다.&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;i&gt;괄호는 포획 괄호(capturing parentheses)라고 합니다.&lt;/i&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;/(foo) (bar)/은 &quot;foo bar test&quot;의&amp;nbsp;&quot;foo bar&quot;에 매칭됩니다. 또한 () 패턴으로 매칭된 값이 기억되는 것을 확인 할 수 있습니다.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span&gt;특수문자 () 패턴&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&quot;width: 9.4186%;&quot;&gt;(?:x)&lt;/td&gt;
&lt;td style=&quot;width: 90.4651%;&quot;&gt;
&lt;p&gt;'x'에 일치하지만 일치한 것을 기억하지 않습니다.&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;i&gt;괄호는 비포획 괄호(non-capturing parentheses)라고 합니다.&lt;/i&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;/abc+/는 &quot;abcabcabc&quot;에 &quot;abc&quot;가 매칭됩니다. ('ab' 뒤에 오는 'c'의 1번 이상 반복되는 문자열을 매칭합니다.)&lt;/p&gt;
&lt;p&gt;abc가 반복되는 것을 매칭하고 싶을 때 (?:x) 패턴을&amp;nbsp;사용할 수 있습니다.&lt;/p&gt;
&lt;p&gt;/(?:abc)+/는 &quot;abcabcabc&quot;에 &quot;abcabcabc&quot;가 매칭됩니다. (abc 전체를 + 패턴으로 매칭하게 됩니다.)&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span&gt;특수문자 (?:x) 패턴&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&quot;width: 9.4186%;&quot;&gt;x(?=y)&lt;/td&gt;
&lt;td style=&quot;width: 90.4651%;&quot;&gt;
&lt;p&gt;'y'가 뒤따라오는 'x'에만 매칭됩니다. lookahead라고 불립니다.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;/foo(?=bar)/는 &quot;foobar&quot;의 &quot;foo&quot;에 매칭됩니다.&lt;/p&gt;
&lt;p&gt;/foo(?=bar|test)/는 &quot;footest&quot;의 &quot;foo&quot;에 매칭됩니다. (foo이 뒤따라오는 문자열이 bar 또는 test 일 경우 매칭됩니다.)&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span&gt;특수문자 x(?=y) 패턴&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&quot;width: 9.4186%;&quot;&gt;x(?!y)&lt;/td&gt;
&lt;td style=&quot;width: 90.4651%;&quot;&gt;
&lt;p&gt;'y'가 뒤따라 오지 않는 'x'에만 매칭됩니다. negated lookahead라고 불립니다.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;/\d+(?!\.)/는 &quot;3.141&quot;에 &quot;141&quot;과 매칭됩니다. (소수점이 뒤따라오지 않는 숫자와&amp;nbsp;매칭됩니다.)&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span&gt;특수문자 x(?!y) 패턴&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&quot;width: 9.4186%;&quot;&gt;x|y&lt;/td&gt;
&lt;td style=&quot;width: 90.4651%;&quot;&gt;
&lt;p&gt;'x' 또는 'y'에 일치합니다.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;/green|red/는 &quot;green apple&quot;의 &quot;green&quot;에 매칭됩니다.&lt;/p&gt;
&lt;p&gt;/green|red/는 &quot;red&amp;nbsp;apple&quot;의 &quot;red&quot;에 매칭됩니다.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span&gt;특수문자 x_y 패턴&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&quot;width: 9.4186%;&quot;&gt;{n}&lt;/td&gt;
&lt;td style=&quot;width: 90.4651%;&quot;&gt;
&lt;p&gt;앞 문자가 n번 나타날 경우 매칭됩니다. (n은 양의 정수)&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;/a{2}/는 &quot;candy&quot;에는 매칭되지 않습니다.&lt;/p&gt;
&lt;p&gt;/a{2}/는 &quot;caandy&quot;의 &quot;aa&quot;와 매칭됩니다.&lt;/p&gt;
&lt;p&gt;/a{2}/는 &quot;caaandy&quot;는 처음으로 오는 &quot;aa&quot;와 매칭됩니다.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span&gt;특수문자 {n} 패턴&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&quot;width: 9.4186%;&quot;&gt;{n,m}&lt;/td&gt;
&lt;td style=&quot;width: 90.4651%;&quot;&gt;
&lt;p&gt;n ~ m번 반복되는 문자열과 매칭됩니다. (m, m은 양의 정수, n &amp;lt;= m)&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;/a{1, 3}/는 &quot;cndy&quot;에는 매칭되지 않습니다.&lt;/p&gt;
&lt;p&gt;/a{1, 3}/는 &quot;caandy&quot;의 &quot;aa&quot;와 매칭됩니다.&lt;/p&gt;
&lt;p&gt;/a{1, 3}/는 &quot;caaaaaaandy&quot;의 처음으로 오는 &quot;aaa&quot;에 매칭됩니다.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span&gt;특수문자 {n,m} 패턴&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&quot;width: 9.4186%;&quot;&gt;[xyz]&lt;/td&gt;
&lt;td style=&quot;width: 90.4651%;&quot;&gt;
&lt;p&gt;문자셋(Character set)을 말합니다.&lt;/p&gt;
&lt;p&gt;점(.), 별표(*)와 같은 특수 문자는 문자셋에서는 단순 문자로 인식됩니다. 하이픈(-)을 이용하여 문자의 범위를 지정 할 수 있습니다.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;/[a-d]/는 &quot;brisket&quot;의 'b'와 매칭됩니다.&lt;/p&gt;
&lt;p&gt;/[a-z.]+/는 &quot;test.i.ng&quot;의 문자열 전체, &quot;test.i.ng&quot;과 매칭됩니다.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span&gt;특수문자 [xyz] 패턴&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&quot;width: 9.4186%;&quot;&gt;[^xyz]&lt;/td&gt;
&lt;td style=&quot;width: 90.4651%;&quot;&gt;
&lt;p&gt;음의 문자셋(negated character set) 또는 보수 문자셋(complemented character set)을 말합니다.&lt;/p&gt;
&lt;p&gt;[] 안에 있지 않은 문자열과 매칭됩니다. 문자셋과 동일하게 하이픈(-)을 이용하여 문자의 번위를 저정 할 수 있습니다.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;/[^a-d]/는 &quot;brisket&quot;에서 처음으로 a부터 d까지의 문자에 포함되지 않는 'r'과 매칭됩니다.&lt;/p&gt;
&lt;p&gt;/[^a-d]/는 &quot;chop&quot;의 'h'와 매칭됩니다.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span&gt;특수문자 [^xyz] 패턴&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&quot;width: 9.4186%;&quot;&gt;[\b]&lt;/td&gt;
&lt;td style=&quot;width: 90.4651%;&quot;&gt;
&lt;p&gt;백스페이스와 매칭됩니다. 백스페이스 문자에 일치 시키려면 대괄호([])를 이용해야 합니다.&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&quot;width: 9.4186%;&quot;&gt;\b&lt;/td&gt;
&lt;td style=&quot;width: 90.4651%;&quot;&gt;
&lt;p&gt;단어의 경계를 말합니다.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;/\bm/은&amp;nbsp;&quot;moon&quot;의 m과 매칭됩니다.&lt;/p&gt;
&lt;p&gt;/oo\b/는 &quot;moon&quot;과 매칭되지 않습니다. (문자열의 끝이 o이 아니지 때문에)&lt;/p&gt;
&lt;p&gt;/n\b/는 &quot;moon&quot;의 n과 매칭됩니다.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span&gt;특수문자 \b 패턴&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&quot;width: 9.4186%;&quot;&gt;\B&lt;/td&gt;
&lt;td style=&quot;width: 90.4651%;&quot;&gt;
&lt;p&gt;단어의 경계가 아닌 곳을 말합니다.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;/\B../은 &quot;noonday&quot;의 &quot;oo&quot;와 매칭됩니다.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span&gt;특수문자 \B 패턴&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&quot;width: 9.4186%;&quot;&gt;\cX&lt;/td&gt;
&lt;td style=&quot;width: 90.4651%;&quot;&gt;
&lt;p&gt;&amp;nbsp;X는 A에서 Z까지 문자중 하나입니다. 문자열에서 컬트롤 문자와 매칭됩니다.&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&quot;width: 9.4186%;&quot;&gt;\d&lt;/td&gt;
&lt;td style=&quot;width: 90.4651%;&quot;&gt;
&lt;p&gt;숫자 문자와 매칭됩니다.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;/\d&quot;/는 &quot;a1b&quot;의 '1'에 매칭됩니다.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span&gt;특수문자 \d 패턴&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&quot;width: 9.4186%;&quot;&gt;\D&lt;/td&gt;
&lt;td style=&quot;width: 90.4651%;&quot;&gt;
&lt;p&gt;숫자가 아닌 문자와 매칭됩니다. ([^0-9]와 동일)&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;/\D/는 &quot;1a2&quot;의 'a'에 매칭됩니다.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span&gt;특수문자 \D 패턴&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&quot;width: 9.4186%;&quot;&gt;\f&lt;/td&gt;
&lt;td style=&quot;width: 90.4651%;&quot;&gt;
&lt;p&gt;폼피드(U+000C) 문자에 매칭됩니다.&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&quot;width: 9.4186%;&quot;&gt;\n&lt;/td&gt;
&lt;td style=&quot;width: 90.4651%;&quot;&gt;
&lt;p&gt;줄 바꿈(U+000A) 문자에 매칭됩니다.&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&quot;width: 9.4186%;&quot;&gt;\r&lt;/td&gt;
&lt;td style=&quot;width: 90.4651%;&quot;&gt;
&lt;p&gt;캐리지 리턴(U+000D) 문자에 매칭됩니다.&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&quot;width: 9.4186%;&quot;&gt;\s&lt;/td&gt;
&lt;td style=&quot;width: 90.4651%;&quot;&gt;
&lt;p&gt;스페이스, 탭, 폼피드, 불 바꿈 문자등을 포함한 하나의 공백 문자와 매칭됩니다.&lt;/p&gt;
&lt;p&gt;([&amp;nbsp;\f\n\r\t\v​\u00a0\u1680​\u180e\u2000​-\u200a​\u2028\u2029\u202f\u205f​\u3000] 와 동일)&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;/\sbar/는 &quot;foo bar&quot;의 &quot; bar&quot;에 매칭됩니다.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span&gt;특수문자 \s 패턴&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&quot;width: 9.4186%;&quot;&gt;\S&lt;/td&gt;
&lt;td style=&quot;width: 90.4651%;&quot;&gt;
&lt;p&gt;공백이 아닌 하나의 문자와 매칭됩니다.&lt;/p&gt;
&lt;p&gt;([^ \f\n\r\t\v​\u00a0\u1680​\u180e\u2000​-\u200a​\u2028\u2029\u202f\u205f​\u3000] 와 동일)&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;/\S+/는 &quot;foo bar&quot;의 &quot;foo&quot;에 매칭됩니다. (가장 먼저 오는 공백아닌 문자열)&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span&gt;특수문자 \S 패턴&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&quot;width: 9.4186%;&quot;&gt;\t&lt;/td&gt;
&lt;td style=&quot;width: 90.4651%;&quot;&gt;
&lt;p&gt;탭(U+0009) 문자에 매칭됩니다.&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&quot;width: 9.4186%;&quot;&gt;\v&lt;/td&gt;
&lt;td style=&quot;width: 90.4651%;&quot;&gt;
&lt;p&gt;수직 탭(U+000B) 문자에 매칭됩니다.&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&quot;width: 9.4186%;&quot;&gt;\w&lt;/td&gt;
&lt;td style=&quot;width: 90.4651%;&quot;&gt;
&lt;p&gt;밑줄 문자를 포함한 영어, 숫자 문자에 매칭됩니다. ([A-Za-z0-9_] 와 동일)&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;/\w+/는 &quot;apple&quot;에 문자열 전체, &quot;apple&quot;과 매칭됩니다.&lt;/p&gt;
&lt;p&gt;/\w+/는 &quot;$5.28&quot;에&amp;nbsp;'5'와&amp;nbsp;매칭됩니다.&lt;/p&gt;
&lt;p&gt;/\w+/는 &quot;3D.&quot;에 &quot;3D&quot;와&amp;nbsp;매칭됩니다.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span&gt;특수문자 \w 패턴&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&quot;width: 9.4186%;&quot;&gt;\W&lt;/td&gt;
&lt;td style=&quot;width: 90.4651%;&quot;&gt;
&lt;p&gt;단어가 아닌 문자와 매칭됩니다. ([^A-Za-z0-9_] 와 동일)&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;/\W+/는 &quot;3D.&quot;에 '.'과 매칭됩니다.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span&gt;특수문자 \W 패턴&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&quot;width: 9.4186%;&quot;&gt;\n&lt;/td&gt;
&lt;td style=&quot;width: 90.4651%;&quot;&gt;
&lt;p&gt;정규식 안 n번 괄호의 최근 일치 부분의 역참조 입니다. (n은 양의 정수)&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;/(foo) (bar) \1 \2/은 &quot;foo bar foo bar&quot;에 &quot;foo bar foo bar&quot;이 매칭됩니다. (\n 패턴은 괄호로 기억된 값을 참조하고 있습니다.)&lt;/p&gt;
&lt;p&gt;\1은 첫번째 괄호로 매칭된 foo 값을 나타내고, \2는 두번째&amp;nbsp;괄호로 매칭된 bar를 나타냅니다.&lt;/p&gt;
&lt;p&gt;즉 /(foo) (bar) \1 \2/ 패턴은 /(foo) (bar) foo bar/ 패턴과 동일합니다.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span&gt;특수문자 \n 패턴&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&quot;width: 9.4186%;&quot;&gt;\0&lt;/td&gt;
&lt;td style=&quot;width: 90.4651%;&quot;&gt;
&lt;p&gt;Null 문자와 매칭됩니다.&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&quot;width: 9.4186%;&quot;&gt;\xhh&lt;/td&gt;
&lt;td style=&quot;width: 90.4651%;&quot;&gt;
&lt;p&gt;코드가 hh(2개의 16진수)인 문자와 매칭됩니다.&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&quot;width: 9.4186%;&quot;&gt;\xhhhh&lt;/td&gt;
&lt;td style=&quot;width: 90.4651%;&quot;&gt;
&lt;p&gt;코드가 hhhh(4개의 16진수)인 문자와 매칭됩니다.&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;h2&gt;3. 정규식 사용하기&lt;/h2&gt;
&lt;p&gt;정규식은 ExgExp 메소드에&amp;nbsp;test, exec, String 메소드에&amp;nbsp;match, replace, search, split 메소드와 함께 사용됩니다.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;h3&gt;ExgExp 메소드&lt;/h3&gt;
&lt;table style=&quot;border-collapse: collapse; width: 100%;&quot; border=&quot;1&quot; width=&quot;864&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td style=&quot;width: 13.3721%;&quot;&gt;
&lt;p&gt;&lt;b&gt;&amp;nbsp;Method&lt;/b&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;td style=&quot;width: 86.5116%;&quot;&gt;
&lt;p&gt;&lt;b&gt;&amp;nbsp;Description&lt;/b&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&quot;width: 13.3721%;&quot;&gt;
&lt;p&gt;&amp;nbsp;exec&lt;/p&gt;
&lt;/td&gt;
&lt;td style=&quot;width: 86.5116%;&quot;&gt;
&lt;p&gt;매칭된 문자열을 찾기 위한 메소드입니다.&lt;/p&gt;
&lt;p&gt;매칭된 문자열이 있다면 매칭된 값의 배열을 리턴하고, 매칭된 문자열이 없다면&amp;nbsp;null을 리턴합니다.&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&quot;width: 13.3721%;&quot;&gt;
&lt;p&gt;&amp;nbsp;test&lt;/p&gt;
&lt;/td&gt;
&lt;td style=&quot;width: 86.5116%;&quot;&gt;
&lt;p&gt;매칭된 문자열이 있는지 확인하기 위한 메소드입니다.&lt;/p&gt;
&lt;p&gt;매칭된 문자열이 있다면 ture를 리턴하고, 매칭된 문자열이 없다면 false를 리턴합니다.&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;매칭된 문자열이 있는지 확인하는 용도로 메소드를 사용한다면, exec 메소드는 느릴 수 있기 때문에 test 메소드를 사용하는 것이 좋습니다.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;ExgExp 메소드로 아래와 같이 정규식을 사용할 수 있습니다.&lt;/p&gt;
&lt;table style=&quot;border-collapse: collapse; width: 100%;&quot; border=&quot;1&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td style=&quot;width: 10.814%;&quot;&gt;
&lt;p&gt;1&lt;/p&gt;
&lt;/td&gt;
&lt;td style=&quot;width: 89.0698%;&quot;&gt;
&lt;p&gt;var myArray = /d(b+)d/g.exec('cdbbdbsbz');&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;ExgExp 객체를 따로 저장하여, 정규식을 사용 할 수도 있습니다.&lt;/p&gt;
&lt;table style=&quot;border-collapse: collapse; width: 100%;&quot; border=&quot;1&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td style=&quot;width: 11.3953%;&quot;&gt;
&lt;p&gt;1&lt;/p&gt;
&lt;p&gt;2&lt;/p&gt;
&lt;/td&gt;
&lt;td style=&quot;width: 88.4884%;&quot;&gt;
&lt;p&gt;var myRe = /d(b+)d/g; // 또는, var myRe = new RegExp('d(b+)d', 'g');&lt;/p&gt;
&lt;p&gt;var myArray = myRe.exec('cdbbdbsbz');&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;ExgExp 객체를 따로 저장하여 사용한다면, ExgExp 객체의 프로퍼티 사용이 가능해집니다.&lt;/p&gt;
&lt;p&gt;위의 예제의 실행 결과와 myRe 객체,&amp;nbsp;myArray 객체의 값은 아래와 같습니다.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;figure class=&quot;imageblock alignCenter&quot; width=&quot;266&quot; height=&quot;339&quot;&gt;&lt;span data-url=&quot;https://blog.kakaocdn.net/dn/bhCMqq/btqt0a2eHJA/zayJYLuJyqT2KKxm2UK3o1/img.png&quot; data-phocus=&quot;https://blog.kakaocdn.net/dn/bhCMqq/btqt0a2eHJA/zayJYLuJyqT2KKxm2UK3o1/img.png&quot;&gt;&lt;img src=&quot;https://blog.kakaocdn.net/dn/bhCMqq/btqt0a2eHJA/zayJYLuJyqT2KKxm2UK3o1/img.png&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;amp;fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2FbhCMqq%2Fbtqt0a2eHJA%2FzayJYLuJyqT2KKxm2UK3o1%2Fimg.png&quot; width=&quot;266&quot; height=&quot;339&quot; onerror=&quot;this.onerror=null; this.src='//t1.daumcdn.net/tistory_admin/static/images/no-image-v1.png'; this.srcset='//t1.daumcdn.net/tistory_admin/static/images/no-image-v1.png';&quot;/&gt;&lt;/span&gt;&lt;/figure&gt;
&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span&gt;myRe 객체, myArray 객체의 값&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;table style=&quot;border-collapse: collapse; width: 100%;&quot; border=&quot;1&quot; width=&quot;864&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td style=&quot;width: 13.6047%;&quot;&gt;
&lt;p&gt;&lt;b&gt;Object&lt;/b&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;td style=&quot;width: 26.0465%;&quot;&gt;
&lt;p&gt;&lt;b&gt;Property or index&lt;/b&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;td style=&quot;width: 35.2326%;&quot;&gt;
&lt;p&gt;&lt;b&gt;Description&lt;/b&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;td style=&quot;width: 25%;&quot;&gt;
&lt;p&gt;&lt;b&gt;In this example&lt;/b&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&quot;width: 13.6047%;&quot; rowspan=&quot;4&quot;&gt;
&lt;p&gt;myArray&lt;/p&gt;
&lt;/td&gt;
&lt;td style=&quot;width: 26.0465%;&quot;&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;/td&gt;
&lt;td style=&quot;width: 35.2326%;&quot;&gt;
&lt;p&gt;매칭된 문자열과 기억된 부분 문자열&lt;/p&gt;
&lt;/td&gt;
&lt;td style=&quot;width: 25%;&quot;&gt;
&lt;p&gt;[&quot;abbd&quot;, &quot;bb&quot;]&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&quot;width: 26.0465%;&quot;&gt;
&lt;p&gt;index&lt;/p&gt;
&lt;/td&gt;
&lt;td style=&quot;width: 35.2326%;&quot;&gt;
&lt;p&gt;매칭된 문자열 인덱스 (0부터 시작)&lt;/p&gt;
&lt;/td&gt;
&lt;td style=&quot;width: 25%;&quot;&gt;
&lt;p&gt;1&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&quot;width: 26.0465%;&quot;&gt;
&lt;p&gt;input&lt;/p&gt;
&lt;/td&gt;
&lt;td style=&quot;width: 35.2326%;&quot;&gt;
&lt;p&gt;원래의 문자열&lt;/p&gt;
&lt;/td&gt;
&lt;td style=&quot;width: 25%;&quot;&gt;
&lt;p&gt;&quot;cdbbdbsbz&quot;&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&quot;width: 26.0465%;&quot;&gt;
&lt;p&gt;[0]&lt;/p&gt;
&lt;/td&gt;
&lt;td style=&quot;width: 35.2326%;&quot;&gt;
&lt;p&gt;매칭된 문자열&lt;/p&gt;
&lt;/td&gt;
&lt;td style=&quot;width: 25%;&quot;&gt;
&lt;p&gt;&quot;abbd&quot;&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&quot;width: 13.6047%;&quot; rowspan=&quot;2&quot;&gt;
&lt;p&gt;myRe&lt;/p&gt;
&lt;/td&gt;
&lt;td style=&quot;width: 26.0465%;&quot;&gt;
&lt;p&gt;lastIndex&lt;/p&gt;
&lt;/td&gt;
&lt;td style=&quot;width: 35.2326%;&quot;&gt;
&lt;p&gt;다음 매칭을 시작할 인덱스&lt;/p&gt;
&lt;/td&gt;
&lt;td style=&quot;width: 25%;&quot;&gt;
&lt;p&gt;5&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&quot;width: 26.0465%;&quot;&gt;
&lt;p&gt;source&lt;/p&gt;
&lt;/td&gt;
&lt;td style=&quot;width: 35.2326%;&quot;&gt;
&lt;p&gt;정규식 패턴&lt;/p&gt;
&lt;/td&gt;
&lt;td style=&quot;width: 25%;&quot;&gt;
&lt;p&gt;&quot;d(b+)d&quot;&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;h3&gt;String 메소드&lt;/h3&gt;
&lt;table style=&quot;border-collapse: collapse; width: 100%;&quot; border=&quot;1&quot; width=&quot;864&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td style=&quot;width: 15.5814%;&quot;&gt;
&lt;p&gt;&lt;b&gt;Method&lt;/b&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;td style=&quot;width: 84.3023%;&quot;&gt;
&lt;p&gt;&lt;b&gt;Description&amp;nbsp;&lt;/b&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&quot;width: 15.5814%;&quot;&gt;
&lt;p&gt;match&lt;/p&gt;
&lt;/td&gt;
&lt;td style=&quot;width: 84.3023%;&quot;&gt;
&lt;p&gt;매칭된 문자열을 찾기 위한 메소드입니다.&lt;/p&gt;
&lt;p&gt;매칭된 문자열이 있다면 매칭된 값의 배열을 리턴하고, 매칭된 문자열이 없다면&amp;nbsp;null을 리턴합니다.&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&quot;width: 15.5814%;&quot;&gt;
&lt;p&gt;search&lt;/p&gt;
&lt;/td&gt;
&lt;td style=&quot;width: 84.3023%;&quot;&gt;
&lt;p&gt;매칭된 문자열이 있는지 확인하기 위한 메소드입니다.&lt;/p&gt;
&lt;p&gt;매칭된 문자열이 있다면 매칭된 문자열의 인덱스를 리턴하고, 매칭된 문자열이 없다면 -1를 리턴합니다.&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&quot;width: 15.5814%;&quot;&gt;
&lt;p&gt;replace&lt;/p&gt;
&lt;/td&gt;
&lt;td style=&quot;width: 84.3023%;&quot;&gt;
&lt;p&gt;매칭된 문자열을 찾아&amp;nbsp;매칭된 문자열을 변경하는 메소드입니다.&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&quot;width: 15.5814%;&quot;&gt;
&lt;p&gt;split&lt;/p&gt;
&lt;/td&gt;
&lt;td style=&quot;width: 84.3023%;&quot;&gt;
&lt;p&gt;매칭된 문자열을 찾아 그 문자열을 기준으로 문자열을 나누는 메소드입니다.&amp;nbsp;&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;매칭된 문자열이 있는지 확인하는 용도로 메소드를 사용한다면, match&amp;nbsp;메소드는 느릴 수 있기 때문에 search&amp;nbsp;메소드를 사용하는 것이 좋습니다.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;정규식의 () 패턴을 String 메소드의 replace등에 활용할 수 있습니다.&lt;/p&gt;
&lt;p&gt;/a(b)c/는 &quot;abc&quot;와 매칭되고, 'b'를 기억합니다. 괄호와 매칭된 문자열을 불러오기 위해, 배열 [1], ..., [n]을 사용합니다.&lt;/p&gt;
&lt;table style=&quot;border-collapse: collapse; width: 100%;&quot; border=&quot;1&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td style=&quot;width: 8.48835%;&quot;&gt;
&lt;p&gt;1&lt;/p&gt;
&lt;p&gt;2&lt;/p&gt;
&lt;p&gt;3&lt;/p&gt;
&lt;/td&gt;
&lt;td style=&quot;width: 91.3953%;&quot;&gt;
&lt;p&gt;var str = &quot;abcde&quot;;&lt;/p&gt;
&lt;p&gt;var myArray = str.match(/a(b)c(d)/);&lt;/p&gt;
&lt;p&gt;console.log(myArray);&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;&lt;figure class=&quot;imageblock alignCenter&quot; width=&quot;257&quot; height=&quot;181&quot;&gt;&lt;span data-url=&quot;https://blog.kakaocdn.net/dn/cwbzok/btqtY750J8g/ekmMjJBAUkLJYxLn3ZxNoK/img.png&quot; data-phocus=&quot;https://blog.kakaocdn.net/dn/cwbzok/btqtY750J8g/ekmMjJBAUkLJYxLn3ZxNoK/img.png&quot;&gt;&lt;img src=&quot;https://blog.kakaocdn.net/dn/cwbzok/btqtY750J8g/ekmMjJBAUkLJYxLn3ZxNoK/img.png&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;amp;fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2Fcwbzok%2FbtqtY750J8g%2FekmMjJBAUkLJYxLn3ZxNoK%2Fimg.png&quot; width=&quot;257&quot; height=&quot;181&quot; onerror=&quot;this.onerror=null; this.src='//t1.daumcdn.net/tistory_admin/static/images/no-image-v1.png'; this.srcset='//t1.daumcdn.net/tistory_admin/static/images/no-image-v1.png';&quot;/&gt;&lt;/span&gt;&lt;/figure&gt;
&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span&gt;String 메소드의 () 정규식 패턴 사용하기&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;0번 배열에는 매칭된 값이 저장되기 때문에, 기억된 부분 문자열은 1번부터 시작됩니다.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;다음 예는 replace 메소드를 이용한 예제입니다. 괄호에 일치하는 부분 문자열을 의미하는 $1(첫번째 괄호 값), $2(두번째 괄호 값)을 사용하였습니다.&lt;/p&gt;
&lt;table style=&quot;border-collapse: collapse; width: 100%;&quot; border=&quot;1&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td style=&quot;width: 10.2326%;&quot;&gt;
&lt;p&gt;1&lt;/p&gt;
&lt;p&gt;2&lt;/p&gt;
&lt;p&gt;3&lt;/p&gt;
&lt;p&gt;4&lt;/p&gt;
&lt;/td&gt;
&lt;td style=&quot;width: 89.6512%;&quot;&gt;
&lt;p&gt;var re = /(\w+)\s(\w+)/;&lt;/p&gt;
&lt;p&gt;var str = &quot;John Smith&quot;;&lt;/p&gt;
&lt;p&gt;var newstr = str.replace(re, &quot;$2, $1&quot;);&lt;/p&gt;
&lt;p&gt;console.log(newstr);&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;&lt;figure class=&quot;imageblock alignCenter&quot; width=&quot;275&quot; height=&quot;76&quot;&gt;&lt;span data-url=&quot;https://blog.kakaocdn.net/dn/bhQEZO/btqt0USa5fi/FvrZE1j50PWeGhKkXH3jNK/img.png&quot; data-phocus=&quot;https://blog.kakaocdn.net/dn/bhQEZO/btqt0USa5fi/FvrZE1j50PWeGhKkXH3jNK/img.png&quot;&gt;&lt;img src=&quot;https://blog.kakaocdn.net/dn/bhQEZO/btqt0USa5fi/FvrZE1j50PWeGhKkXH3jNK/img.png&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;amp;fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2FbhQEZO%2Fbtqt0USa5fi%2FFvrZE1j50PWeGhKkXH3jNK%2Fimg.png&quot; width=&quot;275&quot; height=&quot;76&quot; onerror=&quot;this.onerror=null; this.src='//t1.daumcdn.net/tistory_admin/static/images/no-image-v1.png'; this.srcset='//t1.daumcdn.net/tistory_admin/static/images/no-image-v1.png';&quot;/&gt;&lt;/span&gt;&lt;/figure&gt;
&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span&gt;String 메소드의 () 정규식 패턴 사용하기&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;$1, $2를 사용하여, 두 문자열을 스와핑하는 예제입니다.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;h2&gt;4. 정규식의 플래그&lt;/h2&gt;
&lt;p&gt;정규식의 플래그는 4가지가 있습니다.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;table style=&quot;border-collapse: collapse; width: 100%;&quot; border=&quot;1&quot; width=&quot;864&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td style=&quot;width: 17.6744%;&quot;&gt;
&lt;p&gt;&lt;b&gt;Flag&lt;/b&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;td style=&quot;width: 82.2093%;&quot;&gt;
&lt;p&gt;&lt;b&gt;Description&amp;nbsp;&lt;/b&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&quot;width: 17.6744%;&quot;&gt;
&lt;p&gt;g&lt;/p&gt;
&lt;/td&gt;
&lt;td style=&quot;width: 82.2093%;&quot;&gt;
&lt;p&gt;전역 검색&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&quot;width: 17.6744%;&quot;&gt;
&lt;p&gt;i&lt;/p&gt;
&lt;/td&gt;
&lt;td style=&quot;width: 82.2093%;&quot;&gt;
&lt;p&gt;대소문자 구별 없이 검색&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&quot;width: 17.6744%;&quot;&gt;
&lt;p&gt;m&lt;/p&gt;
&lt;/td&gt;
&lt;td style=&quot;width: 82.2093%;&quot;&gt;
&lt;p&gt;Multi-line 검색, 시작 혹은 끝 문자 탐색(^ and $)이 다중행에 적용되도록 합니다.&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style=&quot;width: 17.6744%;&quot;&gt;
&lt;p&gt;y&lt;/p&gt;
&lt;/td&gt;
&lt;td style=&quot;width: 82.2093%;&quot;&gt;
&lt;p&gt;현재 위치에서 검색&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;h3&gt;정규식의 플래그 정의하기&lt;/h3&gt;
&lt;p&gt;다음과 같이 플래그를 사용하여 정규식을 만들 수 있습니다.&lt;/p&gt;
&lt;table style=&quot;border-collapse: collapse; width: 100%;&quot; border=&quot;1&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td style=&quot;width: 13.6047%;&quot;&gt;
&lt;p&gt;1&lt;/p&gt;
&lt;p&gt;2&lt;/p&gt;
&lt;p&gt;3&lt;/p&gt;
&lt;/td&gt;
&lt;td style=&quot;width: 86.2791%;&quot;&gt;
&lt;p&gt;var re = /pattern/flasgs;&lt;/p&gt;
&lt;p&gt;// 혹은&lt;/p&gt;
&lt;p&gt;var re = new RegExp(&quot;pattern&quot;, &quot;flags&quot;);&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;플래그는 정규식을 처음 정의 할 때, 설정해야 합니다. 그 이후의 플래그를 추가하거나 삭제할 수 없습니다.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;h3&gt;정규식의 플래그 예제&lt;/h3&gt;
&lt;p&gt;g 플래그를 이용하여 전역 검색&lt;/p&gt;
&lt;table style=&quot;border-collapse: collapse; width: 100%;&quot; border=&quot;1&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td style=&quot;width: 12.093%;&quot;&gt;
&lt;p&gt;1&lt;/p&gt;
&lt;p&gt;2&lt;/p&gt;
&lt;p&gt;3&lt;/p&gt;
&lt;p&gt;4&lt;/p&gt;
&lt;/td&gt;
&lt;td style=&quot;width: 87.7907%;&quot;&gt;
&lt;p&gt;var re = /\w+\s/g;&lt;/p&gt;
&lt;p&gt;var str = 'fee fi fo fum';&lt;/p&gt;
&lt;p&gt;var myArray = str.match(re);&lt;/p&gt;
&lt;p&gt;console.log(myArray);&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;&lt;figure class=&quot;imageblock alignCenter&quot; width=&quot;208&quot; height=&quot;160&quot;&gt;&lt;span data-url=&quot;https://blog.kakaocdn.net/dn/chi8eM/btqt25kDqCw/zmLdIQLDYqzA5lWdsCKv1k/img.png&quot; data-phocus=&quot;https://blog.kakaocdn.net/dn/chi8eM/btqt25kDqCw/zmLdIQLDYqzA5lWdsCKv1k/img.png&quot;&gt;&lt;img src=&quot;https://blog.kakaocdn.net/dn/chi8eM/btqt25kDqCw/zmLdIQLDYqzA5lWdsCKv1k/img.png&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;amp;fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2Fchi8eM%2Fbtqt25kDqCw%2FzmLdIQLDYqzA5lWdsCKv1k%2Fimg.png&quot; width=&quot;208&quot; height=&quot;160&quot; onerror=&quot;this.onerror=null; this.src='//t1.daumcdn.net/tistory_admin/static/images/no-image-v1.png'; this.srcset='//t1.daumcdn.net/tistory_admin/static/images/no-image-v1.png';&quot;/&gt;&lt;/span&gt;&lt;/figure&gt;
&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span&gt;match에서 g 플래그&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;g 플래그를 이용하여 매칭되는 모든 문자열을 가져올 수 있습니다. 만약 g 플래그를 사용하지 않는다면 처음으로 매칭되는 값만을 가져오게 됩니다.&lt;/p&gt;
&lt;table style=&quot;border-collapse: collapse; width: 100%;&quot; border=&quot;1&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td style=&quot;width: 8.72093%;&quot;&gt;
&lt;p&gt;1&lt;/p&gt;
&lt;p&gt;2&lt;/p&gt;
&lt;p&gt;3&lt;/p&gt;
&lt;p&gt;4&lt;/p&gt;
&lt;/td&gt;
&lt;td style=&quot;width: 91.1628%;&quot;&gt;
&lt;p&gt;var re = /\w+\s/;&lt;/p&gt;
&lt;p&gt;var str = 'fee fi fo fum';&lt;/p&gt;
&lt;p&gt;var myArray = str.match(re);&lt;/p&gt;
&lt;p&gt;console.log(myArray);&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;&lt;figure class=&quot;imageblock alignCenter&quot; width=&quot;206&quot; height=&quot;160&quot;&gt;&lt;span data-url=&quot;https://blog.kakaocdn.net/dn/bpUR3G/btqt198Fmoc/Iu8yQRq5K7XvG9iIDnQEc1/img.png&quot; data-phocus=&quot;https://blog.kakaocdn.net/dn/bpUR3G/btqt198Fmoc/Iu8yQRq5K7XvG9iIDnQEc1/img.png&quot;&gt;&lt;img src=&quot;https://blog.kakaocdn.net/dn/bpUR3G/btqt198Fmoc/Iu8yQRq5K7XvG9iIDnQEc1/img.png&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;amp;fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2FbpUR3G%2Fbtqt198Fmoc%2FIu8yQRq5K7XvG9iIDnQEc1%2Fimg.png&quot; width=&quot;206&quot; height=&quot;160&quot; onerror=&quot;this.onerror=null; this.src='//t1.daumcdn.net/tistory_admin/static/images/no-image-v1.png'; this.srcset='//t1.daumcdn.net/tistory_admin/static/images/no-image-v1.png';&quot;/&gt;&lt;/span&gt;&lt;/figure&gt;
&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span&gt;g 플래그 없이 매칭&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;g 플래그를 사용할 때,&amp;nbsp;String의 match 메소드와, RegExp의 exce 메소드의 사용 방법은 다릅니다. exec 메소드를 사용할 경우, 아래와 같이 사용해야 모든 매칭된 문자열을 가져올 수 있습니다.&lt;/p&gt;
&lt;table style=&quot;border-collapse: collapse; width: 100%;&quot; border=&quot;1&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td style=&quot;width: 8.37209%;&quot;&gt;
&lt;p&gt;1&lt;/p&gt;
&lt;p&gt;2&lt;/p&gt;
&lt;p&gt;3&lt;/p&gt;
&lt;p&gt;4&lt;/p&gt;
&lt;/td&gt;
&lt;td style=&quot;width: 91.5116%;&quot;&gt;
&lt;p&gt;var re = /\w+\s/g;&lt;/p&gt;
&lt;p&gt;var xArray;&lt;/p&gt;
&lt;p&gt;while(xArray = re.exec(str))&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;console.log(xArray);&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;&lt;figure class=&quot;imageblock alignCenter&quot; width=&quot;309&quot; height=&quot;121&quot;&gt;&lt;span data-url=&quot;https://blog.kakaocdn.net/dn/A1X9Z/btqtY8wZ2qd/wJQsJMEhbkbaNeHqvDJrN1/img.png&quot; data-phocus=&quot;https://blog.kakaocdn.net/dn/A1X9Z/btqtY8wZ2qd/wJQsJMEhbkbaNeHqvDJrN1/img.png&quot;&gt;&lt;img src=&quot;https://blog.kakaocdn.net/dn/A1X9Z/btqtY8wZ2qd/wJQsJMEhbkbaNeHqvDJrN1/img.png&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;amp;fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2FA1X9Z%2FbtqtY8wZ2qd%2FwJQsJMEhbkbaNeHqvDJrN1%2Fimg.png&quot; width=&quot;309&quot; height=&quot;121&quot; onerror=&quot;this.onerror=null; this.src='//t1.daumcdn.net/tistory_admin/static/images/no-image-v1.png'; this.srcset='//t1.daumcdn.net/tistory_admin/static/images/no-image-v1.png';&quot;/&gt;&lt;/span&gt;&lt;/figure&gt;
&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span&gt;exec에서 g 플래그&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;i 플래그를 이용하여 대소문자 구별없이 검색&lt;/p&gt;
&lt;table style=&quot;border-collapse: collapse; width: 100%;&quot; border=&quot;1&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td style=&quot;width: 7.90698%;&quot;&gt;
&lt;p&gt;1&lt;/p&gt;
&lt;p&gt;2&lt;/p&gt;
&lt;p&gt;3&lt;/p&gt;
&lt;p&gt;4&lt;/p&gt;
&lt;/td&gt;
&lt;td style=&quot;width: 91.9767%;&quot;&gt;
&lt;p&gt;var re = /Fee/gi;&lt;/p&gt;
&lt;p&gt;var str = 'fee fi fo fum';&lt;/p&gt;
&lt;p&gt;var myArray = str.match(re);&lt;/p&gt;
&lt;p&gt;console.log(myArray);&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;&lt;figure class=&quot;imageblock alignCenter&quot; width=&quot;203&quot; height=&quot;127&quot;&gt;&lt;span data-url=&quot;https://blog.kakaocdn.net/dn/kCRDq/btqt2466YI6/b5tKSMCcdmdV2WunaNhLkK/img.png&quot; data-phocus=&quot;https://blog.kakaocdn.net/dn/kCRDq/btqt2466YI6/b5tKSMCcdmdV2WunaNhLkK/img.png&quot;&gt;&lt;img src=&quot;https://blog.kakaocdn.net/dn/kCRDq/btqt2466YI6/b5tKSMCcdmdV2WunaNhLkK/img.png&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;amp;fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2FkCRDq%2Fbtqt2466YI6%2Fb5tKSMCcdmdV2WunaNhLkK%2Fimg.png&quot; width=&quot;203&quot; height=&quot;127&quot; onerror=&quot;this.onerror=null; this.src='//t1.daumcdn.net/tistory_admin/static/images/no-image-v1.png'; this.srcset='//t1.daumcdn.net/tistory_admin/static/images/no-image-v1.png';&quot;/&gt;&lt;/span&gt;&lt;/figure&gt;
&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span&gt;i 플래그&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;m 플래그를 이용하여 다중행 시작/끝 문자 검색&lt;/p&gt;
&lt;table style=&quot;border-collapse: collapse; width: 100%;&quot; border=&quot;1&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td style=&quot;width: 7.55814%;&quot;&gt;
&lt;p&gt;1&lt;/p&gt;
&lt;p&gt;2&lt;/p&gt;
&lt;p&gt;3&lt;/p&gt;
&lt;p&gt;4&lt;/p&gt;
&lt;/td&gt;
&lt;td style=&quot;width: 92.3256%;&quot;&gt;
&lt;p&gt;var re = /^t/m;&lt;/p&gt;
&lt;p&gt;var str = 'fee fi fo fum \ntest';&lt;/p&gt;
&lt;p&gt;var myArray = str.match(re);&lt;/p&gt;
&lt;p&gt;console.log(myArray);&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;&lt;figure class=&quot;imageblock alignCenter&quot; width=&quot;335&quot; height=&quot;78&quot;&gt;&lt;span data-url=&quot;https://blog.kakaocdn.net/dn/QfEDW/btqt0UdxzgM/CFTck2sPIzlU77bn7kVPF0/img.png&quot; data-phocus=&quot;https://blog.kakaocdn.net/dn/QfEDW/btqt0UdxzgM/CFTck2sPIzlU77bn7kVPF0/img.png&quot;&gt;&lt;img src=&quot;https://blog.kakaocdn.net/dn/QfEDW/btqt0UdxzgM/CFTck2sPIzlU77bn7kVPF0/img.png&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;amp;fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2FQfEDW%2Fbtqt0UdxzgM%2FCFTck2sPIzlU77bn7kVPF0%2Fimg.png&quot; width=&quot;335&quot; height=&quot;78&quot; onerror=&quot;this.onerror=null; this.src='//t1.daumcdn.net/tistory_admin/static/images/no-image-v1.png'; this.srcset='//t1.daumcdn.net/tistory_admin/static/images/no-image-v1.png';&quot;/&gt;&lt;/span&gt;&lt;/figure&gt;
&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span&gt;m 플래그&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;y 플래그를 이용하여 검색 위치 조정&lt;/p&gt;
&lt;table style=&quot;border-collapse: collapse; width: 100%;&quot; border=&quot;1&quot;&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td style=&quot;width: 9.30233%;&quot;&gt;
&lt;p&gt;1&lt;/p&gt;
&lt;p&gt;2&lt;/p&gt;
&lt;p&gt;3&lt;/p&gt;
&lt;p&gt;4&lt;/p&gt;
&lt;p&gt;5&lt;/p&gt;
&lt;p&gt;6&lt;/p&gt;
&lt;p&gt;7&lt;/p&gt;
&lt;p&gt;8&lt;/p&gt;
&lt;/td&gt;
&lt;td style=&quot;width: 90.5814%;&quot;&gt;
&lt;p&gt;var str = '#foo#';&lt;/p&gt;
&lt;p&gt;var regex = /foo/y;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;regex.lastIndex = 1;&lt;/p&gt;
&lt;p&gt;console.log(regex.exec(str)); // foo와 매칭됨&lt;/p&gt;
&lt;p&gt;regex.lastIndex = 5;&lt;/p&gt;
&lt;p&gt;console.log(regex.exec(str)); // 매칭되지 않음&lt;/p&gt;
&lt;p&gt;console.log(regex.lastIndex); // 0 (매칭되지 않을 경우 0으로 초기화)&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;&lt;figure class=&quot;imageblock alignCenter&quot; width=&quot;453&quot; height=&quot;173&quot;&gt;&lt;span data-url=&quot;https://blog.kakaocdn.net/dn/dzY3Gg/btqtY750J80/e6LKxcsyGfsTseoBj8dqM1/img.png&quot; data-phocus=&quot;https://blog.kakaocdn.net/dn/dzY3Gg/btqtY750J80/e6LKxcsyGfsTseoBj8dqM1/img.png&quot;&gt;&lt;img src=&quot;https://blog.kakaocdn.net/dn/dzY3Gg/btqtY750J80/e6LKxcsyGfsTseoBj8dqM1/img.png&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;amp;fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2FdzY3Gg%2FbtqtY750J80%2Fe6LKxcsyGfsTseoBj8dqM1%2Fimg.png&quot; width=&quot;453&quot; height=&quot;173&quot; onerror=&quot;this.onerror=null; this.src='//t1.daumcdn.net/tistory_admin/static/images/no-image-v1.png'; this.srcset='//t1.daumcdn.net/tistory_admin/static/images/no-image-v1.png';&quot;/&gt;&lt;/span&gt;&lt;/figure&gt;
&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span&gt;y 플래그&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;출처:&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;a href=&quot;https://beomy.tistory.com/21&quot;&gt;https://beomy.tistory.com/21&lt;/a&gt;&lt;span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;[beomy]&lt;/span&gt;&lt;/p&gt;</description>
      <category>javascript</category>
      <author>아이터치</author>
      <guid isPermaLink="true">https://itouch.tistory.com/124</guid>
      <comments>https://itouch.tistory.com/124#entry124comment</comments>
      <pubDate>Tue, 2 Apr 2019 11:06:59 +0900</pubDate>
    </item>
    <item>
      <title>Oracle 테이블명세서 추출 쿼리</title>
      <link>https://itouch.tistory.com/123</link>
      <description>&lt;p&gt;==== 난&amp;nbsp;이거 사용.&lt;/p&gt;&lt;p&gt;SELECT A1.TABLE_COMMENTS&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;, A1.TABLE_NAME&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;, A1.COLUMN_ID&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;, A1.COLUMN_NAME&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;, A1.COLUMN_COMMENTS&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;, (CASE&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; WHEN B1.CONSTRAINT_TYPE = 'P'&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; THEN 'Y'&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; END) PK_FLAG&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;, NVL(A1.NULL_FLAG, 'N') AS NULL_FLAG&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;, A1.DATA_TYPE||&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;(CASE A1.DATA_TYPE&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; WHEN 'NUMBER'&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; THEN '('||TO_CHAR(A1.DATA_LENGTH)||','||TO_CHAR(A1.DATA_PRECISION)||')'&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; WHEN 'DATE'&amp;nbsp; &amp;nbsp;THEN ' '&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ELSE '('||A1.DATA_LENGTH||')'&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; END) DATA_TYPE&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp; FROM (SELECT B.COMMENTS TABLE_COMMENTS&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; , A.TABLE_NAME TABLE_NAME&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; , C.COMMENTS COLUMN_COMMENTS&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; , A.COLUMN_NAME COLUMN_NAME&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; , (CASE A.NULLABLE&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;WHEN 'Y'&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;THEN 'Y'&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;END) NULL_FLAG&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; , A.DATA_TYPE DATA_TYPE&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; , A.DATA_LENGTH&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; , A.COLUMN_ID AS COLUMN_ID&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; , A.DATA_PRECISION&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; FROM USER_TAB_COLUMNS A&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; , USER_TAB_COMMENTS B&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; , USER_COL_COMMENTS C&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; WHERE (A.TABLE_NAME = B.TABLE_NAME)&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; AND (A.TABLE_NAME = C.TABLE_NAME&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; AND A.COLUMN_NAME = C.COLUMN_NAME&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; )&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; AND B.TABLE_TYPE = 'TABLE') A1&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;, (SELECT A.TABLE_NAME&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;, A.COLUMN_NAME&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;, B.CONSTRAINT_TYPE&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; FROM USER_CONS_COLUMNS A&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; , USER_CONSTRAINTS B&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; WHERE (A.CONSTRAINT_NAME = B.CONSTRAINT_NAME)&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; AND B.CONSTRAINT_TYPE IN ('P', 'R')) B1&lt;/p&gt;&lt;p&gt;WHERE ( A1.TABLE_NAME = B1.TABLE_NAME(+)&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;AND A1.COLUMN_NAME = B1.COLUMN_NAME(+))&lt;/p&gt;&lt;p&gt;&amp;nbsp; --AND A1.TABLE_NAME LIKE 'VMS%'&lt;/p&gt;&lt;p&gt;ORDER BY A1.TABLE_NAME, A1.COLUMN_ID&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;==== 원본 내용&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;margin: 0px; padding: 0px; font-size: 11pt; border: 0px; vertical-align: baseline; color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&lt;span style=&quot;margin: 0px; padding: 0px; font-size: 14.6667px; border: 0px; vertical-align: baseline; color: rgb(0, 0, 0); background-color: rgb(255, 102, 0);&quot;&gt;&lt;strong style=&quot;margin: 0px; padding: 0px; font-size: 14.6667px; border: 0px; vertical-align: baseline;&quot;&gt;--우선 코맨트를 전부 넣은 상태에서 실행해야 합니다.&amp;nbsp;&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;br style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&lt;span style=&quot;margin: 0px; padding: 0px; font-size: 10pt; border: 0px; vertical-align: baseline; color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&lt;strong style=&quot;margin: 0px; padding: 0px; font-size: 13.3333px; border: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;margin: 0px; padding: 0px; font-size: 13.3333px; border: 0px; vertical-align: baseline; color: rgb(0, 158, 37);&quot;&gt;COMMENT ON TABLE&amp;nbsp;&amp;nbsp;&amp;nbsp; 스키마명.테이블명 IS '테이블설명';&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;br style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&lt;span style=&quot;margin: 0px; padding: 0px; font-size: 10pt; border: 0px; vertical-align: baseline; color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&lt;strong style=&quot;margin: 0px; padding: 0px; font-size: 13.3333px; border: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;margin: 0px; padding: 0px; font-size: 13.3333px; border: 0px; vertical-align: baseline; color: rgb(0, 158, 37);&quot;&gt;COMMENT ON COLUMN 스키마명.테이블명.컬럼명 IS '컬럼설명';&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;br style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&lt;span style=&quot;margin: 0px; padding: 0px; font-size: 11pt; border: 0px; vertical-align: baseline; color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&lt;span style=&quot;margin: 0px; padding: 0px; font-size: 14.6667px; border: 0px; vertical-align: baseline; color: rgb(0, 0, 0); background-color: rgb(255, 102, 0);&quot;&gt;&lt;strong style=&quot;margin: 0px; padding: 0px; font-size: 14.6667px; border: 0px; vertical-align: baseline;&quot;&gt;-- 테이블 정의서 1번째 방법&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;br style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&lt;span style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;SELECT A1.TABLE_COMMENTS&lt;/span&gt;&lt;br style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&lt;span style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; , A1.TABLE_NAME&lt;/span&gt;&lt;br style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&lt;span style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;--&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; , A1.COLUMN_ID&lt;/span&gt;&lt;br style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&lt;span style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; , A1.COLUMN_NAME AS COLUMN_ID&lt;/span&gt;&lt;br style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&lt;span style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; , A1.COLUMN_COMMENTS AS COLUMN_NAME&lt;/span&gt;&lt;br style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&lt;span style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; , A1.DATA_TYPE AS DATA_TYPE&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&lt;span style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; , (CASE A1.DATA_TYPE WHEN 'NUMBER' THEN TO_CHAR(A1.DATA_LENGTH)&lt;/span&gt;&lt;br style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&lt;span style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WHEN 'DATE'&amp;nbsp;&amp;nbsp; THEN ' '&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&lt;span style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;ELSE TO_CHAR(A1.DATA_LENGTH) END) AS DATA_LENGTH&lt;/span&gt;&lt;br style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&lt;span style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; , NVL(A1.NULL_FLAG, 'N') AS NULL_FLAG&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&lt;span style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; , (CASE&amp;nbsp;WHEN B1.CONSTRAINT_TYPE = 'P' THEN 'PK' END) PK_FLAG&lt;/span&gt;&lt;br style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&lt;span style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&amp;nbsp; FROM (&lt;/span&gt;&lt;span style=&quot;margin: 0px; padding: 0px; border: 0px; vertical-align: baseline; font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif; background-color: rgb(255, 218, 237);&quot;&gt;SELECT B.COMMENTS TABLE_COMMENTS&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; , A.TABLE_NAME TABLE_NAME&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; , C.COMMENTS COLUMN_COMMENTS&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; , A.COLUMN_NAME COLUMN_NAME&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; , (CASE A.NULLABLE WHEN 'Y' THEN 'Y' END) NULL_FLAG&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; , A.DATA_TYPE DATA_TYPE&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; , A.DATA_LENGTH&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; , A.COLUMN_ID AS COLUMN_ID&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; , A.DATA_PRECISION&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FROM USER_TAB_COLUMNS A&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; , USER_TAB_COMMENTS B&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;, USER_COL_COMMENTS C&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; WHERE (A.TABLE_NAME = B.TABLE_NAME)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;AND (&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; A.TABLE_NAME = C.TABLE_NAME&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;AND A.COLUMN_NAME = C.COLUMN_NAME&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AND B.TABLE_TYPE = 'TABLE'&lt;/span&gt;&lt;span style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;) A1&lt;/span&gt;&lt;br style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&lt;span style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; , (&lt;/span&gt;&lt;span style=&quot;margin: 0px; padding: 0px; border: 0px; vertical-align: baseline; font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif; background-color: rgb(228, 255, 117);&quot;&gt;SELECT A.TABLE_NAME&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; , A.COLUMN_NAME&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;, B.CONSTRAINT_TYPE&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FROM USER_CONS_COLUMNS A&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;, USER_CONSTRAINTS B&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WHERE (A.CONSTRAINT_NAME = B.CONSTRAINT_NAME)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;AND B.CONSTRAINT_TYPE IN ('P', 'R')&lt;/span&gt;&lt;span style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;) B1&lt;/span&gt;&lt;br style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&lt;span style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;WHERE (&amp;nbsp;&amp;nbsp;&amp;nbsp; A1.TABLE_NAME = B1.TABLE_NAME(+)&lt;/span&gt;&lt;br style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&lt;span style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AND A1.COLUMN_NAME = B1.COLUMN_NAME(+))&lt;/span&gt;&lt;br style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&lt;span style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&amp;nbsp; --AND A1.TABLE_NAME LIKE 'VMS%'&lt;/span&gt;&lt;br style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&lt;span style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;ORDER BY A1.TABLE_NAME, A1.COLUMN_ID&lt;/span&gt;&lt;br style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&lt;span style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&lt;span style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&lt;strong style=&quot;margin: 0px; padding: 0px; border: 0px; vertical-align: baseline; color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&lt;span style=&quot;margin: 0px; padding: 0px; font-size: 11pt; border: 0px; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;margin: 0px; padding: 0px; font-size: 14.6667px; border: 0px; vertical-align: baseline; color: rgb(0, 0, 0); background-color: rgb(255, 102, 0);&quot;&gt;-- 테이블정으서 만들기 2번째 방법&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;br style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&lt;span style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;SELECT&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&lt;span style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; X.TABLE_NAME TABLE_ID,&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&lt;span style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; (SELECT COMMENTS FROM USER_TAB_COMMENTS&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&lt;span style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WHERE TABLE_NAME = X.TABLE_NAME) TABLE_NM,&lt;/span&gt;&lt;br style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&lt;span style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; X.COLUMN_NAME FIELD_ID,&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&lt;span style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; (SELECT COMMENTS FROM USER_COL_COMMENTS&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&lt;span style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WHERE TABLE_NAME = X.TABLE_NAME AND COLUMN_NAME = X.COLUMN_NAME) FIELD_NAME,&lt;/span&gt;&lt;br style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&lt;span style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; X.DATA_TYPE AS &quot;TYPE&quot;,&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&lt;span style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; DECODE(X.DATA_TYPE,&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&lt;span style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'DATE', NULL,&lt;/span&gt;&lt;br style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&lt;span style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'BLOB', NULL,&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&lt;span style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; X.DATA_LENGTH || CASE WHEN X.DATA_PRECISION IS NOT NULL THEN ',' || X.DATA_SCALE END )&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&lt;span style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DATATYPES,&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&lt;span style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CASE WHEN SUBSTR(Y.INDEX_NAME, 1, 2) = 'PK' THEN 'PK'&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&lt;span style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ELSE DECODE(X.NULLABLE, 'N', 'NOT NULL', '') END &quot;NOT NULL&quot;,&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&lt;span style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; X.DATA_DEFAULT&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&lt;span style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;FROM COLS X, USER_IND_COLUMNS Y&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&lt;span style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;WHERE X.TABLE_NAME = Y.TABLE_NAME(+) AND X.COLUMN_NAME = Y.COLUMN_NAME(+)&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&lt;span style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;ORDER BY X.TABLE_NAME, X.COLUMN_ID&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&lt;span style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&lt;span style=&quot;margin: 0px; padding: 0px; font-size: 11pt; border: 0px; vertical-align: baseline; color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&lt;span style=&quot;margin: 0px; padding: 0px; font-size: 14.6667px; border: 0px; vertical-align: baseline; color: rgb(0, 0, 0); background-color: rgb(255, 102, 0);&quot;&gt;&lt;strong style=&quot;margin: 0px; padding: 0px; font-size: 14.6667px; border: 0px; vertical-align: baseline;&quot;&gt;-- 테이블정으서 만들기 3번째 방법(주로 사용)&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;br style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&lt;span style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;SELECT A1.TABLE_COMMENTS&lt;/span&gt;&lt;br style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&lt;span style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;, A1.TABLE_NAME&lt;/span&gt;&lt;br style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&lt;span style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;, A1.COLUMN_ID&lt;/span&gt;&lt;br style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&lt;span style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;, A1.COLUMN_NAME&lt;/span&gt;&lt;br style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&lt;span style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;, A1.COLUMN_COMMENTS&lt;/span&gt;&lt;br style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&lt;span style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;, (CASE&lt;/span&gt;&lt;br style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&lt;span style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WHEN B1.CONSTRAINT_TYPE = 'P'&lt;/span&gt;&lt;br style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&lt;span style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; THEN 'Y'&lt;/span&gt;&lt;br style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&lt;span style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; END) PK_FLAG&lt;/span&gt;&lt;br style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&lt;span style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;, NVL(A1.NULL_FLAG, 'N') AS NULL_FLAG&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&lt;span style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;, A1.DATA_TYPE||&lt;/span&gt;&lt;br style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&lt;span style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (CASE A1.DATA_TYPE&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&lt;span style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WHEN 'NUMBER'&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&lt;span style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; THEN '('||TO_CHAR(A1.DATA_LENGTH)||','||TO_CHAR(A1.DATA_PRECISION)||')'&lt;/span&gt;&lt;br style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&lt;span style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;WHEN 'DATE'&amp;nbsp;&amp;nbsp; THEN ' '&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&lt;span style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;ELSE '('||A1.DATA_LENGTH||')'&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&lt;span style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;END) DATA_TYPE&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&lt;span style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&amp;nbsp; FROM (SELECT B.COMMENTS TABLE_COMMENTS&lt;/span&gt;&lt;br style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&lt;span style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; , A.TABLE_NAME TABLE_NAME&lt;/span&gt;&lt;br style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&lt;span style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; , C.COMMENTS COLUMN_COMMENTS&lt;/span&gt;&lt;br style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&lt;span style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; , A.COLUMN_NAME COLUMN_NAME&lt;/span&gt;&lt;br style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&lt;span style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; , (CASE A.NULLABLE&lt;/span&gt;&lt;br style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&lt;span style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WHEN 'Y'&lt;/span&gt;&lt;br style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&lt;span style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; THEN 'Y'&lt;/span&gt;&lt;br style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&lt;span style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; END) NULL_FLAG&lt;/span&gt;&lt;br style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&lt;span style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; , A.DATA_TYPE DATA_TYPE&lt;/span&gt;&lt;br style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&lt;span style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; , A.DATA_LENGTH&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&lt;span style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; , A.COLUMN_ID AS COLUMN_ID&lt;/span&gt;&lt;br style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&lt;span style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; , A.DATA_PRECISION&lt;/span&gt;&lt;br style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&lt;span style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FROM USER_TAB_COLUMNS A&lt;/span&gt;&lt;br style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&lt;span style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; , USER_TAB_COMMENTS B&lt;/span&gt;&lt;br style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&lt;span style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;, USER_COL_COMMENTS C&lt;/span&gt;&lt;br style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&lt;span style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;WHERE (A.TABLE_NAME = B.TABLE_NAME)&lt;/span&gt;&lt;br style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&lt;span style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AND (A.TABLE_NAME = C.TABLE_NAME&lt;/span&gt;&lt;br style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&lt;span style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AND A.COLUMN_NAME = C.COLUMN_NAME&lt;/span&gt;&lt;br style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&lt;span style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;/span&gt;&lt;br style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&lt;span style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AND B.TABLE_TYPE = 'TABLE') A1&lt;/span&gt;&lt;br style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&lt;span style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; , (SELECT A.TABLE_NAME&lt;/span&gt;&lt;br style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&lt;span style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; , A.COLUMN_NAME&lt;/span&gt;&lt;br style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&lt;span style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; , B.CONSTRAINT_TYPE&lt;/span&gt;&lt;br style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&lt;span style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; FROM USER_CONS_COLUMNS A&lt;/span&gt;&lt;br style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&lt;span style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; , USER_CONSTRAINTS B&lt;/span&gt;&lt;br style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&lt;span style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; WHERE (A.CONSTRAINT_NAME = B.CONSTRAINT_NAME)&lt;/span&gt;&lt;br style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&lt;span style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;AND B.CONSTRAINT_TYPE IN ('P', 'R')) B1&lt;/span&gt;&lt;br style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&lt;span style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;WHERE ( A1.TABLE_NAME = B1.TABLE_NAME(+)&lt;/span&gt;&lt;br style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&lt;span style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;AND A1.COLUMN_NAME = B1.COLUMN_NAME(+))&lt;/span&gt;&lt;br style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&lt;span style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&amp;nbsp; --AND A1.TABLE_NAME LIKE 'VMS%'&lt;/span&gt;&lt;br style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&lt;span style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;ORDER BY A1.TABLE_NAME, A1.COLUMN_ID&lt;/span&gt;&lt;br style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&lt;span style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&lt;span style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&lt;span style=&quot;margin: 0px; padding: 0px; font-size: 11pt; border: 0px; vertical-align: baseline; color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&lt;span style=&quot;margin: 0px; padding: 0px; font-size: 14.6667px; border: 0px; vertical-align: baseline; color: rgb(0, 0, 0); background-color: rgb(255, 102, 0);&quot;&gt;&lt;strong style=&quot;margin: 0px; padding: 0px; font-size: 14.6667px; border: 0px; vertical-align: baseline;&quot;&gt;--&amp;nbsp;테이블 목록 만들기(대략적인 크기로..)&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;br style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&lt;span style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;SELECT TA1.TABLE_NAME AS TALBE_ID,&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&lt;span style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TA1.COMMENTS AS TABLE_NAME,&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&lt;span style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TA2.DATA_LENGTH AS DATA_LENGTH,&lt;/span&gt;&lt;br style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&lt;span style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TA3.MAX_NUM AS MAX_NUM,&lt;/span&gt;&lt;br style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&lt;span style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TA3.INITIAL_NUM AS INITIAL_NUM,&lt;/span&gt;&lt;br style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&lt;span style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (TA2.DATA_LENGTH*TA3.MAX_NUM) AS EXTEND_NUM&lt;/span&gt;&lt;br style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&lt;span style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&amp;nbsp; FROM&lt;/span&gt;&lt;br style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&lt;span style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (SELECT&amp;nbsp; TABLE_NAME, COMMENTS FROM USER_TAB_COMMENTS WHERE TABLE_TYPE = 'TABLE') TA1,&lt;/span&gt;&lt;br style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&lt;span style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (SELECT&amp;nbsp; TABLE_NAME, SUM(DATA_LENGTH) AS DATA_LENGTH FROM USER_TAB_COLUMNS GROUP BY TABLE_NAME) TA2,&lt;/span&gt;&lt;br style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&lt;span style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (SELECT&amp;nbsp; TABLE_NAME&lt;/span&gt;&lt;br style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&lt;span style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,(CASE&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&lt;span style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WHEN (NUM_ROWS &amp;lt; 1000) THEN 1000&lt;/span&gt;&lt;br style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&lt;span style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WHEN (10000&amp;nbsp;&amp;nbsp; &amp;gt; NUM_ROWS) AND (NUM_ROWS &amp;gt; 1000)&amp;nbsp;&amp;nbsp; THEN 10000&lt;/span&gt;&lt;br style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&lt;span style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WHEN (100000&amp;nbsp; &amp;gt; NUM_ROWS) AND (NUM_ROWS &amp;gt; 10000)&amp;nbsp; THEN 100000&lt;/span&gt;&lt;br style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&lt;span style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WHEN (1000000 &amp;gt; NUM_ROWS) AND (NUM_ROWS &amp;gt; 100000) THEN 1000000&lt;/span&gt;&lt;br style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&lt;span style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ELSE 10000000&lt;/span&gt;&lt;br style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&lt;span style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; END&amp;nbsp;&amp;nbsp;&amp;nbsp; ) AS MAX_NUM&lt;/span&gt;&lt;br style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&lt;span style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; , INITIAL_EXTENT AS INITIAL_NUM&lt;/span&gt;&lt;br style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&lt;span style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; , GREATEST(4, CEIL(NUM_ROWS /&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&lt;span style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DECODE(((ROUND(((1958 - (INI_TRANS * 23)) * ((100 - PCT_FREE) /100)) /&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&lt;span style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DECODE(AVG_ROW_LEN,0,1,AVG_ROW_LEN))))*2,0,1,&lt;/span&gt;&lt;br style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&lt;span style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ((ROUND(((1958 - (INI_TRANS * 23)) * ((100 - PCT_FREE) /100)) /&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&lt;span style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DECODE(AVG_ROW_LEN,0,1,AVG_ROW_LEN))))*2)) * 2)&lt;/span&gt;&lt;br style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&lt;span style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AS TABLESIZE_KBYTES&lt;/span&gt;&lt;br style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&lt;span style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FROM&amp;nbsp; USER_TABLES) TA3&lt;/span&gt;&lt;br style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&lt;span style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;WHERE TA1.TABLE_NAME = TA2.TABLE_NAME&lt;/span&gt;&lt;br style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&lt;span style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&amp;nbsp; AND TA1.TABLE_NAME = TA3.TABLE_NAME&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;&lt;span style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;ORDER BY TA1.TABLE_NAME&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: rgb(31, 31, 31); font-family: &amp;quot;맑은 고딕&amp;quot;, &amp;quot;malgun gothic&amp;quot;, 돋움, dotum, AppleGothic, sans-serif;&quot;&gt;출처:&amp;nbsp;&lt;/span&gt;&lt;font color=&quot;#1f1f1f&quot; face=&quot;맑은 고딕, malgun gothic, 돋움, dotum, AppleGothic, sans-serif&quot;&gt;http://egloos.zum.com/lune23/v/437445&lt;/font&gt;&lt;/p&gt;</description>
      <category>oracle</category>
      <category>Oracle</category>
      <category>테이블명세서</category>
      <author>아이터치</author>
      <guid isPermaLink="true">https://itouch.tistory.com/123</guid>
      <comments>https://itouch.tistory.com/123#entry123comment</comments>
      <pubDate>Tue, 26 Mar 2019 15:30:19 +0900</pubDate>
    </item>
    <item>
      <title>Oracle 계층구조 쿼리(Hierarchical Queries)</title>
      <link>https://itouch.tistory.com/122</link>
      <description>&lt;h4 style=&quot;box-sizing: border-box; font-family: 나눔고딕, NanumGothic, 돋움, Dotum; line-height: normal; color: rgb(10, 36, 106); margin-top: 18px; margin-bottom: 10px; font-size: 16pt; padding: 0px;&quot;&gt;계층구조 쿼리란?&lt;/h4&gt;&lt;p style=&quot;box-sizing: border-box; margin: 10px 0px; font-size: 14px; line-height: 14pt; list-style: none; padding: 2px 7px; text-indent: 1em; color: rgb(51, 51, 51); font-family: 나눔고딕, NanumGothic, 돋움, Dotum;&quot;&gt;오라클 데이터베이스 scott 유저의 emp 테이블을 보면 empno와 mgr컬럼이 있으며, mgr 컬럼 데이터는 해당 사원의 관리자의 empno를 의미 한다.&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; margin: 10px 0px; font-size: 14px; line-height: 14pt; list-style: none; padding: 2px 7px; text-indent: 1em; color: rgb(51, 51, 51); font-family: 나눔고딕, NanumGothic, 돋움, Dotum;&quot;&gt;예를 들어서 아래의 데이터를 보면&lt;/p&gt;&lt;div style=&quot;box-sizing: border-box; color: rgb(51, 51, 51); font-family: 나눔고딕, NanumGothic, 돋움, Dotum; font-size: 14px;&quot;&gt;&lt;div id=&quot;highlighter_757589&quot; class=&quot;syntaxhighlighter  sql&quot; style=&quot;box-sizing: border-box; width: 1242.66px; margin: 1em 0px !important; position: relative !important; overflow: auto !important; font-size: 1em !important;&quot;&gt;&lt;div class=&quot;toolbar&quot; style=&quot;box-sizing: content-box !important; border-radius: 0px !important; background: rgb(108, 226, 108) !important; border: none !important; bottom: auto !important; float: none !important; height: 11px !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: absolute !important; right: 1px !important; top: 1px !important; vertical-align: baseline !important; width: 11px !important; font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace !important; font-size: 10px !important; min-height: auto !important; z-index: 10 !important; color: white !important;&quot;&gt;&lt;span style=&quot;box-sizing: border-box;&quot;&gt;&lt;a href=&quot;http://www.gurubee.net/lecture/1300#&quot; class=&quot;toolbar_item command_help help&quot; style=&quot;box-sizing: content-box !important; background: none !important; color: white !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 1px 0px 0px !important; position: static !important; right: auto !important; text-align: center !important; top: auto !important; vertical-align: baseline !important; width: auto !important; font-size: 1em !important; min-height: auto !important; display: block !important;&quot;&gt;?&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; style=&quot;border-spacing: 0px; border-collapse: collapse; line-height: 14pt; margin: 5px; width: 1225px; font-size: 14px; list-style: none; box-sizing: content-box !important; background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; float: none !important; height: auto !important; left: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace !important; min-height: auto !important;&quot;&gt;&lt;tbody style=&quot;box-sizing: content-box !important; border-radius: 0px !important; background: none !important; border: 0px !important; bottom: auto !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important; font-size: 1em !important; min-height: auto !important;&quot;&gt;&lt;tr style=&quot;list-style: none; box-sizing: content-box !important; font-size: 1em !important; line-height: 1.1em !important; border-radius: 0px !important; background: none !important; border: 0px !important; bottom: auto !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important; min-height: auto !important;&quot;&gt;&lt;td class=&quot;gutter&quot; style=&quot;list-style: none; box-sizing: content-box !important; padding: 0px !important; border: 0px !important; vertical-align: baseline !important; font-size: 1em !important; line-height: 1.1em !important; border-radius: 0px !important; background: none !important; bottom: auto !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; position: static !important; right: auto !important; top: auto !important; width: auto !important; font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace !important; min-height: auto !important; color: rgb(175, 175, 175) !important;&quot;&gt;&lt;div class=&quot;line number1 index0 alt2&quot; style=&quot;box-sizing: content-box !important; width: auto !important; height: auto !important; overflow: visible !important; border-radius: 0px !important; background-image: none !important; background-position: initial !important; background-size: initial !important; background-repeat: initial !important; background-attachment: initial !important; background-origin: initial !important; background-clip: initial !important; border-width: 0px 3px 0px 0px !important; border-top-style: initial !important; border-right-style: solid !important; border-bottom-style: initial !important; border-left-style: initial !important; border-top-color: initial !important; border-right-color: rgb(108, 226, 108) !important; border-bottom-color: initial !important; border-left-color: initial !important; border-image: initial !important; bottom: auto !important; float: none !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; padding: 0px 0.5em 0px 1em !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; font-size: 1em !important; min-height: auto !important; white-space: pre !important;&quot;&gt;1&lt;/div&gt;&lt;div class=&quot;line number2 index1 alt1&quot; style=&quot;box-sizing: content-box !important; width: auto !important; height: auto !important; overflow: visible !important; border-radius: 0px !important; background-image: none !important; background-position: initial !important; background-size: initial !important; background-repeat: initial !important; background-attachment: initial !important; background-origin: initial !important; background-clip: initial !important; border-width: 0px 3px 0px 0px !important; border-top-style: initial !important; border-right-style: solid !important; border-bottom-style: initial !important; border-left-style: initial !important; border-top-color: initial !important; border-right-color: rgb(108, 226, 108) !important; border-bottom-color: initial !important; border-left-color: initial !important; border-image: initial !important; bottom: auto !important; float: none !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; padding: 0px 0.5em 0px 1em !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; font-size: 1em !important; min-height: auto !important; white-space: pre !important;&quot;&gt;2&lt;/div&gt;&lt;div class=&quot;line number3 index2 alt2&quot; style=&quot;box-sizing: content-box !important; width: auto !important; height: auto !important; overflow: visible !important; border-radius: 0px !important; background-image: none !important; background-position: initial !important; background-size: initial !important; background-repeat: initial !important; background-attachment: initial !important; background-origin: initial !important; background-clip: initial !important; border-width: 0px 3px 0px 0px !important; border-top-style: initial !important; border-right-style: solid !important; border-bottom-style: initial !important; border-left-style: initial !important; border-top-color: initial !important; border-right-color: rgb(108, 226, 108) !important; border-bottom-color: initial !important; border-left-color: initial !important; border-image: initial !important; bottom: auto !important; float: none !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; padding: 0px 0.5em 0px 1em !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; font-size: 1em !important; min-height: auto !important; white-space: pre !important;&quot;&gt;3&lt;/div&gt;&lt;div class=&quot;line number4 index3 alt1&quot; style=&quot;box-sizing: content-box !important; width: auto !important; height: auto !important; overflow: visible !important; border-radius: 0px !important; background-image: none !important; background-position: initial !important; background-size: initial !important; background-repeat: initial !important; background-attachment: initial !important; background-origin: initial !important; background-clip: initial !important; border-width: 0px 3px 0px 0px !important; border-top-style: initial !important; border-right-style: solid !important; border-bottom-style: initial !important; border-left-style: initial !important; border-top-color: initial !important; border-right-color: rgb(108, 226, 108) !important; border-bottom-color: initial !important; border-left-color: initial !important; border-image: initial !important; bottom: auto !important; float: none !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; padding: 0px 0.5em 0px 1em !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; font-size: 1em !important; min-height: auto !important; white-space: pre !important;&quot;&gt;4&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;code&quot; style=&quot;list-style: none; width: 1193px; box-sizing: content-box !important; padding: 0px !important; border: 0px !important; vertical-align: baseline !important; overflow: visible !important; background: none !important; font-size: 1em !important; line-height: 1.1em !important; border-radius: 0px !important; bottom: auto !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; position: static !important; right: auto !important; top: auto !important; font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace !important; min-height: auto !important;&quot;&gt;&lt;div class=&quot;container&quot; style=&quot;box-sizing: content-box !important; padding: 0px !important; margin: 0px !important; width: auto !important; border-radius: 0px !important; background: none !important; border: 0px !important; bottom: auto !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; outline: 0px !important; overflow: visible !important; position: relative !important; right: auto !important; top: auto !important; vertical-align: baseline !important; font-size: 1em !important; min-height: auto !important;&quot;&gt;&lt;div class=&quot;line number1 index0 alt2&quot; style=&quot;box-sizing: content-box !important; width: auto !important; height: auto !important; overflow: visible !important; border-radius: 0px !important; background-image: none !important; background-position: initial !important; background-size: initial !important; background-repeat: initial !important; background-attachment: initial !important; background-origin: initial !important; background-clip: initial !important; border: 0px !important; bottom: auto !important; float: none !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; font-size: 1em !important; min-height: auto !important; white-space: pre !important;&quot;&gt;&lt;code class=&quot;sql plain&quot; style=&quot;box-sizing: content-box !important; font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace !important; font-size: 1em !important; padding: 0px !important; background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important; min-height: auto !important;&quot;&gt;EMPNO&amp;nbsp;&amp;nbsp; ENAME&amp;nbsp;&amp;nbsp;&amp;nbsp; SAL&amp;nbsp;&amp;nbsp;&amp;nbsp; MGR&lt;/code&gt;&lt;/div&gt;&lt;div class=&quot;line number2 index1 alt1&quot; style=&quot;box-sizing: content-box !important; width: auto !important; height: auto !important; overflow: visible !important; border-radius: 0px !important; background-image: none !important; background-position: initial !important; background-size: initial !important; background-repeat: initial !important; background-attachment: initial !important; background-origin: initial !important; background-clip: initial !important; border: 0px !important; bottom: auto !important; float: none !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; font-size: 1em !important; min-height: auto !important; white-space: pre !important;&quot;&gt;&lt;code class=&quot;sql comments&quot; style=&quot;box-sizing: content-box !important; font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace !important; font-size: 1em !important; padding: 0px !important; color: rgb(0, 130, 0) !important; background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important; min-height: auto !important;&quot;&gt;------ ------- ------ ------&lt;/code&gt;&lt;/div&gt;&lt;div class=&quot;line number3 index2 alt2&quot; style=&quot;box-sizing: content-box !important; width: auto !important; height: auto !important; overflow: visible !important; border-radius: 0px !important; background-image: none !important; background-position: initial !important; background-size: initial !important; background-repeat: initial !important; background-attachment: initial !important; background-origin: initial !important; background-clip: initial !important; border: 0px !important; bottom: auto !important; float: none !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; font-size: 1em !important; min-height: auto !important; white-space: pre !important;&quot;&gt;&lt;code class=&quot;sql spaces&quot; style=&quot;color: rgb(199, 37, 78); box-sizing: content-box !important; font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace !important; font-size: 1em !important; padding: 0px !important; background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important; min-height: auto !important;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;sql plain&quot; style=&quot;box-sizing: content-box !important; font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace !important; font-size: 1em !important; padding: 0px !important; background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important; min-height: auto !important;&quot;&gt;7369&amp;nbsp; SMITH&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 800&amp;nbsp;&amp;nbsp; 7902&lt;/code&gt;&lt;/div&gt;&lt;div class=&quot;line number4 index3 alt1&quot; style=&quot;box-sizing: content-box !important; width: auto !important; height: auto !important; overflow: visible !important; border-radius: 0px !important; background-image: none !important; background-position: initial !important; background-size: initial !important; background-repeat: initial !important; background-attachment: initial !important; background-origin: initial !important; background-clip: initial !important; border: 0px !important; bottom: auto !important; float: none !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; font-size: 1em !important; min-height: auto !important; white-space: pre !important;&quot;&gt;&lt;code class=&quot;sql spaces&quot; style=&quot;color: rgb(199, 37, 78); box-sizing: content-box !important; font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace !important; font-size: 1em !important; padding: 0px !important; background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important; min-height: auto !important;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;sql plain&quot; style=&quot;box-sizing: content-box !important; font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace !important; font-size: 1em !important; padding: 0px !important; background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important; min-height: auto !important;&quot;&gt;7902&amp;nbsp; FORD&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3000&amp;nbsp;&amp;nbsp; 7566&lt;/code&gt;&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;/div&gt;&lt;ul class=&quot;lecture_ul&quot; style=&quot;box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; list-style-position: initial; list-style-image: initial; font-size: 14px; line-height: 16pt; width: 1242.66px; padding: 1px 0px 3px; color: rgb(51, 51, 51); font-family: 나눔고딕, NanumGothic, 돋움, Dotum;&quot;&gt;&lt;li style=&quot;box-sizing: border-box; list-style: none; line-height: 16pt; margin: 0px; padding: 2px 0px 1px 10px;&quot;&gt;- empno 7369사원의 관리자는 7902의 empno를 가진 사원이며&lt;/li&gt;&lt;li style=&quot;box-sizing: border-box; list-style: none; line-height: 16pt; margin: 0px; padding: 2px 0px 1px 10px;&quot;&gt;- empno 7902사원의 관리자는 7566의 empno를 가진 사원이다.&lt;/li&gt;&lt;/ul&gt;&lt;p style=&quot;box-sizing: border-box; margin: 10px 0px; font-size: 14px; line-height: 14pt; list-style: none; padding: 2px 7px; text-indent: 1em; color: rgb(51, 51, 51); font-family: 나눔고딕, NanumGothic, 돋움, Dotum;&quot;&gt;이런 상위 계층과 하위계층의 관계를 오라클에서는&amp;nbsp;&lt;span class=&quot;code-keyword&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 145); background-color: inherit;&quot;&gt;START WITH&lt;/span&gt;와&amp;nbsp;&lt;span class=&quot;code-keyword&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 145); background-color: inherit;&quot;&gt;CONNECT BY&lt;/span&gt;를 이용해서 쉽게 조회 할 수 있다.&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; margin: 10px 0px; font-size: 14px; line-height: 14pt; list-style: none; padding: 2px 7px; text-indent: 1em; color: rgb(51, 51, 51); font-family: 나눔고딕, NanumGothic, 돋움, Dotum;&quot;&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; margin: 10px 0px; font-size: 14px; line-height: 14pt; list-style: none; padding: 2px 7px; text-indent: 1em; color: rgb(51, 51, 51); font-family: 나눔고딕, NanumGothic, 돋움, Dotum;&quot;&gt;&lt;/p&gt;&lt;h4 style=&quot;box-sizing: border-box; font-family: 나눔고딕, NanumGothic, 돋움, Dotum; line-height: normal; color: rgb(10, 36, 106); margin-top: 18px; margin-bottom: 10px; font-size: 16pt; padding: 0px;&quot;&gt;계층구조 쿼리 Synctax&lt;/h4&gt;&lt;h6 style=&quot;box-sizing: border-box; font-family: 나눔고딕, NanumGothic, 돋움, Dotum; line-height: normal; margin-top: 8px; margin-bottom: 10px; font-size: 14px; padding: 0px;&quot;&gt;START WITH&lt;/h6&gt;&lt;ul class=&quot;lecture_ul&quot; style=&quot;box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; list-style-position: initial; list-style-image: initial; font-size: 14px; line-height: 16pt; width: 1242.66px; padding: 1px 0px 3px; color: rgb(51, 51, 51); font-family: 나눔고딕, NanumGothic, 돋움, Dotum;&quot;&gt;&lt;li style=&quot;box-sizing: border-box; list-style: none; line-height: 16pt; margin: 0px; padding: 2px 0px 1px 10px;&quot;&gt;- 계층 질의의 루트(부모행)로 사용될 행을 지정 한다.&lt;/li&gt;&lt;li style=&quot;box-sizing: border-box; list-style: none; line-height: 16pt; margin: 0px; padding: 2px 0px 1px 10px;&quot;&gt;- 서브쿼리를 사용할 수도 있다.&lt;/li&gt;&lt;/ul&gt;&lt;p style=&quot;box-sizing: border-box; margin: 10px 0px; font-size: 14px; line-height: 14pt; list-style: none; padding: 2px 7px; text-indent: 1em; color: rgb(51, 51, 51); font-family: 나눔고딕, NanumGothic, 돋움, Dotum;&quot;&gt;&lt;/p&gt;&lt;h6 style=&quot;box-sizing: border-box; font-family: 나눔고딕, NanumGothic, 돋움, Dotum; line-height: normal; margin-top: 8px; margin-bottom: 10px; font-size: 14px; padding: 0px;&quot;&gt;CONNECT BY&lt;/h6&gt;&lt;ul class=&quot;lecture_ul&quot; style=&quot;box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; list-style-position: initial; list-style-image: initial; font-size: 14px; line-height: 16pt; width: 1242.66px; padding: 1px 0px 3px; color: rgb(51, 51, 51); font-family: 나눔고딕, NanumGothic, 돋움, Dotum;&quot;&gt;&lt;li style=&quot;box-sizing: border-box; list-style: none; line-height: 16pt; margin: 0px; padding: 2px 0px 1px 10px;&quot;&gt;- 이 절을 이용하여 계층 질의에서 상위계층(부모행)과 하위계층(자식행)의 관계를 규정 할 수 있다.&lt;/li&gt;&lt;li style=&quot;box-sizing: border-box; list-style: none; line-height: 16pt; margin: 0px; padding: 2px 0px 1px 10px;&quot;&gt;-&amp;nbsp;&lt;span class=&quot;code-keyword&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 145); background-color: inherit;&quot;&gt;PRIOR&lt;/span&gt;&amp;nbsp;연산자와 함께 사용하여 계층구조로 표현할 수 있다.&lt;/li&gt;&lt;li style=&quot;box-sizing: border-box; list-style: none; line-height: 16pt; margin: 0px; padding: 2px 0px 1px 10px;&quot;&gt;-&amp;nbsp;&lt;span class=&quot;code-keyword&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 145); background-color: inherit;&quot;&gt;CONNECT BY PRIOR&lt;/span&gt;&amp;nbsp;자식컬럼 = 부모컬럼 : 부모에서 자식으로 트리구성 (Top Down)&lt;/li&gt;&lt;li style=&quot;box-sizing: border-box; list-style: none; line-height: 16pt; margin: 0px; padding: 2px 0px 1px 10px;&quot;&gt;-&amp;nbsp;&lt;span class=&quot;code-keyword&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 145); background-color: inherit;&quot;&gt;CONNECT BY&lt;/span&gt;&amp;nbsp;&lt;span class=&quot;code-keyword&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 145); background-color: inherit;&quot;&gt;PRIOR&lt;/span&gt;&amp;nbsp;부모컬럼 = 자식컬럼 : 자식에서 부모로 트리 구성 (Bottom Up)&lt;/li&gt;&lt;li style=&quot;box-sizing: border-box; list-style: none; line-height: 16pt; margin: 0px; padding: 2px 0px 1px 10px;&quot;&gt;-&amp;nbsp;&lt;span class=&quot;code-keyword&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 145); background-color: inherit;&quot;&gt;CONNECT BY NOCYCLE PRIOR&lt;/span&gt;&amp;nbsp;: NOCYCLE 파라미터를 이용하여 무한루프 방지&lt;/li&gt;&lt;li style=&quot;box-sizing: border-box; list-style: none; line-height: 16pt; margin: 0px; padding: 2px 0px 1px 10px;&quot;&gt;- 서브쿼리를 사용할 수 없다.&lt;/li&gt;&lt;/ul&gt;&lt;p style=&quot;box-sizing: border-box; margin: 10px 0px; font-size: 14px; line-height: 14pt; list-style: none; padding: 2px 7px; text-indent: 1em; color: rgb(51, 51, 51); font-family: 나눔고딕, NanumGothic, 돋움, Dotum;&quot;&gt;&lt;/p&gt;&lt;h6 style=&quot;box-sizing: border-box; font-family: 나눔고딕, NanumGothic, 돋움, Dotum; line-height: normal; margin-top: 8px; margin-bottom: 10px; font-size: 14px; padding: 0px;&quot;&gt;LEVEL Pseudocolumn&lt;/h6&gt;&lt;ul class=&quot;lecture_ul&quot; style=&quot;box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; list-style-position: initial; list-style-image: initial; font-size: 14px; line-height: 16pt; width: 1242.66px; padding: 1px 0px 3px; color: rgb(51, 51, 51); font-family: 나눔고딕, NanumGothic, 돋움, Dotum;&quot;&gt;&lt;li style=&quot;box-sizing: border-box; list-style: none; line-height: 16pt; margin: 0px; padding: 2px 0px 1px 10px;&quot;&gt;- LEVEL은 계층구조 쿼리에서 수행결과의 Depth를 표현하는 의사컬럼이다.&lt;/li&gt;&lt;/ul&gt;&lt;p style=&quot;box-sizing: border-box; margin: 10px 0px; font-size: 14px; line-height: 14pt; list-style: none; padding: 2px 7px; text-indent: 1em; color: rgb(51, 51, 51); font-family: 나눔고딕, NanumGothic, 돋움, Dotum;&quot;&gt;&lt;/p&gt;&lt;h6 style=&quot;box-sizing: border-box; font-family: 나눔고딕, NanumGothic, 돋움, Dotum; line-height: normal; margin-top: 8px; margin-bottom: 10px; font-size: 14px; padding: 0px;&quot;&gt;ORDER SIBLINGS BY&lt;/h6&gt;&lt;ul class=&quot;lecture_ul&quot; style=&quot;box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; list-style-position: initial; list-style-image: initial; font-size: 14px; line-height: 16pt; width: 1242.66px; padding: 1px 0px 3px; color: rgb(51, 51, 51); font-family: 나눔고딕, NanumGothic, 돋움, Dotum;&quot;&gt;&lt;li style=&quot;box-sizing: border-box; list-style: none; line-height: 16pt; margin: 0px; padding: 2px 0px 1px 10px;&quot;&gt;- ORDER SIBLINGS BY절을 사용하면 계층구조 쿼리에서 편하게 정렬작업을 할 수 있다.&lt;/li&gt;&lt;/ul&gt;&lt;p style=&quot;box-sizing: border-box; margin: 10px 0px; font-size: 14px; line-height: 14pt; list-style: none; padding: 2px 7px; text-indent: 1em; color: rgb(51, 51, 51); font-family: 나눔고딕, NanumGothic, 돋움, Dotum;&quot;&gt;&lt;/p&gt;&lt;h6 style=&quot;box-sizing: border-box; font-family: 나눔고딕, NanumGothic, 돋움, Dotum; line-height: normal; margin-top: 8px; margin-bottom: 10px; font-size: 14px; padding: 0px;&quot;&gt;CONNECT BY의 실행순서는 다음과 같다.&lt;/h6&gt;&lt;ul class=&quot;lecture_ul&quot; style=&quot;box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; list-style-position: initial; list-style-image: initial; font-size: 14px; line-height: 16pt; width: 1242.66px; padding: 1px 0px 3px; color: rgb(51, 51, 51); font-family: 나눔고딕, NanumGothic, 돋움, Dotum;&quot;&gt;&lt;li style=&quot;box-sizing: border-box; list-style: none; line-height: 16pt; margin: 0px; padding: 2px 0px 1px 10px;&quot;&gt;- 첫째&amp;nbsp;&lt;span class=&quot;code-keyword&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 145); background-color: inherit;&quot;&gt;START WITH&lt;/span&gt;&amp;nbsp;절&lt;/li&gt;&lt;li style=&quot;box-sizing: border-box; list-style: none; line-height: 16pt; margin: 0px; padding: 2px 0px 1px 10px;&quot;&gt;- 둘째&amp;nbsp;&lt;span class=&quot;code-keyword&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 145); background-color: inherit;&quot;&gt;CONNECT BY&lt;/span&gt;&amp;nbsp;절&lt;/li&gt;&lt;li style=&quot;box-sizing: border-box; list-style: none; line-height: 16pt; margin: 0px; padding: 2px 0px 1px 10px;&quot;&gt;- 세째&amp;nbsp;&lt;span class=&quot;code-keyword&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 145); background-color: inherit;&quot;&gt;WHERE&lt;/span&gt;&amp;nbsp;절 순서로 풀리게 되어있다.&lt;/li&gt;&lt;/ul&gt;&lt;p style=&quot;box-sizing: border-box; margin: 10px 0px; font-size: 14px; line-height: 14pt; list-style: none; padding: 2px 7px; text-indent: 1em; color: rgb(51, 51, 51); font-family: 나눔고딕, NanumGothic, 돋움, Dotum;&quot;&gt;&lt;/p&gt;&lt;p style=&quot;box-sizing: border-box; margin: 10px 0px; font-size: 14px; line-height: 14pt; list-style: none; padding: 2px 7px; text-indent: 1em; color: rgb(51, 51, 51); font-family: 나눔고딕, NanumGothic, 돋움, Dotum;&quot;&gt;&lt;/p&gt;&lt;h4 style=&quot;box-sizing: border-box; font-family: 나눔고딕, NanumGothic, 돋움, Dotum; line-height: normal; color: rgb(10, 36, 106); margin-top: 18px; margin-bottom: 10px; font-size: 16pt; padding: 0px;&quot;&gt;계층구조 쿼리 예제&lt;/h4&gt;&lt;p style=&quot;box-sizing: border-box; margin: 10px 0px; font-size: 14px; line-height: 14pt; list-style: none; padding: 2px 7px; text-indent: 1em; color: rgb(51, 51, 51); font-family: 나눔고딕, NanumGothic, 돋움, Dotum;&quot;&gt;&lt;/p&gt;&lt;h6 style=&quot;box-sizing: border-box; font-family: 나눔고딕, NanumGothic, 돋움, Dotum; line-height: normal; margin-top: 8px; margin-bottom: 10px; font-size: 14px; padding: 0px;&quot;&gt;간단예제&lt;/h6&gt;&lt;p style=&quot;box-sizing: border-box; margin: 10px 0px; font-size: 14px; line-height: 14pt; list-style: none; padding: 2px 7px; text-indent: 1em; color: rgb(51, 51, 51); font-family: 나눔고딕, NanumGothic, 돋움, Dotum;&quot;&gt;아래는 직업이 PRESIDENT을 기준으로 계층 구조로 조회하는 예이다.&lt;/p&gt;&lt;div style=&quot;box-sizing: border-box; color: rgb(51, 51, 51); font-family: 나눔고딕, NanumGothic, 돋움, Dotum; font-size: 14px;&quot;&gt;&lt;div id=&quot;highlighter_562061&quot; class=&quot;syntaxhighlighter  sql&quot; style=&quot;box-sizing: border-box; width: 1242.66px; margin: 1em 0px !important; position: relative !important; overflow: auto !important; font-size: 1em !important;&quot;&gt;&lt;div class=&quot;toolbar&quot; style=&quot;box-sizing: content-box !important; border-radius: 0px !important; background: rgb(108, 226, 108) !important; border: none !important; bottom: auto !important; float: none !important; height: 11px !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: absolute !important; right: 1px !important; top: 1px !important; vertical-align: baseline !important; width: 11px !important; font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace !important; font-size: 10px !important; min-height: auto !important; z-index: 10 !important; color: white !important;&quot;&gt;&lt;span style=&quot;box-sizing: border-box;&quot;&gt;&lt;a href=&quot;http://www.gurubee.net/lecture/1300#&quot; class=&quot;toolbar_item command_help help&quot; style=&quot;box-sizing: content-box !important; background: none !important; color: white !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 1px 0px 0px !important; position: static !important; right: auto !important; text-align: center !important; top: auto !important; vertical-align: baseline !important; width: auto !important; font-size: 1em !important; min-height: auto !important; display: block !important;&quot;&gt;?&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; style=&quot;border-spacing: 0px; border-collapse: collapse; line-height: 14pt; margin: 5px; width: 1225px; font-size: 14px; list-style: none; box-sizing: content-box !important; background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; float: none !important; height: auto !important; left: auto !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace !important; min-height: auto !important;&quot;&gt;&lt;tbody style=&quot;box-sizing: content-box !important; border-radius: 0px !important; background: none !important; border: 0px !important; bottom: auto !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important; font-size: 1em !important; min-height: auto !important;&quot;&gt;&lt;tr style=&quot;list-style: none; box-sizing: content-box !important; font-size: 1em !important; line-height: 1.1em !important; border-radius: 0px !important; background: none !important; border: 0px !important; bottom: auto !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; padding: 0px !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important; min-height: auto !important;&quot;&gt;&lt;td class=&quot;gutter&quot; style=&quot;list-style: none; box-sizing: content-box !important; padding: 0px !important; border: 0px !important; vertical-align: baseline !important; font-size: 1em !important; line-height: 1.1em !important; border-radius: 0px !important; background: none !important; bottom: auto !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; position: static !important; right: auto !important; top: auto !important; width: auto !important; font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace !important; min-height: auto !important; color: rgb(175, 175, 175) !important;&quot;&gt;&lt;div class=&quot;line number1 index0 alt2&quot; style=&quot;box-sizing: content-box !important; width: auto !important; height: auto !important; overflow: visible !important; border-radius: 0px !important; background-image: none !important; background-position: initial !important; background-size: initial !important; background-repeat: initial !important; background-attachment: initial !important; background-origin: initial !important; background-clip: initial !important; border-width: 0px 3px 0px 0px !important; border-top-style: initial !important; border-right-style: solid !important; border-bottom-style: initial !important; border-left-style: initial !important; border-top-color: initial !important; border-right-color: rgb(108, 226, 108) !important; border-bottom-color: initial !important; border-left-color: initial !important; border-image: initial !important; bottom: auto !important; float: none !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; padding: 0px 0.5em 0px 1em !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; font-size: 1em !important; min-height: auto !important; white-space: pre !important;&quot;&gt;1&lt;/div&gt;&lt;div class=&quot;line number2 index1 alt1&quot; style=&quot;box-sizing: content-box !important; width: auto !important; height: auto !important; overflow: visible !important; border-radius: 0px !important; background-image: none !important; background-position: initial !important; background-size: initial !important; background-repeat: initial !important; background-attachment: initial !important; background-origin: initial !important; background-clip: initial !important; border-width: 0px 3px 0px 0px !important; border-top-style: initial !important; border-right-style: solid !important; border-bottom-style: initial !important; border-left-style: initial !important; border-top-color: initial !important; border-right-color: rgb(108, 226, 108) !important; border-bottom-color: initial !important; border-left-color: initial !important; border-image: initial !important; bottom: auto !important; float: none !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; padding: 0px 0.5em 0px 1em !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; font-size: 1em !important; min-height: auto !important; white-space: pre !important;&quot;&gt;2&lt;/div&gt;&lt;div class=&quot;line number3 index2 alt2&quot; style=&quot;box-sizing: content-box !important; width: auto !important; height: auto !important; overflow: visible !important; border-radius: 0px !important; background-image: none !important; background-position: initial !important; background-size: initial !important; background-repeat: initial !important; background-attachment: initial !important; background-origin: initial !important; background-clip: initial !important; border-width: 0px 3px 0px 0px !important; border-top-style: initial !important; border-right-style: solid !important; border-bottom-style: initial !important; border-left-style: initial !important; border-top-color: initial !important; border-right-color: rgb(108, 226, 108) !important; border-bottom-color: initial !important; border-left-color: initial !important; border-image: initial !important; bottom: auto !important; float: none !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; padding: 0px 0.5em 0px 1em !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; font-size: 1em !important; min-height: auto !important; white-space: pre !important;&quot;&gt;3&lt;/div&gt;&lt;div class=&quot;line number4 index3 alt1&quot; style=&quot;box-sizing: content-box !important; width: auto !important; height: auto !important; overflow: visible !important; border-radius: 0px !important; background-image: none !important; background-position: initial !important; background-size: initial !important; background-repeat: initial !important; background-attachment: initial !important; background-origin: initial !important; background-clip: initial !important; border-width: 0px 3px 0px 0px !important; border-top-style: initial !important; border-right-style: solid !important; border-bottom-style: initial !important; border-left-style: initial !important; border-top-color: initial !important; border-right-color: rgb(108, 226, 108) !important; border-bottom-color: initial !important; border-left-color: initial !important; border-image: initial !important; bottom: auto !important; float: none !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; padding: 0px 0.5em 0px 1em !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; font-size: 1em !important; min-height: auto !important; white-space: pre !important;&quot;&gt;4&lt;/div&gt;&lt;div class=&quot;line number5 index4 alt2&quot; style=&quot;box-sizing: content-box !important; width: auto !important; height: auto !important; overflow: visible !important; border-radius: 0px !important; background-image: none !important; background-position: initial !important; background-size: initial !important; background-repeat: initial !important; background-attachment: initial !important; background-origin: initial !important; background-clip: initial !important; border-width: 0px 3px 0px 0px !important; border-top-style: initial !important; border-right-style: solid !important; border-bottom-style: initial !important; border-left-style: initial !important; border-top-color: initial !important; border-right-color: rgb(108, 226, 108) !important; border-bottom-color: initial !important; border-left-color: initial !important; border-image: initial !important; bottom: auto !important; float: none !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; padding: 0px 0.5em 0px 1em !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; font-size: 1em !important; min-height: auto !important; white-space: pre !important;&quot;&gt;5&lt;/div&gt;&lt;div class=&quot;line number6 index5 alt1&quot; style=&quot;box-sizing: content-box !important; width: auto !important; height: auto !important; overflow: visible !important; border-radius: 0px !important; background-image: none !important; background-position: initial !important; background-size: initial !important; background-repeat: initial !important; background-attachment: initial !important; background-origin: initial !important; background-clip: initial !important; border-width: 0px 3px 0px 0px !important; border-top-style: initial !important; border-right-style: solid !important; border-bottom-style: initial !important; border-left-style: initial !important; border-top-color: initial !important; border-right-color: rgb(108, 226, 108) !important; border-bottom-color: initial !important; border-left-color: initial !important; border-image: initial !important; bottom: auto !important; float: none !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; padding: 0px 0.5em 0px 1em !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; font-size: 1em !important; min-height: auto !important; white-space: pre !important;&quot;&gt;6&lt;/div&gt;&lt;div class=&quot;line number7 index6 alt2&quot; style=&quot;box-sizing: content-box !important; width: auto !important; height: auto !important; overflow: visible !important; border-radius: 0px !important; background-image: none !important; background-position: initial !important; background-size: initial !important; background-repeat: initial !important; background-attachment: initial !important; background-origin: initial !important; background-clip: initial !important; border-width: 0px 3px 0px 0px !important; border-top-style: initial !important; border-right-style: solid !important; border-bottom-style: initial !important; border-left-style: initial !important; border-top-color: initial !important; border-right-color: rgb(108, 226, 108) !important; border-bottom-color: initial !important; border-left-color: initial !important; border-image: initial !important; bottom: auto !important; float: none !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; padding: 0px 0.5em 0px 1em !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; font-size: 1em !important; min-height: auto !important; white-space: pre !important;&quot;&gt;7&lt;/div&gt;&lt;div class=&quot;line number8 index7 alt1&quot; style=&quot;box-sizing: content-box !important; width: auto !important; height: auto !important; overflow: visible !important; border-radius: 0px !important; background-image: none !important; background-position: initial !important; background-size: initial !important; background-repeat: initial !important; background-attachment: initial !important; background-origin: initial !important; background-clip: initial !important; border-width: 0px 3px 0px 0px !important; border-top-style: initial !important; border-right-style: solid !important; border-bottom-style: initial !important; border-left-style: initial !important; border-top-color: initial !important; border-right-color: rgb(108, 226, 108) !important; border-bottom-color: initial !important; border-left-color: initial !important; border-image: initial !important; bottom: auto !important; float: none !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; padding: 0px 0.5em 0px 1em !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; font-size: 1em !important; min-height: auto !important; white-space: pre !important;&quot;&gt;8&lt;/div&gt;&lt;div class=&quot;line number9 index8 alt2&quot; style=&quot;box-sizing: content-box !important; width: auto !important; height: auto !important; overflow: visible !important; border-radius: 0px !important; background-image: none !important; background-position: initial !important; background-size: initial !important; background-repeat: initial !important; background-attachment: initial !important; background-origin: initial !important; background-clip: initial !important; border-width: 0px 3px 0px 0px !important; border-top-style: initial !important; border-right-style: solid !important; border-bottom-style: initial !important; border-left-style: initial !important; border-top-color: initial !important; border-right-color: rgb(108, 226, 108) !important; border-bottom-color: initial !important; border-left-color: initial !important; border-image: initial !important; bottom: auto !important; float: none !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; padding: 0px 0.5em 0px 1em !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; font-size: 1em !important; min-height: auto !important; white-space: pre !important;&quot;&gt;9&lt;/div&gt;&lt;div class=&quot;line number10 index9 alt1&quot; style=&quot;box-sizing: content-box !important; width: auto !important; height: auto !important; overflow: visible !important; border-radius: 0px !important; background-image: none !important; background-position: initial !important; background-size: initial !important; background-repeat: initial !important; background-attachment: initial !important; background-origin: initial !important; background-clip: initial !important; border-width: 0px 3px 0px 0px !important; border-top-style: initial !important; border-right-style: solid !important; border-bottom-style: initial !important; border-left-style: initial !important; border-top-color: initial !important; border-right-color: rgb(108, 226, 108) !important; border-bottom-color: initial !important; border-left-color: initial !important; border-image: initial !important; bottom: auto !important; float: none !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; padding: 0px 0.5em 0px 1em !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; font-size: 1em !important; min-height: auto !important; white-space: pre !important;&quot;&gt;10&lt;/div&gt;&lt;div class=&quot;line number11 index10 alt2&quot; style=&quot;box-sizing: content-box !important; width: auto !important; height: auto !important; overflow: visible !important; border-radius: 0px !important; background-image: none !important; background-position: initial !important; background-size: initial !important; background-repeat: initial !important; background-attachment: initial !important; background-origin: initial !important; background-clip: initial !important; border-width: 0px 3px 0px 0px !important; border-top-style: initial !important; border-right-style: solid !important; border-bottom-style: initial !important; border-left-style: initial !important; border-top-color: initial !important; border-right-color: rgb(108, 226, 108) !important; border-bottom-color: initial !important; border-left-color: initial !important; border-image: initial !important; bottom: auto !important; float: none !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; padding: 0px 0.5em 0px 1em !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; font-size: 1em !important; min-height: auto !important; white-space: pre !important;&quot;&gt;11&lt;/div&gt;&lt;div class=&quot;line number12 index11 alt1&quot; style=&quot;box-sizing: content-box !important; width: auto !important; height: auto !important; overflow: visible !important; border-radius: 0px !important; background-image: none !important; background-position: initial !important; background-size: initial !important; background-repeat: initial !important; background-attachment: initial !important; background-origin: initial !important; background-clip: initial !important; border-width: 0px 3px 0px 0px !important; border-top-style: initial !important; border-right-style: solid !important; border-bottom-style: initial !important; border-left-style: initial !important; border-top-color: initial !important; border-right-color: rgb(108, 226, 108) !important; border-bottom-color: initial !important; border-left-color: initial !important; border-image: initial !important; bottom: auto !important; float: none !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; padding: 0px 0.5em 0px 1em !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; font-size: 1em !important; min-height: auto !important; white-space: pre !important;&quot;&gt;12&lt;/div&gt;&lt;div class=&quot;line number13 index12 alt2&quot; style=&quot;box-sizing: content-box !important; width: auto !important; height: auto !important; overflow: visible !important; border-radius: 0px !important; background-image: none !important; background-position: initial !important; background-size: initial !important; background-repeat: initial !important; background-attachment: initial !important; background-origin: initial !important; background-clip: initial !important; border-width: 0px 3px 0px 0px !important; border-top-style: initial !important; border-right-style: solid !important; border-bottom-style: initial !important; border-left-style: initial !important; border-top-color: initial !important; border-right-color: rgb(108, 226, 108) !important; border-bottom-color: initial !important; border-left-color: initial !important; border-image: initial !important; bottom: auto !important; float: none !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; padding: 0px 0.5em 0px 1em !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; font-size: 1em !important; min-height: auto !important; white-space: pre !important;&quot;&gt;13&lt;/div&gt;&lt;div class=&quot;line number14 index13 alt1&quot; style=&quot;box-sizing: content-box !important; width: auto !important; height: auto !important; overflow: visible !important; border-radius: 0px !important; background-image: none !important; background-position: initial !important; background-size: initial !important; background-repeat: initial !important; background-attachment: initial !important; background-origin: initial !important; background-clip: initial !important; border-width: 0px 3px 0px 0px !important; border-top-style: initial !important; border-right-style: solid !important; border-bottom-style: initial !important; border-left-style: initial !important; border-top-color: initial !important; border-right-color: rgb(108, 226, 108) !important; border-bottom-color: initial !important; border-left-color: initial !important; border-image: initial !important; bottom: auto !important; float: none !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; padding: 0px 0.5em 0px 1em !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; font-size: 1em !important; min-height: auto !important; white-space: pre !important;&quot;&gt;14&lt;/div&gt;&lt;div class=&quot;line number15 index14 alt2&quot; style=&quot;box-sizing: content-box !important; width: auto !important; height: auto !important; overflow: visible !important; border-radius: 0px !important; background-image: none !important; background-position: initial !important; background-size: initial !important; background-repeat: initial !important; background-attachment: initial !important; background-origin: initial !important; background-clip: initial !important; border-width: 0px 3px 0px 0px !important; border-top-style: initial !important; border-right-style: solid !important; border-bottom-style: initial !important; border-left-style: initial !important; border-top-color: initial !important; border-right-color: rgb(108, 226, 108) !important; border-bottom-color: initial !important; border-left-color: initial !important; border-image: initial !important; bottom: auto !important; float: none !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; padding: 0px 0.5em 0px 1em !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; font-size: 1em !important; min-height: auto !important; white-space: pre !important;&quot;&gt;15&lt;/div&gt;&lt;div class=&quot;line number16 index15 alt1&quot; style=&quot;box-sizing: content-box !important; width: auto !important; height: auto !important; overflow: visible !important; border-radius: 0px !important; background-image: none !important; background-position: initial !important; background-size: initial !important; background-repeat: initial !important; background-attachment: initial !important; background-origin: initial !important; background-clip: initial !important; border-width: 0px 3px 0px 0px !important; border-top-style: initial !important; border-right-style: solid !important; border-bottom-style: initial !important; border-left-style: initial !important; border-top-color: initial !important; border-right-color: rgb(108, 226, 108) !important; border-bottom-color: initial !important; border-left-color: initial !important; border-image: initial !important; bottom: auto !important; float: none !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; padding: 0px 0.5em 0px 1em !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; font-size: 1em !important; min-height: auto !important; white-space: pre !important;&quot;&gt;16&lt;/div&gt;&lt;div class=&quot;line number17 index16 alt2&quot; style=&quot;box-sizing: content-box !important; width: auto !important; height: auto !important; overflow: visible !important; border-radius: 0px !important; background-image: none !important; background-position: initial !important; background-size: initial !important; background-repeat: initial !important; background-attachment: initial !important; background-origin: initial !important; background-clip: initial !important; border-width: 0px 3px 0px 0px !important; border-top-style: initial !important; border-right-style: solid !important; border-bottom-style: initial !important; border-left-style: initial !important; border-top-color: initial !important; border-right-color: rgb(108, 226, 108) !important; border-bottom-color: initial !important; border-left-color: initial !important; border-image: initial !important; bottom: auto !important; float: none !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; padding: 0px 0.5em 0px 1em !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; font-size: 1em !important; min-height: auto !important; white-space: pre !important;&quot;&gt;17&lt;/div&gt;&lt;div class=&quot;line number18 index17 alt1&quot; style=&quot;box-sizing: content-box !important; width: auto !important; height: auto !important; overflow: visible !important; border-radius: 0px !important; background-image: none !important; background-position: initial !important; background-size: initial !important; background-repeat: initial !important; background-attachment: initial !important; background-origin: initial !important; background-clip: initial !important; border-width: 0px 3px 0px 0px !important; border-top-style: initial !important; border-right-style: solid !important; border-bottom-style: initial !important; border-left-style: initial !important; border-top-color: initial !important; border-right-color: rgb(108, 226, 108) !important; border-bottom-color: initial !important; border-left-color: initial !important; border-image: initial !important; bottom: auto !important; float: none !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; padding: 0px 0.5em 0px 1em !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; vertical-align: baseline !important; font-size: 1em !important; min-height: auto !important; white-space: pre !important;&quot;&gt;18&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;code&quot; style=&quot;list-style: none; width: 1185px; box-sizing: content-box !important; padding: 0px !important; border: 0px !important; vertical-align: baseline !important; overflow: visible !important; background: none !important; font-size: 1em !important; line-height: 1.1em !important; border-radius: 0px !important; bottom: auto !important; float: none !important; height: auto !important; left: auto !important; margin: 0px !important; outline: 0px !important; position: static !important; right: auto !important; top: auto !important; font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace !important; min-height: auto !important;&quot;&gt;&lt;div class=&quot;container&quot; style=&quot;box-sizing: content-box !important; padding: 0px !important; margin: 0px !important; width: auto !important; border-radius: 0px !important; background: none !important; border: 0px !important; bottom: auto !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; outline: 0px !important; overflow: visible !important; position: relative !important; right: auto !important; top: auto !important; vertical-align: baseline !important; font-size: 1em !important; min-height: auto !important;&quot;&gt;&lt;div class=&quot;line number1 index0 alt2&quot; style=&quot;box-sizing: content-box !important; width: auto !important; height: auto !important; overflow: visible !important; border-radius: 0px !important; background-image: none !important; background-position: initial !important; background-size: initial !important; background-repeat: initial !important; background-attachment: initial !important; background-origin: initial !important; background-clip: initial !important; border: 0px !important; bottom: auto !important; float: none !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; font-size: 1em !important; min-height: auto !important; white-space: pre !important;&quot;&gt;&lt;code class=&quot;sql comments&quot; style=&quot;box-sizing: content-box !important; font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace !important; font-size: 1em !important; padding: 0px !important; color: rgb(0, 130, 0) !important; background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important; min-height: auto !important;&quot;&gt;-- LEVEL컬럼으로 depth를 알수 있다. &lt;/code&gt;&lt;/div&gt;&lt;div class=&quot;line number2 index1 alt1&quot; style=&quot;box-sizing: content-box !important; width: auto !important; height: auto !important; overflow: visible !important; border-radius: 0px !important; background-image: none !important; background-position: initial !important; background-size: initial !important; background-repeat: initial !important; background-attachment: initial !important; background-origin: initial !important; background-clip: initial !important; border: 0px !important; bottom: auto !important; float: none !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; font-size: 1em !important; min-height: auto !important; white-space: pre !important;&quot;&gt;&lt;code class=&quot;sql comments&quot; style=&quot;box-sizing: content-box !important; font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace !important; font-size: 1em !important; padding: 0px !important; color: rgb(0, 130, 0) !important; background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important; min-height: auto !important;&quot;&gt;-- JONES의 관리자는 KING 이며, SCOTT의 관리자는 JONES 이다. &lt;/code&gt;&lt;/div&gt;&lt;div class=&quot;line number3 index2 alt2&quot; style=&quot;box-sizing: content-box !important; width: auto !important; height: auto !important; overflow: visible !important; border-radius: 0px !important; background-image: none !important; background-position: initial !important; background-size: initial !important; background-repeat: initial !important; background-attachment: initial !important; background-origin: initial !important; background-clip: initial !important; border: 0px !important; bottom: auto !important; float: none !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; font-size: 1em !important; min-height: auto !important; white-space: pre !important;&quot;&gt;&lt;code class=&quot;sql comments&quot; style=&quot;box-sizing: content-box !important; font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace !important; font-size: 1em !important; padding: 0px !important; color: rgb(0, 130, 0) !important; background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important; min-height: auto !important;&quot;&gt;-- 상/하의 계층 구조를 쉽게 조회 할 수 있다. &lt;/code&gt;&lt;/div&gt;&lt;div class=&quot;line number4 index3 alt1&quot; style=&quot;box-sizing: content-box !important; width: auto !important; height: auto !important; overflow: visible !important; border-radius: 0px !important; background-image: none !important; background-position: initial !important; background-size: initial !important; background-repeat: initial !important; background-attachment: initial !important; background-origin: initial !important; background-clip: initial !important; border: 0px !important; bottom: auto !important; float: none !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; font-size: 1em !important; min-height: auto !important; white-space: pre !important;&quot;&gt;&lt;code class=&quot;sql keyword&quot; style=&quot;box-sizing: content-box !important; font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace !important; font-size: 1em !important; padding: 0px !important; color: rgb(0, 102, 153) !important; background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important; font-weight: bold !important; min-height: auto !important;&quot;&gt;SELECT&lt;/code&gt; &lt;code class=&quot;sql keyword&quot; style=&quot;box-sizing: content-box !important; font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace !important; font-size: 1em !important; padding: 0px !important; color: rgb(0, 102, 153) !important; background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important; font-weight: bold !important; min-height: auto !important;&quot;&gt;LEVEL&lt;/code&gt;&lt;code class=&quot;sql plain&quot; style=&quot;box-sizing: content-box !important; font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace !important; font-size: 1em !important; padding: 0px !important; background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important; min-height: auto !important;&quot;&gt;, empno, ename, mgr&lt;/code&gt;&lt;/div&gt;&lt;div class=&quot;line number5 index4 alt2&quot; style=&quot;box-sizing: content-box !important; width: auto !important; height: auto !important; overflow: visible !important; border-radius: 0px !important; background-image: none !important; background-position: initial !important; background-size: initial !important; background-repeat: initial !important; background-attachment: initial !important; background-origin: initial !important; background-clip: initial !important; border: 0px !important; bottom: auto !important; float: none !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; font-size: 1em !important; min-height: auto !important; white-space: pre !important;&quot;&gt;&lt;code class=&quot;sql spaces&quot; style=&quot;color: rgb(199, 37, 78); box-sizing: content-box !important; font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace !important; font-size: 1em !important; padding: 0px !important; background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important; min-height: auto !important;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;sql keyword&quot; style=&quot;box-sizing: content-box !important; font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace !important; font-size: 1em !important; padding: 0px !important; color: rgb(0, 102, 153) !important; background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important; font-weight: bold !important; min-height: auto !important;&quot;&gt;FROM&lt;/code&gt; &lt;code class=&quot;sql plain&quot; style=&quot;box-sizing: content-box !important; font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace !important; font-size: 1em !important; padding: 0px !important; background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important; min-height: auto !important;&quot;&gt;emp&lt;/code&gt;&lt;/div&gt;&lt;div class=&quot;line number6 index5 alt1&quot; style=&quot;box-sizing: content-box !important; width: auto !important; height: auto !important; overflow: visible !important; border-radius: 0px !important; background-image: none !important; background-position: initial !important; background-size: initial !important; background-repeat: initial !important; background-attachment: initial !important; background-origin: initial !important; background-clip: initial !important; border: 0px !important; bottom: auto !important; float: none !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; font-size: 1em !important; min-height: auto !important; white-space: pre !important;&quot;&gt;&lt;code class=&quot;sql spaces&quot; style=&quot;color: rgb(199, 37, 78); box-sizing: content-box !important; font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace !important; font-size: 1em !important; padding: 0px !important; background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important; min-height: auto !important;&quot;&gt;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;sql plain&quot; style=&quot;box-sizing: content-box !important; font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace !important; font-size: 1em !important; padding: 0px !important; background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important; min-height: auto !important;&quot;&gt;START &lt;/code&gt;&lt;code class=&quot;sql keyword&quot; style=&quot;box-sizing: content-box !important; font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace !important; font-size: 1em !important; padding: 0px !important; color: rgb(0, 102, 153) !important; background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important; font-weight: bold !important; min-height: auto !important;&quot;&gt;WITH&lt;/code&gt; &lt;code class=&quot;sql plain&quot; style=&quot;box-sizing: content-box !important; font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace !important; font-size: 1em !important; padding: 0px !important; background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important; min-height: auto !important;&quot;&gt;job = &lt;/code&gt;&lt;code class=&quot;sql string&quot; style=&quot;box-sizing: content-box !important; font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace !important; font-size: 1em !important; padding: 0px !important; color: blue !important; background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important; min-height: auto !important;&quot;&gt;'PRESIDENT'&lt;/code&gt;&lt;/div&gt;&lt;div class=&quot;line number7 index6 alt2&quot; style=&quot;box-sizing: content-box !important; width: auto !important; height: auto !important; overflow: visible !important; border-radius: 0px !important; background-image: none !important; background-position: initial !important; background-size: initial !important; background-repeat: initial !important; background-attachment: initial !important; background-origin: initial !important; background-clip: initial !important; border: 0px !important; bottom: auto !important; float: none !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; font-size: 1em !important; min-height: auto !important; white-space: pre !important;&quot;&gt;&lt;code class=&quot;sql keyword&quot; style=&quot;box-sizing: content-box !important; font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace !important; font-size: 1em !important; padding: 0px !important; color: rgb(0, 102, 153) !important; background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important; font-weight: bold !important; min-height: auto !important;&quot;&gt;CONNECT&lt;/code&gt; &lt;code class=&quot;sql keyword&quot; style=&quot;box-sizing: content-box !important; font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace !important; font-size: 1em !important; padding: 0px !important; color: rgb(0, 102, 153) !important; background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important; font-weight: bold !important; min-height: auto !important;&quot;&gt;BY&lt;/code&gt; &lt;code class=&quot;sql keyword&quot; style=&quot;box-sizing: content-box !important; font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace !important; font-size: 1em !important; padding: 0px !important; color: rgb(0, 102, 153) !important; background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important; font-weight: bold !important; min-height: auto !important;&quot;&gt;PRIOR&lt;/code&gt;&amp;nbsp; &lt;code class=&quot;sql plain&quot; style=&quot;box-sizing: content-box !important; font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace !important; font-size: 1em !important; padding: 0px !important; background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important; min-height: auto !important;&quot;&gt;empno = mgr;&lt;/code&gt;&lt;/div&gt;&lt;div class=&quot;line number8 index7 alt1&quot; style=&quot;box-sizing: content-box !important; width: auto !important; height: auto !important; overflow: visible !important; border-radius: 0px !important; background-image: none !important; background-position: initial !important; background-size: initial !important; background-repeat: initial !important; background-attachment: initial !important; background-origin: initial !important; background-clip: initial !important; border: 0px !important; bottom: auto !important; float: none !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; font-size: 1em !important; min-height: auto !important; white-space: pre !important;&quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;div class=&quot;line number9 index8 alt2&quot; style=&quot;box-sizing: content-box !important; width: auto !important; height: auto !important; overflow: visible !important; border-radius: 0px !important; background-image: none !important; background-position: initial !important; background-size: initial !important; background-repeat: initial !important; background-attachment: initial !important; background-origin: initial !important; background-clip: initial !important; border: 0px !important; bottom: auto !important; float: none !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; font-size: 1em !important; min-height: auto !important; white-space: pre !important;&quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;div class=&quot;line number10 index9 alt1&quot; style=&quot;box-sizing: content-box !important; width: auto !important; height: auto !important; overflow: visible !important; border-radius: 0px !important; background-image: none !important; background-position: initial !important; background-size: initial !important; background-repeat: initial !important; background-attachment: initial !important; background-origin: initial !important; background-clip: initial !important; border: 0px !important; bottom: auto !important; float: none !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; font-size: 1em !important; min-height: auto !important; white-space: pre !important;&quot;&gt;&lt;code class=&quot;sql keyword&quot; style=&quot;box-sizing: content-box !important; font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace !important; font-size: 1em !important; padding: 0px !important; color: rgb(0, 102, 153) !important; background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important; font-weight: bold !important; min-height: auto !important;&quot;&gt;LEVEL&lt;/code&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;code class=&quot;sql plain&quot; style=&quot;box-sizing: content-box !important; font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace !important; font-size: 1em !important; padding: 0px !important; background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important; min-height: auto !important;&quot;&gt;EMPNO&amp;nbsp; ENAME&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MGR&lt;/code&gt;&lt;/div&gt;&lt;div class=&quot;line number11 index10 alt2&quot; style=&quot;box-sizing: content-box !important; width: auto !important; height: auto !important; overflow: visible !important; border-radius: 0px !important; background-image: none !important; background-position: initial !important; background-size: initial !important; background-repeat: initial !important; background-attachment: initial !important; background-origin: initial !important; background-clip: initial !important; border: 0px !important; bottom: auto !important; float: none !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; font-size: 1em !important; min-height: auto !important; white-space: pre !important;&quot;&gt;&lt;code class=&quot;sql comments&quot; style=&quot;box-sizing: content-box !important; font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace !important; font-size: 1em !important; padding: 0px !important; color: rgb(0, 130, 0) !important; background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important; min-height: auto !important;&quot;&gt;------ -------- --------&amp;nbsp;&amp;nbsp;&amp;nbsp; -------&lt;/code&gt;&lt;/div&gt;&lt;div class=&quot;line number12 index11 alt1&quot; style=&quot;box-sizing: content-box !important; width: auto !important; height: auto !important; overflow: visible !important; border-radius: 0px !important; background-image: none !important; background-position: initial !important; background-size: initial !important; background-repeat: initial !important; background-attachment: initial !important; background-origin: initial !important; background-clip: initial !important; border: 0px !important; bottom: auto !important; float: none !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; font-size: 1em !important; min-height: auto !important; white-space: pre !important;&quot;&gt;&lt;code class=&quot;sql spaces&quot; style=&quot;color: rgb(199, 37, 78); box-sizing: content-box !important; font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace !important; font-size: 1em !important; padding: 0px !important; background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important; min-height: auto !important;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;sql plain&quot; style=&quot;box-sizing: content-box !important; font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace !important; font-size: 1em !important; padding: 0px !important; background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important; min-height: auto !important;&quot;&gt;1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 7839&amp;nbsp;&amp;nbsp; KING&lt;/code&gt;&lt;/div&gt;&lt;div class=&quot;line number13 index12 alt2&quot; style=&quot;box-sizing: content-box !important; width: auto !important; height: auto !important; overflow: visible !important; border-radius: 0px !important; background-image: none !important; background-position: initial !important; background-size: initial !important; background-repeat: initial !important; background-attachment: initial !important; background-origin: initial !important; background-clip: initial !important; border: 0px !important; bottom: auto !important; float: none !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; font-size: 1em !important; min-height: auto !important; white-space: pre !important;&quot;&gt;&lt;code class=&quot;sql spaces&quot; style=&quot;color: rgb(199, 37, 78); box-sizing: content-box !important; font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace !important; font-size: 1em !important; padding: 0px !important; background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important; min-height: auto !important;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;sql plain&quot; style=&quot;box-sizing: content-box !important; font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace !important; font-size: 1em !important; padding: 0px !important; background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important; min-height: auto !important;&quot;&gt;2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 7566&amp;nbsp;&amp;nbsp; JONES&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 7839&lt;/code&gt;&lt;/div&gt;&lt;div class=&quot;line number14 index13 alt1&quot; style=&quot;box-sizing: content-box !important; width: auto !important; height: auto !important; overflow: visible !important; border-radius: 0px !important; background-image: none !important; background-position: initial !important; background-size: initial !important; background-repeat: initial !important; background-attachment: initial !important; background-origin: initial !important; background-clip: initial !important; border: 0px !important; bottom: auto !important; float: none !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; font-size: 1em !important; min-height: auto !important; white-space: pre !important;&quot;&gt;&lt;code class=&quot;sql spaces&quot; style=&quot;color: rgb(199, 37, 78); box-sizing: content-box !important; font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace !important; font-size: 1em !important; padding: 0px !important; background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important; min-height: auto !important;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;sql plain&quot; style=&quot;box-sizing: content-box !important; font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace !important; font-size: 1em !important; padding: 0px !important; background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important; min-height: auto !important;&quot;&gt;3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 7788&amp;nbsp;&amp;nbsp; SCOTT&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 7566 &lt;/code&gt;&lt;/div&gt;&lt;div class=&quot;line number15 index14 alt2&quot; style=&quot;box-sizing: content-box !important; width: auto !important; height: auto !important; overflow: visible !important; border-radius: 0px !important; background-image: none !important; background-position: initial !important; background-size: initial !important; background-repeat: initial !important; background-attachment: initial !important; background-origin: initial !important; background-clip: initial !important; border: 0px !important; bottom: auto !important; float: none !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; font-size: 1em !important; min-height: auto !important; white-space: pre !important;&quot;&gt;&lt;code class=&quot;sql spaces&quot; style=&quot;color: rgb(199, 37, 78); box-sizing: content-box !important; font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace !important; font-size: 1em !important; padding: 0px !important; background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important; min-height: auto !important;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;sql plain&quot; style=&quot;box-sizing: content-box !important; font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace !important; font-size: 1em !important; padding: 0px !important; background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important; min-height: auto !important;&quot;&gt;4&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 7876&amp;nbsp;&amp;nbsp; ADAMS&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 7788 &lt;/code&gt;&lt;/div&gt;&lt;div class=&quot;line number16 index15 alt1&quot; style=&quot;box-sizing: content-box !important; width: auto !important; height: auto !important; overflow: visible !important; border-radius: 0px !important; background-image: none !important; background-position: initial !important; background-size: initial !important; background-repeat: initial !important; background-attachment: initial !important; background-origin: initial !important; background-clip: initial !important; border: 0px !important; bottom: auto !important; float: none !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; font-size: 1em !important; min-height: auto !important; white-space: pre !important;&quot;&gt;&lt;code class=&quot;sql spaces&quot; style=&quot;color: rgb(199, 37, 78); box-sizing: content-box !important; font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace !important; font-size: 1em !important; padding: 0px !important; background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important; min-height: auto !important;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;sql plain&quot; style=&quot;box-sizing: content-box !important; font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace !important; font-size: 1em !important; padding: 0px !important; background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important; min-height: auto !important;&quot;&gt;3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 7902&amp;nbsp;&amp;nbsp; FORD&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 7566&lt;/code&gt;&lt;/div&gt;&lt;div class=&quot;line number17 index16 alt2&quot; style=&quot;box-sizing: content-box !important; width: auto !important; height: auto !important; overflow: visible !important; border-radius: 0px !important; background-image: none !important; background-position: initial !important; background-size: initial !important; background-repeat: initial !important; background-attachment: initial !important; background-origin: initial !important; background-clip: initial !important; border: 0px !important; bottom: auto !important; float: none !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; font-size: 1em !important; min-height: auto !important; white-space: pre !important;&quot;&gt;&lt;code class=&quot;sql spaces&quot; style=&quot;color: rgb(199, 37, 78); box-sizing: content-box !important; font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace !important; font-size: 1em !important; padding: 0px !important; background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important; min-height: auto !important;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/code&gt;&lt;code class=&quot;sql plain&quot; style=&quot;box-sizing: content-box !important; font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace !important; font-size: 1em !important; padding: 0px !important; background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important; min-height: auto !important;&quot;&gt;4&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 7369&amp;nbsp;&amp;nbsp; SMITH&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 7902&lt;/code&gt;&lt;/div&gt;&lt;div class=&quot;line number18 index17 alt1&quot; style=&quot;box-sizing: content-box !important; width: auto !important; height: auto !important; overflow: visible !important; border-radius: 0px !important; background-image: none !important; background-position: initial !important; background-size: initial !important; background-repeat: initial !important; background-attachment: initial !important; background-origin: initial !important; background-clip: initial !important; border: 0px !important; bottom: auto !important; float: none !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; padding: 0px 1em !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; font-size: 1em !important; min-height: auto !important; white-space: pre !important;&quot;&gt;&lt;code class=&quot;sql plain&quot; style=&quot;box-sizing: content-box !important; font-family: Consolas, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, Courier, monospace !important; font-size: 1em !important; padding: 0px !important; background: none !important; border-radius: 0px !important; border: 0px !important; bottom: auto !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; margin: 0px !important; outline: 0px !important; overflow: visible !important; position: static !important; right: auto !important; top: auto !important; vertical-align: baseline !important; width: auto !important; min-height: auto !important;&quot;&gt;...&lt;/code&gt;&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;alert-box notice&quot; style=&quot;box-sizing: border-box; color: rgb(85, 85, 85); border-radius: 10px; padding: 10px 10px 10px 36px; margin: 10px; background: url(&amp;quot;/imgs/ui/icon/notice.png&amp;quot;) 10px 50% no-repeat rgb(255, 248, 196); border: 1px solid rgb(242, 199, 121); font-family: 나눔고딕, NanumGothic, 돋움, Dotum; font-size: 14px;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; font-weight: bold; text-transform: uppercase;&quot;&gt;PRIOR 연산자&lt;/span&gt;&amp;nbsp;: 상위행의 컬럼임을 나타낸다. CONNECT BY 절에서 상하위간의 관계를 기술할때 사용.&lt;/div&gt;&lt;p&gt;출처:&amp;nbsp;http://www.gurubee.net/lecture/1300&lt;/p&gt;</description>
      <category>oracle</category>
      <category>connect by</category>
      <category>Hierarchical</category>
      <category>Oracle</category>
      <category>start with</category>
      <category>계층구조</category>
      <category>하이라키</category>
      <author>아이터치</author>
      <guid isPermaLink="true">https://itouch.tistory.com/122</guid>
      <comments>https://itouch.tistory.com/122#entry122comment</comments>
      <pubDate>Tue, 26 Mar 2019 13:27:25 +0900</pubDate>
    </item>
  </channel>
</rss>