<?xml version="1.0" encoding="UTF-8" ?>
<feed xmlns="http://www.w3.org/2005/Atom">
   <title type="text">CUBRID Manual EN 8.4.1</title>
      <subtitle type="html">CUBRID Manual EN 8.4.1</subtitle>
      <updated>2013-05-23T14:38:19-07:00</updated>
   <id>http://www.cubrid.org/manual41/atom</id>
   <link rel="alternate" type="text/html" hreflang="en" href="http://www.cubrid.org/?mid=manual41"/>
   <link rel="self" type="application/atom+xml" href="http://www.cubrid.org/manual41/atom"/>
   <generator uri="http://www.xpressengine.com/" version="1.4.4.1">XpressEngine</generator>
   <entry>
      <title>cubrid_real_escape_string</title>
      <id>http://www.cubrid.org/355692</id>
      <published>2012-05-22T02:40:08-07:00</published>
      <updated>2013-03-06T05:06:29-08:00</updated>
      <link rel="alternate" type="text/html" href="http://www.cubrid.org/355692"/>
      <link rel="replies" type="text/html" href="http://www.cubrid.org/355692#comment"/>
      <author>
         <name>CUBRID</name>
                  <uri>http://www.cubrid.org</uri>
               </author>
            <content type="html">&lt;div class=&quot;xe_content&quot;&gt;&lt;h3&gt;cubrid_real_escape_string&lt;/h3&gt;
&lt;h6&gt;Description&lt;/h6&gt;
&lt;p&gt;The &lt;span class=&quot;keyword&quot;&gt;cubrid_real_escape_string&lt;/span&gt; function returns the escaped string version of the given string. Follow two escape sequence methods should be supported. On the quoted escape sequence, a string quoted with &quot; or &apos; can be applied when system parameter &lt;span class=&quot;var&quot;&gt;ansi_quotes&lt;/span&gt; is set to &quot;yes&quot;. If this option is set to &quot;no&quot;, only a string quoted with &apos;&amp;nbsp;can be applied. The default value is &quot;no&quot;.&lt;/p&gt;
&lt;p&gt;Quoted escape sequence:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;A &apos; inside a string quoted with &apos; may be written as &apos; &apos;&lt;/li&gt;
&lt;li&gt;A &quot; inside a string quoted with &quot; may be written as &quot;&quot; (applied when ansi_quotes=yes)&lt;/li&gt;
&lt;li&gt;A &apos; inside a string quoted with &quot; needs no special treatment and need not be doubled or escaped. (applied when ansi_quotes=yes)&lt;/li&gt;
&lt;li&gt;In the same way, &quot; inside a string quoted with &apos; needs no special treatment.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Backslash escape sequence: This sequence is on by system parameter no_backslash_escapes.&lt;/p&gt;
&lt;p&gt;The following characters can be escaped by backslash: &amp;#92;&apos;, &amp;#92;&quot;, &amp;#92;n, &amp;#92;r, &amp;#92;t, &amp;#92;&amp;#92;, &amp;#92;% &amp;#92;_.&lt;/p&gt;
&lt;p&gt;If this option is set to &quot;no&quot;, backslash escaping will work. The default value is &quot;yes&quot;.&lt;/p&gt;
&lt;h6&gt;Syntax&lt;/h6&gt;
&lt;p class=&quot;syntaxp&quot;&gt;string &lt;span class=&quot;keyword&quot;&gt;cubrid_real_escape_string&lt;/span&gt; (string $&lt;span class=&quot;var&quot;&gt;unescaped_string&lt;/span&gt; [, resource $&lt;span class=&quot;var&quot;&gt;link_identifier&lt;/span&gt; ] )&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span class=&quot;var&quot;&gt;unescaped_string&lt;/span&gt; : The string that is to be escaped.&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;var&quot;&gt;conn_identifier&lt;/span&gt; : The CUBRID connection. If the link identifier is not specified, the last link opened by &lt;a href=&quot;/api_php_connect.htm&quot;&gt;cubrid_connect&lt;/a&gt;() is assumed.&lt;/li&gt;
&lt;/ul&gt;
&lt;h6&gt;Return Value&lt;/h6&gt;
&lt;ul&gt;
&lt;li&gt;Success : Escaped characters&lt;/li&gt;
&lt;li&gt;Failure : FALSE&lt;/li&gt;
&lt;/ul&gt;
&lt;h6&gt;Example&lt;/h6&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;lt; ?php&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;$conn = cubrid_connect(&quot;localhost&quot;, 33000, &quot;demodb&quot;);&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;$unescaped_str = &apos; !&quot;#$%&amp;amp;&amp;#92;&apos;()*+,-./0123456789:;&amp;lt;=&amp;gt;?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[&amp;#92;]^_`abcdefghijklmnopqrstuvwxyz{|}~&apos;;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;$escaped_str = cubrid_real_escape_string($unescaped_str);&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;$len = strlen($unescaped_str);&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;@cubrid_execute($conn, &quot;DROP TABLE cubrid_test&quot;);&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;cubrid_execute($conn, &quot;CREATE TABLE cubrid_test (t char($len))&quot;);&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;cubrid_execute($conn, &quot;INSERT INTO cubrid_test (t) VALUES(&apos;$escaped_str&apos;)&quot;);&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;$req = cubrid_execute($conn, &quot;SELECT * FROM cubrid_test&quot;);&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;$row = cubrid_fetch_assoc($req);&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;var_dump($row);&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;cubrid_close_request($req);&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;cubrid_disconnect($conn);&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;?&amp;gt;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;The above example will output:&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;array(1) {&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;[&quot;t&quot;]=&amp;gt;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;string(95) &quot; !&quot;#$%&amp;amp;&apos;()*+,-./0123456789:;&amp;lt;=&amp;gt;?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[&amp;#92;]^_`abcdefghijklmnopqrstuvwxyz{|}~&quot;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;}&lt;/p&gt;&lt;/div&gt;</content>
                  
   </entry>
   <entry>
      <title>CUBRID Characteristics</title>
      <id>http://www.cubrid.org/337583</id>
      <published>2012-04-19T03:36:30-07:00</published>
      <updated>2012-12-17T04:07:19-08:00</updated>
      <link rel="alternate" type="text/html" href="http://www.cubrid.org/337583"/>
      <link rel="replies" type="text/html" href="http://www.cubrid.org/337583#comment"/>
      <author>
         <name>CUBRID</name>
                  <uri>http://www.cubrid.org</uri>
               </author>
            <content type="html">&lt;div class=&quot;xe_content&quot;&gt;﻿&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot;
    &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;








&lt;style type=&quot;text/css&quot;&gt;
&lt;!--
div.WebHelpPopupMenu { position:absolute;
left:0px;
top:0px;
z-index:4;
visibility:hidden; }
--&gt;
&lt;/style&gt;







 


&lt;h2&gt;CUBRID Characteristics&lt;/h2&gt;
&lt;h6&gt;Transaction Support&lt;/h6&gt;
&lt;p&gt;CUBRID supports the following features to completely ensure the atomicity, consistency, isolation and durability in transactions.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Supporting commit, rollback, savepoint per transaction&lt;/li&gt;
&lt;li&gt;Ensuring transaction consistency in the event of system or database failure&lt;/li&gt;
&lt;li&gt;Ensuring transaction consistency between replications&lt;/li&gt;
&lt;li&gt;Supporting multiple granularity locking of databases, tables and records&lt;/li&gt;
&lt;li&gt;Resolving deadlocks automatically&lt;/li&gt;
&lt;li&gt;Supporting distributed transactions (two-phase commit)&lt;/li&gt;
&lt;/ul&gt;
&lt;h6&gt;Database Backup and Restore&lt;/h6&gt;
&lt;p&gt;A database backup is the process of copying CUBRID database volumes, control files and log files; a database restore is the process of restoring the database to a certain point in time using backup files, active logs and archive logs copied by the backup process. For a restore, there must be the same operating system and the same version of CUBRID installed as in the backup environment.&lt;br /&gt;
The backup methods which CUBRID supports include online, offline and incremental backups; the restore methods include restore using incremental backups as well as partial and full restore.&lt;/p&gt;
&lt;h6&gt;Table Partitioning&lt;/h6&gt;
&lt;p&gt;Partitioning is a method by which a table is divided into multiple independent logical units. Each logical unit is called a partition, and each partition is divided into a different physical space. This will lead performance improvement by only allowing access to the partition when retrieving records. CUBRID provides three partitioning methods:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Range partitioning: Divides a table based on the range of a column value&lt;/li&gt;
&lt;li&gt;Hash partitioning: Divides a table based on the hash value of a column&lt;/li&gt;
&lt;li&gt;List partitioning: Divides a table based on the column value list&lt;/li&gt;
&lt;/ul&gt;
&lt;h6&gt;Supports a Variety of Index Functions&lt;/h6&gt;
&lt;p&gt;CUBRID supports the following index functions to utilize indices while executing a variety of conditional queries.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Descending Index Scan: Descending Index Scan is available only with Ascending Index Scan, without creating separate reverse indexes.&lt;/li&gt;
&lt;li&gt;Covering Index: When the column of a &lt;span class=&quot;keyword&quot;&gt;SELECT&lt;/span&gt; list is included in the index, the requested data can be obtained with an index scan.&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;keyword&quot;&gt;ORDER BY&lt;/span&gt; Clause Optimization: If the required record sorting order is identical to the order of indices, no additional sorting is required (Skip ORDER BY).&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;keyword&quot;&gt;GROUP BY&lt;/span&gt; Clause Optimization: If all columns in the &lt;span class=&quot;keyword&quot;&gt;GROUP BY&lt;/span&gt; clause are included in the indices, they are available to use while executing queries. Therefore, no additional sorting is required (Skip GROUP BY).&lt;/li&gt;
&lt;/ul&gt;
&lt;h6&gt;HA&lt;/h6&gt;
&lt;p&gt;CUBRID provides High Availability (HA) to minimize system down time while continuing normal operation of server in the event of hardware, software, or network failure. The structure of CUBRID HA is shared-nothing. CUBRID monitors its system and status on a real time basis with the CUBRID Heartbeat and performs failover when failure occurs. It follows the two steps below to synchronize data from the master database server to slave database server.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;A transaction log multiplication step where the transaction log created in the database server is replicated in real time to another node&lt;/li&gt;
&lt;li&gt;A transaction log reflection step where data is applied to the slave database server through the analysis of the transaction log being replicated in real time&lt;/li&gt;
&lt;/ol&gt;
&lt;h6&gt;Java Stored Procedure&lt;/h6&gt;
&lt;p&gt;A stored procedure is a method to decrease the complexity of applications and to improve the reusability, security and performance through the separation of database logic and middleware logic. A stored procedure is written in Java (generic language), and provides Java stored procedures running on the Java Virtual Machine (JVM). To execute Java stored procedures in CUBRID, the following steps should be performed:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Install and configure the Java Virtual Machine&lt;/li&gt;
&lt;li&gt;Create Java source files&lt;/li&gt;
&lt;li&gt;Compile the files and load Java resources&lt;/li&gt;
&lt;li&gt;Publish the loaded Java classes so they can be called from the database&lt;/li&gt;
&lt;li&gt;Call the Java stored procedures&lt;/li&gt;
&lt;/ol&gt;
&lt;h6&gt;Click Counter&lt;/h6&gt;
&lt;p&gt;In the Web, it is a common scenario to count and keep the number of clicks to the database in order to record retrieval history.&lt;/p&gt;
&lt;p&gt;The above scenario is generally implemented by using the &lt;span class=&quot;keyword&quot;&gt;SELECT&lt;/span&gt; and &lt;span class=&quot;keyword&quot;&gt;UPDATE&lt;/span&gt; statements; SELECT retrieves the data and UPDATE increases the number of clicks for the retrieved queries.&lt;/p&gt;
&lt;p&gt;This approach can cause significant performance degradation due to increased lock contention for &lt;span class=&quot;keyword&quot;&gt;UPDATE&lt;/span&gt; when a number of &lt;span class=&quot;keyword&quot;&gt;SELECT&lt;/span&gt; statements are executed against the same data.&lt;/p&gt;
&lt;p&gt;To address this issue, CUBRID introduces the new concept of the click counter that will support optimized features in the Web in terms of usability and performance, and provides the &lt;span class=&quot;keyword&quot;&gt;INCR&lt;/span&gt; function and the &lt;span class=&quot;keyword&quot;&gt;WITH INCREMENT FOR&lt;/span&gt; statement.&lt;/p&gt;
&lt;h6&gt;Extending the Relational Data Model&lt;/h6&gt;
&lt;p class=&quot;label&quot;&gt;Collection&lt;/p&gt;
&lt;p&gt;For the relational data model, it is not allowed that a single column has multiple values. In CUBRID, however, you can create a column with several values. For this purpose, collection data types are provided in CUBRID. The collection data type is mainly divided into &lt;span class=&quot;keyword&quot;&gt;SET&lt;/span&gt;, &lt;span class=&quot;keyword&quot;&gt;MULTISET&lt;/span&gt; and &lt;span class=&quot;keyword&quot;&gt;LIST&lt;/span&gt;; the types are distinguished by duplicated availability and order.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span class=&quot;keyword&quot;&gt;SET&lt;/span&gt; : A collection type that does not allow the duplication of elements. Elements are stored without duplication after being sorted regardless of their order of entry.&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;keyword&quot;&gt;MULTISET&lt;/span&gt; : A collection type that allows the duplication of elements. The order of entry is not considered.&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;keyword&quot;&gt;LIST&lt;/span&gt; : A collection type that allows the duplication of elements. Unlike with &lt;span class=&quot;keyword&quot;&gt;SET&lt;/span&gt; and &lt;span class=&quot;keyword&quot;&gt;MULTISET&lt;/span&gt;, the order of entry is maintained.&lt;/li&gt;
&lt;/ul&gt;
&lt;p class=&quot;label&quot;&gt;Inheritance&lt;/p&gt;
&lt;p&gt;Inheritance is a concept to reuse columns and methods of a parent table in those of child tables. CUBRID supports reusability through inheritance. By using inheritance provided by CUBRID, you can create a parent table with some common columns and then create child tables inherited from the parent table with some unique columns added. In this way, you can create a database model which can minimize the number of columns.&lt;/p&gt;
&lt;p class=&quot;label&quot;&gt;Composition&lt;/p&gt;
&lt;p&gt;In a relational database, the reference relationship between tables is defined as a foreign key. If the foreign key consists of multiple columns or the size of the key is significantly large, the performance of join operations between tables will be degraded. However, CUBRID allows the direct use of the physical address (OID) where the records of the referred table are located, so you can define the reference relationship between tables without using join operations.&lt;/p&gt;
&lt;p&gt;That is, in an object-oriented database, you can create a composition relation where one record has a reference value to another by using the column displayed in the referred table as a domain (type), instead of referring to the primary key column from the referred table.&lt;/p&gt;



&lt;/div&gt;</content>
                  
   </entry>
   <entry>
      <title>Introduction to CUBRID Manual</title>
      <id>http://www.cubrid.org/337567</id>
      <published>2012-04-19T03:36:29-07:00</published>
      <updated>2012-12-17T04:05:54-08:00</updated>
      <link rel="alternate" type="text/html" href="http://www.cubrid.org/337567"/>
      <link rel="replies" type="text/html" href="http://www.cubrid.org/337567#comment"/>
      <author>
         <name>CUBRID</name>
                  <uri>http://www.cubrid.org</uri>
               </author>
            <content type="html">&lt;div class=&quot;xe_content&quot;&gt;﻿&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot;
    &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;








&lt;style type=&quot;text/css&quot;&gt;
&lt;!--
div.WebHelpPopupMenu { position:absolute;
left:0px;
top:0px;
z-index:4;
visibility:hidden; }
--&gt;
&lt;/style&gt;







 


&lt;h2&gt;Introduction to Manual&lt;/h2&gt;
&lt;h6&gt;Manual Contents&lt;/h6&gt;
&lt;p&gt;The contents of the CUBRID Database Management System (CUBRID DBMS) product manual are as follows:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;/manual/841/en/Introduction to CUBRID&quot;&gt;Introduction to CUBRID&lt;/a&gt; : This chapter provides a description of the structure and characteristics of the CUBRID DBMS.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;/manual/841/en/Getting Started with CUBRID&quot;&gt;Getting Started with CUBRID&lt;/a&gt; : The &quot;Getting Started with CUBRID&quot; provides users with a brief explanation on what to do when first starting CUBRID. The chapter contains information on new features added to CUBRID, on how to install and execute the system, and provides a simple guide on how to use the CSQL Interpreter and CUBRID Manager. The chapter also includes examples of how to write application programs using JDBC, PHP, ODBC, CCI, etc.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;/manual/841/en/Introduction to Cubrid Manual-CSQL Interpreter&quot;&gt;CSQL Interpreter&lt;/a&gt; : CSQL is an application that allows you to use SQL statements through a command-driven interface. This chapter explains how to use the CSQL Interpreter and associated commands.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;/manual/841/en/CUBRID SQL Guide&quot;&gt;CUBRID SQL Guide&lt;/a&gt; : This chapter describes SQL syntaxes such as data types, functions and operators, data retrieval or table manipulation. The chapter also provides SQL syntaxes used for indexes, triggers, partitioning, serial and user information changes, etc.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;/manual/841/en/Administrator&apos;s Guide&quot;&gt;Administrator&apos;s Guide&lt;/a&gt; : This chapter provides instructions on how to create, drop, back up, restore&amp;#160;and migrate a database, and executing CUBRID HA. Also it includes instructions on how to use CUBRID utilities, which starts and stops the Server, Broker and CUBRID Manager servers, etc.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;/manual/841/en/Performance Tuning&quot;&gt;Performance Tuning&lt;/a&gt; : The &quot;Performance Tuning&quot; chapter provides instructions on setting system parameters that may influence the performance. This chapter provides information on how to use the configuration file for the Server and Broker, and describes the meaning of each parameter.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;/manual/841/en/API Reference&quot;&gt;API Reference&lt;/a&gt; : This chapter provides information on JDBC API, ODBC API, OLE DB API, PHP API, and CCI API.&lt;/li&gt;
&lt;/ul&gt;
&lt;h6&gt;Manual Conventions&lt;/h6&gt;
&lt;p&gt;The following table provides conventions on definitions used in the CUBRID Database Management System product manual to identify &quot;statements,&quot; &quot;commands&quot; and &quot;reference within texts.&quot;&lt;/p&gt;
&lt;table border=&quot;1&quot; width=&quot;80%&quot;&gt;
&lt;tr&gt;
&lt;th&gt;
&lt;p&gt;Convention&lt;/p&gt;
&lt;/th&gt;
&lt;th&gt;
&lt;p&gt;Description&lt;/p&gt;
&lt;/th&gt;
&lt;th&gt;
&lt;p&gt;Example&lt;/p&gt;
&lt;/th&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p&gt;&lt;i&gt;Italics&lt;/i&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;&lt;i&gt;Italics&lt;/i&gt; type is used to show the variable names.&lt;/p&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;&lt;span class=&quot;var&quot;&gt;persistent&lt;/span&gt;:&lt;br /&gt;
stringVariableName&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p class=&quot;keyword&quot;&gt;Boldface&lt;/p&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;&lt;span class=&quot;keyword&quot;&gt;Boldface&lt;/span&gt; type is used for names such as the member function name, class name, constants, CUBRID keyword or names such as other required characters.&lt;/p&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;&lt;span class=&quot;keyword&quot;&gt;fetch&lt;/span&gt; ( ) member function&lt;br /&gt;
class &lt;span class=&quot;keyword&quot;&gt;odb_User&lt;/span&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p&gt;&lt;font face=&quot;courier new&quot;&gt;Constant Width&lt;/font&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;&lt;font face=&quot;courier new&quot;&gt;Constant Width type&lt;/font&gt; is used to show segments of code example or describes a command&apos;s execution and results.&lt;/p&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;&lt;font face=&quot;courier new&quot;&gt;csql database_name&lt;/font&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p&gt;UPPER-CASE&lt;/p&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;UPPER-CASE is used to show the CUBRID keyword (see &lt;span class=&quot;keyword&quot;&gt;Boldface&lt;/span&gt;).&lt;/p&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;p class=&quot;keyword&quot;&gt;SELECT&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p&gt;Single Quotes (&apos; &apos;)&lt;/p&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;Single quotes (&apos; &apos;) are used with braces and brackets, and shows the necessary sections of a syntax. Single quotes are also used to enclose strings.&lt;/p&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;{&apos;{&apos;const_list&apos;}&apos;}&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p&gt;Brackets ([ ])&lt;/p&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;Brackets ([ ]) indicate optional parameters or keywords.&lt;/p&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;[ONLY]&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p&gt;Underline( _ )&lt;/p&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;Underline (_) indicates a default keyword if no keyword is specified.&lt;/p&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;[&lt;u&gt;DISTINCT&lt;/u&gt;|UNIQUE|ALL]&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p&gt;Vertical bar( | )&lt;/p&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;Vertical bar (|) indicates that one or another option can be specified.&lt;/p&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;[COLUMN|ATTRIBUTE]&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p&gt;Braces around parameters({&amp;#160; })&lt;/p&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;Braces around parameters indicate that one of those parameters must be specified in a statement syntax.&lt;/p&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;{2, 4, 6}&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p&gt;Braces with ellipsis({ }...)&lt;/p&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;Braces before an ellipsis indicate that a parameter can be repeated.&lt;/p&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;{, class_name}...&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p&gt;Angle brackets(&amp;lt; &amp;gt;)&lt;/p&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;Angle brackets indicate a single key or a series of key strokes.&lt;/p&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;&amp;lt;Ctrl+n&amp;gt;&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;



&lt;/div&gt;</content>
                  
   </entry>
   <entry>
      <title>Savepoint and Partial Rollback</title>
      <id>http://www.cubrid.org/338387</id>
      <published>2012-04-19T03:36:55-07:00</published>
      <updated>2012-10-05T06:07:52-07:00</updated>
      <link rel="alternate" type="text/html" href="http://www.cubrid.org/338387"/>
      <link rel="replies" type="text/html" href="http://www.cubrid.org/338387#comment"/>
      <author>
         <name>CUBRID</name>
                  <uri>http://www.cubrid.org</uri>
               </author>
            <content type="html">&lt;div class=&quot;xe_content&quot;&gt;﻿&lt;!--?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?--&gt;









&lt;style type=&quot;text/css&quot;&gt;
&lt;!--
div.WebHelpPopupMenu { position:absolute;
left:0px;
top:0px;
z-index:4;
visibility:hidden; }
--&gt;
&lt;/style&gt;







 


&lt;h4&gt;Savepoint and Partial Rollback&lt;/h4&gt;
&lt;h6&gt;Description&lt;/h6&gt;
&lt;p&gt;A savepoint is established during the transaction so that database changes made by the transaction are rolled back to the specified savepoint. Such operation is called a partial rollback. In a partial rollback, database operations (insert, update, delete, etc.) after the savepoint are rolled back, and transaction operations before it are not rolled back. The transaction can proceed with other operations after the partial rollback is executed. Or the transaction can be terminated with the &lt;span class=&quot;keyword&quot;&gt;COMMIT WORK&lt;/span&gt; or &lt;span class=&quot;keyword&quot;&gt;ROLLBACK WORK&lt;/span&gt; statement. Note that the savepoint does not commit the changes made by the transaction.&lt;/p&gt;
&lt;p&gt;A savepoint can be created at a certain point of the transaction, and multiple savepoints can be used for a certain point. If a partial rollback is executed to a savepoint before the specified savepoint or the transaction is terminated with the &lt;span class=&quot;keyword&quot;&gt;COMMIT WORK&lt;/span&gt; or &lt;span class=&quot;keyword&quot;&gt;ROLLBACK WORK&lt;/span&gt; statement, the specified savepoint is removed. The partial rollback after the specified savepoint can be performed multiple times.&lt;/p&gt;
&lt;p&gt;Savepoints are useful because intermediate steps can be created and named to control long and complicated utilities. For example, if you use a savepoint during the update operation, you don&apos;t need to perform all statements again when you made a mistake.&lt;/p&gt;&lt;p&gt;&lt;b&gt;Note: &lt;/b&gt;In order for savepoints to work, &lt;b&gt;autocommit &lt;/b&gt;option must be disabled.&lt;/p&gt;
&lt;h6&gt;Syntax 1&lt;/h6&gt;
&lt;p class=&quot;syntaxp&quot;&gt;&lt;span class=&quot;keyword&quot;&gt;SAVEPOINT&lt;/span&gt; &lt;span class=&quot;var&quot;&gt;mark&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;syntaxp&quot;&gt;&lt;span class=&quot;var&quot;&gt;mark&lt;/span&gt;:&lt;/p&gt;
&lt;p class=&quot;syntaxp&quot;&gt;_ a SQL identifier&lt;/p&gt;
&lt;p class=&quot;syntaxp&quot;&gt;_ a host variable (starting with :)&lt;/p&gt;
&lt;p&gt;If you make &lt;span class=&quot;var&quot;&gt;mark&lt;/span&gt; all the same value when you specify multiple savepoints in a single transaction, only the latest savepoint appears in the partial rollback. The previous savepoints remain hidden until the rollback to the latest savepoint is performed and then appears when the latest savepoint disappears after being used.&lt;/p&gt;
&lt;h6&gt;Syntax 2&lt;/h6&gt;
&lt;p class=&quot;syntaxp&quot;&gt;&lt;span class=&quot;keyword&quot;&gt;ROLLBACK&lt;/span&gt; [ &lt;span class=&quot;keyword&quot;&gt;WORK&lt;/span&gt; ] [ &lt;span class=&quot;keyword&quot;&gt;TO&lt;/span&gt; [ &lt;span class=&quot;keyword&quot;&gt;SAVEPOINT&lt;/span&gt; ] &lt;span class=&quot;var&quot;&gt;mark&lt;/span&gt; ] [ ]&lt;/p&gt;
&lt;p class=&quot;syntaxp&quot;&gt;&lt;span class=&quot;var&quot;&gt;mark&lt;/span&gt;:&lt;/p&gt;
&lt;p class=&quot;syntaxp&quot;&gt;_ a SQL identifier&lt;/p&gt;
&lt;p class=&quot;syntaxp&quot;&gt;_ a host variable (starting with :)&lt;/p&gt;
&lt;p&gt;Previously, the &lt;span class=&quot;keyword&quot;&gt;ROLLBACK WORK&lt;/span&gt; statement canceled all database changes added since the latest transaction. The &lt;span class=&quot;keyword&quot;&gt;ROLLBACK WORK&lt;/span&gt; statement is also used for the partial rollback that rolls back the transaction changes after the specified savepoint.&lt;/p&gt;
&lt;p&gt;If &lt;span class=&quot;var&quot;&gt;mark&lt;/span&gt; value is not given, the transaction terminates canceling all changes including all savepoints created in the transaction. If &lt;span class=&quot;var&quot;&gt;mark&lt;/span&gt; value is given, changes after the specified savepoint are canceled and the ones before it are remained.&lt;/p&gt;
&lt;h6&gt;Example&lt;/h6&gt;
&lt;p&gt;The following example shows how to roll back part of the transaction.&lt;/p&gt;
&lt;p&gt;First, set savepoints SP1 and SP2.&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;CREATE TABLE athlete2 (name VARCHAR(40), gender CHAR(1), nation_code CHAR(3), event VARCHAR(30));&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;INSERT INTO athlete2(name, gender, nation_code, event)&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;VALUES (&apos;Lim Kye-Sook&apos;, &apos;W&apos;, &apos;KOR&apos;, &apos;Hockey&apos;);&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;SAVEPOINT SP1;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;SELECT * from athlete2;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;INSERT INTO athlete2(name, gender, nation_code, event)&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;VALUES (&apos;Lim Jin-Suk&apos;, &apos;M&apos;, &apos;KOR&apos;, &apos;Handball&apos;);&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;SELECT * FROM athlete2;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;SAVEPOINT SP2;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;RENAME TABLE athlete2 AS sportsman;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;SELECT * FROM sportsman;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;ROLLBACK WORK TO SP2;&lt;/p&gt;
&lt;p&gt;In the example above, the name change of the athlete2 table is rolled back by the partial rollback. The following example shows how to execute the query with the original name and examining the result.&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;SELECT * FROM athlete2;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;DELETE FROM athlete2 WHERE name = &apos;Lim Jin-Suk&apos;;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;SELECT * FROM athlete2;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;ROLLBACK WORK TO SP2;&lt;/p&gt;
&lt;p&gt;In the example above, deleting &apos;Lim Jin-Suk&apos; is discarded by rollback work to SP2 command.&lt;/p&gt;
&lt;p&gt;The following example shows how to roll back to SP1.&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;SELECT * FROM athlete2;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;ROLLBACK WORK TO SP1;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;SELECT * FROM athlete2;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;COMMIT WORK;&lt;/p&gt;&lt;/div&gt;</content>
                  
   </entry>
   <entry>
      <title>DROP INDEX Clause</title>
      <id>http://www.cubrid.org/337803</id>
      <published>2012-04-19T03:36:37-07:00</published>
      <updated>2012-09-25T08:19:54-07:00</updated>
      <link rel="alternate" type="text/html" href="http://www.cubrid.org/337803"/>
      <link rel="replies" type="text/html" href="http://www.cubrid.org/337803#comment"/>
      <author>
         <name>CUBRID</name>
                  <uri>http://www.cubrid.org</uri>
               </author>
            <content type="html">&lt;div class=&quot;xe_content&quot;&gt;&lt;h4&gt;DROP INDEX Clause&lt;/h4&gt;
&lt;h6&gt;Description&lt;/h6&gt;
&lt;p&gt;You can delete an index defined for a column by using the &lt;span class=&quot;keyword&quot;&gt;DROP INDEX&lt;/span&gt; clause.&lt;/p&gt;
&lt;h6&gt;Syntax&lt;/h6&gt;
&lt;p class=&quot;syntaxp&quot;&gt;&lt;span class=&quot;keyword&quot;&gt;ALTER&lt;/span&gt; [ &lt;span class=&quot;keyword&quot;&gt;TABLE&lt;/span&gt; | &lt;span class=&quot;keyword&quot;&gt;CLASS&lt;/span&gt; ] &lt;span class=&quot;var&quot;&gt;table_name&lt;/span&gt; &lt;span class=&quot;keyword&quot;&gt;DROP [ &lt;span class=&quot;keyword&quot;&gt;REVERSE&lt;/span&gt; ] [ &lt;span class=&quot;keyword&quot;&gt;UNIQUE&lt;/span&gt; ] INDEX &lt;/span&gt;&amp;nbsp;&lt;span class=&quot;var&quot;&gt;index_name&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span class=&quot;keyword&quot;&gt;REVERSE&lt;/span&gt; : Specifies that the index to be dropped is a reverse index.&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;keyword&quot;&gt;UNIQUE&lt;/span&gt; : Specifies that the index to be dropped is a unique index.&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;var&quot;&gt;table_name&lt;/span&gt; : Specifies the name of a table that has an index attribute to be deleted.&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;var&quot;&gt;index_name&lt;/span&gt; : Specifies the name of an index to be deleted.&lt;/li&gt;
&lt;/ul&gt;
&lt;h6&gt;Examples&lt;/h6&gt;
&lt;p class=&quot;codep&quot;&gt;ALTER TABLE a_tbl DROP INDEX i_a_tbl_age;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;ALTER TABLE a_tbl DROP UNIQUE INDEX i_a_tbl_age;&lt;/p&gt;&lt;/div&gt;</content>
                  
   </entry>
   <entry>
      <title>Installing the PHP Module</title>
      <id>http://www.cubrid.org/337615</id>
      <published>2012-04-19T03:36:31-07:00</published>
      <updated>2012-08-28T02:50:34-07:00</updated>
      <link rel="alternate" type="text/html" href="http://www.cubrid.org/337615"/>
      <link rel="replies" type="text/html" href="http://www.cubrid.org/337615#comment"/>
      <author>
         <name>CUBRID</name>
                  <uri>http://www.cubrid.org</uri>
               </author>
            <content type="html">&lt;div class=&quot;xe_content&quot;&gt;&lt;h3&gt;Installing the PHP Module&lt;/h3&gt;
&lt;h6&gt;Installing Required Software&lt;/h6&gt;
&lt;p&gt;You should install the software below, first:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Apache Web server : Version 2.0 or later&lt;/li&gt;
&lt;li&gt;PHP : Version 5.2 or later&lt;/li&gt;
&lt;li&gt;CUBRID&lt;/li&gt;
&lt;/ul&gt;
&lt;h6 class=&quot;keyword&quot;&gt;Downloading PHP Modules&lt;/h6&gt;
&lt;p&gt;Download drives from &lt;a href=&quot;ftp://ftp.cubrid.org/CUBRID_Drivers/PHP_Driver/.&quot;&gt;ftp://ftp.cubrid.org/CUBRID_Drivers/PHP_Driver/&lt;/a&gt;. For latest information on PHP drives, visit Web site &lt;a href=&quot;/php_api_for_cubrid&quot; target=&quot;_blank&quot;&gt;(http://www.cubrid.org/php_api_for_cubrid&lt;/a&gt;).&lt;/p&gt;
&lt;h6&gt;Installing for Windows&lt;/h6&gt;
&lt;ol&gt;
&lt;li&gt;Store the &lt;span class=&quot;keyword&quot;&gt;php_cubrid.dll&lt;/span&gt; file under PHP extension directory (default location : C:&amp;#92;Program Files&amp;#92;PHP&amp;#92;ext).&lt;/li&gt;
&lt;li&gt;Configure the system configuration variable. The environment variable value of PHPRC should be &lt;span class=&quot;keyword&quot;&gt;C:&amp;#92;Program Files&amp;#92;PHP&lt;/span&gt; and &amp;nbsp;&lt;span class=&quot;keyword&quot;&gt;%PHPRC%&lt;/span&gt; and &lt;span class=&quot;keyword&quot;&gt;%PHPRC%ext&lt;/span&gt;&quot; should be added to the value of Path environment variable.&lt;/li&gt;
&lt;li&gt;Add the following line at the end of the &lt;span class=&quot;keyword&quot;&gt;php.ini&lt;/span&gt; file (default location : C:&amp;#92;Program Files&amp;#92;PHP&amp;#92;php.ini).
&lt;ul&gt;
&lt;li class=&quot;codep&quot;&gt;[PHP_CUBRID] extension=php_cubrid.dll&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Once configuration is complete, restart the Web server.&lt;/li&gt;
&lt;/ol&gt;
&lt;h6&gt;Installing for Linux&lt;/h6&gt;
&lt;ol&gt;
&lt;li&gt;Store the &lt;span class=&quot;keyword&quot;&gt;cubrid.so&lt;/span&gt; file under PHP extensions directory. The file is usually located under /usr/lib/php5/20090626 in PHP 5.3.3; however, the location depends on PHP versions).&lt;/li&gt;
&lt;li&gt;Add the following line at the end of the &lt;span class=&quot;keyword&quot;&gt;php.ini&lt;/span&gt; file (default location : /etc/php5/apache2/php.ini).
&lt;ul&gt;
&lt;li class=&quot;codep&quot;&gt;[CUBRID] extension=cubrid.so&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Once configuration is complete, restart the Web server.&lt;/li&gt;
&lt;/ol&gt;
&lt;h5&gt;Installing Package&lt;/h5&gt;
&lt;h6&gt;Using the Installation Wizard for Windows&lt;/h6&gt;
&lt;p&gt;You can download CUBRID PHP API Installer from &lt;a href=&quot;/php_install_wizard&quot; target=&quot;_blank&quot;&gt;http://www.cubrid.org/php_install_wizard&lt;/a&gt;.&lt;/p&gt;
&lt;h6&gt;Installing by Using PEAR Package for Ubuntu Linux&lt;/h6&gt;
&lt;p&gt;First, you must set up phpize and PEAR package. Follow the steps below.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Install Apache Web server and PHP. For information on installation of Apache Web server and PHP, visit the Web site (&lt;a href=&quot;/cubrid_apache_php_ubuntu&quot; target=&quot;_blank&quot;&gt;http://www.cubrid.org/cubrid_apache_php_ubuntu&lt;/a&gt;).&lt;/li&gt;
&lt;li&gt;Execute the following line to set up phpize.
&lt;ol&gt;
&lt;li class=&quot;codep&quot;&gt;sudo apt-get install php5-dev&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;Execute the following line to install PEAR package.
&lt;ol&gt;
&lt;li class=&quot;codep&quot;&gt;sudo apt-get install php-pear&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;Execute the pecl command in PEAR package so that the latest CUBRID PHP extension can be installed.
&lt;ul&gt;
&lt;li class=&quot;codep&quot;&gt;sudo pecl install cubrid&lt;/li&gt;
&lt;/ul&gt;
&lt;ul&gt;
&lt;li class=&quot;bul_d2&quot;&gt;To install the earlier version of PHP drivers, you must specify the desired version.&lt;/li&gt;
&lt;/ul&gt;
&lt;ol&gt;
&lt;li class=&quot;codep&quot;&gt;sudo pecl install cubrid-8.3.0.0005&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;Add the following line at the end of the php.ini file (default location : /etc/php5/apache2/php.ini).
&lt;ol&gt;
&lt;li class=&quot;codep&quot;&gt;[CUBRID] extension=cubrid.so&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;Once configuration is complete, restart the Web server.&lt;/li&gt;
&lt;/ol&gt;
&lt;h6&gt;Installing by Using PEAR Package for Linux Except for Version Ubuntu&lt;/h6&gt;
&lt;p&gt;First, you must install phpize and PEAR package. Follow the steps below.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Set up phpzie. The version php-dev must be PHP 5.2.x or PHP 5.3.x. If you are using the earlier version of PHP, update PHP before proceeding with installation.
&lt;ol&gt;
&lt;li class=&quot;codep&quot;&gt;yum install php-devel&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;Download PEAR package.
&lt;ol&gt;
&lt;li class=&quot;codep&quot;&gt;wget http://pear.php.net/go-pear.phar&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;Install PEAR package.
&lt;ol&gt;
&lt;li class=&quot;codep&quot;&gt;php go-pear.phar&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;Install the latest verions of CUBRID-PHP Extension.
&lt;ol&gt;
&lt;li class=&quot;codep&quot;&gt;pecl install cubrid&lt;/li&gt;
&lt;/ol&gt;
&lt;ul&gt;
&lt;li class=&quot;bul_d2&quot;&gt;To install the earlier version of PHP drivers, you must specify the desired version.&lt;/li&gt;
&lt;/ul&gt;
&lt;ul&gt;
&lt;li class=&quot;codep&quot;&gt;sudo pecl install cubrid-8.3.0.0005&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Add the following line at the end of the php.ini file (default location : /etc/php5/apache2/php.ini).
&lt;ol&gt;
&lt;li class=&quot;codep&quot;&gt;[CUBRID] extension=cubrid.so&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li&gt;Once configuration is complete, restart the Web server.
&lt;p class=&quot;note&quot;&gt;&lt;span class=&quot;notice-title&quot;&gt;Note&lt;/span&gt; If you use the phpinfo() function to create test.php and verify that CUBRID configuration page is properly displayed after entering &lt;a href=&quot;http://&quot;&gt;http://&lt;/a&gt;&amp;lt;IP address in which Web server is installed&amp;gt;/test.php, it means installation is successfully done.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;&lt;/div&gt;</content>
                  
   </entry>
   <entry>
      <title>Setting up the JDBC Environment</title>
      <id>http://www.cubrid.org/337609</id>
      <published>2012-04-19T03:36:31-07:00</published>
      <updated>2012-08-28T00:58:29-07:00</updated>
      <link rel="alternate" type="text/html" href="http://www.cubrid.org/337609"/>
      <link rel="replies" type="text/html" href="http://www.cubrid.org/337609#comment"/>
      <author>
         <name>CUBRID</name>
                  <uri>http://www.cubrid.org</uri>
               </author>
            <content type="html">&lt;div class=&quot;xe_content&quot;&gt;﻿&lt;!--?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?--&gt;









&lt;style type=&quot;text/css&quot;&gt;
&lt;!--
div.WebHelpPopupMenu { position:absolute;
left:0px;
top:0px;
z-index:4;
visibility:hidden; }
--&gt;
&lt;/style&gt;







 


&lt;h3&gt;Setting up the JDBC Environment&lt;/h3&gt;
&lt;h6&gt;System Requirements&lt;/h6&gt;
&lt;ul&gt;
&lt;li&gt;JDK 1.6 or later&lt;/li&gt;
&lt;li&gt;CUBRID 2008 R1.0 or later&lt;/li&gt;
&lt;li&gt;CUBRID JDBC Driver 2008 R1.0 or later&lt;/li&gt;
&lt;/ul&gt;
&lt;h6&gt;Installing and Configuring Java Environment&lt;/h6&gt;
&lt;p&gt;You must already have Java installed and the JAVA_HOME environment variable set on your system. To install Java, download it from the Java homepage (&lt;a href=&quot;http://java.sun.com&quot; target=&quot;_blank&quot;&gt;http://java.sun.com&lt;/a&gt;). For more information, see &lt;a href=&quot;/manual/841/en/Environment Configuration for Java Stored Function|Procedure&quot;&gt;Environment Settings for Java Stored Functions/Procedures&lt;/a&gt;.&lt;/p&gt;
&lt;p class=&quot;label&quot;&gt;Configuring Envrionment Variables for Windows&lt;/p&gt;
&lt;p&gt;After installing JAVA, double click [My Computer] and click [System Properties]. In the [Advanced] tab, click [Envrionment Variables]. The [Environment Variables] dialog will appear.&lt;/p&gt;
&lt;p&gt;In the [System Variables], click [New]. Enter &lt;span class=&quot;keyword&quot;&gt;JAVA_HOME&lt;/span&gt; and Java installation path such as C:&amp;#92;Program Files&amp;#92;Java&amp;#92;jdk1.6.0_16 and then press [Enter].&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;http://www.cubrid.org/files/attach/images/337566/609/337/gs_app_jdbc_setting_javahome.png&quot; alt=&quot;gs_app_jdbc_setting_javahome.png&quot; title=&quot;gs_app_jdbc_setting_javahome.png&quot; class=&quot;iePngFix&quot; style=&quot;&quot; /&gt;&lt;/p&gt;
&lt;p&gt;Select &quot;Path&quot; and then click [Edit]. Add &lt;span class=&quot;keyword&quot;&gt;%JAVA_HOME%bin&lt;/span&gt; to the variable and then click [OK].&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;http://www.cubrid.org/files/attach/images/337566/609/337/gs_app_jdbc_setting_path.png&quot; alt=&quot;gs_app_jdbc_setting_path.png&quot; title=&quot;gs_app_jdbc_setting_path.png&quot; class=&quot;iePngFix&quot; style=&quot;&quot; /&gt;&lt;/p&gt;
&lt;p&gt;You can configure &lt;span class=&quot;keyword&quot;&gt;JAVA_HOME&lt;/span&gt; and &lt;span class=&quot;keyword&quot;&gt;PATH&lt;/span&gt; in the shell.&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;set JAVA_HOME= C:&amp;#92;Program Files&amp;#92;Java&amp;#92;jdk1.6.0_16&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;set PATH=%PATH%;%JAVA_HOME%bin &amp;nbsp;&lt;/p&gt;
&lt;p class=&quot;label&quot;&gt;Configuring the Environment Variables for Linux&lt;/p&gt;
&lt;p&gt;Specify the directory path where Java is installed (example : /usr/java/jdk1.6.0_16) in the &lt;span class=&quot;keyword&quot;&gt;JAVA_HOME&lt;/span&gt; environment variable, and add &lt;span class=&quot;keyword&quot;&gt;$JAVA_HOME/bin&lt;/span&gt; to the &lt;span class=&quot;keyword&quot;&gt;PATH&lt;/span&gt; environment variable.&amp;nbsp;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;export JAVA_HOME=/usr/java/jdk1.6.0_16 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;//bash&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;export PATH=$JAVA_HOME/bin:$PATH &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;//bash&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;setenv JAVA_HOME /usr/java/jdk1.6.0_16 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;//csh&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;set path = ($JAVA_HOME/bin $path) &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;//csh&lt;/p&gt;
&lt;h6&gt;JDBC Driver Setting&lt;/h6&gt;
&lt;p&gt;To use the JDBC, set your &lt;span class=&quot;keyword&quot;&gt;CLASSPATH&lt;/span&gt; environment variable to the path where the CUBRID JDBC driver is located.&lt;/p&gt;
&lt;p&gt;The CUBRID JDBC driver (&lt;span class=&quot;keyword&quot;&gt;cubrid_jdbc.jar&lt;/span&gt;)&amp;nbsp;is located in jdbc directory which is subdirectory where CUBRID is installed.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;http://www.cubrid.org/files/attach/images/337566/609/337/img2.png&quot; alt=&quot;img2.png&quot; title=&quot;img2.png&quot; class=&quot;iePngFix&quot; style=&quot;&quot; /&gt;&lt;/p&gt;
&lt;p class=&quot;label&quot;&gt;Configuring the CLASSPATH Environment Variables for Windows&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;set CLASSPATH=%CUBRID%jdbccubrid_jdbc.jar:.&lt;/p&gt;
&lt;p class=&quot;label&quot;&gt;Configuring the CLASSPATH Environment Variables for Linux&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;export CLASSPATH=$HOME/CUBRID/jdbc/cubrid_jdbc.jar:.&amp;nbsp;&lt;/p&gt;
&lt;p class=&quot;note&quot;&gt;&lt;span class=&quot;note-title&quot;&gt;Note&lt;/span&gt; If a CUBRID JDBC driver has been installed in the same library directory (&lt;span class=&quot;keyword&quot;&gt;$JAVA_HOME/jre/lib/ext&lt;/span&gt;) where the JRE is located, it may be loaded ahead of the server-side JDBC driver used by the Java stored procedure, causing it to malfunction. In a Java stored procedure environment, make sure not to install the generic CUBRID JDBC driver in the directory where the JRE is installed (&lt;span class=&quot;keyword&quot;&gt;$JAVA_HOME/jre/lib/ext&lt;/span&gt;).&lt;/p&gt;&lt;/div&gt;</content>
                  
   </entry>
   <entry>
      <title>Installing and Running on Linux</title>
      <id>http://www.cubrid.org/337589</id>
      <published>2012-04-19T03:36:31-07:00</published>
      <updated>2012-07-10T06:26:34-07:00</updated>
      <link rel="alternate" type="text/html" href="http://www.cubrid.org/337589"/>
      <link rel="replies" type="text/html" href="http://www.cubrid.org/337589#comment"/>
      <author>
         <name>CUBRID</name>
                  <uri>http://www.cubrid.org</uri>
               </author>
            <content type="html">&lt;div class=&quot;xe_content&quot;&gt;﻿&lt;!--?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?--&gt;









&lt;style type=&quot;text/css&quot;&gt;
&lt;!--
div.WebHelpPopupMenu { position:absolute;
left:0px;
top:0px;
z-index:4;
visibility:hidden; }
--&gt;
&lt;/style&gt;







 


&lt;h3&gt;Installing and Running on Linux&lt;/h3&gt;
&lt;h6&gt;Details to Check when Installing&lt;/h6&gt;
&lt;p&gt;Check the following before installing CUBRID for Linux.&lt;/p&gt;
&lt;table border=&quot;1&quot; width=&quot;80%&quot;&gt;
&lt;tbody&gt;&lt;tr&gt;
&lt;th width=&quot;130&quot;&gt;
&lt;p&gt;Category&lt;/p&gt;
&lt;/th&gt;
&lt;th&gt;
&lt;p&gt;Description&lt;/p&gt;
&lt;/th&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td width=&quot;130&quot;&gt;
&lt;p&gt;Operating system&lt;/p&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;Only supports glibc 2.3.4 or later.&lt;br /&gt;
The glibc version can be checked as follows:&lt;br /&gt;
rpm -q glibc&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td width=&quot;130&quot;&gt;
&lt;p&gt;64-bit&lt;/p&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;Since version 2008 R2.0, CUBRID supports both 32-bit and 64-bit Linux. You can check the version as follows:&lt;br /&gt;
% uname -a&lt;br /&gt;
Linux host_name 2.6.18-53.1.14.el5xen #1 SMP Wed Mar 5 12:08:17 EST 2008 x86_64 x86_64 x86_64 GNU/Linux&lt;br /&gt;
Make sure to install the CUBRID 32-bit version on 32-bit Linux and the CUBRID 64-bit version on 64-bit Linux. The followings are the libraries that should be added.&lt;br /&gt;
Curses Library (rpm -q ncurses)&lt;br /&gt;
gcrypt Library (rpm -q libgcrypt&lt;br /&gt;
stdc++ Library (rpm -q libstdc++)&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td width=&quot;130&quot;&gt;
&lt;p&gt;Available free memory space&lt;/p&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;1 GB or more recommended.&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td width=&quot;130&quot;&gt;
&lt;p&gt;Available free disk space&lt;/p&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;2 GB or more recommended (500 MB is required for initial installation and 1.5 GB is required for creating the default option database).&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td width=&quot;130&quot;&gt;
&lt;p&gt;Required software&lt;/p&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;The CUBRID Manager and Java stored procedures require the Java Runtime Environment (JRE) version 1.6 or later.&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;h6&gt;Installing CUBRID&lt;/h6&gt;
&lt;p&gt;The installation program consists shell scripts that contain binary; thus it can be installed automatically. The following example shows how to install CUBRID with the &quot;CUBRID-8.3.0.0312-linux.x86_64.sh&quot; file on the Linux.&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;[cub_user@cubrid ~]$ sh CUBRID-8.3.1.0168-linux.x86_64.sh&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;Do you agree to the above license terms? (yes or no) : yes&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;Do you want to install this software(CUBRID) to the default(/home1/cub_user/CUBRID) directory? (yes or no) [Default: yes] : yes&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;Install CUBRID to &apos;/home1/cub_user/CUBRID&apos; ...&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;In case a different version of the CUBRID product is being used in other machines, please note that the CUBRID 2008 R3.1 servers are only compatible with the CUBRID 2008 R3.1 clients and vice versa.&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;Do you want to continue? (yes or no) [Default: yes] : yes&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;Copying old .cubrid.sh to .cubrid.sh.bak ...&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;CUBRID has been successfully installed.&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;demodb has been successfully created.&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;If you want to use CUBRID, run the following commands&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;% . /home1/cub_user/.cubrid.sh&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;% cubrid service start&lt;/p&gt;
&lt;p&gt;As shown in the example above, after installing the downloaded file (CUBRID-8.3.1.0168-linux.x86_64.sh), the CUBRID related environment variables must be set in order to use the CUBRID database. Such setting has been made automatically when logging in the concerned terminal. Therefore there is no need to re-set after the first installation.&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;[cub_user@cubrid ~]$ . /home1/cub_user/.cubrid.sh&lt;/p&gt;
&lt;p&gt;After the CUBRID Manager is installed, you can start the CUBRID Manager server and Broker as follows:&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;[cub_user@cubrid ~]$ cubrid service start&lt;/p&gt;
&lt;p&gt;After starting the CUBRID service, if you wish to check whether the service was properly started, then check whether the cub_* processes have been started with grep (as shown below).&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;[cub_user@cubrid ~]$ ps -ef | grep cub_&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;cub_user 15200 1 0 18:57 ? 00:00:00 cub_master&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;cub_user 15205 1 0 18:57 pts/17 00:00:00 cub_broker&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;cub_user 15210 1 0 18:57 pts/17 00:00:00 query_editor_cub_cas_1&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;cub_user 15211 1 0 18:57 pts/17 00:00:00 query_editor_cub_cas_2&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;cub_user 15212 1 0 18:57 pts/17 00:00:00 query_editor_cub_cas_3&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;cub_user 15213 1 0 18:57 pts/17 00:00:00 query_editor_cub_cas_4&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;cub_user 15214 1 0 18:57 pts/17 00:00:00 query_editor_cub_cas_5&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;cub_user 15217 1 0 18:57 pts/17 00:00:00 cub_broker&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;cub_user 15222 1 0 18:57 pts/17 00:00:00 broker1_cub_cas_1&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;cub_user 15223 1 0 18:57 pts/17 00:00:00 broker1_cub_cas_2&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;cub_user 15224 1 0 18:57 pts/17 00:00:00 broker1_cub_cas_3&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;cub_user 15225 1 0 18:57 pts/17 00:00:00 broker1_cub_cas_4&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;cub_user 15226 1 0 18:57 pts/17 00:00:00 broker1_cub_cas_5&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;cub_user 15229 1 0 18:57 ? 00:00:00 cub_auto start&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;cub_user 15232 1 0 18:57 ? 00:00:00 cub_js start&lt;/p&gt;
&lt;h6&gt;Installing CUBRID (rpm File)&lt;/h6&gt;
&lt;p&gt;You can install CUBRID by using rpm file that is created on CentOS5. The way of installing and uninstalling CUBRID is the same as that of using general rpm utility. While CUBRID is being installed, a new system group (cubrid) and a user account (cubrid) are created. After installation is complete, you should log in with a cubrid user account to start a CUBRID service.&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;$ rpm -Uvh CUBRID-8.3.1.0168-el5.x86_64.rpm&lt;/p&gt;
&lt;p&gt;When rmp is executed, CUBRID is installed in the cubrid home directory (/opt/cubrid) and related configuration file (cubrid.[c]sh) is installed in the /etc/profile.d directory. Note that demodb is not automatically installed. Therefore, you must executed /opt/cubrid/demo/make_cubrid_demo.sh. When installation is complete, enter the code below to start CUBRID.&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;[cubrid@cubrid ~]$ cubrid service start&lt;/p&gt;
&lt;p class=&quot;note&quot;&gt;&lt;span class=&quot;note-title&quot;&gt;Note&lt;/span&gt; You must check RPM dependency when installing with RPM. If you ignore (--nodeps) dependency, it may not be executed.&lt;br /&gt;
Even if you remove RPM, user accounts and databases that are created after installing, you must remove it manually, if needed.&lt;/p&gt;
&lt;h6&gt;Installing CUBRID on Fedora/CentoOS&lt;/h6&gt;
&lt;p&gt;To install CUBRID using the yum command, you should know where the CUBRID package is located. Choose appropriate location based on your operating system.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;/yum_repository&quot;&gt;http://www.cubrid.org/yum_repository&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;For example, if you are using Fedora 16, execute the command below. In the example, fc16 refers to Fedora 16.&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;$ rpm -i http://yumrepository.cubrid.org/cubrid_repo_settings/8.4.0/cubridrepo-8.4.0-1.fc16.noarch.rpm&lt;/p&gt;
&lt;p&gt;If you are using CentOS 6.2, execute the command below. In this example, el6.2 refers to CentOS.&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;$ rpm -i http://yumrepository.cubrid.org/cubrid_repo_settings/8.4.0/cubridrepo-8.4.0-1.el6.2.noarch.rpm&lt;/p&gt;
&lt;p&gt;You can install the CUBRID package you have desired based on the command you execute. To install the latest version, execute the command below.&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;$ yum install cubrid&lt;/p&gt;
&lt;p&gt;To install the earlier version, you should include version information in the command.&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;$ yum install cubrid-8.3.1&lt;/p&gt;
&lt;p&gt;After installation is complete, configure environment variables including installation path of CUBRID and then apply them to system.&lt;/p&gt;
&lt;h6&gt;Installing CUBRID on Ubuntu&lt;/h6&gt;
&lt;p&gt;To install CUBRID using the apt-get command on Ubuntu, add the CUBRID storage first and then update the apt index.&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;$ sudo add-apt-repository ppa:cubrid/cubrid&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;$ sudo apt-get update&lt;/p&gt;
&lt;p&gt;To install the latest version, execute the command below.&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;$ sudo apt-get install cubrid&lt;/p&gt;
&lt;p&gt;To install the earlier version, you should include version information in the command.&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;$ sudo apt-get install cubrid-8.3.1&lt;/p&gt;
&lt;p&gt;After installation is complete, configure environment variables including installation path of CUBRID and then apply them to system.&lt;/p&gt;
&lt;h6&gt;Upgrading CUBRID&lt;/h6&gt;
&lt;p&gt;When you specify an installation directory where the previous version of CUBRID is already installed, a message which asks to overwrite files in the directory will appear. Entering &lt;span class=&quot;keyword&quot;&gt;no&lt;/span&gt; will stop the installation.&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;Directory &apos;/home1/cub_user/CUBRID&apos; exist!&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;If a CUBRID service is running on this directory, it may be terminated abnormally.&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;And if you don&apos;t have right access permission on this directory(subdirectories or files), install operation will be failed.&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;Overwrite anyway? (yes or no) [Default: no] : yes&lt;/p&gt;
&lt;p&gt;Choose whether to overwrite the existing configuration files during the CUBRID installation. Entering &lt;span class=&quot;keyword&quot;&gt;yes&lt;/span&gt; will overwrite and back up them as extension .bak files.&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;The configuration file (.conf or .pass) already exists. Do you want to overwrite it? (yes or no) : yes&lt;/p&gt;
&lt;h6&gt;Configuring Environment&lt;/h6&gt;
&lt;p&gt;You can modify the environment such as service ports etc. edit the parameters of a configuration file located in the &lt;span class=&quot;keyword&quot;&gt;$CUBRID/conf&lt;/span&gt; directory. See &lt;a href=&quot;/manual/841/en/Installing and Running on Windows#config&quot;&gt;Environment Configuration&lt;/a&gt; for more information.&lt;/p&gt;
&lt;h6&gt;Installing CUBRID Interfaces&lt;/h6&gt;
&lt;p&gt;You can see the latest information on interface modules such as JDBC, PHP, ODBC, and OLE DB and install them by downloading files from &lt;a href=&quot;/wiki_apis&quot;&gt;http://www.cubrid.org/wiki_apis&lt;/a&gt;.&lt;/p&gt;
&lt;h6&gt;Installing CUBRID Tools&lt;/h6&gt;
&lt;p&gt;You can see the latest information on tools such as CUBRID Manager and CUBRID Query Browser and install them by downloading files from &lt;a href=&quot;/wiki_tools&quot;&gt;http://www.cubrid.org/wiki_tools.&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</content>
                  
   </entry>
   <entry>
      <title>RLIKE Conditional Expression</title>
      <id>http://www.cubrid.org/338289</id>
      <published>2012-04-19T03:36:52-07:00</published>
      <updated>2012-07-10T06:09:39-07:00</updated>
      <link rel="alternate" type="text/html" href="http://www.cubrid.org/338289"/>
      <link rel="replies" type="text/html" href="http://www.cubrid.org/338289#comment"/>
      <author>
         <name>CUBRID</name>
                  <uri>http://www.cubrid.org</uri>
               </author>
            <content type="html">&lt;div class=&quot;xe_content&quot;&gt;﻿&lt;!--?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?--&gt;







&lt;!-- 목차: LIKE 조건식 다음에 위치 --&gt;

&lt;style type=&quot;text/css&quot;&gt;
&lt;!--
div.WebHelpPopupMenu { position:absolute;
left:0px;
top:0px;
z-index:4;
visibility:hidden; }
--&gt;
&lt;/style&gt;







 

&lt;a name=&quot;bc-1&quot;&gt;&lt;/a&gt;
&lt;h4&gt;REGEXP/RLIKE Conditional Expression&lt;/h4&gt;
&lt;h6&gt;Description&lt;/h6&gt;
&lt;p&gt;The &lt;span class=&quot;keyword&quot;&gt;REGEXP&lt;/span&gt; and &lt;span class=&quot;keyword&quot;&gt;RLIKE&lt;/span&gt; conditional expressions are used interchangeably; A regular expressions is a powerful way to specify a pattern for a complex search. CUBRID uses Henry Spencer&apos;s implementation of regular expressions, which conforms the POSIX 1003.2 standards. The details on regular expressions are not described in this page. For more information on regular expressions, see Henry Spencer&apos;s regex(7).&lt;/p&gt;
&lt;p&gt;The following list describes basic characteristics of regular expressions.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&quot;.&quot; matches any single character(including new-line and carriage-return).&lt;/li&gt;
&lt;li&gt;&quot;[...]&quot; matches one of characters within square brackets. For example, &quot;[abc]&quot; matches &quot;a&quot;, &quot;b&quot;, or &quot;c&quot;. To represent a range of characters, use a dash (-). &quot;[a-z]&quot; matches any alphabet letter whereas &quot;[0-9]&quot; matches any single number.&lt;/li&gt;
&lt;li&gt;&quot;*&quot; matches 0 or more instances of the thing proceeding it. For example, &quot;xabc*&quot; matches &quot;xab&quot;, &quot;xabc&quot;, &quot;xabcc&quot;, and &quot;xabcxabc&quot; etc. &quot;[0-9][0-9]*&quot; matches any numbers, and &quot;.*&quot; matches every string.&lt;/li&gt;
&lt;li&gt;To match special characters such as &quot;
&quot;, &quot;	&quot;, &quot;
&quot;, and &quot;&quot;, some must be escaped with the backslash () by specifying the value of &lt;span class=&quot;keyword&quot;&gt;no_backslash_escapes&lt;/span&gt; (default: yes) to &lt;span class=&quot;keyword&quot;&gt;no&lt;/span&gt;. For details on &lt;span class=&quot;keyword&quot;&gt;no_backslash_escapes&lt;/span&gt;, see &lt;a href=&quot;/manual/841/en/Escape%20Special%20Characters&quot; target=&quot;_self&quot;&gt;Escape Special Characters&lt;/a&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The difference between &lt;span class=&quot;keyword&quot;&gt;REGEXP&lt;/span&gt; and &lt;span class=&quot;keyword&quot;&gt;LIKE&lt;/span&gt; are as follows:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;The &lt;span class=&quot;keyword&quot;&gt;LIKE&lt;/span&gt; operator succeeds only if the pattern matches the entire value.&lt;/li&gt;
&lt;li&gt;The &lt;span class=&quot;keyword&quot;&gt;REGEXP&lt;/span&gt; operator succeeds if the pattern matches anywhere in the value. To match the entire value, you should use &quot;^&quot; at the beginning and &quot;$&quot; at the end.&lt;/li&gt;
&lt;li&gt;The &lt;span class=&quot;keyword&quot;&gt;LIKE&lt;/span&gt; operator is case sensitive, but patterns of regular expressions in &lt;span class=&quot;keyword&quot;&gt;REGEXP&lt;/span&gt; is not case sensitive. To enable case sensitive, you should use &lt;span class=&quot;keyword&quot;&gt;REGEXP BINARY&lt;/span&gt; statement.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;In the syntax below, if &lt;span class=&quot;var&quot;&gt;expr&lt;/span&gt; matches &lt;span class=&quot;var&quot;&gt;pat&lt;/span&gt;, 1 is returned; otherwise, 0 is returned. If either &lt;span class=&quot;var&quot;&gt;expr&lt;/span&gt; or&amp;nbsp;&lt;span class=&quot;var&quot;&gt;pat&lt;/span&gt; is &lt;span class=&quot;keyword&quot;&gt;NULL&lt;/span&gt;, &lt;span class=&quot;keyword&quot;&gt;NULL&lt;/span&gt; is returned.&lt;/p&gt;
&lt;p&gt;The second syntax has the same meaning as the third syntax, which both syntaxes are using &lt;span class=&quot;keyword&quot;&gt;NOT&lt;/span&gt;.&lt;/p&gt;
&lt;h6&gt;Syntax&lt;/h6&gt;
&lt;p class=&quot;syntaxp&quot;&gt;expr REGEXP|RLIKE [BINARY] pat&lt;/p&gt;
&lt;p class=&quot;syntaxp&quot;&gt;expr NOT REGEXP|RLIKE pat&lt;/p&gt;
&lt;p class=&quot;syntaxp&quot;&gt;NOT (expr REGEXP|RLIKE pat)&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span class=&quot;var&quot;&gt;expr&lt;/span&gt; : Column or input expression&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;var&quot;&gt;pat&lt;/span&gt; : Pattern used in regular expressions; not case sensitive&lt;/li&gt;
&lt;/ul&gt;
&lt;h6&gt;Example&lt;/h6&gt;
&lt;p class=&quot;codep&quot;&gt;-- When REGEXP is used in SELECT list, enclosing this with parentheses is required. But used in WHERE clause, no need parentheses.&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;-- case insensitive, except when used with BINARY.&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;SELECT name FROM athlete where name REGEXP &apos;^[a-d]&apos;;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;name&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;======================&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&apos;Dziouba Irina&apos;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&apos;Dzieciol Iwona&apos;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&apos;Dzamalutdinov Kamil&apos;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&apos;Crucq Maurits&apos;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&apos;Crosta Daniele&apos;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&apos;Bukovec Brigita&apos;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&apos;Bukic Perica&apos;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&apos;Abdullayev Namik&apos;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;-- 
 : match a special character, when no_backslash_escapes=no&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;SELECT (&apos;new
line&apos; REGEXP &apos;new&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;line&apos;);&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;(&apos;new&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;line&apos; regexp &apos;new&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;line&apos;)&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;=====================================&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;1&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;-- ^ : match the beginning of a string&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;SELECT (&apos;cubrid dbms&apos; REGEXP &apos;^cub&apos;);&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;(&apos;cubrid dbms&apos; regexp &apos;^cub&apos;)&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;===============================&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;1&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;-- $ : match the end of a string&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;SELECT (&apos;this is cubrid dbms&apos; REGEXP &apos;dbms$&apos;);&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;(&apos;this is cubrid dbms&apos; regexp &apos;dbms$&apos;)&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;========================================&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;1&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;--.: match any character&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;SELECT (&apos;cubrid dbms&apos; REGEXP &apos;^c.*$&apos;);&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;(&apos;cubrid dbms&apos; regexp &apos;^c.*$&apos;)&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;================================&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;1&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;-- a+ : match any sequence of one or more a characters. case insensitive.&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;SELECT (&apos;Aaaapricot&apos; REGEXP &apos;^A+pricot&apos;);&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;(&apos;Aaaapricot&apos; regexp &apos;^A+pricot&apos;)&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;================================&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;1&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;-- a? : match either zero or one a character.&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;SELECT (&apos;Apricot&apos; REGEXP &apos;^Aa?pricot&apos;);&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;(&apos;Apricot&apos; regexp &apos;^Aa?pricot&apos;)&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;==========================&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;1&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;SELECT (&apos;Aapricot&apos; REGEXP &apos;^Aa?pricot&apos;);&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;(&apos;Aapricot&apos; regexp &apos;^Aa?pricot&apos;)&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;===========================&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;1&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;SELECT (&apos;Aaapricot&apos; REGEXP &apos;^Aa?pricot&apos;);&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;(&apos;Aaapricot&apos; regexp &apos;^Aa?pricot&apos;)&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;============================&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;0&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;-- (cub)* : match zero or more instances of the sequence abc.&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;SELECT (&apos;cubcub&apos; REGEXP &apos;^(cub)*$&apos;);&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;(&apos;cubcub&apos; regexp &apos;^(cub)*$&apos;)&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;==========================&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;1&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;-- [a-dX], [^a-dX] : matches any character that is (or is not, if ^ is used) either a, b, c, d or X.&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;SELECT (&apos;aXbc&apos; REGEXP &apos;^[a-dXYZ]+&apos;);&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;(&apos;aXbc&apos; regexp &apos;^[a-dXYZ]+&apos;)&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;==============================&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;1&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;SELECT (&apos;strike&apos; REGEXP &apos;^[^a-dXYZ]+$&apos;);&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;(&apos;strike&apos; regexp &apos;^[^a-dXYZ]+$&apos;)&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;================================&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;1&lt;/p&gt;
&lt;h6&gt;Remark&lt;/h6&gt;
&lt;p&gt;The following shows RegEx-Specer&apos;s license, which is library used to implement the &lt;span class=&quot;keyword&quot;&gt;REGEXP&lt;/span&gt; conditional expression.&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;Copyright 1992, 1993, 1994 Henry Spencer. All rights reserved.&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;This software is not subject to any license of the American Telephone&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;and Telegraph Company or of the Regents of the University of California.&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;Permission is granted to anyone to use this software for any purpose on&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;any computer system, and to alter it and redistribute it, subject&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;to the following restrictions:&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;1. The author is not responsible for the consequences of use of this&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;software, no matter how awful, even if they arise from flaws in it.&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;2. The origin of this software must not be misrepresented, either by&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;explicit claim or by omission. Since few users ever read sources,&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;credits must appear in the documentation.&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;3. Altered versions must be plainly marked as such, and must not be&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;misrepresented as being the original software. Since few users&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;ever read sources, credits must appear in the documentation.&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;4. This notice may not be removed or altered.&lt;/p&gt;&lt;/div&gt;</content>
                  
   </entry>
   <entry>
      <title>REGEXP Conditional Expression</title>
      <id>http://www.cubrid.org/338287</id>
      <published>2012-04-19T03:36:52-07:00</published>
      <updated>2012-07-10T06:09:18-07:00</updated>
      <link rel="alternate" type="text/html" href="http://www.cubrid.org/338287"/>
      <link rel="replies" type="text/html" href="http://www.cubrid.org/338287#comment"/>
      <author>
         <name>CUBRID</name>
                  <uri>http://www.cubrid.org</uri>
               </author>
            <content type="html">&lt;div class=&quot;xe_content&quot;&gt;﻿&lt;!--?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?--&gt;







&lt;!-- 목차: LIKE 조건식 다음에 위치 --&gt;

&lt;style type=&quot;text/css&quot;&gt;
&lt;!--
div.WebHelpPopupMenu { position:absolute;
left:0px;
top:0px;
z-index:4;
visibility:hidden; }
--&gt;
&lt;/style&gt;







 

&lt;a name=&quot;bc-1&quot;&gt;&lt;/a&gt;
&lt;h4&gt;REGEXP/RLIKE Conditional Expression&lt;/h4&gt;
&lt;h6&gt;Description&lt;/h6&gt;
&lt;p&gt;The &lt;span class=&quot;keyword&quot;&gt;REGEXP&lt;/span&gt; and &lt;span class=&quot;keyword&quot;&gt;RLIKE&lt;/span&gt; conditional expressions are used interchangeably; A regular expressions is a powerful way to specify a pattern for a complex search. CUBRID uses Henry Spencer&apos;s implementation of regular expressions, which conforms the POSIX 1003.2 standards. The details on regular expressions are not described in this page. For more information on regular expressions, see Henry Spencer&apos;s regex(7).&lt;/p&gt;
&lt;p&gt;The following list describes basic characteristics of regular expressions.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&quot;.&quot; matches any single character(including new-line and carriage-return).&lt;/li&gt;
&lt;li&gt;&quot;[...]&quot; matches one of characters within square brackets. For example, &quot;[abc]&quot; matches &quot;a&quot;, &quot;b&quot;, or &quot;c&quot;. To represent a range of characters, use a dash (-). &quot;[a-z]&quot; matches any alphabet letter whereas &quot;[0-9]&quot; matches any single number.&lt;/li&gt;
&lt;li&gt;&quot;*&quot; matches 0 or more instances of the thing proceeding it. For example, &quot;xabc*&quot; matches &quot;xab&quot;, &quot;xabc&quot;, &quot;xabcc&quot;, and &quot;xabcxabc&quot; etc. &quot;[0-9][0-9]*&quot; matches any numbers, and &quot;.*&quot; matches every string.&lt;/li&gt;
&lt;li&gt;To match special characters such as &quot;
&quot;, &quot;	&quot;, &quot;
&quot;, and &quot;&quot;, some must be escaped with the backslash () by specifying the value of &lt;span class=&quot;keyword&quot;&gt;no_backslash_escapes&lt;/span&gt; (default: yes) to &lt;span class=&quot;keyword&quot;&gt;no&lt;/span&gt;. For details on &lt;span class=&quot;keyword&quot;&gt;no_backslash_escapes&lt;/span&gt;, see &lt;a href=&quot;/manual/841/en/Escape%20Special%20Characters&quot; target=&quot;_self&quot;&gt;Escape Special Characters&lt;/a&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The difference between &lt;span class=&quot;keyword&quot;&gt;REGEXP&lt;/span&gt; and &lt;span class=&quot;keyword&quot;&gt;LIKE&lt;/span&gt; are as follows:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;The &lt;span class=&quot;keyword&quot;&gt;LIKE&lt;/span&gt; operator succeeds only if the pattern matches the entire value.&lt;/li&gt;
&lt;li&gt;The &lt;span class=&quot;keyword&quot;&gt;REGEXP&lt;/span&gt; operator succeeds if the pattern matches anywhere in the value. To match the entire value, you should use &quot;^&quot; at the beginning and &quot;$&quot; at the end.&lt;/li&gt;
&lt;li&gt;The &lt;span class=&quot;keyword&quot;&gt;LIKE&lt;/span&gt; operator is case sensitive, but patterns of regular expressions in &lt;span class=&quot;keyword&quot;&gt;REGEXP&lt;/span&gt; is not case sensitive. To enable case sensitive, you should use &lt;span class=&quot;keyword&quot;&gt;REGEXP BINARY&lt;/span&gt; statement.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;In the syntax below, if &lt;span class=&quot;var&quot;&gt;expr&lt;/span&gt; matches &lt;span class=&quot;var&quot;&gt;pat&lt;/span&gt;, 1 is returned; otherwise, 0 is returned. If either &lt;span class=&quot;var&quot;&gt;expr&lt;/span&gt; or&amp;nbsp;&lt;span class=&quot;var&quot;&gt;pat&lt;/span&gt; is &lt;span class=&quot;keyword&quot;&gt;NULL&lt;/span&gt;, &lt;span class=&quot;keyword&quot;&gt;NULL&lt;/span&gt; is returned.&lt;/p&gt;
&lt;p&gt;The second syntax has the same meaning as the third syntax, which both syntaxes are using &lt;span class=&quot;keyword&quot;&gt;NOT&lt;/span&gt;.&lt;/p&gt;
&lt;h6&gt;Syntax&lt;/h6&gt;
&lt;p class=&quot;syntaxp&quot;&gt;expr REGEXP|RLIKE [BINARY] pat&lt;/p&gt;
&lt;p class=&quot;syntaxp&quot;&gt;expr NOT REGEXP|RLIKE pat&lt;/p&gt;
&lt;p class=&quot;syntaxp&quot;&gt;NOT (expr REGEXP|RLIKE pat)&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span class=&quot;var&quot;&gt;expr&lt;/span&gt; : Column or input expression&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;var&quot;&gt;pat&lt;/span&gt; : Pattern used in regular expressions; not case sensitive&lt;/li&gt;
&lt;/ul&gt;
&lt;h6&gt;Example&lt;/h6&gt;
&lt;p class=&quot;codep&quot;&gt;-- When REGEXP is used in SELECT list, enclosing this with parentheses is required. But used in WHERE clause, no need parentheses.&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;-- case insensitive, except when used with BINARY.&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;SELECT name FROM athlete where name REGEXP &apos;^[a-d]&apos;;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;name&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;======================&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&apos;Dziouba Irina&apos;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&apos;Dzieciol Iwona&apos;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&apos;Dzamalutdinov Kamil&apos;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&apos;Crucq Maurits&apos;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&apos;Crosta Daniele&apos;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&apos;Bukovec Brigita&apos;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&apos;Bukic Perica&apos;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&apos;Abdullayev Namik&apos;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;-- 
 : match a special character, when no_backslash_escapes=no&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;SELECT (&apos;new
line&apos; REGEXP &apos;new&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;line&apos;);&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;(&apos;new&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;line&apos; regexp &apos;new&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;line&apos;)&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;=====================================&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;1&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;-- ^ : match the beginning of a string&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;SELECT (&apos;cubrid dbms&apos; REGEXP &apos;^cub&apos;);&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;(&apos;cubrid dbms&apos; regexp &apos;^cub&apos;)&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;===============================&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;1&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;-- $ : match the end of a string&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;SELECT (&apos;this is cubrid dbms&apos; REGEXP &apos;dbms$&apos;);&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;(&apos;this is cubrid dbms&apos; regexp &apos;dbms$&apos;)&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;========================================&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;1&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;--.: match any character&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;SELECT (&apos;cubrid dbms&apos; REGEXP &apos;^c.*$&apos;);&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;(&apos;cubrid dbms&apos; regexp &apos;^c.*$&apos;)&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;================================&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;1&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;-- a+ : match any sequence of one or more a characters. case insensitive.&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;SELECT (&apos;Aaaapricot&apos; REGEXP &apos;^A+pricot&apos;);&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;(&apos;Aaaapricot&apos; regexp &apos;^A+pricot&apos;)&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;================================&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;1&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;-- a? : match either zero or one a character.&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;SELECT (&apos;Apricot&apos; REGEXP &apos;^Aa?pricot&apos;);&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;(&apos;Apricot&apos; regexp &apos;^Aa?pricot&apos;)&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;==========================&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;1&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;SELECT (&apos;Aapricot&apos; REGEXP &apos;^Aa?pricot&apos;);&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;(&apos;Aapricot&apos; regexp &apos;^Aa?pricot&apos;)&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;===========================&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;1&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;SELECT (&apos;Aaapricot&apos; REGEXP &apos;^Aa?pricot&apos;);&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;(&apos;Aaapricot&apos; regexp &apos;^Aa?pricot&apos;)&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;============================&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;0&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;-- (cub)* : match zero or more instances of the sequence abc.&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;SELECT (&apos;cubcub&apos; REGEXP &apos;^(cub)*$&apos;);&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;(&apos;cubcub&apos; regexp &apos;^(cub)*$&apos;)&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;==========================&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;1&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;-- [a-dX], [^a-dX] : matches any character that is (or is not, if ^ is used) either a, b, c, d or X.&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;SELECT (&apos;aXbc&apos; REGEXP &apos;^[a-dXYZ]+&apos;);&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;(&apos;aXbc&apos; regexp &apos;^[a-dXYZ]+&apos;)&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;==============================&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;1&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;SELECT (&apos;strike&apos; REGEXP &apos;^[^a-dXYZ]+$&apos;);&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;(&apos;strike&apos; regexp &apos;^[^a-dXYZ]+$&apos;)&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;================================&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;1&lt;/p&gt;
&lt;h6&gt;Remark&lt;/h6&gt;
&lt;p&gt;The following shows RegEx-Specer&apos;s license, which is library used to implement the &lt;span class=&quot;keyword&quot;&gt;REGEXP&lt;/span&gt; conditional expression.&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;Copyright 1992, 1993, 1994 Henry Spencer. All rights reserved.&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;This software is not subject to any license of the American Telephone&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;and Telegraph Company or of the Regents of the University of California.&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;Permission is granted to anyone to use this software for any purpose on&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;any computer system, and to alter it and redistribute it, subject&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;to the following restrictions:&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;1. The author is not responsible for the consequences of use of this&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;software, no matter how awful, even if they arise from flaws in it.&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;2. The origin of this software must not be misrepresented, either by&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;explicit claim or by omission. Since few users ever read sources,&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;credits must appear in the documentation.&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;3. Altered versions must be plainly marked as such, and must not be&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;misrepresented as being the original software. Since few users&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;ever read sources, credits must appear in the documentation.&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;4. This notice may not be removed or altered.&lt;/p&gt;&lt;/div&gt;</content>
                  
   </entry>
   <entry>
      <title>Statement|Type-Related Parameters</title>
      <id>http://www.cubrid.org/338961</id>
      <published>2012-04-19T03:37:12-07:00</published>
      <updated>2012-07-10T06:08:38-07:00</updated>
      <link rel="alternate" type="text/html" href="http://www.cubrid.org/338961"/>
      <link rel="replies" type="text/html" href="http://www.cubrid.org/338961#comment"/>
      <author>
         <name>CUBRID</name>
                  <uri>http://www.cubrid.org</uri>
               </author>
            <content type="html">&lt;div class=&quot;xe_content&quot;&gt;﻿&lt;!--?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?--&gt;









&lt;style type=&quot;text/css&quot;&gt;
&lt;!--
div.WebHelpPopupMenu { position:absolute;
left:0px;
top:0px;
z-index:4;
visibility:hidden; }
--&gt;
&lt;/style&gt;







 


&lt;h4&gt;Statement/Type-Related Parameters&lt;/h4&gt;
&lt;p&gt;The following are parameters related to SQL statements and data types supported by CUBRID. The type and value range for each parameter are as follows:&lt;/p&gt;
&lt;table border=&quot;1&quot; width=&quot;80%&quot;&gt;
&lt;tbody&gt;&lt;tr&gt;
&lt;th&gt;
&lt;p&gt;Parameter Name&lt;/p&gt;
&lt;/th&gt;
&lt;th&gt;
&lt;p&gt;Type&lt;/p&gt;
&lt;/th&gt;
&lt;th&gt;
&lt;p&gt;Default Value&lt;/p&gt;
&lt;/th&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p&gt;add_column_update_hard_default&lt;/p&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;bool&lt;/p&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;no&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p&gt;alter_table_change_type_strict&lt;/p&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;bool&lt;/p&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;no&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p&gt;ansi_quotes&lt;/p&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;bool&lt;/p&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;yes&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p&gt;block_ddl_statement&lt;/p&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;bool&lt;/p&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;no&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p&gt;block_nowhere_statement&lt;/p&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;bool&lt;/p&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;no&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p&gt;compat_numeric_division_scale&lt;/p&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;bool&lt;/p&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;no&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p&gt;default_week_format&lt;/p&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;int&lt;/p&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;0&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p&gt;group_concat_max_len&lt;/p&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;int&lt;/p&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;1024&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p&gt;intl_mbs_support&lt;/p&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;bool&lt;/p&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;no&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p&gt;no_backslash_escapes&lt;/p&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;bool&lt;/p&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;yes&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p&gt;only_full_group_by&lt;/p&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;bool&lt;/p&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;no&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p&gt;oracle_style_empty_string&lt;/p&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;bool&lt;/p&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;no&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p&gt;pipes_as_concat&lt;/p&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;bool&lt;/p&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;yes&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p&gt;plus_as_concat&lt;/p&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;bool&lt;/p&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;yes&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p&gt;require_like_escape_character&lt;/p&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;bool&lt;/p&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;no&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p&gt;return_null_on_function_errors&lt;/p&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;bool&lt;/p&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;no&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;h6&gt;add_column_update_hard_default&lt;/h6&gt;
&lt;p&gt;The &lt;span class=&quot;keyword&quot;&gt;add_column_update_hard_default&lt;/span&gt; parameter is used to determine whether or not to provide the hard_default value as the input value for a column when you add a new column to the &lt;span class=&quot;keyword&quot;&gt;ALTER TABLE … ADD COLUMN&lt;/span&gt; clause.&lt;/p&gt;
&lt;p&gt;If a value for this parameter is set to yes, enter a new input value of a column as a hard default value when you have &lt;span class=&quot;keyword&quot;&gt;NOT NULL&lt;/span&gt; constraints but no &lt;span class=&quot;keyword&quot;&gt;DEFAULT&lt;/span&gt; constraints. If the parameter value is set to no, enter &lt;span class=&quot;keyword&quot;&gt;NULL&lt;/span&gt;, even if &lt;span class=&quot;keyword&quot;&gt;NOT NULL&lt;/span&gt; constraints exist. If a value for this parameter is set to yes and there is no hard default value for the column type to add, an error message will be displayed and a roll-back occurs. For the hard default for each type, see the &lt;a href=&quot;/manual/841/en/CHANGE%7CMODIFY%20Clause&quot;&gt;CHANGE Clause&lt;/a&gt; of the &lt;span class=&quot;keyword&quot;&gt;ALTER TABLE&lt;/span&gt; statement.&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;-- add_column_update_hard_default=no&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;CREATE TABLE tbl (i INT);&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;INSERT INTO tbl VALUES (1),(2);&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;ALTER TABLE tbl ADD COLUMN j INT NOT NULL;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;SELECT * FROM TBL;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class=&quot;codep&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;i &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;j&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;========================&lt;/p&gt;
&lt;p class=&quot;codep&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;2 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;NULL&lt;/p&gt;
&lt;p class=&quot;codep&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;1 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;NULL&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;-- add_column_update_hard_default=yes&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;CREATE TABLE tbl (i int);&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;INSERT INTO tbl VALUES (1),(2);&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;ALTER TABLE tbl ADD COLUMN j INT NOT NULL;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;SELECT * FROM tbl;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class=&quot;codep&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;i &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;j&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;=========================&lt;/p&gt;
&lt;p class=&quot;codep&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;2 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;0&lt;/p&gt;
&lt;p class=&quot;codep&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;1 &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;0&lt;/p&gt;
&lt;h6&gt;alter_table_change_type_strict&lt;/h6&gt;
&lt;p&gt;The &lt;span class=&quot;keyword&quot;&gt;alter_table_change_type_strict&lt;/span&gt; parameter is used to determine whether or not to allow the conversion of column values according to the type change, and the default value is &lt;span class=&quot;keyword&quot;&gt;no&lt;/span&gt;. If a value for this parameter is set to no, the value may be changed when you change the column types or when you add &lt;span class=&quot;keyword&quot;&gt;NOT NULL&lt;/span&gt; constraints; if it is set to yes, the value is not changed. For details, see CHANGE Clause in the &lt;a href=&quot;/manual/841/en/CHANGE%7CMODIFY%20Clause&quot;&gt;CHANGE/MODIFY Clause&lt;/a&gt;.&lt;/p&gt;
&lt;h6&gt;ansi_quotes&lt;/h6&gt;
&lt;p&gt;&lt;span class=&quot;keyword&quot;&gt;ansi_quotes&lt;/span&gt; is a parameter that enclose symbols and character string to handle identifiers. The default value is &lt;span class=&quot;keyword&quot;&gt;yes&lt;/span&gt;. If this parameter value is set to &lt;span class=&quot;keyword&quot;&gt;yes&lt;/span&gt;, double quotations are handled as identifier symbols and single quotations are handled as character string symbols. If it is set to &lt;span class=&quot;keyword&quot;&gt;no&lt;/span&gt;, both double and single quotations are handled as character string symbols.&lt;/p&gt;
&lt;h6&gt;block_ddl_statement&lt;/h6&gt;
&lt;p&gt;&lt;span class=&quot;keyword&quot;&gt;block_ddl_statement&lt;/span&gt; is a parameter that restricts the execution of DDL (Data Definition Language) statements by the client. If the parameter is configured to no, the given client is allowed to execute DDL statements. If it is configured to yes, the client is not permitted to execute DDL statements. The default value is &lt;span class=&quot;keyword&quot;&gt;no&lt;/span&gt;.&lt;/p&gt;
&lt;h6&gt;block_nowhere_statement&lt;/h6&gt;
&lt;p&gt;&lt;span class=&quot;keyword&quot;&gt;block_nowhere_statement&lt;/span&gt; is a parameter that restricts the execution of &lt;span class=&quot;keyword&quot;&gt;UPDATE&lt;/span&gt;/&lt;span class=&quot;keyword&quot;&gt;DELETE&lt;/span&gt; statements without a condition clause (&lt;span class=&quot;keyword&quot;&gt;WHERE&lt;/span&gt;) by the client. If the parameter is configured to no, the given client is allowed to execute &lt;span class=&quot;keyword&quot;&gt;UPDATE&lt;/span&gt;/&lt;span class=&quot;keyword&quot;&gt;DELETE&lt;/span&gt; statements without a condition clause. If it is configured to yes, the client is not permitted to execute &lt;span class=&quot;keyword&quot;&gt;UPDATE&lt;/span&gt;/&lt;span class=&quot;keyword&quot;&gt;DELETE&lt;/span&gt; statements without a condition clause. The default value is &lt;span class=&quot;keyword&quot;&gt;no&lt;/span&gt;.&lt;/p&gt;
&lt;h6&gt;compact_numeric_division_scale&lt;/h6&gt;
&lt;p&gt;&lt;span class=&quot;keyword&quot;&gt;compat_numeric_division_scale&lt;/span&gt; is a parameter that configures the scale to be displayed in the result (quotient) of a division operation. If the parameter is configured to &lt;span class=&quot;keyword&quot;&gt;no&lt;/span&gt;, the scale of the quotient is 9 if it is configured to &lt;span class=&quot;keyword&quot;&gt;yes&lt;/span&gt;, the scale is determined by that of the operand. The default value is &lt;span class=&quot;keyword&quot;&gt;no&lt;/span&gt;.&lt;/p&gt;
&lt;h6&gt;default_week_format&lt;/h6&gt;
&lt;p&gt;The &lt;span class=&quot;keyword&quot;&gt;default_week_format&lt;/span&gt; parameter is used to set the default value for the &lt;span class=&quot;var&quot;&gt;mode&lt;/span&gt; attribute of the WEEK function. The default value is 0. For details, see &lt;a href=&quot;/manual/841/en/WEEK%20Function&quot;&gt;WEEK Function&lt;/a&gt;.&lt;/p&gt;
&lt;h6&gt;group_concat_max_len&lt;/h6&gt;
&lt;p&gt;The &lt;span class=&quot;keyword&quot;&gt;group_concat_max_len&lt;/span&gt; parameter is used to limit the return value size of the &lt;span class=&quot;keyword&quot;&gt;GROUP_CONCAT&lt;/span&gt; function. The default value is 1024 bytes, the minimum value is 4 bytes, and the maximum value is 33,554,432 bytes. If the return value of the &lt;span class=&quot;keyword&quot;&gt;GROUP_CONCAT&lt;/span&gt; function exceeds the limitation, &lt;span class=&quot;keyword&quot;&gt;NULL&lt;/span&gt; will be returned.&lt;/p&gt;
&lt;h6&gt;intl_mbs_support&lt;/h6&gt;
&lt;p&gt;&lt;span class=&quot;keyword&quot;&gt;intl_mbs_support&lt;/span&gt; is a parameter that specifies whether or not to support multi-byte character set. If the parameter is configured to &lt;span class=&quot;keyword&quot;&gt;no&lt;/span&gt;, a multi-byte character set is not allowed if it is configured to yes, a multi-byte character set is allowed. To improve performance, it is recommended to configure the &lt;span class=&quot;keyword&quot;&gt;intl_mbs_support&lt;/span&gt; parameter to &lt;span class=&quot;keyword&quot;&gt;no&lt;/span&gt; and use alphabets for table and column names because operation cost for supporting multi-byte character set is high.&lt;/p&gt;
&lt;h6&gt;no_backslash_escapes&lt;/h6&gt;
&lt;p&gt;The &lt;span class=&quot;keyword&quot;&gt;no_backslash_escapes&lt;/span&gt; is used to determine whether or not to use backslash () as an escape character, and the default value is yes. If a value for this parameter is set to no, backslash () will be used as an escape character; if it is set to yes, backslash () will be used as a normal character. For details, see &lt;a href=&quot;/manual/841/en/Escape%20Special%20Characters&quot;&gt;Escape Special Characters&lt;/a&gt;.&lt;/p&gt;
&lt;h6&gt;only_full_group_by&lt;/h6&gt;
&lt;p&gt;&lt;span class=&quot;keyword&quot;&gt;only_full_group_by&lt;/span&gt; is a parameter that specifies whether extended syntax about using &lt;span class=&quot;keyword&quot;&gt;GROUP BY&lt;/span&gt; statement is used or not.&lt;/p&gt;
&lt;p&gt;If this parameter value is set to &lt;span class=&quot;keyword&quot;&gt;no&lt;/span&gt;, an extended syntax is applied thus, a column that is not specified in the &lt;span class=&quot;keyword&quot;&gt;GROUP BY&lt;/span&gt; statement can be specified in the &lt;span class=&quot;keyword&quot;&gt;SELECT&lt;/span&gt; column list. If it is set to &lt;span class=&quot;keyword&quot;&gt;yes&lt;/span&gt;, a column that is only specified in the &lt;span class=&quot;keyword&quot;&gt;GROUP BY&lt;/span&gt; statement can be the &lt;span class=&quot;keyword&quot;&gt;SELECT&lt;/span&gt; column list.&lt;/p&gt;
&lt;p&gt;The default value is no. Therefore, specify the &lt;span class=&quot;keyword&quot;&gt;only_full_group_by&lt;/span&gt; parameter value to &lt;span class=&quot;keyword&quot;&gt;yes&lt;/span&gt; to execute queries by SQL standards. Because the extended syntax is not applied in this case, an error below is displayed.&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;ERROR: Attributes exposed in aggregate queries must also appear in the group by clause.&lt;/p&gt;
&lt;h6&gt;oracle_style_empty_string&lt;/h6&gt;
&lt;p&gt;&lt;span class=&quot;keyword&quot;&gt;oracle_style_empty_string&lt;/span&gt; is a parameter that improves compatibility with other DBMS (Database Management Systems) and specifies whether or not to process empty strings as &lt;span class=&quot;keyword&quot;&gt;NULL&lt;/span&gt; as in Oracle DBMS. If the &lt;span class=&quot;keyword&quot;&gt;oracle_style_empty_string&lt;/span&gt; parameter is configured to &lt;span class=&quot;keyword&quot;&gt;no&lt;/span&gt;, the character string is processed as a valid string if it is configured to &lt;span class=&quot;keyword&quot;&gt;yes&lt;/span&gt;, the empty string is processed as &lt;span class=&quot;keyword&quot;&gt;NULL&lt;/span&gt;.&lt;/p&gt;
&lt;h6&gt;pipes_as_concat&lt;/h6&gt;
&lt;p&gt;&lt;span class=&quot;keyword&quot;&gt;pipes_as_concat&lt;/span&gt; is a parameter about using a double pipe symbol. The default value is &lt;span class=&quot;keyword&quot;&gt;yes&lt;/span&gt;. If this parameter value is set to &lt;span class=&quot;keyword&quot;&gt;yes&lt;/span&gt;, a double pipe symbol is handled as a concatenation operator if no, it is handled as the &lt;span class=&quot;keyword&quot;&gt;OR&lt;/span&gt; operator.&lt;/p&gt;
&lt;h6&gt;plus_as_concat&lt;/h6&gt;
&lt;p&gt;The &lt;span class=&quot;keyword&quot;&gt;plus_as_concat&lt;/span&gt; parameter is a parameter for the use of the + operator, and the default value is yes. If a value for this parameter is set to yes, the + operator will be interpreted as a concatenation operator; if it is set to no, the operator will be interpreted as a numeric operator.&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;-- plus_as_concat = yes&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;SELECT &apos;1&apos;+&apos;1&apos;;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&apos;1&apos;+&apos;1&apos;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;======================&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&apos;11&apos; &amp;nbsp;SELECT &apos;1&apos;+&apos;a&apos;;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&apos;1&apos;+&apos;a&apos;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;======================&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&apos;1a&apos;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;-- plus_as_concat = no&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;SELECT &apos;1&apos;+&apos;1&apos;;&lt;/p&gt;
&lt;p class=&quot;codep&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;&apos;1&apos;+&apos;1&apos;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;==========================&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;2.000000000000000e+000&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;SELECT &apos;1&apos;+&apos;a&apos;;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;ERROR: Cannot coerce &apos;a&apos; to type double.&lt;/p&gt;
&lt;h6&gt;require_like_escape_characterintl_mbs_support&lt;/h6&gt;
&lt;p&gt;The &lt;span class=&quot;keyword&quot;&gt;require_like_escape_character&lt;/span&gt; parameter is used to determine whether or not to use an ESCAPE character in the &lt;span class=&quot;keyword&quot;&gt;LIKE&lt;/span&gt; clause, and the default value is no. If a value for this parameter is set to yes and a value for &lt;span class=&quot;keyword&quot;&gt;no_backslash_escapes&lt;/span&gt; is set to no, backslash () will be used as an ESCAPE character in the strings of the LIKE clause, otherwise you should specify an ESCAPE character by using the &lt;span class=&quot;keyword&quot;&gt;LIKE… ESCAPE&lt;/span&gt; clause. For details, see &lt;a href=&quot;/manual/841/en/LIKE%20Conditional%20Expression&quot;&gt;LIKE Predicate&lt;/a&gt;.&lt;/p&gt;
&lt;h6&gt;return_null_on_function_errors&lt;/h6&gt;
&lt;p&gt;The &lt;span class=&quot;keyword&quot;&gt;return_null_on_function_errors&lt;/span&gt; parameter is used to define actions when errors occur in some SQL functions, and the default value is no. If a value for this parameter is set to yes, &lt;span class=&quot;keyword&quot;&gt;NULL&lt;/span&gt; is returned; if it is set to no, an error is returned when the error occurs in functions, and the related message is displayed.&lt;/p&gt;
&lt;p&gt;The following SQL functions are affected by this system parameter.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;ADDTIME&lt;/li&gt;
&lt;li&gt;DATEDIFF&lt;/li&gt;
&lt;li&gt;DAY&lt;/li&gt;
&lt;li&gt;DAYOFMONTH&lt;/li&gt;
&lt;li&gt;DAYOFWEEK&lt;/li&gt;
&lt;li&gt;DAYOFYEAR&lt;/li&gt;
&lt;li&gt;FROM_DAYS&lt;/li&gt;
&lt;li&gt;FROM_UNIXTIME&lt;/li&gt;
&lt;li&gt;HOUR&lt;/li&gt;
&lt;li&gt;LAST_DAY&lt;/li&gt;
&lt;li&gt;MAKEDATE&lt;/li&gt;
&lt;li&gt;MAKETIME&lt;/li&gt;
&lt;li&gt;MINUTE&lt;/li&gt;
&lt;li&gt;MONTH&lt;/li&gt;
&lt;li&gt;QUARTER&lt;/li&gt;
&lt;li&gt;SEC_TO_TIME&lt;/li&gt;
&lt;li&gt;SECOND&lt;/li&gt;
&lt;li&gt;TIME&lt;/li&gt;
&lt;li&gt;TIME_TO_SEC&lt;/li&gt;
&lt;li&gt;TIMEDIFF&lt;/li&gt;
&lt;li&gt;TO_DAYS&lt;/li&gt;
&lt;li&gt;WEEK&lt;/li&gt;
&lt;li&gt;WEEKDAY&lt;/li&gt;
&lt;li&gt;YEAR&lt;/li&gt;
&lt;/ul&gt;
&lt;p class=&quot;codep&quot;&gt;-- return_null_on_function_errors=no&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;SELECT HOUR(&apos;2010-01-01&apos;);&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;ERROR: Conversion error in time format.&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;-- return_null_on_function_errors=yes&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;SELECT HOUR(&apos;2010-01-01&apos;);&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;hour(&apos;2010-01-01&apos;)&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;======================&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;NULL&lt;/p&gt;&lt;/div&gt;</content>
                  
   </entry>
   <entry>
      <title>PHP API</title>
      <id>http://www.cubrid.org/339087</id>
      <published>2012-04-19T03:37:16-07:00</published>
      <updated>2012-05-22T02:41:56-07:00</updated>
      <link rel="alternate" type="text/html" href="http://www.cubrid.org/339087"/>
      <link rel="replies" type="text/html" href="http://www.cubrid.org/339087#comment"/>
      <author>
         <name>CUBRID</name>
                  <uri>http://www.cubrid.org</uri>
               </author>
            <content type="html">&lt;div class=&quot;xe_content&quot;&gt;&lt;h2&gt;PHP API &lt;/h2&gt;&lt;ul&gt;&lt;!-- child-&gt;relpath= name=PHP Programming--&gt;
&lt;li&gt;&lt;a href=&quot;/manual/841/en/PHP%20Programming&quot;&gt;PHP Programming &lt;/a&gt;&lt;/li&gt;&lt;!-- child-&gt;relpath=api/api_php_affectedrows.htm name=cubrid_affected_rows--&gt;
&lt;li&gt;&lt;a href=&quot;/manual/841/en/cubrid_affected_rows&quot;&gt;cubrid_affected_rows &lt;/a&gt;&lt;/li&gt;&lt;!-- child-&gt;relpath=api/api_php_bind.htm name=cubrid_bind--&gt;
&lt;li&gt;&lt;a href=&quot;/manual/841/en/cubrid_bind&quot;&gt;cubrid_bind &lt;/a&gt;&lt;/li&gt;&lt;!-- child-&gt;relpath=api/api_php_clientencoding.htm name=cubrid_client_encoding--&gt;
&lt;li&gt;&lt;a href=&quot;/manual/841/en/cubrid_client_encoding&quot;&gt;cubrid_client_encoding &lt;/a&gt;&lt;/li&gt;&lt;!-- child-&gt;relpath=api/api_php_close.htm name=cubrid_close--&gt;
&lt;li&gt;&lt;a href=&quot;/manual/841/en/cubrid_close&quot;&gt;cubrid_close &lt;/a&gt;&lt;/li&gt;&lt;!-- child-&gt;relpath=api/api_php_closerequest.htm name=cubrid_close_prepare--&gt;
&lt;li&gt;&lt;a href=&quot;/manual/841/en/cubrid_close_request&quot;&gt;cubrid_close_prepare &lt;/a&gt;&lt;/li&gt;&lt;!-- child-&gt;relpath=api/api_php_closerequest.htm name=cubrid_close_request--&gt;
&lt;li&gt;&lt;a href=&quot;/manual/841/en/cubrid_close_request&quot;&gt;cubrid_close_request &lt;/a&gt;&lt;/li&gt;&lt;!-- child-&gt;relpath=api/api_php_colget.htm name=cubrid_col_get--&gt;
&lt;li&gt;&lt;a href=&quot;/manual/841/en/cubrid_col_get&quot;&gt;cubrid_col_get &lt;/a&gt;&lt;/li&gt;&lt;!-- child-&gt;relpath=api/api_php_colsize.htm name=cubrid_col_size--&gt;
&lt;li&gt;&lt;a href=&quot;/manual/841/en/cubrid_col_size&quot;&gt;cubrid_col_size &lt;/a&gt;&lt;/li&gt;&lt;!-- child-&gt;relpath=api/api_php_columnnames.htm name=cubrid_column_names--&gt;
&lt;li&gt;&lt;a href=&quot;/manual/841/en/cubrid_column_names&quot;&gt;cubrid_column_names &lt;/a&gt;&lt;/li&gt;&lt;!-- child-&gt;relpath=api/api_php_columntypes.htm name=cubrid_column_types--&gt;
&lt;li&gt;&lt;a href=&quot;/manual/841/en/cubrid_column_types&quot;&gt;cubrid_column_types &lt;/a&gt;&lt;/li&gt;&lt;!-- child-&gt;relpath=api/api_php_commit.htm name=cubrid_commit--&gt;
&lt;li&gt;&lt;a href=&quot;/manual/841/en/cubrid_commit&quot;&gt;cubrid_commit &lt;/a&gt;&lt;/li&gt;&lt;!-- child-&gt;relpath=api/api_php_connect.htm name=cubrid_connect--&gt;
&lt;li&gt;&lt;a href=&quot;/manual/841/en/cubrid_connect&quot;&gt;cubrid_connect &lt;/a&gt;&lt;/li&gt;&lt;!-- child-&gt;relpath=api/api_php_connectwithurl.htm name=cubrid_connect_with_url--&gt;
&lt;li&gt;&lt;a href=&quot;/manual/841/en/cubrid_connect_with_url&quot;&gt;cubrid_connect_with_url &lt;/a&gt;&lt;/li&gt;&lt;!-- child-&gt;relpath=api/api_php_currentoid.htm name=cubrid_current_oid--&gt;
&lt;li&gt;&lt;a href=&quot;/manual/841/en/cubrid_current_oid&quot;&gt;cubrid_current_oid &lt;/a&gt;&lt;/li&gt;&lt;!-- child-&gt;relpath=api/api_php_dataseek.htm name=cubrid_data_seek--&gt;
&lt;li&gt;&lt;a href=&quot;/manual/841/en/cubrid_data_seek&quot;&gt;cubrid_data_seek &lt;/a&gt;&lt;/li&gt;&lt;!-- child-&gt;relpath=api/api_php_dbname.htm name=cubrid_db_name--&gt;
&lt;li&gt;&lt;a href=&quot;/manual/841/en/cubrid_db_name&quot;&gt;cubrid_db_name &lt;/a&gt;&lt;/li&gt;&lt;!-- child-&gt;relpath=api/api_php_disconnect.htm name=cubrid_disconnect--&gt;
&lt;li&gt;&lt;a href=&quot;/manual/841/en/cubrid_disconnect&quot;&gt;cubrid_disconnect &lt;/a&gt;&lt;/li&gt;&lt;!-- child-&gt;relpath=api/api_php_drop.htm name=cubrid_drop--&gt;
&lt;li&gt;&lt;a href=&quot;/manual/841/en/cubrid_drop&quot;&gt;cubrid_drop &lt;/a&gt;&lt;/li&gt;&lt;!-- child-&gt;relpath=api/api_php_errorcode.htm name=cubrid_errno--&gt;
&lt;li&gt;&lt;a href=&quot;/manual/841/en/cubrid_error_code&quot;&gt;cubrid_errno &lt;/a&gt;&lt;/li&gt;&lt;!-- child-&gt;relpath=api/api_php_errormsg.htm name=cubrid_error--&gt;
&lt;li&gt;&lt;a href=&quot;/manual/841/en/cubrid_error_msg&quot;&gt;cubrid_error &lt;/a&gt;&lt;/li&gt;&lt;!-- child-&gt;relpath=api/api_php_errorcode.htm name=cubrid_error_code--&gt;
&lt;li&gt;&lt;a href=&quot;/manual/841/en/cubrid_error_code&quot;&gt;cubrid_error_code &lt;/a&gt;&lt;/li&gt;&lt;!-- child-&gt;relpath=api/api_php_errorcodefacility.htm name=cubrid_error_code_facility--&gt;
&lt;li&gt;&lt;a href=&quot;/manual/841/en/cubrid_error_code_facility&quot;&gt;cubrid_error_code_facility &lt;/a&gt;&lt;/li&gt;&lt;!-- child-&gt;relpath=api/api_php_errormsg.htm name=cubrid_error_msg--&gt;
&lt;li&gt;&lt;a href=&quot;/manual/841/en/cubrid_error_msg&quot;&gt;cubrid_error_msg &lt;/a&gt;&lt;/li&gt;&lt;!-- child-&gt;relpath=api/api_php_execute.htm name=cubrid_execute--&gt;
&lt;li&gt;&lt;a href=&quot;/manual/841/en/cubrid_execute&quot;&gt;cubrid_execute &lt;/a&gt;&lt;/li&gt;&lt;!-- child-&gt;relpath=api/api_php_fetch.htm name=cubrid_fetch--&gt;
&lt;li&gt;&lt;a href=&quot;/manual/841/en/cubrid_fetch&quot;&gt;cubrid_fetch &lt;/a&gt;&lt;/li&gt;&lt;!-- child-&gt;relpath=api/api_php_fetcharray.htm name=cubrid_fetch_array--&gt;
&lt;li&gt;&lt;a href=&quot;/manual/841/en/cubrid_fetch_array&quot;&gt;cubrid_fetch_array &lt;/a&gt;&lt;/li&gt;&lt;!-- child-&gt;relpath=api/api_php_fetchassoc.htm name=cubrid_fetch_assoc--&gt;
&lt;li&gt;&lt;a href=&quot;/manual/841/en/cubrid_fetch_assoc&quot;&gt;cubrid_fetch_assoc &lt;/a&gt;&lt;/li&gt;&lt;!-- child-&gt;relpath=api/api_php_fetchfield.htm name=cubrid_fetch_field--&gt;
&lt;li&gt;&lt;a href=&quot;/manual/841/en/cubrid_fetch_field&quot;&gt;cubrid_fetch_field &lt;/a&gt;&lt;/li&gt;&lt;!-- child-&gt;relpath=api/api_php_fetchlengths.htm name=cubrid_fetch_lengths--&gt;
&lt;li&gt;&lt;a href=&quot;/manual/841/en/cubrid_fetch_lengths&quot;&gt;cubrid_fetch_lengths &lt;/a&gt;&lt;/li&gt;&lt;!-- child-&gt;relpath=api/api_php_fetchobject.htm name=cubrid_fetch_object--&gt;
&lt;li&gt;&lt;a href=&quot;/manual/841/en/cubrid_fetch_object&quot;&gt;cubrid_fetch_object &lt;/a&gt;&lt;/li&gt;&lt;!-- child-&gt;relpath=api/api_php_fetchrow.htm name=cubrid_fetch_row--&gt;
&lt;li&gt;&lt;a href=&quot;/manual/841/en/cubrid_fetch_row&quot;&gt;cubrid_fetch_row &lt;/a&gt;&lt;/li&gt;&lt;!-- child-&gt;relpath=api/api_php_fieldflags.htm name=cubrid_field_flags--&gt;
&lt;li&gt;&lt;a href=&quot;/manual/841/en/cubrid_field_flags&quot;&gt;cubrid_field_flags &lt;/a&gt;&lt;/li&gt;&lt;!-- child-&gt;relpath=api/api_php_fieldlen.htm name=cubrid_field_len--&gt;
&lt;li&gt;&lt;a href=&quot;/manual/841/en/cubrid_field_len&quot;&gt;cubrid_field_len &lt;/a&gt;&lt;/li&gt;&lt;!-- child-&gt;relpath=api/api_php_fieldname.htm name=cubrid_field_name--&gt;
&lt;li&gt;&lt;a href=&quot;/manual/841/en/cubrid_field_name&quot;&gt;cubrid_field_name &lt;/a&gt;&lt;/li&gt;&lt;!-- child-&gt;relpath=api/api_php_fieldseek.htm name=cubrid_field_seek--&gt;
&lt;li&gt;&lt;a href=&quot;/manual/841/en/cubrid_field_seek&quot;&gt;cubrid_field_seek &lt;/a&gt;&lt;/li&gt;&lt;!-- child-&gt;relpath=api/api_php_fieldtable.htm name=cubrid_field_table--&gt;
&lt;li&gt;&lt;a href=&quot;/manual/841/en/cubrid_field_table&quot;&gt;cubrid_field_table &lt;/a&gt;&lt;/li&gt;&lt;!-- child-&gt;relpath=api/api_php_fieldtype.htm name=cubrid_field_type--&gt;
&lt;li&gt;&lt;a href=&quot;/manual/841/en/cubrid_field_type&quot;&gt;cubrid_field_type &lt;/a&gt;&lt;/li&gt;&lt;!-- child-&gt;relpath=api/api_php_freeresult.htm name=cubrid_free_result--&gt;
&lt;li&gt;&lt;a href=&quot;/manual/841/en/cubrid_free_result&quot;&gt;cubrid_free_result &lt;/a&gt;&lt;/li&gt;&lt;!-- child-&gt;relpath=api/api_php_get.htm name=cubrid_get--&gt;
&lt;li&gt;&lt;a href=&quot;/manual/841/en/cubrid_get&quot;&gt;cubrid_get &lt;/a&gt;&lt;/li&gt;&lt;!-- child-&gt;relpath=api/api_php_getautocommit.htm name=cubrid_get_autocommit--&gt;
&lt;li&gt;&lt;a href=&quot;/manual/841/en/cubrid_get_autocommit&quot;&gt;cubrid_get_autocommit &lt;/a&gt;&lt;/li&gt;&lt;!-- child-&gt;relpath=api/api_php_getcharset.htm name=cubrid_get_charset--&gt;
&lt;li&gt;&lt;a href=&quot;/manual/841/en/cubrid_get_charset&quot;&gt;cubrid_get_charset &lt;/a&gt;&lt;/li&gt;&lt;!-- child-&gt;relpath=api/api_php_getclassname.htm name=cubrid_get_class_name--&gt;
&lt;li&gt;&lt;a href=&quot;/manual/841/en/cubrid_get_class_name&quot;&gt;cubrid_get_class_name &lt;/a&gt;&lt;/li&gt;&lt;!-- child-&gt;relpath=api/api_php_getclientinfo.htm name=cubrid_get_client_info--&gt;
&lt;li&gt;&lt;a href=&quot;/manual/841/en/cubrid_get_client_info&quot;&gt;cubrid_get_client_info &lt;/a&gt;&lt;/li&gt;&lt;!-- child-&gt;relpath=api/api_php_getdbparam.htm name=cubrid_get_db_parameter--&gt;
&lt;li&gt;&lt;a href=&quot;/manual/841/en/cubrid_get_db_parameter&quot;&gt;cubrid_get_db_parameter &lt;/a&gt;&lt;/li&gt;&lt;!-- child-&gt;relpath=api/api_php_getquerytimeout.htm name=cubrid_get_query_timeout--&gt;
&lt;li&gt;&lt;a href=&quot;/manual/841/en/cubrid_get_query_timeout&quot;&gt;cubrid_get_query_timeout &lt;/a&gt;&lt;/li&gt;&lt;!-- child-&gt;relpath=api/api_php_getserverinfo.htm name=cubrid_get_server_info--&gt;
&lt;li&gt;&lt;a href=&quot;/manual/841/en/cubrid_get_server_info&quot;&gt;cubrid_get_server_info &lt;/a&gt;&lt;/li&gt;&lt;!-- child-&gt;relpath=api/api_php_insertid.htm name=cubrid_insert_id--&gt;
&lt;li&gt;&lt;a href=&quot;/manual/841/en/cubrid_insert_id&quot;&gt;cubrid_insert_id &lt;/a&gt;&lt;/li&gt;&lt;!-- child-&gt;relpath=api/api_php_isinstance.htm name=cubrid_is_instance--&gt;
&lt;li&gt;&lt;a href=&quot;/manual/841/en/cubrid_is_instance&quot;&gt;cubrid_is_instance &lt;/a&gt;&lt;/li&gt;&lt;!-- child-&gt;relpath=api/api_php_lobclose.htm name=cubrid_lob_close--&gt;
&lt;li&gt;&lt;a href=&quot;/manual/841/en/cubrid_lob_close&quot;&gt;cubrid_lob_close &lt;/a&gt;&lt;/li&gt;&lt;!-- child-&gt;relpath=api/api_php_lobexport.htm name=cubrid_lob_export--&gt;
&lt;li&gt;&lt;a href=&quot;/manual/841/en/cubrid_lob_export&quot;&gt;cubrid_lob_export &lt;/a&gt;&lt;/li&gt;&lt;!-- child-&gt;relpath=api/api_php_lobget.htm name=cubrid_lob_get--&gt;
&lt;li&gt;&lt;a href=&quot;/manual/841/en/cubrid_lob_get&quot;&gt;cubrid_lob_get &lt;/a&gt;&lt;/li&gt;&lt;!-- child-&gt;relpath=api/api_php_lobsend.htm name=cubrid_lob_send--&gt;
&lt;li&gt;&lt;a href=&quot;/manual/841/en/cubrid_lob_send&quot;&gt;cubrid_lob_send &lt;/a&gt;&lt;/li&gt;&lt;!-- child-&gt;relpath=api/api_php_lobsize.htm name=cubrid_lob_size--&gt;
&lt;li&gt;&lt;a href=&quot;/manual41/339203&quot;&gt;cubrid_lob_size &lt;/a&gt;&lt;/li&gt;&lt;!-- child-&gt;relpath=api/api_php_listdbs.htm name=cubrid_list_dbs--&gt;
&lt;li&gt;&lt;a href=&quot;/manual/841/en/cubrid_list_dbs&quot;&gt;cubrid_list_dbs &lt;/a&gt;&lt;/li&gt;&lt;!-- child-&gt;relpath=api/api_php_lobsize.htm name=cubrid_lob_size--&gt;
&lt;li&gt;&lt;a href=&quot;/manual41/339203&quot;&gt;cubrid_lob_size &lt;/a&gt;&lt;/li&gt;&lt;!-- child-&gt;relpath=api/api_php_lockread.htm name=cubrid_lock_read--&gt;
&lt;li&gt;&lt;a href=&quot;/manual/841/en/cubrid_lock_read&quot;&gt;cubrid_lock_read &lt;/a&gt;&lt;/li&gt;&lt;!-- child-&gt;relpath=api/api_php_lockwrite.htm name=cubrid_lock_write--&gt;
&lt;li&gt;&lt;a href=&quot;/manual/841/en/cubrid_lock_write&quot;&gt;cubrid_lock_write &lt;/a&gt;&lt;/li&gt;&lt;!-- child-&gt;relpath=api/api_php_movecursor.htm name=cubrid_move_cursor--&gt;
&lt;li&gt;&lt;a href=&quot;/manual/841/en/cubrid_move_cursor&quot;&gt;cubrid_move_cursor &lt;/a&gt;&lt;/li&gt;&lt;!-- child-&gt;relpath=api/api_php_nextresult.htm name=cubrid_next_result--&gt;
&lt;li&gt;&lt;a href=&quot;/manual/841/en/cubrid_next_result&quot;&gt;cubrid_next_result &lt;/a&gt;&lt;/li&gt;&lt;!-- child-&gt;relpath=api/api_php_numcols.htm name=cubrid_num_cols--&gt;
&lt;li&gt;&lt;a href=&quot;/manual/841/en/cubrid_num_fields&quot;&gt;cubrid_num_cols &lt;/a&gt;&lt;/li&gt;&lt;!-- child-&gt;relpath=api/api_php_numcols.htm name=cubrid_num_fields--&gt;
&lt;li&gt;&lt;a href=&quot;/manual/841/en/cubrid_num_fields&quot;&gt;cubrid_num_fields &lt;/a&gt;&lt;/li&gt;&lt;!-- child-&gt;relpath=api/api_php_numrows.htm name=cubrid_num_rows--&gt;
&lt;li&gt;&lt;a href=&quot;/manual/841/en/cubrid_num_rows&quot;&gt;cubrid_num_rows &lt;/a&gt;&lt;/li&gt;&lt;!-- child-&gt;relpath=api/api_php_pconnect.htm name=cubrid_pconnect--&gt;
&lt;li&gt;&lt;a href=&quot;/manual/841/en/cubrid_pconnect&quot;&gt;cubrid_pconnect &lt;/a&gt;&lt;/li&gt;&lt;!-- child-&gt;relpath=api/api_php_pconnectwithurl.htm name=cubrid_pconnect_with_url--&gt;
&lt;li&gt;&lt;a href=&quot;/manual/841/en/cubrid_pconnect_with_url&quot;&gt;cubrid_pconnect_with_url &lt;/a&gt;&lt;/li&gt;&lt;!-- child-&gt;relpath=api/api_php_ping.htm name=cubrid_ping--&gt;
&lt;li&gt;&lt;a href=&quot;/manual/841/en/cubrid_ping&quot;&gt;cubrid_ping &lt;/a&gt;&lt;/li&gt;&lt;!-- child-&gt;relpath=api/api_php_prepare.htm name=cubrid_prepare--&gt;
&lt;li&gt;&lt;a href=&quot;/manual/841/en/cubrid_prepare&quot;&gt;cubrid_prepare &lt;/a&gt;&lt;/li&gt;&lt;!-- child-&gt;relpath=api/api_php_put.htm name=cubrid_put--&gt;
&lt;li&gt;&lt;a href=&quot;/manual/841/en/cubrid_put&quot;&gt;cubrid_put &lt;/a&gt;&lt;/li&gt;&lt;!-- child-&gt;relpath=api/api_php_query.htm name=cubrid_query--&gt;
&lt;li&gt;&lt;a href=&quot;/manual/841/en/cubrid_query&quot;&gt;cubrid_query &lt;/a&gt;&lt;/li&gt;&lt;!-- child-&gt;relpath=api/api_php_realescapestring.htm name=cubrid_real_escape_string--&gt;
&lt;li&gt;&lt;a href=&quot;/manual/841/en/cubrid_real_escape_string&quot;&gt;cubrid_real_escape_string&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;/manual/841/en/cubrid_result&quot;&gt;cubrid_result &lt;/a&gt;&lt;/li&gt;&lt;!-- child-&gt;relpath=api/api_php_rollback.htm name=cubrid_rollback--&gt;
&lt;li&gt;&lt;a href=&quot;/manual/841/en/cubrid_rollback&quot;&gt;cubrid_rollback &lt;/a&gt;&lt;/li&gt;&lt;!-- child-&gt;relpath=api/api_php_schema.htm name=cubrid_schema--&gt;
&lt;li&gt;&lt;a href=&quot;/manual/841/en/cubrid_schema&quot;&gt;cubrid_schema &lt;/a&gt;&lt;/li&gt;&lt;!-- child-&gt;relpath=api/api_php_seqdrop.htm name=cubrid_seq_drop--&gt;
&lt;li&gt;&lt;a href=&quot;/manual/841/en/cubrid_seq_drop&quot;&gt;cubrid_seq_drop &lt;/a&gt;&lt;/li&gt;&lt;!-- child-&gt;relpath=api/api_php_seqinsert.htm name=cubrid_seq_insert--&gt;
&lt;li&gt;&lt;a href=&quot;/manual/841/en/cubrid_seq_insert&quot;&gt;cubrid_seq_insert &lt;/a&gt;&lt;/li&gt;&lt;!-- child-&gt;relpath=api/api_php_seqput.htm name=cubrid_seq_put--&gt;
&lt;li&gt;&lt;a href=&quot;/manual/841/en/cubrid_seq_put&quot;&gt;cubrid_seq_put &lt;/a&gt;&lt;/li&gt;&lt;!-- child-&gt;relpath=api/api_php_setadd.htm name=cubrid_set_add--&gt;
&lt;li&gt;&lt;a href=&quot;/manual/841/en/cubrid_set_add&quot;&gt;cubrid_set_add &lt;/a&gt;&lt;/li&gt;&lt;!-- child-&gt;relpath=api/api_php_setautocommit.htm name=cubrid_set_autocommit--&gt;
&lt;li&gt;&lt;a href=&quot;/manual/841/en/cubrid_set_autocommit&quot;&gt;cubrid_set_autocommit &lt;/a&gt;&lt;/li&gt;&lt;!-- child-&gt;relpath=api/api_php_setdbparam.htm name=cubrid_set_db_parameter--&gt;
&lt;li&gt;&lt;a href=&quot;/manual/841/en/cubrid_set_db_parameter&quot;&gt;cubrid_set_db_parameter &lt;/a&gt;&lt;/li&gt;&lt;!-- child-&gt;relpath=api/api_php_setdrop.htm name=cubrid_set_drop--&gt;
&lt;li&gt;&lt;a href=&quot;/manual/841/en/cubrid_set_drop&quot;&gt;cubrid_set_drop &lt;/a&gt;&lt;/li&gt;&lt;!-- child-&gt;relpath=api/api_php_setquerytimeout.htm name=cubrid_set_query_timeout--&gt;
&lt;li&gt;&lt;a href=&quot;/manual/841/en/cubrid_set_query_timeout&quot;&gt;cubrid_set_query_timeout &lt;/a&gt;&lt;/li&gt;&lt;!-- child-&gt;relpath=api/api_php_unbufferedquery.htm name=cubrid_unbuffered_query--&gt;
&lt;li&gt;&lt;a href=&quot;/manual/841/en/cubrid_unbuffered_query&quot;&gt;cubrid_unbuffered_query &lt;/a&gt;&lt;/li&gt;&lt;!-- child-&gt;relpath=api/api_php_version.htm name=cubrid_version--&gt;
&lt;li&gt;&lt;a href=&quot;/manual/841/en/cubrid_version&quot;&gt;cubrid_version &lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;</content>
                  
   </entry>
   <entry>
      <title>Escape Special Characters</title>
      <id>http://www.cubrid.org/355691</id>
      <published>2012-05-22T02:27:45-07:00</published>
      <updated>2012-05-22T02:27:45-07:00</updated>
      <link rel="alternate" type="text/html" href="http://www.cubrid.org/355691"/>
      <link rel="replies" type="text/html" href="http://www.cubrid.org/355691#comment"/>
      <author>
         <name>CUBRID</name>
                  <uri>http://www.cubrid.org</uri>
               </author>
            <content type="html">&lt;div class=&quot;xe_content&quot;&gt;&lt;h4&gt;Escape Special Characters&lt;/h4&gt;
&lt;h6&gt;Description&lt;/h6&gt;
&lt;p&gt;CUBRID supports two kinds of methods to escape special characters. One is using quotes and the other is using backslash (&amp;#92;).&lt;/p&gt;
&lt;h6&gt;Escape with Quotes&lt;/h6&gt;
&lt;p&gt;If you set &lt;span class=&quot;keyword&quot;&gt;no&lt;/span&gt; for the system parameter &lt;span class=&quot;keyword&quot;&gt;ansi_quotes&lt;/span&gt; in the &lt;span class=&quot;keyword&quot;&gt;cubrid.conf&lt;/span&gt; file, you can use both double quotes (&quot;) and singe quotes (&apos;) to wrap strings. The default value for the &lt;span class=&quot;keyword&quot;&gt;ansi_quotes&lt;/span&gt; parameter is &lt;span class=&quot;keyword&quot;&gt;yes&lt;/span&gt;, and you can use only single quotes to wrap the string. The numbers 2 and 3 below are applied only if you set for the &lt;span class=&quot;keyword&quot;&gt;ansi_quotes&lt;/span&gt; parameter to &lt;span class=&quot;keyword&quot;&gt;no&lt;/span&gt;.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;You should use two single quotes (&apos;&apos;) for the single quotes included in the strings wrapped in single quotes.&lt;/li&gt;
&lt;li&gt;You should use two double quotes (&quot;&quot;) for the double quotes included in the strings wrapped in double quotes.&lt;/li&gt;
&lt;li&gt;You don&apos;t need to escape the single quotes included in the string wrapped in double quotes.&lt;/li&gt;
&lt;li&gt;You don&apos;t need to escape the double quotes included in the string wrapped in single quotes.&lt;/li&gt;
&lt;/ol&gt;
&lt;h6&gt;Escape with Backslash&lt;/h6&gt;
&lt;p&gt;You can use escape using backslash (&amp;#92;) only if you set no for the system parameter &lt;span class=&quot;keyword&quot;&gt;no_backslash_escapes&lt;/span&gt; in the &lt;span class=&quot;keyword&quot;&gt;cubrid.conf&lt;/span&gt; file. The default value for the &lt;span class=&quot;keyword&quot;&gt;no_backslash_escapes&lt;/span&gt; parameter is &lt;span class=&quot;keyword&quot;&gt;yes&lt;/span&gt;. Depending on the input value, the following are the special characters.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&amp;#92;&apos; : Single quotes (&apos;)&lt;/li&gt;
&lt;li&gt;&amp;#92;&quot; : Double quotes (&quot;)&lt;/li&gt;
&lt;li&gt;&amp;#92;n : Newline, linefeed character&lt;/li&gt;
&lt;li&gt;&amp;#92;r : Carriage return character&lt;/li&gt;
&lt;li&gt;&amp;#92;t : Tab character&lt;/li&gt;
&lt;li&gt;&amp;#92;&amp;#92; : Backslash&lt;/li&gt;
&lt;li&gt;&amp;#92;% : Percent sign (%). For details, see the following description.&lt;/li&gt;
&lt;li&gt;&amp;#92;_ : Underbar (_). For details, see the following description.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;For all other escapes, the backslash will be ignored. For example, &quot;&amp;#92;x&quot; is the same as entering only &quot;x&quot;.&lt;/p&gt;
&lt;p&gt;&lt;span class=&quot;keyword&quot;&gt;&amp;#92;%&lt;/span&gt; and &lt;span class=&quot;keyword&quot;&gt;&amp;#92;_&lt;/span&gt; are used in the pattern matching syntax such as &lt;span class=&quot;keyword&quot;&gt;LIKE&lt;/span&gt; to search percent signs and underbars and are used as a wildcard character if there is no backslash. Outside of the pattern matching syntax, &quot;&amp;#92;%&quot;and &quot;&amp;#92;_&quot; are recognized as normal strings not wildcard characters. For details, see &lt;a href=&quot;/manual/841/en/LIKE%20Conditional%20Expression&quot;&gt;LIKE Predicate&lt;/a&gt;.&lt;/p&gt;
&lt;h6&gt;Example 1&lt;/h6&gt;
&lt;p&gt;The following is the result of executing Escape if a value for the system parameter &lt;span class=&quot;keyword&quot;&gt;ansi_quotes&lt;/span&gt; in the &lt;span class=&quot;keyword&quot;&gt;cubrid.conf&lt;/span&gt; file is no, and a value for &lt;span class=&quot;keyword&quot;&gt;no_backslash_escapes&lt;/span&gt; is no.&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;SELECT STRCMP(&apos;single quotes test(&apos;&apos;)&apos;, &apos;single quotes test(&amp;#92;&apos;)&apos;);&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;strcmp(&apos;single quotes test(&apos;&apos;)&apos;, &apos;single quotes test(&apos;&apos;)&apos;)&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;=============================================================&lt;/p&gt;
&lt;p class=&quot;codep&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;0&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;SELECT STRCMP(&quot;&amp;#92;a&amp;#92;b&amp;#92;c&amp;#92;d&amp;#92;e&amp;#92;f&amp;#92;g&amp;#92;h&amp;#92;i&amp;#92;j&amp;#92;k&amp;#92;l&amp;#92;m&amp;#92;n&amp;#92;o&amp;#92;p&amp;#92;q&amp;#92;r&amp;#92;s&amp;#92;t&amp;#92;u&amp;#92;v&amp;#92;w&amp;#92;x&amp;#92;y&amp;#92;z&quot;, &quot;a&amp;#92;bcdefghijklm&amp;#92;nopq&amp;#92;rs&amp;#92;tuvwxyz&quot;);&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;strcmp(&apos;abcdefghijklm&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;s &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;uvwxyz&apos;, &apos;abcdefghijklm&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;s &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;uvwxyz&apos;)&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;=====================================================================&lt;/p&gt;
&lt;p class=&quot;codep&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;0&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;SELECT LENGTH(&apos;&amp;#92;&amp;#92;&apos;);&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;char_length(&apos;&amp;#92;&apos;)&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;===================&lt;/p&gt;
&lt;p class=&quot;codep&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;1&lt;/p&gt;
&lt;h6&gt;Example 2&lt;/h6&gt;
&lt;p&gt;The following is the result of executing Escape if a value for the system parameter &lt;span class=&quot;keyword&quot;&gt;ansi_quotes&lt;/span&gt; in the &lt;span class=&quot;keyword&quot;&gt;cubrid.conf&lt;/span&gt; file is yes, and a value for &lt;span class=&quot;keyword&quot;&gt;no_backslash_escapes&lt;/span&gt; is yes.&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;SELECT STRCMP(&apos;single quotes test(&apos;&apos;)&apos;, &apos;single quotes test(&amp;#92;&apos;)&apos;);&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;In the command from line 2,&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;ERROR: unterminated string&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;In the command from line 2,&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;ERROR: syntax error, unexpected UNTERMINATED_STRING&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;SELECT STRCMP(&quot;&amp;#92;a&amp;#92;b&amp;#92;c&amp;#92;d&amp;#92;e&amp;#92;f&amp;#92;g&amp;#92;h&amp;#92;i&amp;#92;j&amp;#92;k&amp;#92;l&amp;#92;m&amp;#92;n&amp;#92;o&amp;#92;p&amp;#92;q&amp;#92;r&amp;#92;s&amp;#92;t&amp;#92;u&amp;#92;v&amp;#92;w&amp;#92;x&amp;#92;y&amp;#92;z&quot;, &quot;a&amp;#92;bcdefghijklm&amp;#92;nopq&amp;#92;rs&amp;#92;tuvwxyz&quot;);&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;In line 1, column 18,&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;ERROR: [&amp;#92;a&amp;#92;b&amp;#92;c&amp;#92;d&amp;#92;e&amp;#92;f&amp;#92;g&amp;#92;h&amp;#92;i&amp;#92;j&amp;#92;k&amp;#92;l&amp;#92;m&amp;#92;n&amp;#92;o&amp;#92;p&amp;#92;q&amp;#92;r&amp;#92;s&amp;#92;t&amp;#92;u&amp;#92;v&amp;#92;w&amp;#92;x&amp;#92;y&amp;#92;z] is not defined.&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;In line 1, column 18,&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;ERROR: [a&amp;#92;bcdefghijklm&amp;#92;nopq&amp;#92;rs&amp;#92;tuvwxyz] is not defined.&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;SELECT LENGTH(&apos;&amp;#92;&amp;#92;&apos;);&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;char_length(&apos;&amp;#92;&amp;#92;&apos;)&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;====================&lt;/p&gt;
&lt;p class=&quot;codep&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;2&lt;/p&gt;
&lt;h6&gt;Example 3&lt;/h6&gt;
&lt;p&gt;The following is the result of executing Escape if a value for the system parameter &lt;span class=&quot;keyword&quot;&gt;ansi_quotes&lt;/span&gt; in the &lt;span class=&quot;keyword&quot;&gt;cubrid.conf&lt;/span&gt; file is yes, and a value for &lt;span class=&quot;keyword&quot;&gt;no_backslash_escapes&lt;/span&gt; is no.&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;CREATE TABLE t1 (a varchar(200));&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;INSERT INTO t1 VALUES (&apos;aaabbb&apos;), (&apos;aaa%&apos;);&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;SELECT a FROM t1 WHERE a LIKE &apos;aaa&amp;#92;%&apos; escape &apos;&amp;#92;&amp;#92;&apos;;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;a&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;======================&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;&apos;aaa%&apos;&lt;/p&gt;&lt;/div&gt;</content>
                  
   </entry>
   <entry>
      <title>Character Strings-Definition and Characteristics</title>
      <id>http://www.cubrid.org/337707</id>
      <published>2012-04-19T03:36:34-07:00</published>
      <updated>2012-05-22T01:56:58-07:00</updated>
      <link rel="alternate" type="text/html" href="http://www.cubrid.org/337707"/>
      <link rel="replies" type="text/html" href="http://www.cubrid.org/337707#comment"/>
      <author>
         <name>CUBRID</name>
                  <uri>http://www.cubrid.org</uri>
               </author>
            <content type="html">&lt;div class=&quot;xe_content&quot;&gt;﻿&lt;!--?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?--&gt;









&lt;style type=&quot;text/css&quot;&gt;
&lt;!--
div.WebHelpPopupMenu { position:absolute;
left:0px;
top:0px;
z-index:4;
visibility:hidden; }
--&gt;
&lt;/style&gt;







 


&lt;h4&gt;Definition and Characteristics&lt;/h4&gt;
&lt;h6&gt;Definition&lt;/h6&gt;
&lt;p&gt;CUBRID supports the following four types of character strings:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Fixed-length character string: &lt;span class=&quot;keyword&quot;&gt;CHAR&lt;/span&gt;(&lt;span class=&quot;var&quot;&gt;n&lt;/span&gt;)&lt;/li&gt;
&lt;li&gt;Variable-length character string: &lt;span class=&quot;keyword&quot;&gt;VARCHAR&lt;/span&gt;(&lt;span class=&quot;var&quot;&gt;n&lt;/span&gt;)&lt;/li&gt;
&lt;li&gt;Fixed-length national character string: &lt;span class=&quot;keyword&quot;&gt;NCHAR&lt;/span&gt;(&lt;span class=&quot;var&quot;&gt;n&lt;/span&gt;)&lt;/li&gt;
&lt;li&gt;Variable-length national character string: &lt;span class=&quot;keyword&quot;&gt;NCHAR VARYING&lt;/span&gt;(&lt;span class=&quot;var&quot;&gt;n&lt;/span&gt;)&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The followings are the rules that are applied when using the character string types.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;In general, single quotations are used to enclose character string. Double quotations may be used as well depending on the value of &lt;span class=&quot;keyword&quot;&gt;ansi_quotes&lt;/span&gt;, which is a parameter related to SQL statement. If the &lt;span class=&quot;keyword&quot;&gt;ansi_quotes&lt;/span&gt; value is set to &lt;span class=&quot;keyword&quot;&gt;no&lt;/span&gt;, character string enclosed by double quotations is handled as character string, not as an identifier. The default value is &lt;span class=&quot;keyword&quot;&gt;yes&lt;/span&gt;. For details, &lt;a href=&quot;/manual/841/en/Statement|Type-Related Parameters&quot;&gt;Statement/Type-Related Parameters&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;If there are characters that can be considered to be blank (e.g. spaces, tabs, or line breaks) between two character strings, these two character strings are treated as one according to ANSI standard. For example, the following example shows that a line break exists between two character string.&lt;/li&gt;
&lt;li class=&quot;codep&quot;&gt;&apos;abc&apos;&lt;/li&gt;
&lt;li class=&quot;codep&quot;&gt;&apos;def&apos;&lt;/li&gt;
&lt;li&gt;The two strings above are considered identical to one string below.&lt;/li&gt;
&lt;li class=&quot;codep&quot;&gt;&apos;abcdef&apos;&lt;/li&gt;
&lt;li&gt;If you want to include a single quote as part of a character string, enter two single quotes in a row. For example, the character string on the left is stored as the one on the right.&lt;/li&gt;
&lt;li class=&quot;codep&quot;&gt;&apos;&apos;abcde&apos;&apos;fghij&apos;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &apos;abcde&apos;fghij&lt;/li&gt;
&lt;li&gt;The maximum size of the token for all the character strings is 16 KB.&lt;/li&gt;
&lt;li&gt;National character strings are used to store national (except English alphabet) character strings in a multilingual environment. Note that &lt;span class=&quot;keyword&quot;&gt;N&lt;/span&gt; (uppercase) should be followed by a single quote which encloses character strings.&lt;/li&gt;
&lt;li class=&quot;codep&quot;&gt;N&apos;Härder&apos;&lt;/li&gt;
&lt;/ul&gt;
&lt;h6&gt;Characteristics&lt;/h6&gt;
&lt;p class=&quot;label&quot;&gt;Length&lt;/p&gt;
&lt;p&gt;For a &lt;span class=&quot;keyword&quot;&gt;CHAR&lt;/span&gt; or &lt;span class=&quot;keyword&quot;&gt;VARCHAR&lt;/span&gt; type, specify the length (bytes) of a character string for a &lt;span class=&quot;keyword&quot;&gt;NCHAR&lt;/span&gt; or &lt;span class=&quot;keyword&quot;&gt;NCHAR VARYING&lt;/span&gt; type, specify the number of character strings (number of characters).&lt;/p&gt;
&lt;p&gt;When the length of the character string entered exceeds the length specified, the characters in excess of the specified length are truncated.&lt;/p&gt;
&lt;p&gt;For a fixed-length character string type such as &lt;span class=&quot;keyword&quot;&gt;CHAR&lt;/span&gt; or &lt;span class=&quot;keyword&quot;&gt;NCHAR&lt;/span&gt;, the length is fixed at the declared length. Therefore, the right part (trailing space) of the character string is filled with space characters when the string is stored. For a variable-length character string type such as &lt;span class=&quot;keyword&quot;&gt;VARCHAR&lt;/span&gt; or &lt;span class=&quot;keyword&quot;&gt;NCHAR VARYING&lt;/span&gt;, only the entered character string is stored, and the space is not filled with space characters.&lt;/p&gt;
&lt;p&gt;The maximum length of a &lt;span class=&quot;keyword&quot;&gt;CHAR&lt;/span&gt; or &lt;span class=&quot;keyword&quot;&gt;VARCHAR&lt;/span&gt; type to be specified is 1,073,741,823 the maximum length of a &lt;span class=&quot;keyword&quot;&gt;NCHAR&lt;/span&gt; or &lt;span class=&quot;keyword&quot;&gt;NCHAR VARYING&lt;/span&gt; type to be specified is 536,870,911. The maximum length that can be input or output in a CSQL statement is 8,192 KB.&lt;/p&gt;
&lt;p class=&quot;label&quot;&gt;Character Set, charset&lt;/p&gt;
&lt;p&gt;A character set (charset) is a set in which rules are defined that relate to what kind of codes can be used for encoding when specified characters (symbols) are stored in the computer.&lt;/p&gt;
&lt;p&gt;CUBRID supports the following character sets and you can specify them as the &lt;span class=&quot;keyword&quot;&gt;CUBRID_LANG&lt;/span&gt; environment variable.&amp;nbsp; You can store data in other character sets (e.g. utf-8), but string function or &lt;span class=&quot;keyword&quot;&gt;LIKE&lt;/span&gt; search are not supported.&lt;/p&gt;
&lt;table border=&quot;1&quot; width=&quot;60%&quot;&gt;
&lt;tbody&gt;&lt;tr&gt;
&lt;th&gt;
&lt;p&gt;Character Set&lt;/p&gt;
&lt;/th&gt;
&lt;th&gt;
&lt;p&gt;CUBRID_LANG&lt;/p&gt;
&lt;/th&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p&gt;8-bits ISO 8859-1 Latin&lt;/p&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;en_US&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p&gt;KSC 5601-1992 (EUC-KR)&lt;/p&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;ko_KR.euckr&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;p&gt;Any characters from the above character sets can be included in a character string (the &lt;span class=&quot;keyword&quot;&gt;NULL&lt;/span&gt; character is represented as &apos;&amp;#92;0&apos;).&lt;/p&gt;
&lt;p class=&quot;label&quot;&gt;Collating Character Sets&lt;/p&gt;
&lt;p&gt;A collation is a set of rules used for comparing characters to search or sort values stored in the database when a certain character set is specified. Therefore, such rules are applied only to character string data types such as &lt;span class=&quot;keyword&quot;&gt;CHAR&lt;/span&gt; or &lt;span class=&quot;keyword&quot;&gt;VARCHAR&lt;/span&gt;. For a national character string type such as &lt;span class=&quot;keyword&quot;&gt;NCAHR()&lt;/span&gt; or &lt;span class=&quot;keyword&quot;&gt;NCHAR VARYING()&lt;/span&gt;, the sorting rules are determined according to the encoding algorithm of the specified character set.&lt;/p&gt;
&lt;p class=&quot;label&quot;&gt;Character String Coercion&lt;/p&gt;
&lt;p&gt;Automatic coercion takes place between a fixed-length and a variable-length character string for the comparison of two characters, applicable only to characters that belong to the same character set. For example, when you extract a column value from a CHAR(5) data type and insert it into a column with a CHAR(10) data type, the data type is automatically coerced to CHAR(10). If you want to coerce a character string explicitly, use the &lt;span class=&quot;keyword&quot;&gt;CAST&lt;/span&gt; operator (See &lt;a href=&quot;/manual/841/en/CAST Operator&quot;&gt;CAST Operator&lt;/a&gt;).&lt;/p&gt;&lt;/div&gt;</content>
                  
   </entry>
   <entry>
      <title>Character Strings</title>
      <id>http://www.cubrid.org/337705</id>
      <published>2012-04-19T03:36:34-07:00</published>
      <updated>2012-05-22T01:46:16-07:00</updated>
      <link rel="alternate" type="text/html" href="http://www.cubrid.org/337705"/>
      <link rel="replies" type="text/html" href="http://www.cubrid.org/337705#comment"/>
      <author>
         <name>CUBRID</name>
                  <uri>http://www.cubrid.org</uri>
               </author>
            <content type="html">&lt;div class=&quot;xe_content&quot;&gt;&lt;h2&gt;Character Strings &lt;/h2&gt;&lt;ul&gt;&lt;!-- child-&gt;relpath=syntax/syntax_datatype_string_def.htm name=Definition and Characteristics--&gt;
&lt;li&gt;&lt;a href=&quot;/manual/841/en/Character Strings-Definition and Characteristics&quot;&gt;Definition and Characteristics &lt;/a&gt;&lt;/li&gt;&lt;!-- child-&gt;relpath=syntax/syntax_datatype_string_char.htm name=CHAR(n)--&gt;
&lt;li&gt;&lt;a href=&quot;/manual/841/en/CHAR(n)&quot;&gt;CHAR(n) &lt;/a&gt;&lt;/li&gt;&lt;!-- child-&gt;relpath=syntax/syntax_datatype_string_varchar.htm name=VARCHAR(n)/CHAR VARYING(n)--&gt;
&lt;li&gt;&lt;a href=&quot;/manual/841/en/VARCHAR(n)|CHAR VARYING(n)&quot;&gt;VARCHAR(n)/CHAR VARYING(n) &lt;/a&gt;&lt;/li&gt;&lt;!-- child-&gt;relpath=syntax/syntax_datatype_string_string.htm name=STRING--&gt;
&lt;li&gt;&lt;a href=&quot;/manual/841/en/STRING&quot;&gt;STRING &lt;/a&gt;&lt;/li&gt;&lt;!-- child-&gt;relpath=syntax/syntax_datatype_string_nchar.htm name=NCHAR(n)--&gt;
&lt;li&gt;&lt;a href=&quot;/manual/841/en/NCHAR(n)&quot;&gt;NCHAR(n) &lt;/a&gt;&lt;/li&gt;&lt;!-- child-&gt;relpath=syntax/syntax_datatype_string_ncharvarying.htm name=NCHAR VARYING(n)--&gt;
&lt;li&gt;&lt;a href=&quot;/manual/841/en/NCHAR VARYING(n)&quot;&gt;NCHAR VARYING(n) &lt;/a&gt;&lt;/li&gt;&lt;!-- child-&gt;relpath=syntax/syntax_datatype_string_escape.htm name=Escape Special Characters--&gt;
&lt;li&gt;&lt;a href=&quot;/manual/841/en/Escape Special Characters&quot;&gt;Escape Special Characters&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;</content>
                  
   </entry>
   <entry>
      <title>Caution</title>
      <id>http://www.cubrid.org/338551</id>
      <published>2012-04-19T03:37:00-07:00</published>
      <updated>2012-05-14T02:29:57-07:00</updated>
      <link rel="alternate" type="text/html" href="http://www.cubrid.org/338551"/>
      <link rel="replies" type="text/html" href="http://www.cubrid.org/338551#comment"/>
      <author>
         <name>CUBRID</name>
                  <uri>http://www.cubrid.org</uri>
               </author>
            <content type="html">&lt;div class=&quot;xe_content&quot;&gt;﻿&lt;!--?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?--&gt;









&lt;style type=&quot;text/css&quot;&gt;
&lt;!--
div.WebHelpPopupMenu { position:absolute;
left:0px;
top:0px;
z-index:4;
visibility:hidden; }
--&gt;
&lt;/style&gt;







 


&lt;h3&gt;Caution&lt;/h3&gt;
&lt;h6&gt;Returning Value of Java Stored Function/Procedure and Precision Type on IN/OUT&lt;/h6&gt;
&lt;p&gt;To limit the return value of Java stored function/procedure and precision type on IN/OUT, CUBRID processes as follows:&lt;/p&gt;
&lt;p&gt;Checks the sql_type of the Java stored function/procedure.&lt;/p&gt;
&lt;p&gt;Passes the value returned by Java to the database with only the type converted if necessary, ignoring the number of digits defined during creating the Java stored function/procedure. In principle, the user manipulates the passed data directly in the database.&lt;/p&gt;
&lt;p&gt;Take a look at the following &lt;span class=&quot;keyword&quot;&gt;typestring&lt;/span&gt;() Java stored function.&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;public class JavaSP1{&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; public static String typestring(){&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; String temp = &quot; &quot;;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for(int i=0 i&amp;lt; 1 i++)&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; temp = temp + &quot;1234567890&quot;;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return temp;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;}&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;}&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;create function typestring() return char(5)&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;as language java&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;name &apos;JavaSP1.typestring() return java.lang.String&apos;;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;Call typestring()&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp; Result&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;======================&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp; &apos; 1234567890&apos;&lt;/p&gt;
&lt;h6&gt;Returning java.sql.ResultSet in Java Stored Procedure&lt;/h6&gt;
&lt;p&gt;In CUBRID, you must use &lt;span class=&quot;keyword&quot;&gt;CURSOR&lt;/span&gt; as the data type when you declare a Java stored function/procedure that returns a &lt;span class=&quot;keyword&quot;&gt;java.sql.ResultSet&lt;/span&gt;.&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;create function rset() return cursor&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;as language java&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;name &apos;JavaSP2.TResultSet() return java.sql.ResultSet&apos;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&lt;/p&gt;
&lt;p&gt;Before the Java file returns &lt;span class=&quot;keyword&quot;&gt;java.sql.ResultSet&lt;/span&gt;, it is required to cast to the &lt;span class=&quot;keyword&quot;&gt;CUBRIDResultSet&lt;/span&gt; class and then to call the &lt;span class=&quot;keyword&quot;&gt;setReturnable&lt;/span&gt;() method.&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;import cubrid.jdbc.driver.*;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;import java.sql.*;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;public class JavaSP2 {&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;public static ResultSet TResultSet(){&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; try{&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Class.forName(&quot;cubrid.jdbc.driver.CUBRIDDriver&quot;);&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Connection conn = DriverManager.getConnection(&quot;jdbc:default:connection:&quot;);&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ((CUBRIDConnection)conn).setCharset(&quot;euc_kr&quot;);&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; String sql = &quot;select * from station&quot;;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Statement stmt=conn.createStatement();&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ResultSet rs = stmt.executeQuery(sql);&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ((CUBRIDResultSet)rs).setReturnable();&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return rs;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; } catch (Exception e) {&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; e.printStackTrace();&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return null;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp; }&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;}&lt;/p&gt;
&lt;p&gt;In the calling block, you must set the OUT argument with &lt;span class=&quot;keyword&quot;&gt;Types.JAVA_OBJECT&lt;/span&gt;, get the argument to the &lt;span class=&quot;keyword&quot;&gt;getObject&lt;/span&gt;() function, and then cast it to the &lt;span class=&quot;keyword&quot;&gt;java.sql.ResultSet&lt;/span&gt; type before you use it. In addition, the &lt;span class=&quot;keyword&quot;&gt;java.sql.ResultSet&lt;/span&gt; is only available to use in &lt;span class=&quot;keyword&quot;&gt;CallableStatement&lt;/span&gt; of JDBC.&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;import java.sql.*;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;public class TestResultSet{&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp; public static void main(String[] args) {&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Connnection conn = null;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Statement stmt= null;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; int result;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; int i;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; try{&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Class.forName(&quot;cubrid.jdbc.driver.CUBRIDDriver&quot;);&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; conn = DriverManager.getConnection(&quot;jdbc:CUBRID:localhost:33000:demodb:::&quot;,&quot;&quot;,&quot;&quot;);&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CallableStatement cstmt = con.prepareCall(&quot;?=CALL rset()&quot;);&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; cstmt.registerOutParameter(1, Types.JAVA_OBJECT);&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; cstmt.execute();&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ResultSet rs = (ResultSet) cstmt.getObject(1);&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; while(rs.next()) {&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; System.out.println(rs.getString(1));&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; rs.close();&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; } catch (Exception e) {&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; e.printStackTrace();&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;}&lt;/p&gt;
&lt;p&gt;You cannot use the &lt;span class=&quot;keyword&quot;&gt;ResultSet&lt;/span&gt; as an input argument. If you pass it to an IN argument, an error occurs. An error also occurs when calling a function that returns &lt;span class=&quot;keyword&quot;&gt;ResultSet&lt;/span&gt; in a non-Java environment.&lt;/p&gt;
&lt;h6&gt;IN/OUT of Set Type in Java Stored Function/Procedure&lt;/h6&gt;
&lt;p&gt;If the set type of the Java stored function/procedure in CUBRID is IN OUT, the value of the argument changed in Java must be applied to IN OUT. When the set type is passed to the OUT argument, it must be passed as a two-dimensional array.&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;Create procedure setoid(x in out set, z object)&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;as language java name&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&apos;SetOIDTest.SetOID(cubrid.sql.CUBRIDOID[][], cubrid.sql.CUBRIDOID&apos;;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;public static void SetOID(cubrid.sql.CUBRID[][] set, cubrid.sql.CUBRIDOID aoid){&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp; Connection conn=null;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp; Statement stmt=null;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp; String ret=&quot;&quot;;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp; Vector v = new Vector();&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp; cubrid.sql.CUBRIDOID[] set1 = set[0];&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp; try {&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(set1!=null) {&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; int len = set1.length;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; int i = 0;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for (i=0 i&amp;lt; len i++)&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; v.add(set1[i]);&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp; v.add(aoid);&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp; set[0]=(cubrid.sql.CUBRIDOID[]) v.toArray(new cubrid.sql.CUBRIDOID[]{});&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp; } catch(Exception e) {&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; e.printStackTrace();&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp; &amp;nbsp; System.err.pirntln(&quot;SQLException:&quot;+e.getMessage());&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp; }&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;}&lt;/p&gt;
&lt;h6&gt;Using OID in Java Stored Function/Procedure&lt;/h6&gt;
&lt;p&gt;In case of using the OID type value for IN/OUT in CUBRID, use the value passed from the server.&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;create procedure tOID(i inout object, q string)&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;as language java&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;name &apos;OIDtest.tOID(cubrid.sql.CUBRIDOID[], java.lang.String)&apos;;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;public static void tOID(CUBRIDOID[] oid, String query)&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;{&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp; Connection conn=null;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp; Statement stmt=null;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp; String ret=&quot;&quot;;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp; try {&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Class.forName(&quot;cubrid.jdbc.driver.CUBRIDDriver&quot;);&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp; &amp;nbsp; conn=DriverManager.getConnection(&quot;jdbc:default:connection:&quot;);&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp; &amp;nbsp; conn.setAutoCommit(false);&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp; &amp;nbsp; stmt = conn.createStatement();&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp; &amp;nbsp; ResultSet rs = stmt.executeQuery(query);&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp; &amp;nbsp; System.out.println(&quot;query:&quot;+ query);&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp; &amp;nbsp; while(rs.next()) {&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; oid[0]=(CUBRIDOID)rs.getObject(1);&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; System.out.println(&quot;oid:&quot;+oid[0].getTableName());&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp; &amp;nbsp; }&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp; &amp;nbsp; stmt.close();&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp; &amp;nbsp; conn.close();&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp; } catch (SQLException e) {&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp; &amp;nbsp; e.printStackTrace();&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp; &amp;nbsp; System.err.println(&quot;SQLException:&quot;+e.getMessage());&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp; } catch (Exception e) {&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp; &amp;nbsp; e.printStackTrace();&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp; &amp;nbsp; system.err.println(&quot;Exception:&quot;+ e.getMessage());&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp; }&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;}&lt;/p&gt;&lt;/div&gt;</content>
                  
   </entry>
   <entry>
      <title>Environment Configuration for Java Stored Function|Procedure</title>
      <id>http://www.cubrid.org/338527</id>
      <published>2012-04-19T03:36:59-07:00</published>
      <updated>2012-05-14T02:07:37-07:00</updated>
      <link rel="alternate" type="text/html" href="http://www.cubrid.org/338527"/>
      <link rel="replies" type="text/html" href="http://www.cubrid.org/338527#comment"/>
      <author>
         <name>CUBRID</name>
                  <uri>http://www.cubrid.org</uri>
               </author>
            <content type="html">&lt;div class=&quot;xe_content&quot;&gt;﻿&lt;!--?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?--&gt;









&lt;style type=&quot;text/css&quot;&gt;
&lt;!--
div.WebHelpPopupMenu { position:absolute;
left:0px;
top:0px;
z-index:4;
visibility:hidden; }
--&gt;
&lt;/style&gt;







 


&lt;h3&gt;Environment Configuration for Java Stored Function/Procedure&lt;/h3&gt;
&lt;p&gt;To use Java-stored functions/procedures in CUBRID, you must have JRE (Java Runtime Environment) 1.6 or better installed in the environment where the CUBRID server is installed. You can download JRE from the Developer Resources for Java Technology (&lt;a href=&quot;http://java.sun.com&quot; target=&quot;_blank&quot;&gt;http://java.sun.com&lt;/a&gt;).&lt;/p&gt;
&lt;p&gt;If the java_stored_procedure parameter in the CUBRID configuration file (cubrid.conf) is set to yes, CUBRID 64-bit needs a 64-bit Java Runtime Environment, and CUBRID 32-bit needs a 32-bit Java Runtime Environment. For example, when you run CUBRID 64-bit in the system in which a 32-bit JAVA Runtime Environment is installed, the following error may occur.&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;% cubrid server start demodb&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;This may take a long time depending on the amount of recovery works to do.&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;WARNING: Java VM library is not found : /usr/java/jdk1.6.0_15/jre/lib/amd64/server/libjvm.so: cannot open shared object file: No such file or directory.&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;Consequently, calling java stored procedure is not allowed&lt;/p&gt;
&lt;p&gt;Execute the following command to check the JRE version if you have it already installed in the system.&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;% java -version Java(TM) SE Runtime Environment (build 1.6.0_05-b13)&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;Java HotSpot(TM) 64-Bit Server VM (build 10.0-b19, mixed mode)&lt;/p&gt;
&lt;h6&gt;Windows Environment&lt;/h6&gt;
&lt;p&gt;For Windows, CUBRID loads the &lt;span class=&quot;keyword&quot;&gt;jvm.dll&lt;/span&gt; file to run the Java Virtual Machine. CUBRID first locates the &lt;span class=&quot;keyword&quot;&gt;jvm.dll&lt;/span&gt; file from the &lt;span class=&quot;keyword&quot;&gt;PATH&lt;/span&gt; environment variable and then loads it. If it cannot find the file, it uses the Java runtime information registered in the system registry.&lt;/p&gt;
&lt;p&gt;You can configure the &lt;span class=&quot;keyword&quot;&gt;JAVA_HOME&lt;/span&gt; environment variable and add the directory in which the Java executable file is located to &lt;span class=&quot;keyword&quot;&gt;Path&lt;/span&gt;, by executing the command as follows: For information on configuring environment variables using GUI, see &lt;a href=&quot;/manual/841/en/Setting up the JDBC Environment&quot;&gt;Setting up the JDBC Environment&lt;/a&gt;.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;An example of installing 64 Bit JDK 1.6 and configuring the environment variables&amp;nbsp;&lt;/li&gt;
&lt;li class=&quot;codep&quot;&gt;% set JAVA_HOME=C:\jdk1.6.0&lt;/li&gt;
&lt;li class=&quot;codep&quot;&gt;% set PATH=%PATH%;%JAVA_HOME%\jre\bin\server&lt;/li&gt;
&lt;li&gt;An example of installing 32 Bit JDK 1.6 and configuring the environment variables &amp;nbsp;&lt;/li&gt;
&lt;li class=&quot;codep&quot;&gt;% set JAVA_HOME=C:jdk1.6.0&lt;/li&gt;
&lt;li class=&quot;codep&quot;&gt;% set PATH=%PATH%;%JAVA_HOME%\jre\bin\client&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;To use other vendor&apos;s implementation instead of Sun&apos;s Java Virtual Machine, add the path of the &lt;span class=&quot;keyword&quot;&gt;jvm.dll&lt;/span&gt; file to the &lt;span class=&quot;keyword&quot;&gt;PATH&lt;/span&gt; variable during the installation.&lt;/p&gt;
&lt;h6&gt;Linux/UNIX Environment&lt;/h6&gt;
&lt;p&gt;For Linux/UNIX environment, CUBRID loads the &lt;span class=&quot;keyword&quot;&gt;libjvm.so&lt;/span&gt; file to run the Java Virtual Machine. CUBRID first locates the &lt;span class=&quot;keyword&quot;&gt;libjvm.so&lt;/span&gt; file from the &lt;span class=&quot;keyword&quot;&gt;LD_LIBRARY_PATH&lt;/span&gt; environment variable and then loads it. If it cannot find the file, it uses the &lt;span class=&quot;keyword&quot;&gt;JAVA_HOME&lt;/span&gt; environment variable. For Linux, glibc version 2.3.4 or higher is supported. The following example shows how to configure the Linux environment variable (e.g., &lt;span class=&quot;keyword&quot;&gt;.profile&lt;/span&gt;, &lt;span class=&quot;keyword&quot;&gt;.cshrc&lt;/span&gt;, &lt;span class=&quot;keyword&quot;&gt;.bashrc&lt;/span&gt;, &lt;span class=&quot;keyword&quot;&gt;.bash_profile&lt;/span&gt;, etc.).&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;An example of installing 64 Bit JDK 1.6 and configuring the environment variables in a bash shell &amp;nbsp;&lt;/li&gt;
&lt;li class=&quot;codep&quot;&gt;% JAVA_HOME=/usr/java/jdk1.6.0_10&lt;/li&gt;
&lt;li class=&quot;codep&quot;&gt;% LD_LIBRARY_PATH=$JAVA_HOME/jre/lib/amd64:$JAVA_HOME/jre/lib/amd64/server:$LD_LIBRARY_PATH&lt;/li&gt;
&lt;li class=&quot;codep&quot;&gt;% export JAVA_HOME&lt;/li&gt;
&lt;li class=&quot;codep&quot;&gt;% export LD_LIBRARY_PATH&lt;/li&gt;
&lt;li&gt;An example of installing 32 Bit JDK 1.6 and configuring the environment variables in a bash shell&lt;/li&gt;
&lt;li class=&quot;codep&quot;&gt;% JAVA_HOME=/usr/java/jdk1.6.0_10&lt;/li&gt;
&lt;li class=&quot;codep&quot;&gt;% LD_LIBRARY_PATH=$JAVA_HOME/jre/lib/i386/:$JAVA_HOME/jre/lib/i386/client:$LD_LIBRARY_PATH&lt;/li&gt;
&lt;li class=&quot;codep&quot;&gt;% export JAVA_HOME&lt;/li&gt;
&lt;li class=&quot;codep&quot;&gt;% export LD_LIBRARY_PATH&lt;/li&gt;
&lt;li&gt;An example of installing 64 Bit JDK 1.6 and configuring the environment variables in a csh&lt;/li&gt;
&lt;li class=&quot;codep&quot;&gt;% setenv JAVA_HOME /usr/java/jdk1.6.0_10&lt;/li&gt;
&lt;li class=&quot;codep&quot;&gt;% setenv LD_LIBRARY_PATH $JAVA_HOME/jre/lib/amd64:$JAVA_HOME/jre/lib/amd64/server:$LD_LIBRARY_PATH&lt;/li&gt;
&lt;li class=&quot;codep&quot;&gt;% set path=($path $JAVA_HOME/bin .)&lt;/li&gt;
&lt;li&gt;An example of installing 32 Bit JDK 1.6 and configuring the environment variables in a csh shell&lt;/li&gt;
&lt;li class=&quot;codep&quot;&gt;% setenv JAVA_HOME /usr/java/jdk1.6.0_10&lt;/li&gt;
&lt;li class=&quot;codep&quot;&gt;% setenv LD_LIBRARY_PATH $JAVA_HOME/jre/lib/i386:$JAVA_HOME/jre/lib/i386/client:$LD_LIBRARY_PATH&lt;/li&gt;
&lt;li class=&quot;codep&quot;&gt;% set path=($path $JAVA_HOME/bin .)&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;To use other vendor&apos;s implementation instead of Sun&apos;s Java Virtual Machine, add the path of the JVM (&lt;span class=&quot;keyword&quot;&gt;libjvm.so&lt;/span&gt;) to the library path during the installation.&lt;/p&gt;
&lt;p&gt;The path of the &lt;span class=&quot;keyword&quot;&gt;libjvm.so&lt;/span&gt; file can be different depending on the platform. For example, the path is the &lt;span class=&quot;keyword&quot;&gt;$JAVA_HOME/jre/lib/sparc&lt;/span&gt; directory in a SUN Sparc machine.&lt;/p&gt;&lt;/div&gt;</content>
                  
   </entry>
   <entry>
      <title>Writing CCI Program</title>
      <id>http://www.cubrid.org/339265</id>
      <published>2012-04-19T03:37:21-07:00</published>
      <updated>2012-04-19T08:04:47-07:00</updated>
      <link rel="alternate" type="text/html" href="http://www.cubrid.org/339265"/>
      <link rel="replies" type="text/html" href="http://www.cubrid.org/339265#comment"/>
      <author>
         <name>CUBRID</name>
                  <uri>http://www.cubrid.org</uri>
               </author>
            <content type="html">&lt;div class=&quot;xe_content&quot;&gt;﻿&lt;!--?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?--&gt;









&lt;style type=&quot;text/css&quot;&gt;
&lt;!--
div.WebHelpPopupMenu { position:absolute;
left:0px;
top:0px;
z-index:4;
visibility:hidden; }
--&gt;
&lt;/style&gt;







 


&lt;h4&gt;Writing CCI Application Program&lt;/h4&gt;
&lt;p&gt;The basic steps used for writing programs are as follows, and a step for binding the data to a variable is added to use the prepared statement. The steps are implemented in example codes 1 and 2.&lt;/p&gt;
&lt;p&gt;You can configure the default value of auto-commit mode by using &lt;span class=&quot;keyword&quot;&gt;CCI_DEFAULT_AUTOCOMMIT&lt;/span&gt; (broker parameter) upon startup of an application. If configuration on broker parameter is omitted, the default value is &lt;span class=&quot;keyword&quot;&gt;ON&lt;/span&gt;; use the &lt;a href=&quot;/manual/841/en/cci_set_autocommit&quot;&gt;cci_set_autocommit&lt;/a&gt;() function to change auto-commit mode within an application. If auto-commit mode is &lt;span class=&quot;keyword&quot;&gt;OFF&lt;/span&gt;,&amp;nbsp;you must explicitly commit or roll back transaction by using the &lt;a href=&quot;/manual/841/en/cci_end_tran&quot;&gt;cci_end_tran&lt;/a&gt;() function.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Opening a database connection handle (related functions : &lt;a href=&quot;/manual/841/en/cci_connect&quot;&gt;cci_connect&lt;/a&gt;(), &lt;a href=&quot;/manual/841/en/cci_connect_with_url&quot;&gt;cci_connect_with_url&lt;/a&gt;())&lt;/li&gt;
&lt;li&gt;Preparing an SQL statement (related function : &lt;a href=&quot;/manual/841/en/cci_prepare&quot;&gt;cci_prepare&lt;/a&gt;())&amp;nbsp;&lt;/li&gt;
&lt;li&gt;Binding data to a prepared SQL statement (related function : &lt;a href=&quot;/manual/841/en/cci_prepare&quot;&gt;cci_bind_param&lt;/a&gt;())&lt;/li&gt;
&lt;li&gt;Executing a prepared SQL statement (related function : &lt;a href=&quot;/manual/841/en/cci_execute&quot;&gt;cci_execute&lt;/a&gt;())&lt;/li&gt;
&lt;li&gt;Processing the execution result (related functions : &lt;a href=&quot;/manual/841/en/cci_cursor&quot;&gt;cci_cursor&lt;/a&gt;(), &lt;a href=&quot;/manual/841/en/cci_fetch&quot;&gt;cci_fetch&lt;/a&gt;(), &lt;a href=&quot;/manual/841/en/cci_get_data&quot;&gt;cci_get_data&lt;/a&gt;(), &lt;a href=&quot;/manual/841/en/cci_get_result_info&quot;&gt;cci_get_result_info&lt;/a&gt;())&lt;/li&gt;
&lt;li&gt;Closing the request handle (related function : &lt;a href=&quot;/manual/841/en/cci_close_req_handle&quot;&gt;cci_close_req_handle&lt;/a&gt;())&lt;/li&gt;
&lt;li&gt;Closing a database connection handle (related function : &lt;a href=&quot;/manual/841/en/cci_disconnect&quot;&gt;cci_disconnect&lt;/a&gt;())&lt;/li&gt;
&lt;li&gt;Using database connection pool (related functions : &lt;a href=&quot;/manual/841/en/cci_property_create&quot;&gt;cci_property_create&lt;/a&gt;(), &lt;a href=&quot;/manual/841/en/cci_property_destroy&quot;&gt;cci_property_destroy()&lt;/a&gt;, &lt;a href=&quot;/manual/841/en/cci_property_create&quot;&gt;cci_property_set&lt;/a&gt;(), &lt;a href=&quot;/manual/841/en/cci_datasource_create&quot;&gt;cci_datasource_create&lt;/a&gt;(), &lt;a href=&quot;/manual/841/en/cci_datasource_destroy&quot;&gt;cci_datasource_destroy&lt;/a&gt;(), &lt;a href=&quot;/manual/841/en/cci_datasource_borrow&quot;&gt;cci_datasource_borrow&lt;/a&gt;(), &lt;a href=&quot;/manual/841/en/cci_datasource_release&quot;&gt;cci_datasource_release&lt;/a&gt;())&lt;/li&gt;
&lt;/ul&gt;
&lt;h6&gt;Example&amp;nbsp;1&lt;/h6&gt;
&lt;p class=&quot;codep&quot;&gt;//Example to execute a simple query&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;#include &amp;lt;stdio.h&amp;gt;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;#include &quot;cas_cci.h&quot; &amp;nbsp;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;#define BUFSIZE &amp;nbsp;(1024)&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;int&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;main (void)&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;{&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;int con = 0, req = 0, col_count = 0, i, ind;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;int error;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;char *data;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;T_CCI_ERROR cci_error;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;T_CCI_COL_INFO *col_info;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;T_CCI_SQLX_CMD cmd_type;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;char *query = &quot;select * from code&quot;;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;//getting a connection handle for a connection with a server&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;con = cci_connect (&quot;localhost&quot;, 33000, &quot;demodb&quot;, &quot;dba&quot;, &quot;&quot;);&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;if (con &amp;lt; 0)&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;printf (&quot;cannot connect to database
&quot;);&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;return 1;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;//preparing the SQL statement&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;req = cci_prepare (con, query, 0, &amp;amp;cci_error);&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;if (req &amp;lt; 0)&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;printf (&quot;prepare error: %d, %s
&quot;, cci_error.err_code,&lt;/p&gt;
&lt;p class=&quot;codep&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;cci_error.err_msg);&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;goto handle_error;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;//getting column information when the prepared statement is the SELECT query&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;col_info = cci_get_result_info (req, &amp;amp;cmd_type, &amp;amp;col_count);&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;if (col_info == NULL)&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;printf (&quot;get_result_info error: %d, %s
&quot;, cci_error.err_code,&lt;/p&gt;
&lt;p class=&quot;codep&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;cci_error.err_msg);&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;goto handle_error;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;//Executing the prepared SQL statement&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;error = cci_execute (req, 0, 0, &amp;amp;cci_error);&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;if (error &amp;lt; 0)&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;printf (&quot;execute error: %d, %s
&quot;, cci_error.err_code,&lt;/p&gt;
&lt;p class=&quot;codep&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;cci_error.err_msg);&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;goto handle_error;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;while (1)&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;//Moving the cursor to access a specific tuple of results&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;error = cci_cursor (req, 1, CCI_CURSOR_CURRENT, &amp;amp;cci_error);&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if (error == CCI_ER_NO_MORE_DATA)&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;break;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if (error &amp;lt; 0)&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;printf (&quot;cursor error: %d, %s
&quot;, cci_error.err_code,&lt;/p&gt;
&lt;p class=&quot;codep&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;cci_error.err_msg);&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;goto handle_error;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;//Fetching the query result into a client buffer&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;error = cci_fetch (req, &amp;amp;cci_error);&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if (error &amp;lt; 0)&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;printf (&quot;fetch error: %d, %s
&quot;, cci_error.err_code,&lt;/p&gt;
&lt;p class=&quot;codep&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;cci_error.err_msg);&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;goto handle_error;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;for (i = 1; i &amp;lt;= col_count; i++)&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;//Getting data from the fetched result&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;error = cci_get_data (req, i, CCI_A_TYPE_STR, &amp;amp;data, &amp;amp;ind);&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if (error &amp;lt; 0)&lt;/p&gt;
&lt;p class=&quot;codep&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;{&lt;/p&gt;
&lt;p class=&quot;codep&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;printf (&quot;get_data error: %d, %d
&quot;, error, i);&lt;/p&gt;
&lt;p class=&quot;codep&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;goto handle_error;&lt;/p&gt;
&lt;p class=&quot;codep&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;}&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;printf (&quot;%s	|&quot;, data);&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;printf (&quot;
&quot;);&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;//Closing the request handle&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;error = cci_close_req_handle (req);&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;if (error &amp;lt; 0)&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;printf (&quot;close_req_handle error: %d, %s
&quot;, cci_error.err_code,&lt;/p&gt;
&lt;p class=&quot;codep&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;cci_error.err_msg);&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;goto handle_error;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;//Disconnecting with the server&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;error = cci_disconnect (con, &amp;amp;cci_error);&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;if (error &amp;lt; 0)&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;printf (&quot;error: %d, %s
&quot;, cci_error.err_code, cci_error.err_msg);&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;goto handle_error;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;return 0;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;handle_error:&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;if (req &amp;gt; 0)&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;cci_close_req_handle (req);&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;if (con &amp;gt; 0)&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;cci_disconnect (con, &amp;amp;cci_error);&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;return 1;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;}&lt;/p&gt;
&lt;h6&gt;Example&amp;nbsp;2&lt;/h6&gt;
&lt;p class=&quot;codep&quot;&gt;//Example to execute a query with a bind variable&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;char *query = &quot;select * from nation where name = ?&quot;;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;char namebuf[128];&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;//getting a connection handle for a connection with a server&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;con = cci_connect (&quot;localhost&quot;, 33000, &quot;demodb&quot;, &quot;dba&quot;, &quot;&quot;);&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;if (con &amp;lt; 0)&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;printf (&quot;cannot connect to database &quot;);&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;return 1;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;//preparing the SQL statement&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;req = cci_prepare (con, query, 0, &amp;amp;cci_error);&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;if (req &amp;lt; 0)&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;printf (&quot;prepare error: %d, %s &quot;, cci_error.err_code,&lt;/p&gt;
&lt;p class=&quot;codep&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;cci_error.err_msg);&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;goto handle_error;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;//Binding date into a value&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;strcpy (namebuf, &quot;Korea&quot;);&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;error =&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;cci_bind_param (req, 1, CCI_A_TYPE_STR, &amp;amp;namebuf, CCI_U_TYPE_STRING,&lt;/p&gt;
&lt;p class=&quot;codep&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;CCI_BIND_PTR);&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;if (error &amp;lt; 0)&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;printf (&quot;bind_param error: %d &quot;, error);&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;goto handle_error;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/p&gt;
&lt;h6&gt;Example&amp;nbsp;3&lt;/h6&gt;
&lt;p class=&quot;codep&quot;&gt;#include &amp;lt;stdio.h&amp;gt;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;#include &quot;cas_cci.h&quot;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;//Example to use connection/statement pool in CCI&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;int main ()&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;{&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp; T_CCI_PROPERTIES *ps = NULL;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp; T_CCI_DATASOURCE *ds = NULL;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp; T_CCI_ERROR err;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp; T_CCI_CONN cons[20];&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp; int rc = 1, i;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp; ps = cci_property_create ();&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp; if (ps == NULL)&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fprintf (stderr, &quot;Could not create T_CCI_PROPERTIES.
&quot;);&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; rc = 0;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; goto cci_pool_end;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp; cci_property_set (ps, &quot;user&quot;, &quot;dba&quot;);&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp; cci_property_set (ps, &quot;url&quot;, &quot;cci:cubrid:localhost:33000:demodb:::&quot;);&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp; cci_property_set (ps, &quot;pool_size&quot;, &quot;10&quot;);&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp; cci_property_set (ps, &quot;max_wait&quot;, &quot;1200&quot;);&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp; cci_property_set (ps, &quot;pool_prepared_statement&quot;, &quot;true&quot;);&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp; cci_property_set (ps, &quot;default_autocommit&quot;, &quot;false&quot;);&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp; cci_property_set (ps, &quot;default_isolation&quot;, &quot;TRAN_REP_CLASS_UNCOMMIT_INSTANCE&quot;);&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp; cci_property_set (ps, &quot;default_lock_timeout&quot;, &quot;10&quot;);&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp; cci_property_set (ps, &quot;login_timeout&quot;, &quot;300000&quot;);&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp; cci_property_set (ps, &quot;query_timeout&quot;, &quot;3000&quot;);&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp; ds = cci_datasource_create (ps, &amp;amp;err);&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp; if (ds == NULL)&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fprintf (stderr, &quot;Could not create T_CCI_DATASOURCE.
&quot;);&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fprintf (stderr, &quot;E[%d,%s]
&quot;, err.err_code, err.err_msg);&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; rc = 0;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; goto cci_pool_end;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp; for (i = 0; i &amp;lt; 3; i++)&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cons[i] = cci_datasource_borrow (ds, &amp;amp;err);&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (cons[i] &amp;lt; 0)&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fprintf (stderr,&lt;/p&gt;
&lt;p class=&quot;codep&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; &quot;Could not borrow a connection from the data source.
&quot;);&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fprintf (stderr, &quot;E[%d,%s]
&quot;, err.err_code, err.err_msg);&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; continue;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // put working code here.&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cci_work (cons[i]);&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp; sleep (1);&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp; for (i = 0; i &amp;lt; 3; i++)&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (cons[i] &amp;lt; 0)&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; continue;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cci_datasource_release (ds, cons[i], &amp;amp;err);&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;cci_pool_end:&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp; cci_property_destroy (ps);&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp; cci_datasource_destroy (ds);&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp; return 0;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;}&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;// working code&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;int cci_work (T_CCI_CONN con)&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;{&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp; T_CCI_ERROR err;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp; char sql[4096];&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp; int req, res, error, ind;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp; int data;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp; cci_set_autocommit (con, CCI_AUTOCOMMIT_TRUE);&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp; cci_set_lock_timeout (con, 100, &amp;amp;err);&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp; cci_set_isolation_level (con, TRAN_REP_CLASS_COMMIT_INSTANCE, &amp;amp;err);&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp; error = 0;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp; snprintf (sql, 4096, &quot;SELECT host_year FROM record WHERE athlete_code=11744&quot;);&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp; req = cci_prepare (con, sql, 0, &amp;amp;err);&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp; if (req &amp;lt; 0)&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf (&quot;prepare error: %d, %s
&quot;, err.err_code, err.err_msg);&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return error;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp; res = cci_execute (req, 0, 0, &amp;amp;err);&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp; if (res &amp;lt; 0)&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf (&quot;execute error: %d, %s
&quot;, err.err_code, err.err_msg);&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; goto cci_work_end;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp; while (1)&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; error = cci_cursor (req, 1, CCI_CURSOR_CURRENT, &amp;amp;err);&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (error == CCI_ER_NO_MORE_DATA)&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; break;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (error &amp;lt; 0)&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf (&quot;cursor error: %d, %s
&quot;, err.err_code, err.err_msg);&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; goto cci_work_end;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; error = cci_fetch (req, &amp;amp;err);&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (error &amp;lt; 0)&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf (&quot;fetch error: %d, %s
&quot;, err.err_code, err.err_msg);&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; goto cci_work_end;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; error = cci_get_data (req, 1, CCI_A_TYPE_INT, &amp;amp;data, &amp;amp;ind);&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (error &amp;lt; 0)&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf (&quot;get data error: %d
&quot;, error);&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; goto cci_work_end;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf (&quot;%d
&quot;, data);&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp; error = 1;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;cci_work_end:&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp; cci_close_req_handle (req);&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;nbsp; return error;&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;}&lt;/p&gt;&lt;/div&gt;</content>
                  
   </entry>
   <entry>
      <title>Changing Database Information of CM Users</title>
      <id>http://www.cubrid.org/339611</id>
      <published>2012-04-19T03:37:31-07:00</published>
      <updated>2012-04-19T03:39:53-07:00</updated>
      <link rel="alternate" type="text/html" href="http://www.cubrid.org/339611"/>
      <link rel="replies" type="text/html" href="http://www.cubrid.org/339611#comment"/>
      <author>
         <name>CUBRID</name>
                  <uri>http://www.cubrid.org</uri>
               </author>
            <content type="html">&lt;div class=&quot;xe_content&quot;&gt;﻿&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot;
    &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;








&lt;style type=&quot;text/css&quot;&gt;
&lt;!--
div.WebHelpPopupMenu { position:absolute;
left:0px;
top:0px;
z-index:4;
visibility:hidden; }
--&gt;
&lt;/style&gt;







 


&lt;h2&gt;Changing Database Information of CM Users&lt;/h2&gt;
&lt;h6&gt;Description&lt;/h6&gt;
&lt;p&gt;The &lt;span class=&quot;keyword&quot;&gt;cm_admin changedbinfo&lt;/span&gt; utility changes database information of specified CM users.&lt;/p&gt;
&lt;h6&gt;Syntax&lt;/h6&gt;
&lt;p class=&quot;syntaxp&quot;&gt;&lt;/p&gt;
&lt;p class=&quot;syntaxp&quot;&gt;&lt;span class=&quot;keyword&quot;&gt;cm_admin changedbinfo&lt;/span&gt; &lt;span class=&quot;var&quot;&gt;options&lt;/span&gt; &lt;span class=&quot;var&quot;&gt;cmuser-name database-name&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;syntaxp&quot;&gt;&lt;span class=&quot;var&quot;&gt;options&lt;/span&gt; :&lt;/p&gt;
&lt;p class=&quot;syntaxp&quot;&gt;[{&lt;span class=&quot;keyword&quot;&gt;-u&lt;/span&gt; | &lt;span class=&quot;keyword&quot;&gt;--uid&lt;/span&gt;} &lt;span class=&quot;var&quot;&gt;userid&lt;/span&gt;]&lt;/p&gt;
&lt;p class=&quot;syntaxp&quot;&gt;[{&lt;span class=&quot;keyword&quot;&gt;-h&lt;/span&gt; | &lt;span class=&quot;keyword&quot;&gt;--host&lt;/span&gt;} &lt;span class=&quot;var&quot;&gt;broker-ip&lt;/span&gt;]&lt;/p&gt;
&lt;p class=&quot;syntaxp&quot;&gt;[{&lt;span class=&quot;keyword&quot;&gt;-p&lt;/span&gt; | &lt;span class=&quot;keyword&quot;&gt;--port&lt;/span&gt;} &lt;span class=&quot;var&quot;&gt;broker-port&lt;/span&gt;]&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span class=&quot;keyword&quot;&gt;cm_admin&lt;/span&gt; : An integrated utility to manage CUBRID Manager&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;keyword&quot;&gt;changedbinfo&lt;/span&gt; : The command used to change database information of a specified CM user.&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;var&quot;&gt;options&lt;/span&gt; : The &lt;span class=&quot;keyword&quot;&gt;-u&lt;/span&gt;, &lt;span class=&quot;keyword&quot;&gt;-h&lt;/span&gt;, and &lt;span class=&quot;keyword&quot;&gt;–p&lt;/span&gt; options are supported. For details, see its description and example.&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;var&quot;&gt;cmuser-name&lt;/span&gt; : The name of a CM user&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;var&quot;&gt;databse-name&lt;/span&gt; : The name of a database to be changed.&lt;/li&gt;
&lt;/ul&gt;
&lt;h6&gt;Options&lt;/h6&gt;
&lt;table border=&quot;1&quot; width=&quot;80%&quot;&gt;
&lt;tr&gt;
&lt;th&gt;
&lt;p&gt;Option&lt;/p&gt;
&lt;/th&gt;
&lt;th&gt;
&lt;p&gt;Description&lt;/p&gt;
&lt;/th&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p&gt;-u&lt;br /&gt;
--uid&lt;/p&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;Specifies the user ID of a database.&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p&gt;-h&lt;br /&gt;
--host&lt;/p&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;Specifies the host of a broker used when client can accesses a database.&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p&gt;-p&lt;br /&gt;
--port&lt;/p&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;Specifies the port number of a broker used when client accesses a database.&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;p class=&quot;label&quot;&gt;Changing database user ID (-u)&lt;/p&gt;
&lt;p&gt;The following example shows how to update ID information in the database &quot;testdb&quot; of a CM user &quot;testcm&quot; to &quot;uid&quot;.&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;cm_admin changedbinfo -u uid testcm testdb&lt;/p&gt;
&lt;p class=&quot;label&quot;&gt;Changing host IP of a broker (-h)&lt;/p&gt;
&lt;p&gt;The following example shows how to update host IP information in the database &quot;testdb&quot; of a CM user &quot;testcm&quot; to &quot;10.34.63.132&quot;.&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;cm_admin changedbinfo -h 10.34.63.132 testcm testdb&lt;/p&gt;
&lt;p class=&quot;label&quot;&gt;Changing broker port (-u)&lt;/p&gt;
&lt;p&gt;The following example shows how to update broker port information in the database &quot;testdb&quot; of a CM user &quot;testcm&quot; to &quot;33000&quot;.&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;cm_admin changedbinfo -p 33000 testcm testdb&lt;/p&gt;



&lt;/div&gt;</content>
                  
   </entry>
   <entry>
      <title>Adding Database Information to CM Users</title>
      <id>http://www.cubrid.org/339607</id>
      <published>2012-04-19T03:37:31-07:00</published>
      <updated>2012-04-19T03:39:53-07:00</updated>
      <link rel="alternate" type="text/html" href="http://www.cubrid.org/339607"/>
      <link rel="replies" type="text/html" href="http://www.cubrid.org/339607#comment"/>
      <author>
         <name>CUBRID</name>
                  <uri>http://www.cubrid.org</uri>
               </author>
            <content type="html">&lt;div class=&quot;xe_content&quot;&gt;﻿&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot;
    &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;








&lt;style type=&quot;text/css&quot;&gt;
&lt;!--
div.WebHelpPopupMenu { position:absolute;
left:0px;
top:0px;
z-index:4;
visibility:hidden; }
--&gt;
&lt;/style&gt;







 


&lt;h2&gt;Adding Database Information to CM Users&lt;/h2&gt;
&lt;h6&gt;Description&lt;/h6&gt;
&lt;p&gt;The &lt;span class=&quot;keyword&quot;&gt;cm_admin adddbinfo&lt;/span&gt; utility adds database information (database name, UID, broker IP, borker port) to CM users.&lt;/p&gt;
&lt;h6&gt;Syntax&lt;/h6&gt;
&lt;p class=&quot;syntaxp&quot;&gt;&lt;span class=&quot;keyword&quot;&gt;cm_admin adddbinfo&lt;/span&gt; &lt;span class=&quot;var&quot;&gt;options&lt;/span&gt; &lt;span class=&quot;var&quot;&gt;cmuser-name database-name&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;syntaxp&quot;&gt;&lt;span class=&quot;var&quot;&gt;options&lt;/span&gt; :&lt;/p&gt;
&lt;p class=&quot;syntaxp&quot;&gt;[{&lt;span class=&quot;keyword&quot;&gt;-u&lt;/span&gt; | &lt;span class=&quot;keyword&quot;&gt;--uid&lt;/span&gt;} &lt;span class=&quot;var&quot;&gt;userid&lt;/span&gt;]&lt;/p&gt;
&lt;p class=&quot;syntaxp&quot;&gt;[{&lt;span class=&quot;keyword&quot;&gt;-h&lt;/span&gt; | &lt;span class=&quot;keyword&quot;&gt;--host&lt;/span&gt;} &lt;span class=&quot;var&quot;&gt;broker-ip&lt;/span&gt;]&lt;/p&gt;
&lt;p class=&quot;syntaxp&quot;&gt;[{&lt;span class=&quot;keyword&quot;&gt;-p&lt;/span&gt; | &lt;span class=&quot;keyword&quot;&gt;--port&lt;/span&gt;} &lt;span class=&quot;var&quot;&gt;broker-port&lt;/span&gt;]&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span class=&quot;keyword&quot;&gt;cm_admin&lt;/span&gt; : An integrated utility to manage CUBRID Manager&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;keyword&quot;&gt;adddbinfo&lt;/span&gt; : The command used to add database information to a CM user&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;var&quot;&gt;options&lt;/span&gt;: The &lt;span class=&quot;keyword&quot;&gt;-u&lt;/span&gt;, &lt;span class=&quot;keyword&quot;&gt;-h&lt;/span&gt;, and &lt;span class=&quot;keyword&quot;&gt;–p&lt;/span&gt; options are supported. For details, see its description and example.&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;var&quot;&gt;cmuser-name&lt;/span&gt; : The name of a CM user&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;var&quot;&gt;databse-name&lt;/span&gt;: The name of a database to be added&lt;/li&gt;
&lt;/ul&gt;
&lt;h6&gt;Options&lt;/h6&gt;
&lt;table border=&quot;1&quot; width=&quot;80%&quot;&gt;
&lt;tr&gt;
&lt;th&gt;
&lt;p&gt;Option&lt;/p&gt;
&lt;/th&gt;
&lt;th&gt;
&lt;p&gt;Description&lt;/p&gt;
&lt;/th&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p&gt;-u&lt;br /&gt;
--uid&lt;/p&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;Specifies the user ID of a database (default value : &lt;span class=&quot;keyword&quot;&gt;dba&lt;/span&gt;).&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p&gt;-h&lt;br /&gt;
--host&lt;/p&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;Specifies the host of a broker used when client accesses a database (default value : &lt;span class=&quot;keyword&quot;&gt;localhost&lt;/span&gt;).&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p&gt;-p&lt;br /&gt;
--port&lt;/p&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;Specifies the port number of a broker used when client accesses a database (default value : &lt;span class=&quot;keyword&quot;&gt;30000&lt;/span&gt;).&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;p class=&quot;label&quot;&gt;Adding database user ID (-u)&lt;/p&gt;
&lt;p&gt;The following example shows how to add a database &quot;testdb&quot; and its user id &quot;uid&quot; to a CM user named &quot;testcm&quot;.&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;cm_admin adddbinfo -u uid&amp;#160;testcm testdb&lt;/p&gt;
&lt;p class=&quot;label&quot;&gt;Adding host IP of broker (-h)&lt;/p&gt;
&lt;p&gt;The following example shows how to add a database &quot;testdb&quot; and its host IP &quot;127.0.0.1&quot; to a CM user named &quot;testcm&quot;.&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;cm_admin adddbinfo -h 127.0.0.1&amp;#160;testcm testdb&lt;/p&gt;
&lt;p class=&quot;label&quot;&gt;Adding broker port (-u)&lt;/p&gt;
&lt;p&gt;The following example shows how to add a database &quot;testdb&quot; and its broker port to &quot;33000&quot; to a CM user named &quot;testcm&quot;.&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;cm_admin adddbinfo -p 33000 testcm&amp;#160;testdb&lt;/p&gt;
&lt;p class=&quot;label&quot;&gt;Creating a default database&lt;/p&gt;
&lt;p&gt;The following example shows how to add a default database &quot;testdb&quot; to a CM user named &quot;testcm&quot;.&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;cm_admin adddbinfo testcm testdb&lt;/p&gt;



&lt;/div&gt;</content>
                  
   </entry>
   <entry>
      <title>Deleting Database Information from CM Users</title>
      <id>http://www.cubrid.org/339609</id>
      <published>2012-04-19T03:37:31-07:00</published>
      <updated>2012-04-19T03:39:53-07:00</updated>
      <link rel="alternate" type="text/html" href="http://www.cubrid.org/339609"/>
      <link rel="replies" type="text/html" href="http://www.cubrid.org/339609#comment"/>
      <author>
         <name>CUBRID</name>
                  <uri>http://www.cubrid.org</uri>
               </author>
            <content type="html">&lt;div class=&quot;xe_content&quot;&gt;﻿&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot;
    &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;








&lt;style type=&quot;text/css&quot;&gt;
&lt;!--
div.WebHelpPopupMenu { position:absolute;
left:0px;
top:0px;
z-index:4;
visibility:hidden; }
--&gt;
&lt;/style&gt;







 


&lt;h2&gt;Deleting Database Information from CM Users&lt;/h2&gt;
&lt;h6&gt;Description&lt;/h6&gt;
&lt;p&gt;The &lt;span class=&quot;keyword&quot;&gt;cm_admin deldbinfo&lt;/span&gt; utility deletes database information from specified CM users.&lt;/p&gt;
&lt;h6&gt;Syntax&lt;/h6&gt;
&lt;p class=&quot;syntaxp&quot;&gt;&lt;span class=&quot;keyword&quot;&gt;cm_admin deldbinfo&lt;/span&gt; &lt;span class=&quot;var&quot;&gt;cmuser-name&lt;/span&gt; &lt;span class=&quot;var&quot;&gt;database-name&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span class=&quot;keyword&quot;&gt;cm_admin&lt;/span&gt; : An integrated utility to manage CUBRID Manager&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;keyword&quot;&gt;deldbinfo&lt;/span&gt; : The command used to delete database information from a specified CM user&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;var&quot;&gt;cmuser-name&lt;/span&gt; : The name of a&amp;#160;CM user&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;var&quot;&gt;database-name&lt;/span&gt; : The name of a database to be deleted&lt;/li&gt;
&lt;/ul&gt;
&lt;h6&gt;Example&lt;/h6&gt;
&lt;p&gt;The following example shows how to delete information of a database &quot;testdb&quot; from a CM user &quot;testcm&quot;.&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;cm_admin deldbinfo testcm testdb&lt;/p&gt;



&lt;/div&gt;</content>
                  
   </entry>
   <entry>
      <title>Logs</title>
      <id>http://www.cubrid.org/339587</id>
      <published>2012-04-19T03:37:31-07:00</published>
      <updated>2012-04-19T03:39:52-07:00</updated>
      <link rel="alternate" type="text/html" href="http://www.cubrid.org/339587"/>
      <link rel="replies" type="text/html" href="http://www.cubrid.org/339587#comment"/>
      <author>
         <name>CUBRID</name>
                  <uri>http://www.cubrid.org</uri>
               </author>
            <content type="html">&lt;div class=&quot;xe_content&quot;&gt;﻿&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot;
    &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;








&lt;style type=&quot;text/css&quot;&gt;
&lt;!--
div.WebHelpPopupMenu { position:absolute;
left:0px;
top:0px;
z-index:4;
visibility:hidden; }
--&gt;
&lt;/style&gt;







 


&lt;h2&gt;Logs&lt;/h2&gt;
&lt;p&gt;Logs consist of Broker, Manager and Database logs. There can be sub-nodes such as Access, Error and Admin logs. Each log consists as follows:&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;http://www.cubrid.org/files/attach/images/337566/587/339/manager_log_arch.png&quot; alt=&quot;manager_log_arch.png&quot; title=&quot;manager_log_arch.png&quot; class=&quot;iePngFix&quot; style=&quot;&quot; /&gt;&lt;/p&gt;
&lt;h5&gt;Broker Log&lt;/h5&gt;
&lt;h6&gt;Access Log&lt;/h6&gt;
&lt;p&gt;The access log file records information about application client access, and it analyzes and outputs what is saved with the name of &quot; broker_name.access.&quot; In addition, if the &lt;span class=&quot;keyword&quot;&gt;LOG_BACKUP&lt;/span&gt; parameter is configured to &quot; ON&quot; in the Broker configuration file (&lt;span class=&quot;keyword&quot;&gt;cubrid_broker.conf&lt;/span&gt;), the information about the termination date and time is stored additionally to the log file upon successful termination of the broker operation.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;http://www.cubrid.org/files/attach/images/337566/587/339/manager_log_access.png&quot; alt=&quot;manager_log_access.png&quot; title=&quot;manager_log_access.png&quot; class=&quot;iePngFix&quot; style=&quot;&quot; /&gt;&lt;/p&gt;
&lt;h6&gt;Error Log&lt;/h6&gt;
&lt;p&gt;The error log file records information about errors that occurred during the client&apos;s request processing and is saved with the name of &quot; broker_name_app_server_num.err.&quot;&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;http://www.cubrid.org/files/attach/images/337566/587/339/manager_log_error.png&quot; alt=&quot;manager_log_error.png&quot; title=&quot;manager_log_error.png&quot; class=&quot;iePngFix&quot; style=&quot;&quot; /&gt;&lt;/p&gt;
&lt;p&gt;The following example and description shows an error log.&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;Time: 02/04/09 13:45:17.687 - SYNTAX ERROR *** ERROR CODE = -493, Tran = 1, EID = 38&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;Syntax: Unknown class &quot; unknown_tbl&quot; . select * from unknown_tbl&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span class=&quot;keyword&quot;&gt;Time : 02/04/09 13:45:17.687&lt;/span&gt; : Time when the error occurred&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;keyword&quot;&gt;SYNTAX ERROR&lt;/span&gt; : Type of the error (SYNTAX ERROR, ERROR, etc.)&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;keyword&quot;&gt;*** ERROR CODE = -493&lt;/span&gt; : Error code&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;keyword&quot;&gt;Tran = 1&lt;/span&gt; : Transaction ID. -1 if no transaction ID is assigned.&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;keyword&quot;&gt;EID = 38&lt;/span&gt; : Error ID. This ID is used to find the SQL log related to the server or client logs when an error occurs during SQL statement processing.&lt;/li&gt;
&lt;/ul&gt;
&lt;h6&gt;Error Log Trace&lt;/h6&gt;
&lt;p&gt;You also can trace the broker error log for SYNTAX ERROR Type.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;http://www.cubrid.org/files/attach/images/337566/587/339/manager_log_syntaxerror.jpg&quot; alt=&quot;manager_log_syntaxerror.jpg&quot; title=&quot;manager_log_syntaxerror.jpg&quot; style=&quot;&quot; /&gt;&lt;/p&gt;
&lt;p&gt;Click the [Trace Error] action, will pop up the error trace result dialog.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;http://www.cubrid.org/files/attach/images/337566/587/339/manager_log_errorresult.png&quot; alt=&quot;manager_log_errorresult.png&quot; title=&quot;manager_log_errorresult.png&quot; class=&quot;iePngFix&quot; style=&quot;&quot; /&gt;&lt;/p&gt;
&lt;h6&gt;Admin Log&lt;/h6&gt;
&lt;p&gt;The admin log records the history about the service operation and termination.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;http://www.cubrid.org/files/attach/images/337566/587/339/manager_log_manage.png&quot; alt=&quot;manager_log_manage.png&quot; title=&quot;manager_log_manage.png&quot; class=&quot;iePngFix&quot; style=&quot;&quot; /&gt;&lt;/p&gt;
&lt;h5&gt;Manager Log&lt;/h5&gt;
&lt;h6&gt;Access Log&lt;/h6&gt;
&lt;p&gt;The access log files records information about the CUBRID Manager access. You can see user accounts, operation history, and time when operations are performed.&lt;/p&gt;
&lt;h6&gt;Error Log&lt;/h6&gt;
&lt;p&gt;The error log file records information about errors that occurred while connecting the CUBRID Manager.&lt;/p&gt;
&lt;h5&gt;Database Log&lt;/h5&gt;
&lt;h6&gt;Admin Log&lt;/h6&gt;
&lt;p&gt;This admin log records information about errors that occurred while server is running. The format of output file is as follows: &amp;lt; &lt;span class=&quot;var&quot;&gt;database_name&lt;/span&gt;&amp;gt; _&amp;lt; &lt;span class=&quot;var&quot;&gt;date&lt;/span&gt;&amp;gt; _&amp;lt; &lt;span class=&quot;var&quot;&gt;time&lt;/span&gt;&amp;gt; .err.&lt;/p&gt;



&lt;/div&gt;</content>
                  
   </entry>
   <entry>
      <title>CUBRID Manager Administrator Guide</title>
      <id>http://www.cubrid.org/339589</id>
      <published>2012-04-19T03:37:31-07:00</published>
      <updated>2012-04-19T03:39:52-07:00</updated>
      <link rel="alternate" type="text/html" href="http://www.cubrid.org/339589"/>
      <link rel="replies" type="text/html" href="http://www.cubrid.org/339589#comment"/>
      <author>
         <name>CUBRID</name>
                  <uri>http://www.cubrid.org</uri>
               </author>
            <content type="html">&lt;div class=&quot;xe_content&quot;&gt;﻿&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot;
    &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;








&lt;style type=&quot;text/css&quot;&gt;
&lt;!--
div.WebHelpPopupMenu { position:absolute;
left:0px;
top:0px;
z-index:4;
visibility:hidden; }
--&gt;
&lt;/style&gt;







 


&lt;h1&gt;CUBRID Manager Administrator’s Guide&lt;/h1&gt;
&lt;p&gt;As a CLI tool to help you manage users in CUBRID Manager, CUBRID Manager Administrator is supported for Linux only. This chapter explains how to users of CUBRID Manager Administrator.&lt;/p&gt;
&lt;p&gt;This chapter includes the following sections:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;How to use the utilities of &amp;#160;CUBRID Manager Administrator&lt;/li&gt;
&lt;li&gt;How to use the utilities&amp;#160;of CUBRID Manager Administrator&lt;/li&gt;
&lt;li&gt;CM Users&lt;/li&gt;
&lt;li&gt;Adding CM users&lt;/li&gt;
&lt;li&gt;Deleting CM users&lt;/li&gt;
&lt;li&gt;Displaying information of CM users&lt;/li&gt;
&lt;li&gt;Changing the authority of CM users&lt;/li&gt;
&lt;li&gt;Changing the passwords of CM users&lt;/li&gt;
&lt;li&gt;Adding database Information to CM users&lt;/li&gt;
&lt;li&gt;Deleting database Information from CM users&lt;/li&gt;
&lt;li&gt;Changing database Information of CM users&lt;/li&gt;
&lt;/ul&gt;



&lt;/div&gt;</content>
                  
   </entry>
   <entry>
      <title>CUBRID Manager Administrator Utilities</title>
      <id>http://www.cubrid.org/339591</id>
      <published>2012-04-19T03:37:31-07:00</published>
      <updated>2012-04-19T03:39:52-07:00</updated>
      <link rel="alternate" type="text/html" href="http://www.cubrid.org/339591"/>
      <link rel="replies" type="text/html" href="http://www.cubrid.org/339591#comment"/>
      <author>
         <name>CUBRID</name>
                  <uri>http://www.cubrid.org</uri>
               </author>
            <content type="html">&lt;div class=&quot;xe_content&quot;&gt;﻿&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot;
    &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;








&lt;style type=&quot;text/css&quot;&gt;
&lt;!--
div.WebHelpPopupMenu { position:absolute;
left:0px;
top:0px;
z-index:4;
visibility:hidden; }
--&gt;
&lt;/style&gt;







 


&lt;h2&gt;CUBRID Manager Administrator Utilities&lt;/h2&gt;
&lt;p&gt;CUBRID Manager Administrator utilities provide features that can be used to manage the CUBRID Manager services. It is supported for Linux only, and so far it provides the operations on CM users (database administrators; it means the users of CUBRID Manager in this context) information.&lt;/p&gt;
&lt;p&gt;The management utilities are as follows:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;CM user add/delete/view/ utility&lt;/li&gt;
&lt;li style=&quot;list-style: none; display: inline&quot;&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span class=&quot;keyword&quot;&gt;cm_admin adduser&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;keyword&quot;&gt;cm_admin deluser&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;keyword&quot;&gt;cm_admin viewuser&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;CM User change authority/ change password/ add database info/ change database info/ delete database information utility.&lt;/li&gt;
&lt;li style=&quot;list-style: none; display: inline&quot;&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span class=&quot;keyword&quot;&gt;cm_admin changeuserauth&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;keyword&quot;&gt;cm_admin changeuserpwd&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;keyword&quot;&gt;cm_admin adddbinfo&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;keyword&quot;&gt;cm_admin changedbinfo&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;keyword&quot;&gt;cm_admin deldbinfo&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The following information will be displayed upon entering &lt;span class=&quot;keyword&quot;&gt;cm_admin&lt;/span&gt; in a prompt.&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;cmserver utility, version R0.1&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;usage: cm_admin &amp;lt;utility-name&amp;gt; [args]&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;Available Utilities:&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;adduser&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;deluser&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;viewuser&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;changeuserauth&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;changeuserpwd&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;adddbinfo&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;deldbinfo&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;changedbinfo&lt;/p&gt;



&lt;/div&gt;</content>
                  
   </entry>
   <entry>
      <title>How to Use CUBRID Manager Administrator Utilities</title>
      <id>http://www.cubrid.org/339593</id>
      <published>2012-04-19T03:37:31-07:00</published>
      <updated>2012-04-19T03:39:52-07:00</updated>
      <link rel="alternate" type="text/html" href="http://www.cubrid.org/339593"/>
      <link rel="replies" type="text/html" href="http://www.cubrid.org/339593#comment"/>
      <author>
         <name>CUBRID</name>
                  <uri>http://www.cubrid.org</uri>
               </author>
            <content type="html">&lt;div class=&quot;xe_content&quot;&gt;﻿&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot;
    &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;








&lt;style type=&quot;text/css&quot;&gt;
&lt;!--
div.WebHelpPopupMenu { position:absolute;
left:0px;
top:0px;
z-index:4;
visibility:hidden; }
--&gt;
&lt;/style&gt;







 


&lt;h2&gt;How to Use Utilities of CUBRID Manager Administrator&lt;/h2&gt;
&lt;p&gt;The following syntax shows how to use utilities of CUBRID Manager Administrator.&lt;/p&gt;
&lt;p class=&quot;syntaxp&quot;&gt;&lt;span class=&quot;keyword&quot;&gt;cm_admin&lt;/span&gt; &lt;span class=&quot;var&quot;&gt;utility_name&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;syntaxp&quot;&gt;&lt;span class=&quot;var&quot;&gt;utility_name&lt;/span&gt;:&lt;/p&gt;
&lt;p class=&quot;syntaxp&quot;&gt;&amp;#160;&amp;#160;&lt;span class=&quot;keyword&quot;&gt;adduser&lt;/span&gt; [&lt;span class=&quot;var&quot;&gt;option&lt;/span&gt;] &amp;lt;&lt;span class=&quot;var&quot;&gt;cmuser-name&lt;/span&gt;&amp;gt; &amp;lt;&lt;span class=&quot;var&quot;&gt;cmuser-password&lt;/span&gt;&amp;gt;&amp;#160;&amp;#160; --- Adding CM users&lt;/p&gt;
&lt;p class=&quot;syntaxp&quot;&gt;&amp;#160;&amp;#160;&lt;span class=&quot;keyword&quot;&gt;deluser&lt;/span&gt; &amp;lt;&lt;span class=&quot;var&quot;&gt;cmuser-name&lt;/span&gt;&amp;gt;&amp;#160;&amp;#160; --- Deleting CM users&lt;/p&gt;
&lt;p class=&quot;syntaxp&quot;&gt;&amp;#160;&amp;#160;&lt;span class=&quot;keyword&quot;&gt;viewuser&lt;/span&gt; [&lt;span class=&quot;var&quot;&gt;cmuser-name&lt;/span&gt;]&amp;#160;&amp;#160; --- Displaying CM information&lt;/p&gt;
&lt;p class=&quot;syntaxp&quot;&gt;&amp;#160;&amp;#160;&lt;span class=&quot;keyword&quot;&gt;changeuserauth&lt;/span&gt; [&lt;span class=&quot;var&quot;&gt;option&lt;/span&gt;] &amp;lt;&lt;span class=&quot;var&quot;&gt;cmuser-name&lt;/span&gt;&amp;gt; &amp;#160;--- Changing the authorization of CM users&lt;/p&gt;
&lt;p class=&quot;syntaxp&quot;&gt;&amp;#160;&amp;#160;&lt;span class=&quot;keyword&quot;&gt;changeuserpwd&lt;/span&gt; [&lt;span class=&quot;var&quot;&gt;option&lt;/span&gt;] &amp;lt;&lt;span class=&quot;var&quot;&gt;cmuser-name&lt;/span&gt;&amp;gt; &amp;#160;--- Changing the passwords of CM users&lt;/p&gt;
&lt;p class=&quot;syntaxp&quot;&gt;&amp;#160;&amp;#160;&lt;span class=&quot;keyword&quot;&gt;adddbinfo&lt;/span&gt; [&lt;span class=&quot;var&quot;&gt;option&lt;/span&gt;] &amp;lt;&lt;span class=&quot;var&quot;&gt;cmuser-name&lt;/span&gt;&amp;gt; &amp;lt;&lt;span class=&quot;var&quot;&gt;database-name&lt;/span&gt;&amp;gt; &amp;#160;--- Adding database information of CM users&lt;/p&gt;
&lt;p class=&quot;syntaxp&quot;&gt;&amp;#160;&amp;#160;&lt;span class=&quot;keyword&quot;&gt;deldbinfo&lt;/span&gt; &amp;lt;&lt;span class=&quot;var&quot;&gt;cmuser-name&lt;/span&gt;&amp;gt; &amp;lt;&lt;span class=&quot;var&quot;&gt;database-name&lt;/span&gt;&amp;gt; &amp;#160;--- Deleting database information of CM users&lt;/p&gt;
&lt;p class=&quot;syntaxp&quot;&gt;&amp;#160;&amp;#160;&lt;span class=&quot;keyword&quot;&gt;changedbinfo&lt;/span&gt; [&lt;span class=&quot;var&quot;&gt;option&lt;/span&gt;] &amp;lt;&lt;span class=&quot;var&quot;&gt;database-name&lt;/span&gt;&amp;gt; &lt;span class=&quot;var&quot;&gt;number-of-pages&lt;/span&gt; &amp;#160;--- Changing database information of CM users&lt;/p&gt;



&lt;/div&gt;</content>
                  
   </entry>
   <entry>
      <title>CM Users</title>
      <id>http://www.cubrid.org/339595</id>
      <published>2012-04-19T03:37:31-07:00</published>
      <updated>2012-04-19T03:39:52-07:00</updated>
      <link rel="alternate" type="text/html" href="http://www.cubrid.org/339595"/>
      <link rel="replies" type="text/html" href="http://www.cubrid.org/339595#comment"/>
      <author>
         <name>CUBRID</name>
                  <uri>http://www.cubrid.org</uri>
               </author>
            <content type="html">&lt;div class=&quot;xe_content&quot;&gt;﻿&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot;
    &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;








&lt;style type=&quot;text/css&quot;&gt;
&lt;!--
div.WebHelpPopupMenu { position:absolute;
left:0px;
top:0px;
z-index:4;
visibility:hidden; }
--&gt;
&lt;/style&gt;







 


&lt;h2&gt;CM Users&lt;/h2&gt;
&lt;p&gt;Information of CM (CUBRID Manager) users consists of the following parts:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;CM user authority includes the followings:&lt;/li&gt;
&lt;li style=&quot;list-style: none; display: inline&quot;&gt;
&lt;ul&gt;
&lt;li&gt;Broker authority&lt;/li&gt;
&lt;li&gt;Database creation authority; currently only &quot;admin&quot; user can have this authority&lt;/li&gt;
&lt;li&gt;Status monitoring authority&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;ul&gt;
&lt;li&gt;Database information : The databases that CM users can use&lt;/li&gt;
&lt;li&gt;CM user password : The passwords of CM users&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The default user of CUBRID Manager have an &lt;span class=&quot;keyword&quot;&gt;admin&lt;/span&gt; account which provides all the authorities of management (password : admin).&lt;/p&gt;



&lt;/div&gt;</content>
                  
   </entry>
   <entry>
      <title>Adding CM Users</title>
      <id>http://www.cubrid.org/339597</id>
      <published>2012-04-19T03:37:31-07:00</published>
      <updated>2012-04-19T03:39:52-07:00</updated>
      <link rel="alternate" type="text/html" href="http://www.cubrid.org/339597"/>
      <link rel="replies" type="text/html" href="http://www.cubrid.org/339597#comment"/>
      <author>
         <name>CUBRID</name>
                  <uri>http://www.cubrid.org</uri>
               </author>
            <content type="html">&lt;div class=&quot;xe_content&quot;&gt;﻿&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot;
    &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;








&lt;style type=&quot;text/css&quot;&gt;
&lt;!--
div.WebHelpPopupMenu { position:absolute;
left:0px;
top:0px;
z-index:4;
visibility:hidden; }
--&gt;
&lt;/style&gt;







 


&lt;h2&gt;Adding CM Users&lt;/h2&gt;
&lt;h6&gt;Description&lt;/h6&gt;
&lt;p&gt;The &lt;span class=&quot;keyword&quot;&gt;cm_admin adduser&lt;/span&gt; utility creates CM users who have specific authority and database information. The authority to configure broker privilege, create database, and monitor status) can be granted to CM users.&lt;/p&gt;
&lt;h6&gt;Syntax&lt;/h6&gt;
&lt;p class=&quot;syntaxp&quot;&gt;&lt;span class=&quot;keyword&quot;&gt;cm_admin adduser&lt;/span&gt; &lt;span class=&quot;var&quot;&gt;options cmuser-name cmuser-password&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;syntaxp&quot;&gt;&lt;span class=&quot;var&quot;&gt;options&lt;/span&gt; :&lt;/p&gt;
&lt;p class=&quot;syntaxp&quot;&gt;[{&lt;span class=&quot;keyword&quot;&gt;-b&lt;/span&gt; | &lt;span class=&quot;keyword&quot;&gt;--broker&lt;/span&gt; } &lt;span class=&quot;var&quot;&gt;authority&lt;/span&gt;]&lt;/p&gt;
&lt;p class=&quot;syntaxp&quot;&gt;[{&lt;span class=&quot;keyword&quot;&gt;-c&lt;/span&gt; | &lt;span class=&quot;keyword&quot;&gt;--dbcreate&lt;/span&gt; } &lt;span class=&quot;var&quot;&gt;authority&lt;/span&gt;]&lt;/p&gt;
&lt;p class=&quot;syntaxp&quot;&gt;[{&lt;span class=&quot;keyword&quot;&gt;-m&lt;/span&gt; | &lt;span class=&quot;keyword&quot;&gt;--monitor&lt;/span&gt;} &lt;span class=&quot;var&quot;&gt;authority&lt;/span&gt;]&lt;/p&gt;
&lt;p class=&quot;syntaxp&quot;&gt;[{&lt;span class=&quot;keyword&quot;&gt;-d&lt;/span&gt; | &lt;span class=&quot;keyword&quot;&gt;--dbinfo&lt;/span&gt;} &lt;span class=&quot;var&quot;&gt;database-info&lt;/span&gt;]&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span class=&quot;keyword&quot;&gt;cm_admin&lt;/span&gt; : An integrated utility to manage CUBRID Manager&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;keyword&quot;&gt;adduser&lt;/span&gt; : The command used to create a new CM user&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;var&quot;&gt;options&lt;/span&gt; : The &lt;span class=&quot;keyword&quot;&gt;-b&lt;/span&gt;, &lt;span class=&quot;keyword&quot;&gt;-c&lt;/span&gt;, &lt;span class=&quot;keyword&quot;&gt;-m&lt;/span&gt;, and &lt;span class=&quot;keyword&quot;&gt;–d&lt;/span&gt; options are supported. For details, see its description and example.&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;var&quot;&gt;cmuser-name&lt;/span&gt; : Specifies a unique name of a CM user to be created. The name should have at least 4 characters in length. If the specified &lt;span class=&quot;var&quot;&gt;cmuser-name&lt;/span&gt; is the same as the existing one, &lt;span class=&quot;keyword&quot;&gt;cm_admin&lt;/span&gt; halts the creation of a CM user.&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;var&quot;&gt;cmuser-password&lt;/span&gt; : The password of a CM user. The password should have be at least 4 characters in length.&lt;/li&gt;
&lt;/ul&gt;
&lt;h6&gt;Options&lt;/h6&gt;
&lt;table border=&quot;1&quot; width=&quot;80%&quot;&gt;
&lt;tr&gt;
&lt;th&gt;
&lt;p&gt;Option&lt;/p&gt;
&lt;/th&gt;
&lt;th&gt;
&lt;p&gt;Description&lt;/p&gt;
&lt;/th&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p&gt;-b&lt;br /&gt;
--broker&lt;/p&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;Specifies the broker authority of a CM user to be created.&lt;br /&gt;
- Value available : admin, none, monitor&lt;br /&gt;
- Default value : &lt;span class=&quot;keyword&quot;&gt;none&lt;/span&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p&gt;-c&lt;br /&gt;
--dbcreate&lt;/p&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;Specifies the database creation authority of a CM user to be created.&lt;br /&gt;
- Value available&amp;#160;: none, admin&lt;br /&gt;
- Default value : &lt;span class=&quot;keyword&quot;&gt;none&lt;/span&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p&gt;-m&lt;br /&gt;
--monitor&lt;/p&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;Specifies the monitoring authority of a CM user to be created.&lt;br /&gt;
- Value available&amp;#160;: admin, none, monitor&lt;br /&gt;
- Default value : &lt;span class=&quot;keyword&quot;&gt;none&lt;/span&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p&gt;-d&lt;br /&gt;
--dbinfo&lt;/p&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;Specifies the database information of a CM user to be created.&lt;br /&gt;
The format of DBINFO should be as follows: &quot;&amp;lt;dbname&amp;gt;;&amp;lt;uid&amp;gt;;&amp;lt;broker_ip&amp;gt;,&amp;lt;broker_port&amp;gt;&quot;&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;p class=&quot;label&quot;&gt;Configuring broker authority (-b)&lt;/p&gt;
&lt;p&gt;The following example shows how to create a CM user &quot;testcm&quot; and its password &quot;testcmpwd&quot;, and configure the value of broker authority to monitor.&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;cm_admin adduser -b monitor testcm testcmpwd&lt;/p&gt;
&lt;p class=&quot;label&quot;&gt;Configuring database creation authority (-c)&lt;/p&gt;
&lt;p&gt;The following example shows how to create a CM user &quot;testcm&quot; and its password &quot;testcmpwd&quot;, and configure the value of database creation authority to admin.&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;cm_admin adduser -c admin testcm testcmpwd&lt;/p&gt;
&lt;p class=&quot;label&quot;&gt;Configuring status monitoring authority (-m)&lt;/p&gt;
&lt;p&gt;The following example shows how to create a CM user &quot;testcm&quot; and its password &quot;testcmpwd&quot;, and configure the value of its status monitoring authority to admin.&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;cm_admin adduser -m admin testcm testcmpwd&lt;/p&gt;
&lt;p class=&quot;label&quot;&gt;Adding database information (-d)&lt;/p&gt;
&lt;p&gt;The following example shows how to add database information &quot;testdb;dba;localhost,30000&quot; to a CM user &quot;testcm&quot;.&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;cm_admin adduser -d &quot;testdb;dba;localhost,30000&quot; testcm testcmpwd&lt;/p&gt;



&lt;/div&gt;</content>
                  
   </entry>
   <entry>
      <title>Deleting CM Users</title>
      <id>http://www.cubrid.org/339599</id>
      <published>2012-04-19T03:37:31-07:00</published>
      <updated>2012-04-19T03:39:52-07:00</updated>
      <link rel="alternate" type="text/html" href="http://www.cubrid.org/339599"/>
      <link rel="replies" type="text/html" href="http://www.cubrid.org/339599#comment"/>
      <author>
         <name>CUBRID</name>
                  <uri>http://www.cubrid.org</uri>
               </author>
            <content type="html">&lt;div class=&quot;xe_content&quot;&gt;﻿&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot;
    &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;








&lt;style type=&quot;text/css&quot;&gt;
&lt;!--
div.WebHelpPopupMenu { position:absolute;
left:0px;
top:0px;
z-index:4;
visibility:hidden; }
--&gt;
&lt;/style&gt;







 


&lt;h2&gt;Deleting CM Users&lt;/h2&gt;
&lt;h6&gt;Description&lt;/h6&gt;
&lt;p&gt;The &lt;span class=&quot;keyword&quot;&gt;cm_admin deluser&lt;/span&gt; utility deletes CM users based on the given CM user name.&lt;/p&gt;
&lt;h6&gt;Syntax&lt;/h6&gt;
&lt;p class=&quot;syntaxp&quot;&gt;&lt;span class=&quot;keyword&quot;&gt;cm_admin deluser&lt;/span&gt; &lt;span class=&quot;var&quot;&gt;cmuser-name cmuser-password&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span class=&quot;keyword&quot;&gt;cm_admin&lt;/span&gt; : An integrated utility to manage CUBRID Manager&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;keyword&quot;&gt;deluser&lt;/span&gt; : The command used to create an existing CM user&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;var&quot;&gt;cmuser-name&lt;/span&gt; : The name of a CM user to be deleted&lt;/li&gt;
&lt;/ul&gt;
&lt;h6&gt;Deleting CM User&lt;/h6&gt;
&lt;p&gt;The following example shows how to delete a CM user &quot;testcm&quot;.&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;cm_admin deluser testcm&lt;/p&gt;



&lt;/div&gt;</content>
                  
   </entry>
   <entry>
      <title>Displaying CM User Information</title>
      <id>http://www.cubrid.org/339601</id>
      <published>2012-04-19T03:37:31-07:00</published>
      <updated>2012-04-19T03:39:52-07:00</updated>
      <link rel="alternate" type="text/html" href="http://www.cubrid.org/339601"/>
      <link rel="replies" type="text/html" href="http://www.cubrid.org/339601#comment"/>
      <author>
         <name>CUBRID</name>
                  <uri>http://www.cubrid.org</uri>
               </author>
            <content type="html">&lt;div class=&quot;xe_content&quot;&gt;﻿&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot;
    &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;








&lt;style type=&quot;text/css&quot;&gt;
&lt;!--
div.WebHelpPopupMenu { position:absolute;
left:0px;
top:0px;
z-index:4;
visibility:hidden; }
--&gt;
&lt;/style&gt;







 


&lt;h2&gt;Displaying Information of CM Users&lt;/h2&gt;
&lt;h6&gt;Description&lt;/h6&gt;
&lt;p&gt;The &lt;span class=&quot;keyword&quot;&gt;cm_admin viewuser&lt;/span&gt; utility displays information of CM users.&lt;/p&gt;
&lt;h6&gt;Syntax&lt;/h6&gt;
&lt;p class=&quot;syntaxp&quot;&gt;&lt;span class=&quot;keyword&quot;&gt;cm_admin viewuser&lt;/span&gt; &lt;span class=&quot;var&quot;&gt;cmuser-name&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span class=&quot;keyword&quot;&gt;cm_admin&lt;/span&gt; : An integrated utility to manage CUBRID Manager&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;keyword&quot;&gt;viewuser&lt;/span&gt; : The command used to display authority and database information of a CM user.&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;var&quot;&gt;cmuser-name&lt;/span&gt; : The name of a user. If this value is specified, only the corresponding user&apos;s information will be displayed; if it is omitted, all existing CM user&apos;s information will be displayed.&lt;/li&gt;
&lt;/ul&gt;
&lt;h6&gt;Example&lt;/h6&gt;
&lt;p&gt;The following example shows how to display information of a CM user &quot;testcm&quot;.&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;cm_admin viewuser testcm&lt;/p&gt;
&lt;p&gt;The following information will be displayed.&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;CM USER: testcm&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;#160;Auth info:&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;#160;&amp;#160;broker: none&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;#160;&amp;#160;dbcreate: none&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;#160;&amp;#160;statusmonitorauth: none&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;#160;DB info:&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;#160;==========================================================================================&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;#160;DBNAME &amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;UID &amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;BROKER INFO&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;==========================================================================================&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;&amp;#160;testdb &amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;dba &amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;localhost,30000&lt;/p&gt;



&lt;/div&gt;</content>
                  
   </entry>
   <entry>
      <title>Changing the Authority of CM Users</title>
      <id>http://www.cubrid.org/339603</id>
      <published>2012-04-19T03:37:31-07:00</published>
      <updated>2012-04-19T03:39:52-07:00</updated>
      <link rel="alternate" type="text/html" href="http://www.cubrid.org/339603"/>
      <link rel="replies" type="text/html" href="http://www.cubrid.org/339603#comment"/>
      <author>
         <name>CUBRID</name>
                  <uri>http://www.cubrid.org</uri>
               </author>
            <content type="html">&lt;div class=&quot;xe_content&quot;&gt;﻿&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot;
    &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;








&lt;style type=&quot;text/css&quot;&gt;
&lt;!--
div.WebHelpPopupMenu { position:absolute;
left:0px;
top:0px;
z-index:4;
visibility:hidden; }
--&gt;
&lt;/style&gt;







 


&lt;h2&gt;Changing the Authority of CM Users&lt;/h2&gt;
&lt;h6&gt;Description&lt;/h6&gt;
&lt;p&gt;The &lt;span class=&quot;keyword&quot;&gt;cm_admin changeuserauth&lt;/span&gt; utility changes authority of CM users.&lt;/p&gt;
&lt;h6&gt;Syntax&lt;/h6&gt;
&lt;p class=&quot;syntaxp&quot;&gt;&lt;span class=&quot;keyword&quot;&gt;cm_admin changeuserauth&lt;/span&gt; &lt;span class=&quot;var&quot;&gt;options&lt;/span&gt; &lt;span class=&quot;var&quot;&gt;cmuser-name&lt;/span&gt;&lt;/p&gt;
&lt;p class=&quot;syntaxp&quot;&gt;&lt;span class=&quot;var&quot;&gt;options&lt;/span&gt; :&lt;/p&gt;
&lt;p class=&quot;syntaxp&quot;&gt;[{&lt;span class=&quot;keyword&quot;&gt;-b&lt;/span&gt; | &lt;span class=&quot;keyword&quot;&gt;--broker&lt;/span&gt;} &lt;span class=&quot;var&quot;&gt;authority&lt;/span&gt;]&lt;/p&gt;
&lt;p class=&quot;syntaxp&quot;&gt;[{&lt;span class=&quot;keyword&quot;&gt;-c&lt;/span&gt; | &lt;span class=&quot;keyword&quot;&gt;--dbcreate&lt;/span&gt;} &lt;span class=&quot;var&quot;&gt;authority&lt;/span&gt;]&lt;/p&gt;
&lt;p class=&quot;syntaxp&quot;&gt;[{&lt;span class=&quot;keyword&quot;&gt;-m&lt;/span&gt; | &lt;span class=&quot;keyword&quot;&gt;--monitor&lt;/span&gt;} &lt;span class=&quot;var&quot;&gt;authority&lt;/span&gt;]&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span class=&quot;keyword&quot;&gt;cm_admin&lt;/span&gt; : An integrated utility to manage CUBRID Manager&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;keyword&quot;&gt;changeuserauth&lt;/span&gt;: The command used to change the authority information of a CM user&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;var&quot;&gt;options&lt;/span&gt; : The &lt;span class=&quot;keyword&quot;&gt;-b&lt;/span&gt;, &lt;span class=&quot;keyword&quot;&gt;-c&lt;/span&gt;, and &lt;span class=&quot;keyword&quot;&gt;-m&lt;/span&gt; options are supported. For details, see its description and example.&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;var&quot;&gt;cmuser-name&lt;/span&gt; : The name of a CM user whose authority to be changed.&lt;/li&gt;
&lt;/ul&gt;
&lt;h6&gt;Options&lt;/h6&gt;
&lt;table border=&quot;1&quot; width=&quot;80%&quot;&gt;
&lt;tr&gt;
&lt;th&gt;
&lt;p&gt;Option&lt;/p&gt;
&lt;/th&gt;
&lt;th&gt;
&lt;p&gt;Description&lt;/p&gt;
&lt;/th&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p&gt;-b&lt;br /&gt;
--broker&lt;/p&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;Specifies the broker authority of a CM user.&lt;br /&gt;
- Value available : admin, none, monitor&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p&gt;-c&lt;br /&gt;
--dbcreate&lt;/p&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;Specifies the database creation authority of a CM user.&lt;br /&gt;
- Value available&amp;#160;: none, admin&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p&gt;-m&lt;br /&gt;
--monitor&lt;/p&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;p&gt;Specifies the monitoring authority of a CM user.&lt;br /&gt;
- Value available&amp;#160;: admin, none, monitor&lt;br /&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;p class=&quot;label&quot;&gt;Changing broker authority (-b)&lt;/p&gt;
&lt;p&gt;The following example shows how to change the broker authority of a CM user &quot;testcm&quot; to monitor.&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;cm_admin changeuserauth -b monitor testcm&lt;/p&gt;
&lt;p class=&quot;label&quot;&gt;Changing database creation authority (-c)&lt;/p&gt;
&lt;p&gt;The following example shows how to change database creation authority of a CM user &quot;testcm&quot; to admin.&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;cm_admin changeuserauth -c admin testcm&lt;/p&gt;
&lt;p class=&quot;label&quot;&gt;Changing status monitoring authority (-m)&lt;/p&gt;
&lt;p&gt;The following example shows how to change status monitoring authority of a CM user &quot;testcm&quot; to admin.&lt;/p&gt;
&lt;p class=&quot;codep&quot;&gt;cm_admin changeuserauth -m admin testcm&lt;/p&gt;



&lt;/div&gt;</content>
                  
   </entry>
</feed> 
