From fe28076610ba28d3b6a96f8341590ac4cd2e5d84 Mon Sep 17 00:00:00 2001 From: Keith Fahlgren Date: Sun, 1 Jun 2008 20:18:18 +0000 Subject: [PATCH] Very primitive Windows support for dbtoepub reference implementation; README for running tests and for the .epub target in general; shorter realbook test document (still fails for now) --- xsl/epub/README | 88 + xsl/epub/bin/dbtoepub | 1 + xsl/epub/bin/lib/docbook.rb | 6 +- xsl/epub/bin/spec/README | 14 + xsl/epub/bin/spec/epub_realbook_spec.rb | 3 +- xsl/epub/bin/spec/files/orm.book.001.xml | 30907 +-------------------- 6 files changed, 132 insertions(+), 30887 deletions(-) create mode 100644 xsl/epub/README create mode 100644 xsl/epub/bin/spec/README diff --git a/xsl/epub/README b/xsl/epub/README new file mode 100644 index 000000000..5e2587a12 --- /dev/null +++ b/xsl/epub/README @@ -0,0 +1,88 @@ +---------------------------------------------------------------------- + README file for the DocBook XSL Stylesheets +---------------------------------------------------------------------- + +These are XSL stylesheets for transforming DocBook XML document +instances into .epub format. + +.epub is an open standard of the The International Digital Publishing Forum (IDPF), +a the trade and standards association for the digital publishing industry. + +An alpha-quality reference implementation (dbtoepub) for a DocBook to .epub +converter (written in Ruby) is available under bin/. + +From http://idpf.org + What is EPUB, .epub, OPS/OCF & OEB? + + ".epub" is the file extension of an XML format for reflowable digital + books and publications. ".epub" is composed of three open standards, + the Open Publication Structure (OPS), Open Packaging Format (OPF) and + Open Container Format (OCF), produced by the IDPF. "EPUB" allows + publishers to produce and send a single digital publication file + through distribution and offers consumers interoperability between + software/hardware for unencrypted reflowable digital books and other + publications. The Open eBook Publication Structure or "OEB", + originally produced in 1999, is the precursor to OPS. + +---------------------------------------------------------------------- +.epub Constraints +---------------------------------------------------------------------- + +.epub does not support all of the image formats that DocBook supports. +When an image is available in an accepted format, it will be used. The +accepted @formats are: 'GIF','GIF87a','GIF89a','JPEG','JPG','PNG','SVG' +A mime-type for the image will be guessed from the file extension, +which may not work if your file extensions are non-standard. + +Non-supported elements: + * + * , , , with text/XML + @filerefs + * + * in lists (generic XHTML rendering inability) + * (just make your programlistings + siblings, rather than descendents of paras) + +---------------------------------------------------------------------- +dbtoepub Reference Implementation +---------------------------------------------------------------------- + +An alpha-quality DocBook to .epub conversion program, dbtoepub, is provided +in bin/dbtoepub. + +This tool requires: + - 'xsltproc' in your PATH + - 'zip' in your PATH + - Ruby 1.8.4+ + +Windows compatibility has not been extensively tested; bug reports encouraged. +[See http://www.zlatkovic.com/libxml.en.html and http://unxutils.sourceforge.net/] + +$ dbtoepub --help + Usage: dbtoepub [OPTIONS] [DocBook Files] + + dbtoepub converts DocBook and
s into to .epub files. + + .epub is defined by the IDPF at www.idpf.org and is made up of 3 standards: + - Open Publication Structure (OPS) + - Open Packaging Format (OPF) + - Open Container Format (OCF) + + Specific options: + -d, --debug Show debugging output. + -h, --help Display usage info + -v, --verbose Make output verbose + + +---------------------------------------------------------------------- +Validation +---------------------------------------------------------------------- + +The epubcheck project provides limited validation for .epub documents. +See http://code.google.com/p/epubcheck/ for details. + +---------------------------------------------------------------------- +Copyright information +---------------------------------------------------------------------- +See the accompanying file named COPYING. + diff --git a/xsl/epub/bin/dbtoepub b/xsl/epub/bin/dbtoepub index 7de2be79d..c94a1072b 100755 --- a/xsl/epub/bin/dbtoepub +++ b/xsl/epub/bin/dbtoepub @@ -48,5 +48,6 @@ end db_files.each {|docbook_file| e = DocBook::Epub.new(docbook_file) epub_file = File.basename(docbook_file, ".xml") + ".epub" + puts "Rendering DocBook file #{docbook_file} to #{epub_file}" if verbose e.render_to_file(epub_file) } diff --git a/xsl/epub/bin/lib/docbook.rb b/xsl/epub/bin/lib/docbook.rb index 423e3eafe..33f5e605f 100755 --- a/xsl/epub/bin/lib/docbook.rb +++ b/xsl/epub/bin/lib/docbook.rb @@ -59,7 +59,8 @@ module DocBook meta = "--stringparam epub.metainf.dir #{@meta_dir}/" oebps = "--stringparam epub.oebps.dir #{@oebps_dir}/" options = "--xinclude #{chunk_quietly} #{callout_path} #{callout_limit} #{callout_ext} #{base} #{meta} #{oebps}" - db2epub_cmd = "#{XSLT_PROCESSOR} #{options} #{STYLESHEET} #{@docbook_file}" + # Double-quote stylesheet & file to help Windows cmd.exe + db2epub_cmd = "#{XSLT_PROCESSOR} #{options} \"#{STYLESHEET}\" \"#{@docbook_file}\"" STDERR.puts db2epub_cmd if $DEBUG success = system(db2epub_cmd) raise "Could not render as .epub to #{output_file} (#{db2epub_cmd})" unless success @@ -75,7 +76,8 @@ module DocBook images = copy_images() callouts = copy_callouts() # zip -X -r ../book.epub mimetype META-INF OEBPS - zip_cmd = "cd #{@output_dir} && #{ZIPPER} #{quiet} -X -r #{File.expand_path(output_file)} #{mimetype_filename} #{meta} #{oebps}" + # Double-quote stylesheet & file to help Windows cmd.exe + zip_cmd = "cd \"#{@output_dir}\" && #{ZIPPER} #{quiet} -X -r \"#{File.expand_path(output_file)}\" \"#{mimetype_filename}\" \"#{meta}\" \"#{oebps}\"" puts zip_cmd if $DEBUG success = system(zip_cmd) raise "Could not bundle into .epub file to #{output_file}" unless success diff --git a/xsl/epub/bin/spec/README b/xsl/epub/bin/spec/README new file mode 100644 index 000000000..d9670ed12 --- /dev/null +++ b/xsl/epub/bin/spec/README @@ -0,0 +1,14 @@ +How to run the tests? + +1. Get RSpec http://rspec.info/ +2. Do this: + + $ cd epub/bin + $ spec spec/epub_spec.rb + +Or, prettier: + + $ cd epub/bin + $ spec --format specdoc --color spec/epub_spec.rb + +3. Repeat for other files in spec/*spec.rb diff --git a/xsl/epub/bin/spec/epub_realbook_spec.rb b/xsl/epub/bin/spec/epub_realbook_spec.rb index 2b1d7433d..eb6cb6bc2 100755 --- a/xsl/epub/bin/spec/epub_realbook_spec.rb +++ b/xsl/epub/bin/spec/epub_realbook_spec.rb @@ -25,6 +25,7 @@ describe DocBook::Epub do epub = DocBook::Epub.new(xml_file, TMPDIR) epub_file = File.join(TMPDIR, File.basename(xml_file, ".xml") + ".epub") epub.render_to_file(epub_file, $DEBUG) + FileUtils.copy(epub_file, "." + File.basename(xml_file, ".xml") + ".epub") if $DEBUG it "should be able to render a valid .epub for the 'Real Book' test document #{xml_file}" do @@ -41,7 +42,7 @@ describe DocBook::Epub do end end - after do + after(:all) do FileUtils.rm_r(TMPDIR, :force => true) end end diff --git a/xsl/epub/bin/spec/files/orm.book.001.xml b/xsl/epub/bin/spec/files/orm.book.001.xml index 479d3ec54..48e9fd504 100644 --- a/xsl/epub/bin/spec/files/orm.book.001.xml +++ b/xsl/epub/bin/spec/files/orm.book.001.xml @@ -149,35 +149,35 @@ Mxxx xx xxx xxxxxxxxxxxx xxxx xx xxxxxxxxxxxxx xxx xxxxxxx xx xxxxxxxxxxx Pxxx I, Ixxxxxxxxxxx & Txxxxxxxx xxxxxxxx xxx xxxxx xxxxxxxxxx xx MxSQL xxx xxxxxx xxxxxxxxxx xxx xxxxx xxxxxxxxxxx xx MxSQL. xxxxxxxxx xxx xx xxx MxSQL xxxxxxx xx xxxxxx xxxxxxxxx xxxxxxx xxxxxxxxx xx MxSQL AB. Ix xx xxxxxxxxx xx xxxx xxxx xxxxxxx xxxx xx xxxx xxxxxx xxxx xxx xxxxxxx xxxx MxSQL xxxxxxxxx. - xxxxxxxxxx SQL (Sxxxxxxxxx Qxxxx Lxxxxx) xxx xxx xx xxx xxxxx xxxxxxx-xxxx xxxxxxxxx. Ix’x xxx x xxxxxxxxxxx xxx xxxxxxxx SQL xxx xxxxxxxxxx xxxxxxxx xxxxxx, xxx xx xxx xx xxxxxx xx xxxxxx xxx xx MxSQL. + xxxxxxxxxx SQL (Sxxxxxxxxx Qxxxx Lxxxxx) xxx xxx xx xxx xxxxx xxxxxxx-xxxx xxxxxxxxx. Ix’x xxx x xxxxxxxxxxx xxx xxxxxxxx SQL xxx xxxxxxxxxx xxxxxxxx xxxxxx, xxx xx xxx xx xxxxxx xx xxxxxx xxx xx MxSQL. Pxxx II, SQL Sxxxxxxxxx & Fxxxxxxxx - xxxxxx SQL xxxxxxxxxx xxx xxxxxxxxx xxxxxxx xx xxx xxxxxxxxxx xx xxxx xxxxxxxx xxx xxxxxxxx. - xxxxx, xxxxxxxx, xxx xxxxxxxx xxxxxxxx xx SQL xxxxxxxxxx xxx xxxxxxxxx xxxxxxx xx xxx xxxxxxxx, xxxxxxxx, xxx xxxxxxxx xx xxxxxxxxx, xxxxxx, xxxxxxx, xxx xxxxx. - xx xxxxxxxxx xxx SQL xxxxxxxxxx xxx xxxxxxxxx xxxxxxxxx xxx xxxxxxxxxxxx xx xxxx—xxxxxxxxx, xxxxxxxx, xxxxxxxxx, xx xxxxxxxx. - xxxxxxxx xxxxxxx xxx xxxxxxxx xxxxxxx SQL xxxxxxxxxx xxx xxxxxxxxx xxxx xxxxx xx xxxx xx xxx xxxxxxxxxxxxxx xx xxxxxxxxx, xxxxxx, xx xxx xxxxxx. - xxxxxxxx SQL xxxxxxxxxx xxxxx xxxxxxxx xxxxxx xx xxxxxxxxxxx. Txx xxxxxxx xxxx xxxxxxxx x xxxxxxxx xxx xx xxxxxxxxxxx xx xxx xxxxxxxxxxx xxxxxxx. Ix xxxx xxxxxxxx xxx xxxxxxxxxxx xxxxxx xx xxxx xx xxxxxxx xxxxxxxx. - xxxxxxxx xxxxxxxxxx xxxxxxxxxxxx xxxxxxx xx xxxxxx, xxxxxx xxxxxxxxxx, xxxxxxxx, xxx xxxx xxxxxxx xxxxxxxxx. - xxxxxxxx xxxxxxxxx xxxxxxx (x.x., GROUP BY) xxx xxxxxxxxx xxxx xxxxxxxxx xxx xxxx xxxx xxxx xx xxxxxxxxx xxxxxx. Ix xxxx xxxxxxxx x xxxxxxxx xx xxxxxxxxxx xx xxxx xxx xx xxxx xx xxxxxxxxx xxxx. - xxxxxx xxx xxxxxxxxx xxxx xxx xxxxxxx xx xxx xxxxxxxxxxxx xx xxxxxxx xx xxxx. - xxxxxx xxxx xxx xxxx xxxxxxx xxxxxxxxx. - xxxxxxxx xxx xxxxx xxxxxxxx xx xxxxxxxx xxxxxxxxxxxx xxxxxxx xxxxxxxx. - xxxxxx xxxx xxxxxxx xxxxxxxxx xxxx xx + xxxxxx SQL xxxxxxxxxx xxx xxxxxxxxx xxxxxxx xx xxx xxxxxxxxxx xx xxxx xxxxxxxx xxx xxxxxxxx. + xxxxx, xxxxxxxx, xxx xxxxxxxx xxxxxxxx xx SQL xxxxxxxxxx xxx xxxxxxxxx xxxxxxx xx xxx xxxxxxxx, xxxxxxxx, xxx xxxxxxxx xx xxxxxxxxx, xxxxxx, xxxxxxx, xxx xxxxx. + xx xxxxxxxxx xxx SQL xxxxxxxxxx xxx xxxxxxxxx xxxxxxxxx xxx xxxxxxxxxxxx xx xxxx—xxxxxxxxx, xxxxxxxx, xxxxxxxxx, xx xxxxxxxx. + xxxxxxxx xxxxxxx xxx xxxxxxxx xxxxxxx SQL xxxxxxxxxx xxx xxxxxxxxx xxxx xxxxx xx xxxx xx xxx xxxxxxxxxxxxxx xx xxxxxxxxx, xxxxxx, xx xxx xxxxxx. + xxxxxxxx SQL xxxxxxxxxx xxxxx xxxxxxxx xxxxxx xx xxxxxxxxxxx. Txx xxxxxxx xxxx xxxxxxxx x xxxxxxxx xxx xx xxxxxxxxxxx xx xxx xxxxxxxxxxx xxxxxxx. Ix xxxx xxxxxxxx xxx xxxxxxxxxxx xxxxxx xx xxxx xx xxxxxxx xxxxxxxx. + xxxxxxxx xxxxxxxxxx xxxxxxxxxxxx xxxxxxx xx xxxxxx, xxxxxx xxxxxxxxxx, xxxxxxxx, xxx xxxx xxxxxxx xxxxxxxxx. + xxxxxxxx xxxxxxxxx xxxxxxx (x.x., GROUP BY) xxx xxxxxxxxx xxxx xxxxxxxxx xxx xxxx xxxx xxxx xx xxxxxxxxx xxxxxx. Ix xxxx xxxxxxxx x xxxxxxxx xx xxxxxxxxxx xx xxxx xxx xx xxxx xx xxxxxxxxx xxxx. + xxxxxx xxx xxxxxxxxx xxxx xxx xxxxxxx xx xxx xxxxxxxxxxxx xx xxxxxxx xx xxxx. + xxxxxx xxxx xxx xxxx xxxxxxx xxxxxxxxx. + xxxxxxxx xxx xxxxx xxxxxxxx xx xxxxxxxx xxxxxxxxxxxx xxxxxxx xxxxxxxx. + xxxxxx xxxx xxxxxxx xxxxxxxxx xxxx xx CASE xxx IF. Pxxx III, MxSQL Sxxxxx xxx Cxxxxx Txxxx - xxxxxx xxx xxxxxx xxxxxx xxx xxx xxxxx xxxxxx xxx xxxxx xxxxxxx. Ix xxxx xxxxxxxx xxxxxxx xxxx xx xxxxx xxx xxxxxx (x.x., xxxxxx_xxxx). + xxxxxx xxx xxxxxx xxxxxx xxx xxx xxxxx xxxxxx xxx xxxxx xxxxxxx. Ix xxxx xxxxxxxx xxxxxxx xxxx xx xxxxx xxx xxxxxx (x.x., xxxxxx_xxxx). - xxxxxxxxx xxx xxxxxxxxx xxxx xxx xx xxxx xx xxxxxxxxxx xxx MxSQL xxxxxx xxx xxxx. Ix xxxx xxxxxxxx xxxxxxxxx xxxx xx xxxxxxxxx xxxx xxx xxxx xxxxxxx. + xxxxxxxxx xxx xxxxxxxxx xxxx xxx xx xxxx xx xxxxxxxxxx xxx MxSQL xxxxxx xxx xxxx. Ix xxxx xxxxxxxx xxxxxxxxx xxxx xx xxxxxxxxx xxxx xxx xxxx xxxxxxx. Pxxx IV, MxSQL API [PROD: Ixxxxxxx xxxxx xxxxxxxx xx xxxx xxxxx xx xxxxx xxxxx; I’xx xxxxxxx xx xxxxx xx xxdd-xxdd, xxx xxxxxx xxxxxx.—DCPS] - xxxxxx xxx xxxxxxxxx xxxxxxxx xx MxSQL’x xxxxx C xxxxxxx. - xxxxxxxx xxx Pxxx DBI xxxxxx, xxxx xx xxxxxx MxSQL xxxxxxxxx xxxx xxx xxxxxxxxxxx xxxxxxxxx Pxxx. - xxxxxxxx xxx PHP xxxxxxxxx xxxx xx xxxxx xxx xxxxxxxxxx MxSQL xxxxxxxxx. + xxxxxx xxx xxxxxxxxx xxxxxxxx xx MxSQL’x xxxxx C xxxxxxx. + xxxxxxxx xxx Pxxx DBI xxxxxx, xxxx xx xxxxxx MxSQL xxxxxxxxx xxxx xxx xxxxxxxxxxx xxxxxxxxx Pxxx. + xxxxxxxx xxx PHP xxxxxxxxx xxxx xx xxxxx xxx xxxxxxxxxx MxSQL xxxxxxxxx. Axxxxxxxxx @@ -336,7 +336,7 @@ A xxx xxxxxxx xxxxxxx xxx xxxxxx xxxx xxxx MxSQL. Txx xxxxxxxxxxx xx xxxx xxx xxxxxxxx xxxx xxxxxxxx xxx xxxxxxx xxxxx xxxxxxxxxx. xxxxxxxxxx xxx xx xxxx xx xxxxxx xxx MxSQL xxxxxx xxxxxx xxxx xxx xxxxxxx-xxxx. Txxx xxxxxxxxxxx xxxxxxxx xxxxxxxx x xxxxxx’x xxxxxx xxx xxxxx, xxx xxxxxxxx xxxx x xxxxxx. xxxxxxxxx xxx xx xxxx xx xxxxxxx x xxxxxx’x xxxxxx, xx xxxx xx xxxxxxxxxxx xxxxx xxxxxxxxx xxx xxxxxx. Sxxx xx xxxxx xxxxxxxxx xxxxxxx Pxxx, xx AxxxxxPxxx xxx Wxxxxxx, xx xx xxxxxxxxx xx xxx xxxxxx. Sxx xx xxxxxxxx xxx xxxxxxx x xxxx xx Pxxx xx xxx-Wxxxxxx xxxxxxx, xxx xx xxxxxxxx xxx xxxxxxx x xxxx xx AxxxxxPxxx xx Wxxxxxx xxxxxxx. xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxx -MxSQL xxxx xxxxx xxxx x xxx xxxxxxxxx xxx xxxxxxxxx xxx xxxxxxxxx xxxx xxxx xxx xx MxSQL xxxxxxxxx. xxxxxxxxx xx xxx xxxx xxxxxxx xxx xxxxxxxxx xxxx xxx xxxxx xxxxxxxxxx xx x xxxxx-xxxx xxxx xxxxx xx x xxxx xxxx. Txxx xxx xx xxxx xxx xxxxxxx xx xxxx xx xxx xxxxxxxx xxxxxx xx xxxxxxx xxxxxxx. Txx xxxxx xxxxxx xxx xx xxxx xx xxxxxx xxx xxxx xxxx xx MxSQL xxxx x xxxx xxxx. Sxx xxx xxxx xx xxxxxxxxx. +MxSQL xxxx xxxxx xxxx x xxx xxxxxxxxx xxx xxxxxxxxx xxx xxxxxxxxx xxxx xxxx xxx xx MxSQL xxxxxxxxx. xxxxxxxxx xx xxx xxxx xxxxxxx xxx xxxxxxxxx xxxx xxx xxxxx xxxxxxxxxx xx x xxxxx-xxxx xxxx xxxxx xx x xxxx xxxx. Txxx xxx xx xxxx xxx xxxxxxx xx xxxx xx xxx xxxxxxxx xxxxxx xx xxxxxxx xxxxxxx. Txx xxxxx xxxxxx xxx xx xxxx xx xxxxxx xxx xxxx xxxx xx MxSQL xxxx x xxxx xxxx. Sxx xxx xxxx xx xxxxxxxxx. @@ -603,7 +603,7 @@ Axx xxxx xxxxxxx xxx xxxx xxxxxxxxxxxxxxxx xxxxxxxxxxx xxxx xxx xxxxxxxxx xx xxx Axxxx xxx’xx xxxxxxxx xxxxxxxxxx MxSQL xx xxxx xxxxxx, xxx xxxxxx xxxxxxx x xxx xxxxx xxxxxx xxxxxxxx xxxxxx xx xxxxx xxxxx xxx xxxxxxx. Yxx xxx xxxx xx xxxxxxxxx xxx xxxxxx xxxxxxxxxxx xx xxxxxx xxxxxxx xx xxx xxxxxxxxxxxxx xxxx. Ax x xxxxxxx, xxx xxxxxx xxxxxx xxx xxxxxxxx xxx xxx xxxx xxxx xxx xxx xxxx xxxxxxxxxxxxxxxxx xxxxx. MxSQL xx xxxxxxxxx xxx xx xxxx xxxxxxxxx xxxxx. Yxx xxxxxx xxxxxx xxxx. Txxx xxxxxxx xxxx xxxxxxx xxxxxxx xxxxx xxxxx. xxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxx -Axxxxxxx xxx MxSQL xxxxxxxxxx xxxx xxx xxx xxxxxx xxxxxx xx xxx xxxxxxxxxxx xxxxxxxxxxxxx, xxx xxx xxxx xx xxx xxx xxxxxx xxxxxxxxxxx. Fxx xxxxxxxx, xxx xxx xxxx xx xxxx xx xxxxx xxxxxxx. Tx xx xxxx, xxx xxxx xxxx xx xxxx xxx xxxx xxxxxxxxxxxxx xxxx xxx MxSQL. Ox Uxxx xxxxxxx, xxxx xxxx xx /xxx/xx.xxx. Ox Wxxxxxx xxxxxxx, xxx xxxx xxxxxxxxxxxxx xxxx xx xxxxxxx xxxxxx x:\xxxxxxx\xx.xxx xx x:\xx.xxx. Txx xxxxxxxxxxxxx xxxx xx x xxxxxx xxxx xxxx xxxx xxx xxx xxxx xxxx x xxxxx-xxxx xxxxxx, xxx x xxxx xxxxxxxxx. Txx xxxxxxxxxxxxx xxxx xx xxxxxxxxx xxxx xxxxxxxx xx xxxxxx xxxxx x xxxxxxx xxxx xxxxxxxxx xx xxxxxx xxxxxxxx. Fxx xxxxxxxx, xxxxxxxx xxx xxx xxxxxx xxxxxx xxxxxx xxx xxxxxx xxxxx xxx xxxxx xxxxxxx [xxxxxx]. Uxxxx xxxx xxxxxxx xxx xxxxx xxx xxxxxxxxx xxxx xxx = /xxx/xxx/xxxxx xx xxxxxx xxxxxxx xxx xx xxx xxx xxxxxxxxx xxx xxx xxx xxxxx xx xxx xxx xxxxx. Yxx xxx xxxx xxxx xxxxxxx xx xxx xxxx xxx x xxxxxxxxxx xxxxx. Fxx x xxxxxxxx xxxxxxx xxx xxxxxxxxxxx xx xxxxx xxxxxxx, xxx . +Axxxxxxx xxx MxSQL xxxxxxxxxx xxxx xxx xxx xxxxxx xxxxxx xx xxx xxxxxxxxxxx xxxxxxxxxxxxx, xxx xxx xxxx xx xxx xxx xxxxxx xxxxxxxxxxx. Fxx xxxxxxxx, xxx xxx xxxx xx xxxx xx xxxxx xxxxxxx. Tx xx xxxx, xxx xxxx xxxx xx xxxx xxx xxxx xxxxxxxxxxxxx xxxx xxx MxSQL. Ox Uxxx xxxxxxx, xxxx xxxx xx /xxx/xx.xxx. Ox Wxxxxxx xxxxxxx, xxx xxxx xxxxxxxxxxxxx xxxx xx xxxxxxx xxxxxx x:\xxxxxxx\xx.xxx xx x:\xx.xxx. Txx xxxxxxxxxxxxx xxxx xx x xxxxxx xxxx xxxx xxxx xxx xxx xxxx xxxx x xxxxx-xxxx xxxxxx, xxx x xxxx xxxxxxxxx. Txx xxxxxxxxxxxxx xxxx xx xxxxxxxxx xxxx xxxxxxxx xx xxxxxx xxxxx x xxxxxxx xxxx xxxxxxxxx xx xxxxxx xxxxxxxx. Fxx xxxxxxxx, xxxxxxxx xxx xxx xxxxxx xxxxxx xxxxxx xxx xxxxxx xxxxx xxx xxxxx xxxxxxx [xxxxxx]. Uxxxx xxxx xxxxxxx xxx xxxxx xxx xxxxxxxxx xxxx xxx = /xxx/xxx/xxxxx xx xxxxxx xxxxxxx xxx xx xxx xxx xxxxxxxxx xxx xxx xxx xxxxx xx xxx xxx xxxxx. Yxx xxx xxxx xxxx xxxxxxx xx xxx xxxx xxx x xxxxxxxxxx xxxxx. Fxx x xxxxxxxx xxxxxxx xxx xxxxxxxxxxx xx xxxxx xxxxxxx, xxx . xxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxx @@ -648,30877 +648,17 @@ Ix xxxx xxxx, xxx xxxx xx xxxxx xxx xxx xxxxxxxx xx GRANT ALL ON xxd.* TO xxxxx IDENTIFIED BY 'xxxxddd'; ALL xxxxGRANT xxxxxxxxxGRANT xxxxxxxxxALL xxxx -Ix xxxx xxxxxxx, xxx xxxx xxxxx xxx xxx xxxxx xxxxxxxxxx, xxx xxxx xxx xxx xxd xxxxxxxx. Txxx xxxxxxxxx xxxx xxx xxxx xxxxx xx xxx xxxxx xxxx xx xxx xxxxx xxxxxxxx, xx xxxxx xx xxxxxxx x xxx xxx xxx xx xx, xxx xxxx xx xxxxxxxxxx. Ix xxxx xxxx xxx x xxx xx xxx xx xxxxx xx xxx xxxxx xxxxxxxx xxxxxxxxxx xxxx xxxxx xxx xxx xxxxxxxxxx xxx xxx xxd xxxxxxxx. Sxx xxx xxxxxxxxxxx xx GRANT xx xxx xxxx xxxxxxx. +Ix xxxx xxxxxxx, xxx xxxx xxxxx xxx xxx xxxxx xxxxxxxxxx, xxx xxxx xxx xxx xxd xxxxxxxx. Txxx xxxxxxxxx xxxx xxx xxxx xxxxx xx xxx xxxxx xxxx xx xxx xxxxx xxxxxxxx, xx xxxxx xx xxxxxxx x xxx xxx xxx xx xx, xxx xxxx xx xxxxxxxxxx. Ix xxxx xxxx xxx x xxx xx xxx xx xxxxx xx xxx xxxxx xxxxxxxx xxxxxxxxxx xxxx xxxxx xxx xxx xxxxxxxxxx xxx xxx xxd xxxxxxxx. Sxx xxx xxxxxxxxxxx xx GRANT xx xxx xxxx xxxxxxx. - LOAD DATA INFILE xxxxxxxxxxxxxxxxxxx xxxxIx xxx xxxx xxx xxxxxxxx MxSQL xxxxxxxxx xxxx xxxxxxx xxxxxx, xxx xxx xxxx xxx xxxxxx xxxxx xx xxx xxxxxxxxx xxxxx MxSQL xxxx xx xxxxxx xx xxxx xxxxxx—xxxx xx xxx x xxxxxxxxxxx xxxxxx, xxxxxx. Ix xxx xx, xxxxxx, xx xxxx xx xxxxxx xxx xxxxxxxxx xx xxx xxxxx xx xxx xxxxx xxxx xxx xxxxx xxxxx xxxx xxx xxxxx xxxxxx xxxxxxx xxxxx xxx xxxx xxxx xx xxx xxxxxxxxxxx xxxxxxxxx. Ix xxxx xxxxxxxx xxxxxxxxx xxx xxxx xxxxx xxxxxxx xx xxx xxxxxxxxx xxxxxxx, xxx xxx xxxxxxxxxxx xxxxxxxxx xxxx xxxxxxx xx . Ix xxxx xxxx xxxxx xx xx xxxxxxxxx xxxx x xxxx xxxx, xxx xxx xxxxxxxxxxx xx xxx LOAD DATA INFILE xxxxxxxxx xx . Yxx xxxxxxxx xxxxxx xxxx xxxxx xxx xxxxxx xxxxxxxxxxxxx () xx xxxxxxxxx xxxx x xxxxxxxx xxxxxxx xx x xxxxxxx xxx, xxxxxxxxxx xx xxx xxx xxxxxxxxx xxxxxx xxxxx xxxxxxxx. Ix xxx xxxx xxxxxxxx xxxx, xxxxxx xxxxxxx xxx xxxxxxx xx x xxxx. Dxx’x xxxx xxx xx xxx xxx xxxx xxxxxxxx xxxx xxxxxx, xxxxxxxx, xx xxx xxxxxxxxxxxx xxx’xx xxxxxxxxx. + LOAD DATA INFILE xxxxxxxxxxxxxxxxxxx xxxxIx xxx xxxx xxx xxxxxxxx MxSQL xxxxxxxxx xxxx xxxxxxx xxxxxx, xxx xxx xxxx xxx xxxxxx xxxxx xx xxx xxxxxxxxx xxxxx MxSQL xxxx xx xxxxxx xx xxxx xxxxxx—xxxx xx xxx x xxxxxxxxxxx xxxxxx, xxxxxx. Ix xxx xx, xxxxxx, xx xxxx xx xxxxxx xxx xxxxxxxxx xx xxx xxxxx xx xxx xxxxx xxxx xxx xxxxx xxxxx xxxx xxx xxxxx xxxxxx xxxxxxx xxxxx xxx xxxx xxxx xx xxx xxxxxxxxxxx xxxxxxxxx. Ix xxxx xxxxxxxx xxxxxxxxx xxx xxxx xxxxx xxxxxxx xx xxx xxxxxxxxx xxxxxxx, xxx xxx xxxxxxxxxxx xxxxxxxxx xxxx xxxxxxx xx . Ix xxxx xxxx xxxxx xx xx xxxxxxxxx xxxx x xxxx xxxx, xxx xxx xxxxxxxxxxx xx xxx LOAD DATA INFILE xxxxxxxxx xx . Yxx xxxxxxxx xxxxxx xxxx xxxxx xxx xxxxxx xxxxxxxxxxxxx () xx xxxxxxxxx xxxx x xxxxxxxx xxxxxxx xx x xxxxxxx xxx, xxxxxxxxxx xx xxx xxx xxxxxxxxx xxxxxx xxxxx xxxxxxxx. Ix xxx xxxx xxxxxxxx xxxx, xxxxxx xxxxxxx xxx xxxxxxx xx x xxxx. Dxx’x xxxx xxx xx xxx xxx xxxx xxxxxxxx xxxx xxxxxx, xxxxxxxx, xx xxx xxxxxxxxxxxx xxx’xx xxxxxxxxx. Wxxx xxx MxSQL xxxxxxxxxxxx xxxxxxxx xxxxxxxxxx xxx xxxxxxxxx xxx xxx xx xxx xxxxxx xxxxx xxx xxxx xx xxxxx xxxxx xxx xxxxxxxx xxx, MxSQL xx xxx xxxxx xx xxx. Fxx xx xxxxxxxxxxxx xx xxxxx MxSQL, xxx xxx xxxx xxxxxxx. - - MxSQL Bxxxxx - Wxxxx xxx xxxx xx MxSQL xx x Nxxxxxxx xxxxxxxx xxxxxxxxx xxxxxxxxxxx, xxxxx xxx xxx xxxx xx xxxxx xxxxxxxx xx xxxxxx, xxxx xxxxxxx xxxxxxxx x xxxxx MxSQL xxxxxxxx. Ix xxxxxxxx xxx xx xxx xx xx xxx MxSQL xxxxxx xxxxxxx xxx xxxxx xxxxxx, xxxxxx x xxxxxxxx, xxx xxxxxx xxxxxx xxxxxx x xxxxxxxx, xxx xxxxx xxx xxxxxxxxxx xxxx xx xxxxxx. - Txxx xxxxxxxx xxxx xxx xxxxx MxSQL xx xxxxx. Ixxxxxx, xx’x xxxx xx x xxxxxxx; xx’x xxxxx xx xxxx xxx xxxx’x xxxxxxxx xxx xx xxx xxx xxxxxxxx xxxxx xxx xx xxxxxxxx xxxxx xx MxSQL. - - Txx xxxxx Cxxxxx - xxxxx xxxxxxxxxxxxxx -Txxxx xxx xxxxxxx xxxxxxx xx xxxxxxxxxxx xxxx xxx MxSQL xxxxxx xx xxxxxxx xx xxxx xxxx x MxSQL xxxxxxxx. Txx xxxx xxxxx xxxxxxxxx xxxx xxx xxx xxx, xxxxxx, xx xxx xxxxx xxxxxx. Wxxx xx, xxx xxx xxxxxxxx xxxx xxx xxxxxx xxxx xxxxxx xxx xxxxxxx-xxxx xx xxxxxx xx xxxxxxxxx xxxxxxxxxxx xxxxxx xxx xxxxxxx. - - Ix MxSQL xxx xxxxxxxxx xxxxxxxx xx xxxx xxxxxx, xxxxx xxxxxx xx xxxxxxxxx xxx xxx. Ix xxx, xxx . Ox Uxxx xxxxx xxxxxxx, xxx xxx xxxx xxxxxxx xxxxx. Wxxxxxx, MxxIxxxxx xxx xxxxx GUI-xxxx xxxxxxx xxxx x xxxxxxx xxxxxxxx xxxxxxx xxx xxxxxxx x xxxxxxx. Ix xxx xxxx xxx xxxxxxx xxxxxxxxxxxx xxxxxx, xxx xxxxx xxxxxxx xxxxxxx xx /xxx/xxxxx/xxxxx/xxx/xxxxx. Ox Uxxx xxxxxxx, xx /xxx/xxxxx/xxxxx/xxx/ xx xxxx xxxxxxx xxxx (xxx PATH xxxxxxxxxxx xxxxxxxx), xxx xxx xxxxxxx xxxxx xxxxxxx xxx xxxx xxxxxxxx. Ix xxx xxxxxxxxx xx xxx xx xxxx xxxx, xxx xxx xxx xx xx xxxxxxxx: - PATH=$PATH:/xxx/xxxxx/xxxxx/xxx -xxxxxx PATH - Axxxxxxx xxxx xxxxxxxxxx xx xxxxxxx, xxx xxxx xxxx x MxSQL xxxxxxxx xxx xxxxxxxx. Ix xxx’xx xxx xxx xxxxxxxxxxxxx, xxx xxxx xxxxxx xxxxx xxxx xxx. Ix MxSQL xxx xxxx xxxxxxxxx xxx xxx xxxx xxxxxxxx xx xxx xxx xxx, xxx xxxxxxxx xx xxxxx. Tx xxxxx xxx xx xxx xxx xxxx xxxxxxxx xxx xx xxxxxx xxx xxxxx xxx xxxxx xxxx xxxxxxxxxx, xxx xxx xxxxxxxx xxxxxx xxx xxx xxxx xxxxxxxx xxxxxxx. - xxxxxxx xx, MxSQLMxSQLxxxxxxx xx xx -Fxxx x xxxxx xxxxxx, xxx xx xx MxSQL xxxx xxxx: - - xxxxx -x xxxx -x xxxx -x - xxxxxxx xx, MxSQLMxSQLxxxxxxx xx xxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx -Ix xxx’xx xxxxxxx xx xxxxxxx—xxxx xx xx xxx, xxxx xxx xxxxxx xxxxxx—xxxxxx xxxxxxxxxx xx xxxxxxx x xxxxxx xxxxx xxxxxx, xxxx xx SSH (xxxxxx xxxxx), xxx xxx xxxx xxx -x xxxx xxxxxxxx. Txxx xx xxxxxxx xxx xxxxxxx xxxx xx xxxxxxxxx, xxxxx xxxxxx xx xxx xxxxxx xxx xxx xx. Ix xxxxx xxxxxxxxxxxxx, xxxxx xxxx xxxxxxxx xxxxxxxx xxxx xx xxxxxx xxxx x xxxxxxx xx xxxxx xxx xxxxxx, xxxxxxx xxx xxxxxxxx xxxx xxxx xxxxxx x xxxxxxxx xxxx xx xxxxxxxxxxxx xx xx IP xxxxxxx xx xxx xxxxxx IP xxxxxxx xx xxx MxSQL xxxxxx. Yxx xxxxxx xxxxxxx xxx xxxxxxxx xxxx xxxx xxxx MxSQL xxxxxxxx. Txxx xx xxx xxxxxxxxxxx xxx xxxx xx xxxx xxxxxxxxxx xxxxxxxx. - - Txx -x xxxxxx xxxxxxxxx xxxxx xx xxxxxx xxx xxx x xxxxxxxx. Yxx xxx xxxx xxx xxx xxxxxxxx xx xxx xxx xx xxx -x xxxxxx (x.x., xxxxx -xxxxxx xxxxx xxxxx xx xxx xxxxxxxx); xx xxx xx xxxx, xxxxx xx xxxxx xxxxxxx -x xxx xxx xxxxxxxx. Hxxxxxx, xxxxxxxx xxx xxxxxxxx xx xxx xxxxxxx xxxx xx xxx x xxxx xxxxxxxx xxxxxxxx, xxxxxxx xx xxxxxxxx xxx xxxxxxxx xx xxx xxxxxx xxx xxxxxxxxx xxx xxxxxxxx xx xxxxx xxxx xxxxxxx xxx xxxxxxx, xx xxxx xx xxxxxx xx xxxxxxx xxxxxxxx xxxxxxxx xxxx x xxxx xx xxxxxxxxx xxxxxxx xx xxx xxxxxx. - - Wxxx xxx’xx xxxxxxxx xxxxxxx xx xxx MxSQL xxxxxx, xx xxxx xxxxx, xxxx xxxx xx xxxx, xxx xxxxx xxx Exxxx xxx. - - - Cxxxxxxx x Dxxxxxxx xxx Txxxxx - xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx -Axxxxxxx xxxx xxx xxxx xxx xx xxx xxxxxxxxxx xxxxxxxxx xx xxxxxx xxx xxxxxx xxxxxxxxx xx xxxx xxxxxx, xxx’x xxxx xx xxx xx xxxxxx x xxxxxxxx xxx xxxx xxxxxx xxxxxx x xxxxxxxx. Fxx xxx xxxxxxxx xx xxxx xxxxxxx, xx xxxx xxxxx x xxxxxxxx xxx x xxxxxxxxxx xxxxxxxxx: - - CREATE DATABASE xxxxxxxxx; - CREATE DATABASE xxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxMxSQL xxxxxxxxxxxx (;) -Ix xxxx xxxxx SQL xxxxxxxxx, xx xxxx xxxxxxx x xxxxxxxx xxxxxx xxxxxxxxx. Yxx xxx xxxx xxxxxxx xxxx xxx xxxxxxxx xx xxxxxxxx xxxxx xxx xxxxxxx xxxx xx xxxxxxxxx xxxxxxx. Txxx xxx’x xxxxxxxxx; MxSQL xx xxxx-xxxxxxxxxxx xxxx xxxxxx xx xxxxxxxx xxxxx xxx SQL xxxxxxxxxx xxx xxxxxxx. Dxxxxxxx xxx xxxxx xxxxx xxx xxxx-xxxxxxxxx xx xxxxxxxxx xxxxxxx xxxx xxx xxxx-xxxxxxxxx, xxxx xx Uxxx xxxxxxx, xxx xxx xx xxxxxxx xxxx xxx xxxx-xxxxxxxxxxx, xxxx xx Wxxxxxx. Ax x xxxxxxx xxxxxxxxxx, xxxxxx, xxxxxxxx xxxxx xx SQL xxxxxxxxxxxxx xxx xxxxxxxxx xx xxxxxxxxx xxxxxxx xxx xxxxxxxx xxxxx, xxxxx xxxxx, xxx xxxxxx xxxxx xx xxxxxxxxx xxxxxxx. Yxx xxx xxxx xxxx xxxxxxx xxxx xxx SQL xxxxxxxxx xxxxx xxxx xxxx x xxxxxxxxx. Ax SQL xxxxxxxxx xxx xx xxxxxxx xxxx xxxx xxxx xxx xxxx, xxx xx’x xxx xxxxx xxx xxxxxxxxx xx xxxxxxx xxxx xxx xxxxxx xxxxx xxx xxxxxxxxx xx xxx xxxxxx xx xxxx xxx xxxxxxx xx. Tx xxxxxx xx SQL xxxxxxxxx xxxx xx’x xxxxxxx, xxxxx \x xxxxxxx xx x xxxxxxxxx. - - Wxxx xxx xxxxxxxx xxxxxxx, xxxxxx xx xxxxx xxx, xx xxx xxxxxx xxx xxxxxxx xxxxxxxx xxx xxx xxxxxxx xx xxx xxx xxxxxxxx xxxx xxxx: - USE xxxxxxxxx; - Txxx xxxxx xx xxxx xxxxxx xx xxxxxxx xxx xxxxxxxx xxxx xx xxxxx SQL xxxxxxxxx. MxSQL xx xxxxxxx xxxx xxxxxx xxx xxxxxxx xxxxxxxx, xxx xxx xx xxxx xxxx xx xx xxx. - CREATE TABLE xxxxxxxxxxxxxxxx -Nxxx, xx xxxx xxxxxx xxx xxxxx xxxxx, xx xxxxx xx xxxx xxxxx xxx xxxx. Wx’xx xxxxx xx xxxxxxxx x xxxxx xxxx xx’xx xxx xx xxxxx xxxxx xxxxxxxxxxx xxxxx xxxxx, xxxxxxx xxxx’x xx xxx xxxx xx x xxxxxxxxx’x xxxxxxxx: - - CREATE TABLE xxxxx ( -xxxx_xx INT, -xxxxx VARCHAR(dd), -xxxxxx VARCHAR(dd)); - Txxx SQL xxxxxxxxx xxxxxxx xxx xxxxx xxxxx xxxx xxxxx xxxxxxx. Nxxx xxxx xxx xxxxxx xxxx xx xxxxxxx xx xxxxxxxxx xxxxxx xxxxxxxxxxx. - Txx xxxxx xxxxxx xx x xxxxxx xxxxxxxxxxxxxx xxxxxx xxx xxxx xxxxxx, xxxxx xxxxxxxxxx xxx xxxx. Yxx xxx xxxxxxx xxx xxxx xxxx xxxxxx xx INTEGER xx xx INT xxxx xxx xxxxxxx. -Txx xxxxxx xxx xxxxx xxxxxxx xxxxxxx xx xxxxxxxxx xxxxxx xx xxxxxxxx xxxxx, xx xx dd xxxxxxxxxx xxxx. - DESCRIBE xxxxxxxxx -Tx xxx xxx xxxxxxx xx xxx xxxxx xx xxxx xxxxxxx, xxxxx x DESCRIBE xxxxxxxxx, xxxxx xxxxxxxx x xxxxx xx xxxxxx: - - DESCRIBE xxxxx; - -+---------+-------------+------+-----+---------+-------+ -| Fxxxx | Txxx | Nxxx | Kxx | Dxxxxxx | Exxxx | -+---------+-------------+------+-----+---------+-------+ -| xxxx_xx | xxx(dd) | YES | | NULL | | -| xxxxx | xxxxxxx(dd) | YES | | NULL | | -| xxxxxx | xxxxxxx(dd) | YES | | NULL | | -+---------+-------------+------+-----+---------+-------+ - xxxxxxxxxxxxxxxxxxxxxxxxxxxx -Cxxxxxxxxxx xxx xxxxxxxxx x xxx xxxx, xx xxxxxxx xxxx xx xxxx xx xxx x xxx xxxx xxxxxxx xxx xxxx xxxxxxxx: xxxxxxxxx, xxxxxxxxxxx xxxx, ISBN xxxxxx, xxxxx (x.x., xxxxx, xxxxxx, xxxxx), xxxxxxxxxxx xx xxxx, xxx. Wx xxxx xxxxxxx xxxx xx xxxx MxSQL xx xxxxxxxxxxxxx xxxxxx x xxxxxx xx xxx xxxx_xx xxxxxx xx xxxx xx xxx’x xxxx xx xxxxxx xxxxxxxx xxx xxx xxxx xxx xx xxxxx xxxxx xxxxxxxxxx. Axxxxxxxxxxx, xx’xx xxxxxxx xx xxxxxx xxx xxxxxx xxxxxx xxxx xxx xxxxxx xxxxxx’x xxxx xx xx xxxxxxxxxxxxxx xxxxxx xxxx xx’xx xxxx xx x xxxxxxxx xxxxx xxxxxxxxxx x xxxx xx xxxxxxx. Txxx xxxx xxxxxx xxxxxx, xxx xxxx xxxx xxxxxxx xxx xxxxxxxxx xxxxxx, xx xxx xxxx xxxx xx xxxxxxx. Tx xxxx xxxxx xxxxxxxxxxx xx xxx xxxxx xxxx xx’xx xxxxxxx xxxxxxx, xxxxx xxx xxxxxxxxx SQL xxxxxxxxx: - - ALTER TABLE xxxxx -CHANGE COLUMN xxxx_xx xxxx_xx INT AUTO_INCREMENT PRIMARY KEY, -CHANGE COLUMN xxxxxx xxxxxx_xx INT, -ADD COLUMN xxxxxxxxxxx TEXT, -ADD COLUMN xxxxx ENUM('xxxxx','xxxxxx','xxxxx'), -ADD COLUMN xxxxxxxxx_xx INT, -ADD COLUMN xxx_xxxx VARCHAR(d), -ADD COLUMN xxxx VARCHAR(dd); - PRIMARY KEY xxxxxxALTER TABLE xxxxxxxxxAUTO_INCREMENT xxxxCHANGE COLUMN xxxxxxxxxxxxxx (,)ALTER TABLE xxxxxxxxx, (xxxxx)xxxxxxxxxxxxxxxxxxALTER TABLE xxxxxxxxxxxxxxxx -Axxxx xxx xxxxxxx xxxx xx xxxx SQL xxxxxxxxx, xxxxxx xxxx xxxx xxxxxx xx xxxxx xx xxxxxx xx xxx x xxxxxx xx xxxxxxxxx xxxx xxx xxxxxxxxx xxx xx x xxxxx. Ox xxx xxxxxx xxxx xxxx, xx’xx xxxxxxxx xxx xxxx_xx xxxxxx. Exxx xxxxxx xx xxx xxxxxxx xxx xxxxxx xxxx xxx xxx xxxx xxxx xxx xxxx, xx xxxx xx xxxxxxx xxxx. Wx’xx xxxxxx xxx AUTO_INCREMENT xxxx, xxxxx xxxxxxx xxx xxx xxxx xxxxxxxxx xx xxx xxxxxxxx xxxxxxxxx, xxxxxxxxx x xxxxxx xxx xxxxxxxxx xxxxx xx xxxx xxxx xx xxx xxxxx. Wx’xx xxxx xxxxxx xxx xxxxxx xxx PRIMARY KEY xxx xxxxxxxx, xxxxx xxxxxx xxxxxx xxxx xxxxxxxxx. - - Txx xxxxx CHANGE xxxxxx xxx xxxx xxxxxxxxx xxxxxxx xx xxxxx xxx xxxxxx xxxx (xxxx_xx) xxxxx. Txxx xxxxx xxxxx xxxx xxx xxxxxxxxxx xxx xxxxxx xx x CHANGE xxxxxx: -xxx xxxxx xxxx_xx xxxxx xxx xxxxxxxx xxxxxx xxx xxxx xx xxxxxx, xxx xxx xxxx xx xxx xxxxxx xxxxxxxxx xxx xxxxxx xxx xxxxxx. Tx xxxxxxxxxx xxxx xxxxxx, xxxxxxx xxx xxxxxx CHANGE xxxxxx: xx xxxxxxxx xxx xxxxxxxx xxxxxx xxxxxx xxxx x xxx -xxxxxx_xx xxxxxx. Txxxx xx xx xxxxxx xxx xxxxxx xxxxx xxxxxx. - Ix xxx xxxxx xxxx, xx’xx xxxxxxxx xxx xxxxxx xxxxxx xx xxxx xxx xxxxx xxx xxxx xxxx xxxxx xxxx xxx xxxxxxx xxxxx xxxx xx’xx xxxxxx xxxxx. Txx xxxxxxx xxxxx xxxx xxxx xx xxxxxxx xxxxxx xx xxxxxxxxx xxx xxxxxx, xxxx xx xxx xxxxx xxxxx xxx xx xxxxxxx xxxxxx xx xxxxxxxxx xxx xxxxx. Tx xxxxxx xxx xxxx xxxxxx xxx xxxxxx_xx xxxxxx xx xxx xxxxx xxxxx xx xxxxxxxx xx, xx’xx xxxx xxx xxxxx xxxxx xx xxx xxxxxxx xxxxx xx xxxxxxx. Bxxxxxx xxx xxxxxxxxxxxxx xxxxxx xx xxx xxxxxxx xxxxx xxxx xxxx x xxxx xxxx xx INT, xx xxxx xxxx xxx. - TEXT xxxx-xxxx -Txx xxxxxx xxxx xxxx x xxxxxx xxx xxxx xxxx’x xxxxxxxxxxx. Txxx xxx x xxxx-xxxx xx TEXT, xxxxx xx x xxxxxxxx-xxxxxx xxxx-xxxx xxxx xxx xxxx xxxx xxxxx xxxxxxx xx xxxx, xx xx dd xxxxxxxxx. Txxxx xxx xxxxx xxxxxxx, xxxxxx, xxxx xxx xxxxx x TEXT xxxxxx xxxxxxx. Sxx xxx x xxxx xx xxxx-xxxxx, xxxxx xxxxxx, xxx xxxxx xxxxxxxx xxxxxxx. - - Fxx xxxxx, xx’xx xxxxxxxxxxx x xxxx xx xxxxxxxx xxxxxx xx xxxxxx xxxxxxxxxx. A xxxxx xxxxx xxx x NULL xxxxx xxx xxxx xxxxxxxx, xxxxxxxx xxxx’xx xxx xxxxxxxxx xx xxx SQL xxxxxxxxx xxxx. - Bxxxxx xxxxxx xx xx xxxxxx xxxx xx xxx xxxxx xxxxx, xxx’x xxxxxxx xxx xx xxx xxxxxxx xxxxx. Txxx xxxxx xxxx xx xxxx xx xxxxx xx x xxxxxxxxx xxxxx. Wx xxxx xx xxxxx xxxx xxxx xxx xxxxx, xxxxxxx xxxx xx xxxxx xxxx xxxx xxx xxxxx xxxxx, xx xxxx xxxx xx xxxx xxx xxxxxxxxxxxxxx xxxxxx xxx xxx xxxxxxx xx xxx xxxxx: - CREATE TABLE xxxxxxx -(xxxxxx_xx INT AUTO_INCREMENT PRIMARY KEY, -xxxxxx_xxxx VARCHAR(dd), -xxxxxx_xxxxx VARCHAR(dd), -xxxxxxx VARCHAR(dd)); - xxxxxxxxxxxxx -Txxx xxxxx xxxxx’x xxxxxxx xxx xxxx xxxxxxx, xxxxxxxx xx xxxxx xxx xxxxx xxxxxxx xx xx xxx xx xxxxxx xxxxxxxxx. Ax xxxxxxxxx xxxxxx, xx’xx xxxx xxx xxxxx xxxxx xx xxx xxxxxxx xxxxx xxxxxxx xxx xxxxxx_xx xx xxxx xxxxxx. - Ix xxx xxxxxxx xxxxx, xx’xx xxxxxxxxx xxx xxxxx xxx xxxx xxxx xx xxxx xxxxxx xxxx xxx xxxxxxx xx xxxx xx xxx xxxxxx xxxx xxx xxxxxx xx xxx xxxx xxxx. Wx’xx xxxx xxxxx x xxxxxx xxx xxx xxxxxx’x xxxxxxx xx xxxxxx xx xxxx xx xxx xxxxxx xxx xxxxx xx xxxxxxx xx x xxxxxxxxxx xxxxxxx xxxx xxxxx xx xxxxxxxxx. Fxx xxxxxxxxxx xxx, xx xxxxx xx xxxxxx xx xxx x xxxxxxx xxxx xxx xxxx xxxx xxx xxxxxxx xxxxxxxxx xxxxx xxxxxxx xxx xxxx xxxxx xx xxxxxxxxx. Bxx xx’xx xxxxxx xx xxxx xxxx xxxxxxxx xxxxxx xxx xxxxxxx xxxxxx xxxx xxxx xx xxx xxxxxxxxxxx xxxxx. - - - - Sxxx Mx - SHOW DATABASE xxxxxxxxxxxxxxxxxxxxxxxxx -Lxx’x xxxx x xxxxxx xx xxxxxx xxx xxxx xxx xxx xxxx xx’xx xxxx xx xxx. Tx xxx x xxxx xx xxxxxxxxx, xxx xxx SHOW DATABASES xxxxxxxxx: - - SHOW DATABASES; - -+-----------+ -| Dxxxxxxx | -+-----------+ -| xxxxxxxxx | -| xxxxx | -| xxxx | -+-----------+ - Txx xxxxxx xx xxx SHOW DATABASES xxxxxxxxx xxxxx xxx xxxx xxx xxxxxxxx xx’xx xxxxxxx, xxx xxxx xxx xxxxxx. Oxx xx xxx xxxxx xxxxxxxx, xxxxx xxxxxxxx xxxx xxxxx xxxx xxxxxxxxxx xxx xxx xxxxxxx xx . Txx xxxxx xxxxxxxx xx xxx xxxx xxxxxxxx, xxxxx xx xxx xx xx xxxxxxx xxxx MxSQL xx xxxxxxxxx. Ix’x xxxxx xx x xxxxxxxxxxx xxx xxx xx xx xxxx xx xxx xxxxxx xx xxx SQL xxxxxxxxxx xxx xxxxxxx. - SHOW TABLES xxxxxxxxxxxxxxxxxxxxxx -Tx xxx x xxxx xx xxxxxx xx xxx xxxxxxxxx xxxxxxxx, xxxx xx xxxxxx xxx xxxxxxxxx xxxxxxxx xxxx xxx USE xxxxxxxxx xxxxx xxxxxxx, xx xxxxx xxxxx xxx xxxxxxxxx xxxxxxxxx: - - SHOW TABLES; - -+---------------------+ -| Txxxxx_xx_xxxxxxxxx | -+---------------------+ -| xxxxxxx | -| xxxxx | -+---------------------+ - FROM xxxxxxSHOW TABLES xxxxxxxxx -Txx xxxxxx xx xxx SHOW TABLES xxxxxxxxx xxxxxxxx x xxxx xxxxxxxxxx xxx xxx xxxxxx, xxxx xx xx xxxxxxxx. Ix xxx xxxx xx xxx x xxxx xx xxxxxx xxxx xxxxxxx xxxxxxxx xxxxx xxxxx xxxxx xxx xxxxxxxxx xxxxxxxx, xxx x FROM xxxxxx xx xxx xxxxxxxx xxxxxxxxx: - - SHOW TABLES FROM xxxxx; - Txxx xxxxxxxx x xxxx xx xxxxxx xxxx xxx xxxxx xxxxxxxx, xxxx xxxxxx xxx xxxxxxx xxxxxxxx xxx xxx xxxxxx xxxxxxx xx xxx xxxxxxxxx xxxxxxxx. - - - Ixxxxxxxx Dxxx - xxxxx xxxxxxINSERT xxxxxxxxx xxxINSERT xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx -Nxx xxxx xx’xx xxx xx xxx xxxxx xxx xxxxxx, xxx’x xxxx xx xxx xx xxx xxx xxxx xx xxxx. Wx’xx xxxxx xxxx xxx xxxxxxxx xxxxxx: xxx INSERT xxxxxxxxx. Exxx INSERT xxxxxxxxx xx xxx xxx xxx xx xxxx xxxxxxx. Bxxxxx xxxxxx xxxxxxxxxxx xxxxx x xxxx xx xxx xxxxx xxxxx, xxxxxxx xx xxxxxx xx x xxxxx xx xxx xxxxxxx xxxxx, xx xxxx xx xxx xxx xxxxxx’x xxxxxxxxxxx xx xxx xxxxxx. Wx’xx xx xxxx xx xxxxxxxx xxxxx SQL xxxxxxxxxx xxxxxxx xxx xxxxx xxxxxx: - - INSERT INTO xxxxxxx -(xxxxxx_xxxx, xxxxxx_xxxxx, xxxxxxx) -VALUES('Gxxxxx','Gxxxxx','Uxxxxx Kxxxxxx'); - -SELECT LAST_INSERT_ID( ); - -+-------------------+ -| LAST_INSERT_ID( ) | -+-------------------+ -| d | -+-------------------+ - Axxxx xxxxxx xx xxxxx xxx xxx xxxxxx, xx xxx xxxxxx xx xxxxx xxx xxx xxxx: - INSERT INTO xxxxx -(xxxxx, xxxxxx_xx, xxxx, xxxxx, xxx_xxxx) -VALUES('Txx Exx xx xxx Axxxxx', d,'dddddddddd','xxxxx','dddd'); - xxxxxxxxxxxxxLAST_INSERT_ID( ) xxxxxxxx -Oxx xxxxx SQL xxxxxxxxx xxxxx x xxxxxx xx xxx xxx Gxxxxx Gxxxxx, xx xxxxxx xxx xxxxx xxx xxxx Txx Exx xx xxx Axxxxx. Txx xxxxxxxx INSERT xxxxxx xxxxx xxx xxxxxxx xxx xxxxx xxx xxxxxx xxx xx xx xxxxxxxx, xx xx’xx xxxxx xxxx. Ix xxx’xx xxxxx xx xxxxx xxxxxx xxx xxx xx xxx xxxxxxx, xxx xxx’x xxxx xx xxxx xxx xxxxxxx, xxx xxx xxxx xxxx xxx xxxx xx xxx -xxxx xxxxx xx xxxxx xxx xxxxxxx xxx xxxxxx xx xxx xxxxx. - Ix xxx xxxxxx SQL xxxxxxxxx, xx xxxxxxxx xxx xxxxxxxxxxxxxx xxxxxx xxxxxxxx xx xxx xxx xx xxxx xxxxxxx xxx xxx xxxxxx xx xxxxx xxx LAST_INSERT_ID() xxxxxxxx. Wx xxxxx xxxx xx xxxxxx xxxx xxxxxxx "SELECT xxxxxx_xx FROM xxxxxxx;“. - Ix xxx xxxxx SQL xxxxxxxxx, xx xxx xxxx xxx x Gxxxxx Gxxxxx xxxx. Ix xxxx xxxxxxxxx, xx’xx xxxxxx xxx xxxxxxx xx xx xxxxx xxxx’x xxxxxxxxx xxxx xxxxx xxxxx xx xxx xxxxx. Txxx’x xxxxxxxxxx xx MxSQL; xx xxxx xxxx xx xx xxxx xxxx xxx xxxxxx xxx xx xxx xxxx xxxxx. - - - Sxxxxxxxx Dxxx - xxxxxxxSELECT xxxxxxxxx xxxxxxxxxxxxxxxx -Nxx xxxx xx xxxx xxx xxx xx xxxx xx xxxx xx xxx xxx xxxxxx, xxx’x xxx xxxx xxxxxxx. Wx’xx xxx xxx SELECT xxxxxxxxx xx xxxxxx xxx xxxx xxxx xx xxxx. Tx xxx xxx xx xxx xxxxxxx xxx xxxx xxxx xxx xxxxx xxxxx, xxxxx xxx xxxxxxxxx: - - SELECT * FROM xxxxx; - WHERE xxxxxxSELECT xxxxxxxxxxxxxxxxx (*)xxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx -Txx xxxxxxxx, xxxxx xxxx xx x xxxxxxxx, xxxxxxx xxx xxxxxxx. Wx xxx xxx xxxxxxx xxx xxxxxxxx xx xxxxx xxxxxxxx xxxx xxx xxxxxxxx, xx xxx xxxx xxx xxxxxxxxx xxxx xxx xxxxx xxxxx. Tx xxxxxx xxxxxxxx xxxxxxx, xx xxxx xxx xxxxxxx xx xxxx. Tx xxxxxx xxxxxxxx xxxx, xx xxx x WHERE xxxxxx xx xxx xxx xx xxx SELECT xxxxxxxxx: - - SELECT xxxx_xx, xxxxx, xxxxxxxxxxx -FROM xxxxx -WHERE xxxxx = 'xxxxx'; - Txxx SQL xxxxxxxxx xxxxxxxx xxxx xxx xxxx’x xxxxxxxxxxxxxx xxxxxx, xxx xxxx’x xxxxx, xxx xxx xxxxxxxxxxx xx xxx xxxx xxxx xxx xxxxx xxxxx xxx xxx xxxxx xxxxx xxx xxxxx xxxxxx xxx x xxxxx xx xxxxx. Txx xxxxxxx xxxx xx xxxx xxxxxxxxxx, xx xxxxxx, xxxx xx xxxx xxxx xx xxxx xxxxx xx xxx xxxxxxxx. Sx, xxx’x xxxxxx xxxx xx’xx xxxxxxx xxxx xxx x xxx xxxxx xxxx xxxxx, xxx xxxxxxx. - Ix xx xxxx xx xxx x xxxx xx xxxxxx xxxx xxx xxxxxxxx xxxxx xxxx xxx xxxxxx’x xxxx xxxx, xx xxxx xx xxxx xxx xxxxx xxxxx xx xxx xxxxxxx xxxxx. Wx xxx xxxx xxx xxx xxxxxx xxxx xxxx: - SELECT xxxx_xx, xxxxx, xxx_xxxx, -CONCAT(xxxxxx_xxxxx, ' ', xxxxxx_xxxx) AS xxxxxx -FROM xxxxx -JOIN xxxxxxx USING(xxxxxx_xx) -WHERE xxxxxx_xxxx = 'Gxxxxx'; - FROM xxxxxxSELECT xxxxxxxxxxxxxxxxAS xxxxxxx xxxAS xxxxxxxxxxxxxx xxxxxxxxxxxx xxxxx (“)xxxx xxxxxxx xxxCONCAT( ) xxxxxxxxxxx (.)xxxxxxxxxxxxxWHERE xxxxxxSELECT xxxxxxxxx -Ix xxx FROM xxxxxx xx xxxx xxx xxxxx xxxxx xx xxx xxxxxxx xxxxx xxxxx xxx xxxxxx_xx xxxxxxx xx xxxx xxxxxx. Ix xxx xxxxxxx xxx xxxxxxxxx xxxxxx, xx xxxxx xxxx xx xxx x xxxxxxxxx xxxxxx xx xxxxxx xx xxxx xxx xxxxxx (x.x., ON (xxxxxx_xx = xxxxxx_xx)). Nxxxxx xx xxx xxxxxx xxxx xx xxxx SQL xxxxxxxxx xxxx xx’xx xxxxxxxx x xxxxxx xxxxxxxx, CONCAT( ). Wxxx xxxx xxxxxxxx xxx xxx xxxx xxxx xx xxxx xxx xxxxx xxxx xxxxxxxx xxxx xxxx xx xxxx xxxx xxxxxxxxx-xxxxxxx xxxxxx. Ix xxxx xxxx, xx’xx xxxxxx xxx xxxxxx’x xxxxx xxxx xxx xxxxxxx x xxxxx (xx xxxxxx) xxxx xxx xxx xx xx, xxxxxxx xx xxx xxxxxx’x xxxx xxxx. Txx xxxxxxx xxxx xxxxxx xx xxx xxxxxx xxxxxxx xx xxx xxxxxx, xxxxx xx’xx xxxxx x xxxxxx xxxxxxx xx xxxxxx. -xxxxxxxAS xxxxxxx xxx -Txx xxxxxxx AS xxxxxxx xxxx xxxxxx xxxxx xxxx xxx -xxxxxx xxxx, xxxxxx xx xxxxx. - Ix xxx WHERE xxxxxx, xx’xx xxxxxxxxx xxxx xx xxxx xxxx xx xxxxx xxxxxxx xx xxxxxxx xxxx xxx xxxx xxxx “Gxxxxx”. Ix xxx xxxxx xxx xxx xxxxxxx xxxxx xx Gxxxxx, xxxxxxx xxxxx xx xxxxxxxxx. Ix xx xxx, xxx xx xxx xxxxxx xx xxxxx x xxx xx xxxx xxx xxx xx xxx xxxxxxx xxxxx, xx xxxxx xxx xxxx x xxxxxxxxxx xxxxx xxxxxxx xxx xxx xxxxxx, xxx xxxxxxx xxxxx xx xxxxxxxxx. Txx xxxxxxx xx xxx xxxxxxxx xxxxx xxx xx xxxxxxx: - - +---------+-----------------------+----------+---------------+ -| xxxx_xx | xxxxx | xxx_xxxx | xxxxxx | -+---------+-----------------------+----------+---------------+ -| d | Txx Exx xx xxx Axxxxx | dddd | Gxxxxx Gxxxxx | -| d | Bxxxxxxx Rxxx | dddd | Gxxxxx Gxxxxx | -+---------+-----------------------+----------+---------------+ - AS xxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxAS xxxxxxx xxx -Ax xxx xxx xxx, x xxxxxx xxxx xx Gxxxxx Gxxxxx xxx xxxxx xxx xxxx xxxx xxxx xxxxxxxxx. Txx xxxxxx xxxxxxx xxx xxxxxxx xxx xxx xxxxxx xx xxx xxxxxx’x xxxx xxx xxx AS xxxxxx. Wx xxxxx xxxxxx xxx xxxxxx xxxxxxxx xx xxx xxxxxxx xxx xxx xxxxx xxxxxxx xxxx xxx xxxxxxx AS xx xxxx. Txx xxxxxx xxxxx xxx xx xxxxxx xx x SELECT xxxxxxxxx, xxx xxx xx xxx WHERE xxxxxx, xxxxxxxxxxxxx. Yxx xxx xxxx xxxx xxxxxxxxxxx xx AS xx . - - - - Oxxxxxxx, Lxxxxxxx, xxx Gxxxxxxx - ORDER BY xxxxxxSELECT xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx -Fxx xxxxx xxxx xx xxxxxxxx x xxxx xxxx xx xxxx, xx xxx xx xxxxxx xx xxxx xxx xxxx xxxxxx xx x xxxxxxxx xxxxx. Tx xx xxxx, xx xxx xxx xxx ORDER BY xxxxxx. Sxxxxxx xxxx xx xxxx x xxxx xx xxxxx xxxxxxx xx Wxxxxxx Sxxxxxxxxxx xxxx xxx xxxxxxxx. Wx xxxxx xxxxx xxx xxxxxxxxx SQL xxxxxxxxx xx xxxxxxxx xxxx x xxxx xxx xx xxxx xxx xxxx xx xxx xxxx xxxxx: - - SELECT xxxx_xx, xxxxx, xxxxxxxxx -FROM xxxxx -JOIN xxxxxxx USING(xxxxxx_xx) -JOIN xxxxxxxxxx USING(xxxxxxxxx_xx) -WHERE xxxxxx_xxxx = 'Sxxxxxxxxxx' -AND xxxxx = 'xxxx' -ORDER BY xxxxx, xxx_xxxx; - DESC xxxxORDER BY xxxxxxWHERE xxxxxxSELECT xxxxxxxxx -Txx ORDER BY xxxxxx xxxxx xx xxx xxx, xxxxx xxx WHERE xxxxxx. Hxxx xxx ORDER BY xxxxxx xxxxxx xxx xxxx xxxxxxx xxxxx xx xxx xxxxx xxxxxx xxx xxxx, xxxxxx xxxxx, xx xxx xxx_xxxx xxxxxx, xx xxx xxxx xxxx xxx xxxxxxxxxx xxxxxxxx xx xxx xxxx xxx xxxxxxxxx. Bx xxxxxxx, xxxx xx xxxxxx xx xxxxxxxxx xxxxxxxxxxxx xxxxx. Ix xx xxxx xx xxxxx xxx xxxxxxx xx xxxxxxxxxx xxxxx xxx xxx xxxxxx, xx xxx xxxx xxx x DESC xxxx xxxxxxxxxxx xxxxx xxx xxxxx xxxxxx xx xxx ORDER BY xxxxxx xxx xxxxxx xxx xxxxx xxxx xxxxxxxx xxx_xxxx: - - ORDER BY xxxxx DESC, xxx_xxxx - LIMIT xxxxxxSELECT xxxxxxxxx -A xxxxx xxxxxxxxx xxxx xxxx xxxx xxxxxxxx xx Sxxxxxxxxxx’x xxxxx, xxxxxxxx x xxx xxxxxxxxx xxxxxxxxx xxx xxxx xxxx. Ix xx xxxx xx xxxxx xxx xxxxxx xx xxxxxxx xxxxxxxxx, xx xxxxx xxx x LIMIT xxxxxx xx xxx xxx xx xxx xxxxxxxx SQL xxxxxxxxx: - - SELECT xxxx_xx, xxxxx, xxxxxxxxx -FROM xxxxx -JOIN xxxxxxx USING(xxxxxx_xx) -JOIN xxxxxxxxxx USING(xxxxxxxxx_xx) -WHERE xxxxxx_xxxx = 'Sxxxxxxxxxx' -AND xxxxx = 'xxxx' -ORDER BY xxxxx DESC, xxx_xxxx -LIMIT dd; - LIMIT xxxxxxSELECT xxxxxxxxx -Txxx xxxxxxxx xxxxxx xxx xxxxxx xx xxxx xxxxxxxxx xx xxx xxxxx dd. Txx xxxxx xxxxxx xxxx xxx xxxxx xxx xx xxx xxxxxx xxx xxxxx xxx xxxx xxx xxxx xxxxxxx xxxxxxxxx xx xxx ORDER BY xxxxxx. Ix xx xxxxxx xx xxxxxxxx xxx xxxx dd, xx xxxxx xxxxxx xxx LIMIT xxxxxx xx xxxxxxx xxx xxxxxx xx xxxx xx xxxx, xxxxx xxxx xxx xxxxxx xx xxxxxxx xx xxxxxxxx. Sx xx xx xxxx xx xxxx xxx xxxxx dd xxxx xxx xxxx xxx xxxx dd xxxx xxxx xxx xxxx, xx xxxxxxx xxx LIMIT xxxxxx xx xxx SQL xxxxxxxxx xxxx xxxx xxx: - - ... -LIMIT dd, dd; - Ax xxx xxx xxx, xx x xxx-xxxxxxxx LIMIT xxxxxx, xxx xxxxx xxxxxxxx xxxxxxxxx xxx xxxxxx xx xxxx xx xxxx xx xxx xxxxx xx xxxxx (x.x., dd) xxx xxx xxxxxx xxxxxxxx xxxxxx xxx xxxxxx xx xxxx xx xxxxxxx (x.x., dd). - GROUP BY xxxxxx -Ix xx xxxx xx xxx xxxx x xxxx xx xxxxxx xx Sxxxxxxxxxx, xxx xx xxx xxx xxxxxxxxx xxxx xxxxx xxxxxxxx xx xxxxxxxxx—xxxx xx xx xxx, xx xx xxxx xxx xxx xxx xxxx xxxxx xxx xxx xxxxxxxxx xxxx xxx xxxxx xxx xxxxx xxx xxxx—xx xxxxx xxx xxx GROUP BY xxxxxx xxxx xxxx: - - SELECT xxxx_xx, xxxxx -FROM xxxxx -JOIN xxxxxxx USING(xxxxxx_xx) -WHERE xxxxxx_xxxx = 'Sxxxxxxxxxx' -GROUP BY xxxxx; - ORDER BY xxxxxxSELECT xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx -Txx xxxxxx xx xxxx SQL xxxxxxxxx xx x xxxx xx xxxxxx xx Sxxxxxxxxxx xxxx xxx xxxxxxxx, xxxxxxxxxx xxx xxxxxx xxxxxxxxxxxxxx xxxxxx xx xxx xxxxx xxx xxxxx xxx xxxx xxxxx. Ixxxxxxxxxxx, GROUP BY xxxx xxxxxx xxx xxxx xxxx xx ORDER BY xx xxx xxxx xxxxxx. - - - - Axxxxxxxx xxx Mxxxxxxxxxxx Dxxx - COUNT( ) xxxxxxxxSELECT xxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx -Wxxx MxSQL xxx xxx xxx xxxx xxxxxxxx xxx xxxx, xxx xxxx xxxxxxx xxx xxxxxx xxx xxxx xxxxxxxxx. Fxx xxxxxxxx, xxxxxxx xx xxxx xx xxxx xxx xxxx xxxxxx xx xxxxx xx Txxxxxx. Wx xxxxx xxxxx x SELECT xxxxxxxxx xxxxxxxxxx x COUNT( ) xxxxxxxx xxxx xxxx: - - SELECT COUNT(*) -FROM xxxxx -JOIN xxxxxxx USING(xxxxxx_xx) -WHERE xxxxxx_xxxx = 'Txxxxxx'; - -+----------+ -| COUNT(*) | -+----------+ -| dd | -+----------+ - Ax xxxxxxx xxxxxxx, xxxxxxx xxxx xxxxx xxxxxxx xx xxx xxxxxxxx xxx xxxxxxx xx xx xxx xx xxxx xxxxxxx xxxxx xxxxxx xxxxxx xxxx xxxxxxxx xxxxxxxxxxx xx xxxxxxxx xxxxxx. Wx xxx xxxxx xxxx xxxxx xx xxxx xxx xxxxx xxxxx xx x xxxxxxxxxx xxxx. Fxx xxxxxxxx, xx xxxx xxx xxxxx xxxxxxxx xxxxxxxxx xxxx, xxx, Wxxxxxx Bxxx’x xxxx Axxxxxxxx, xx xxxxx xxxxx xxx xxxxxxxxx SQL xxxxxxxxx xx xxx xxxxx xxxxxx: - SELECT SUM(xxxx_xxxxxx) AS 'Axxxxxxxx Sxxxx' -FROM xxxxxx -JOIN xxxxx USING(xxxx_xx) -JOIN xxxxxxx USING(xxxxxx_xx) -WHERE xxxxx = 'Axxxxxxxx' -AND xxxxxx_xxxx = 'Bxxx'; - -+-----------------+ -| Axxxxxxxx Sxxxx | -+-----------------+ -| ddd.dd | -+-----------------+ - WHERE xxxxxxSELECT xxxxxxxxx -Hxxx xx xxx xxxxxxx xxxxx xxxxxx xxxxxxxx xx xxxxxxxx xxx xxxxxxx xxxxxxxxxxx. MxSQL xxxxxxx xxx xxxxx xx xxx xxxx_xxxxxx xxxxxx xxxx xxxx xxx xx xxx xxxxxx xxxxx xxxx xxxxxxx xxx xxxxxxxx xx xxx WHERE xxxxxx. Txxx xx xxxx xxxxx xxxxxxx xxx xxxxxxxx xxx xxx xxxx xxx xxxxxx xxxxxxx xxxxx. - - xxxxxxxxxxxxxxxxx -Fxx xxxxxxx xxxx xxxxxxx xxxx xx xxxx xxxxxxxxxxx, xx xxx xxxxxx xx xxx xxxxxx xxx xxxxxxxxxx xxx xxxx xxxxx x xxxxxxx xx xxxxxxxxx. Fxx xxxxxxxx, xxxxxxx xxxx xx xxxx xx xxxxxxx xxxx xxx xxxxxx xxxxx xxx xxxx xxxx x xxxxxxxx xxxx x xxxxxxxxxx xxxxxxxx xxxxx xx xxx xxxxxxx xxxxxx (x.x., dddd), xxxxx xx xxxx xx xxx xxxxxx xxxxxxxxxxxxxx xxxxxx xx xxxx_xx. Wx xxxxx xxxxxx xxxxx xxx xxxxxxxxx xxxxxxxxx xxx xxx xxx xxxxxxx xxxxxx xx xxxxx xx xxx xxxx xxxx xx xxxxxxx: - - SELECT xxxxxxxx_xxxx AS 'Pxxxxxxx Dxxx' -FROM xxxxxx -WHERE xxxx_xx = 'dddd'; - -+---------------+ -| Pxxxxxxx Dxxx | -+---------------+ -| dddd-dd-dd | -+---------------+ - Txxx xxxxxx (xxxx-xxxxx-xxx) xx xxxxxxxxxxxxxx. Hxxxxxx, xx xx xxxx xxx xxxxx xxxxxxxxx xx Exxxxxx xxxxxx xxxx xxxxxxxxxxx, xx xxxx xx xxx xxxx xxxx xxxxxxxxx: - SELECT CONCAT(MONTHNAME(xxxxxxxx_xxxx), ' ', -DAYOFMONTH(xxxxxxxx_xxxx), ', ', -YEAR(xxxxxxxx_xxxx)) AS 'Pxxxxxxx Dxxx' -FROM xxxxxx -WHERE xxxx_xx = 'dddd'; - -+---------------+ -| Pxxxxxxx Dxxx | -+---------------+ -| Mxxxx d, dddd | -+---------------+ - xxxx xxxxxxxxxCONCAT( ) xxxxxxxx -Tx xxx xxx xxxx xxxxxxxx xx xxx xxxxxxx xxxxx-xxxxxxxx xxxxxx xxxx xx xxx Uxxxxx Sxxxxx, xx’xx xxxxx xxx CONCAT( ) xxxxxxxx xx xxxxxxxxxxx xxxx x xxx xxxx xxxxxxxxx. Ix xxx xx x xxxxxx xxxxxxxxx xx xxxxx xxxxxx, xxxxxxx xx’xx xxxxxxxxx x xxxxx xxxxxxx xxx xxxxx xxx xxx xxx xx xxx xxx xx xxx xxxxx xxxx xxx x xxxxx xxx x xxxxx xxxxx xxx xxx xx xxx xxx xx xxx xxxxxx xxxx. Ax xxx xxx xxxx xxxxxxxxx, xxx xxxxx xxx xxxxxxxx xxx xxxxx xxxx xxx xxxxxxxx_xxxx xxxxxx xxx xxxxxxx xx xx xxx xxxx xxxx xx xxxxxxxxx. Txx xxxxxx xxxx xxxxxxxx xx xxx xxxxxx xxxx xxxxxxxx xxxx xxx xxx, xxxxx xxxxx xx xxxxxxxxxx xxxxxxx x xxxxx. Txx xxxxx xxxx xxxxxxxx xx xxx xxxxx xxxx xxxxxxxx xxxx xxx xxxx. - Ax xxx xxx xxx xx xxx xxxxxxx, xxx xxxxxxxxxxx xx xxxxxxxxx xxxxx. Hxxxxxx, xx’x xxx xxx xxxxxxxx xxxxxx xx xxxxx xxx xxxx xxx xx xxxxxxxxx. Wx xxxxx xxx xxx DATE_FORMAT( ) xxxxxxxx xxxxxxx: -DATE_FORMAT( ) xxxxxxxx - - SELECT DATE_FORMAT(xxxxxxxx_xxxx, "%M %x, %Y") -AS 'Pxxxxxxx Dxxx' -FROM xxxxxx -WHERE xxxx_xx = 'dddd'; - Txxx xx x xxxx xxxx xxxxxxxxx xxxxxx xxx xx xxxxxxxx xxx xxxx xxxxxx xx xxx xxxxxxxx xxxxxxxxx. Yxx xxxx xxxx xx xxxx xxx xxxxxxxxxx xxxxx xx xx xxxx xx xxx xxxx xxxxxxxx xxxxxxxx. Txxx’xx xxxxxx xx , xxxxx xxxx xxxxxxx xxxx xxxxxxxxxx xxxxx xxx xxxx xxxx xxxx xxx xxxx xxxxxxxxx. - - - - - - Cxxxxxxx Dxxx - WHERE xxxxxxUPDATE xxxxxxxxxUPDATE xxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxx -Yxx xxx xxxxxx xxxx xx x xxxxx xxxxx x xxx xxxxxxxxx xxxxxxx. Txx xxxx xxxxx xxx xxxxxxx xxx xxxx xxxxxx xxxxxx xx xx xxx xxx UPDATE xxxxxxxxx. Wxxx xxxx xxxxxxxxx, xxx xxx xxxxxx xxxx xxx xxx xxxx xx xxx xxxxxxxx xxxxxxx xxxxx xx x WHERE xxxxxx. - Lxxxxxx xxxx xx xxx xxxxxxx xxxxxxxxx xxxx xx xxxxxxx xxxxx, xx xxx xxx xxxx Gxxxxx Gxxxxx’x xxxx Bxxxxxxx Rxxx xxx x xxxxxxxxx xxxx xx dddd. Txxx’x xxx xxxxxxx; xx xxxxxx xxxx dddd. Tx xxxxxx xx xxxxxx xxxx xxx xx xxxxxxxxxxx, xx xxxxx xxxxx xxx xxxxxxxxx SQL xxxxxxxxx: - - UPDATE xxxxx -SET xxx_xxxx = 'dddd' -WHERE xxxx_xx = 'd'; - -Qxxxx OK, d xxx xxxxxxxx (d.dd xxx) -Rxxx xxxxxxx: d Cxxxxxx: d Wxxxxxxx: d - Fxxxx xx xxxxx xxx xxxx xx xxx xxxxx xxxx’x xxxxx xxxxxxx. Nxxx, xx xxxxxxx xxx SET xxxxxxx xxxx xxx xxxxxx xx xxxxxx xxx xxx xxxxxxxxxxxxx xxx xxxxx. Ix xx xxxxxx xx xxxxxx xxx xxxxxx xx xxxx xxxx xxx xxxxxx, xx xxxxx xxxxxxx x xxxxx-xxxxxxxxx xxxx xx xxxx xxxxxx xxxxx xxxx xxx xxxxxx-xxxx xxxxxxxx xxx xxx xxx xxxxxxxxxx xxxxxx. SET xx xxxxx xxxx xxxx. - xxxxxxxxxxxx -Txx xxxxxxxxx SQL xxxxxxxxx xxx x WHERE xxxxxx xxxxxxxx xxx xxxx xxxx xxxx xxxxxxx xx xxxxxxxxxx x xxxxxxxxx xxx xxx xxxx xxxx. Ix xxxx xxxx, xxx xxxxxxxxx xx xxx x xxxxxxxx xxxxx xx x xxxxxx xxxxxx, xx xxxx xxx xxx xxxx xx xxxxxxx. Txx xxxxxxx xx xxx xxxxx xxxx xxxx xxx xxx xxx xxxxxxxx, xxx xxx xxx xxxxxxx, xxx xxx xxx xxxxxxx, xxx xxxxx xxxx xx xxxxxxxx xx xxxxxxxx xxxxxxxx. - - REPLACE xxxxxxxxxxxxxxxxxx xxxx xxxxxxxxxxxxxxxx -Sxxxxxxxx xxxxxxxxx xxxx xxxx x xxxxx xxxx xxxxx x xxxxxxxxx xxx xx xx xxxxxxx xxxxxxx x xxx xxx xxx xxxx xxxxxxx xxxxxx. Fxx xxxxxxxx, xxxxxxx xxxx xx xxxx xx xxx xx SQL xxxxxxxxx xxxx xxxxxxx xxxx xx x xxx xxxxx xxxx xxx xxxxx xxxxx xxx xxx xx xxx xxxxx xx xxxxxxx xx xxx xxxxx. Ix xx xxx INSERT, xx’xx xxx xx xxxx x xxxxxxxxx xxx. Tx xxxxxxx xxxx, xx xxx xxx xxx REPLACE xxxxxxxxx, xxxxx xxxxxxx xxxx xxxx xxx xxx xxx xxxxxxxx xxxxxxxx xxxx xxxx xxx xxxx. - - -Fxxx MxSQL’x xxxxxxxxxxx, xxxxxxxxxx xxxxx xxxx xxxx xxxxxxx xxxxxxx xx xxxxxx xxxxx xxxxxxx xxx xxxx xxxxx. Bxxxxxx xxx xxxx_xx xxxxxx xx xxxxxxxx xxxxxxxxxxxxx, xx’x xxxxxxxx xxxx xx xxxxx xxxxxxxxx xx, xxxxxxx xx xxxxxx’x xxxx xx xxxxxx xxx xxxxx xxxx xxxxxx xxxxxxx. Wxxx’x xxxxxx xxxxx xxxx xxxx xx xxx xxxx xxxxxxxx xx xxx ISBN xxxxxx, xxxxx xx xxx xxx-xxxx xxxxxx xx xxx xxxx xx xxx xxxx. Tx xxxxxx xxxx xx xx xxx xxxx xxxx xxxx xxx xxxx ISBN xxxxxx, xx’xx xxxxx xxx xxxxx xxxxx xxxxx xxx xxxxxx xxx xxxx xxxxxx xx x UNIQUE xxxxxx, x xxxxxx xxxx xxxxxxxx x xxxxxx xxxxx. Txxx xxx xx xxx’x xx xxxx xx xxxxx xxxx xxxxxxxxxxxxx xx x xxxx xxxx xxxx xxxx. -UNIQUE xxxxCHANGE COLUMN xxxxxxxxx -xxxxxxxxxxxxx - - ALTER TABLE xxxxx -CHANGE COLUMN xxxx xxxx VARCHAR(dd) UNIQUE; - Nxx xx’xx xxxxx xx xxxxx xxxxxxxxx xxxx xxx xxxx xxxxx xxxxxxx xxxxxxxx xxxxx xxxxxxxxx xxxx xxx xxxxx xxxx xxx xxxx ISBN xxxxxx. Hxxx xx xx xxxxxxx xx xxxxx xx xxxxxxx xx xxx xxx xxxx xxxxx xx Gxxxxx Gxxxxx, xxx xx xxxxx xx xxxxxxx xx xxx xxxxx: - REPLACE INTO xxxxx -(xxxxx, xxxxxx_xx, xxxx, xxxxx, xxx_xxxx) -VALUES('Bxxxxxxx Rxxx',d,'dddddddddd','xxxxx','dddd'), -('Txx Qxxxx Axxxxxxx',d,'dddddddddd','xxxxx','dddd'); - xxxxx (,)REPLACE xxxxxxxxxxxxxxxxxxxx ( )( ) xxxxxxxxxxxINSERT xxxxxxxxxREPLACE xxxxxxxxx xxxREPLACE xxxxxxxxxxxxxxxxxxxxxxxxxxxx -Txx xxxxxx xxx xxx REPLACE xxxxxxxxx xx xxx xxxx xx xxx INSERT xxxxxxxxx. Nxxxxx xxxx xx’xx xxxxx xxx xxxx xxxx xx xxx xxxxxxxxx. Txxx xx xxx xxxx xxxxxx xxxx xxx xxxxx xxx xx xxx xxxx xx xxx xxxx xxxx xxx xxx xxxxx INSERT. Jxxx xxxx xxxx xxx’x xxxx xxxxxx xxxxxxxxxxx xxx xxxxxxxx xxxx xx xxxxxx, xx xxxxx xxxxxxx. Ix xxxx xxxxxxx, xxxxx xx xxxxxxx x xxx xxx xxx xxxx xxxxxxxxxx xxx ISBN xxxxxx dddddddddd (x.x., Bxxxxxxx Rxxx), xx xx xxxx xx xxxxxxxx xxx x xxx xxx xxxx xxx xx xxxxx. Txxxx xxx’x xxxxxxxxx xxx xxx xxx Gxxxxx’x xxxx Txx Qxxxx Axxxxxxx, xxxxxx, xx xx xxxx xx xxxxx. - - - - Dxxxxxxx Dxxx - xxxxxxxxxxxxDELETE xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx -Tx xxxxxx xxxxxxxx xxxx xx xxxx, xxx xxx xxx xxx DELETE xxxxxxxxx. Fxx xxxxxxx, xx xx xxxx xx xxxxxx xxx xxxx xx xxxx xxxx xxx xxxxx xxxxx xxx xxx xxxxxx J.K. Rxxxxxx, xxxxxxx xx’xx xxxxxxx xxx xx xxxxx Hxxxx Pxxxxx xxxxx, xx xxxxx xxxxx xxx xxxxxxxxx xxxxxxxxx: - - DELETE FROM xxxxx -WHERE xxxxxx_xx = - (SELECT xxxxxxx.xxx_xx FROM xxxxxxx - WHERE xxxxxx_xxxx = 'Rxxxxxx' - AND xxxxxx_xxxxx = 'J.K.'); - -DELETE FROM xxxxxxx -WHERE xxxxxx_xxxx = 'Rxxxxxx' -AND xxxxxx_xxxxx = 'J.K.'; - SELECT xxxxxxxxxxxxxxxx -Hxxx, xx’xx xxxxxxxx xxxx xxxx xxxx xxx xxxxx xxxxx xxxxx xxx xxxxxx xxxxxxxxxxxxxx xxxxxx xx xxxxxxxx xx xxxxxxxx xxxx xxx xxxxxxx xxxxx xxxxx xx xxx xxxxxxxxx xxxxxx’x xxxx xxxx xxx xxxxx xxxx. Txxx xx xx xxx, xxx xxxxxx_xx xxxx xx xxxxxxxx xxxxx xx xxxxxxxx xx xxx SELECT xxxxxxxxx, xxx xxxxxxxx xxxxxxxxx xx xxx xxxxxxxxxxx. Txxx xxxxxxxxx xxxxxxxx x xxxxxxxx, xx xx xxxxxxxx Vxxxxxx d.d xx xxxxx xx MxSQL. Tx xxxxxx xxxxx xxxx xxxx xxxx xx xxxxxxx xxxxxxx xx MxSQL, xxx xxxxx xxxx xx xxx xxx SELECT xxxxxxxxx xxxxx xx xxxxxxxxxxx xxxx xxxxxxxxxx (xxx xx x xxxxxxxx), xxxx xxxx xx xxx xxxxxx’x xxxxxxxxxxxxxx xxxxxx, xxx xxxx xxx xxx xxxxx DELETE xxxxxxxxx, xxxxxxxx xxxxxxxx xxx xxxxxxxxxxxxxx xxxxxx xx xxx xxx xxxxxxx xx xxx xxxxxxxxxxxxx SELECT xxxxxxxxx xxxxx. - - DELETE xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx-xxxxxxx -Ax xxxxxxxxxxx xx xxx xxxxxxxx SQL xxxxxxxxx xxxxx xx xx xxxxxxx xxxx-xxxxxxx xxxxxxxxx. Hxxx xx xxx xxxx xxxxxxx xxxxx xxxxxxxxx: - - SET @xxxxxx = - (SELECT xxx_xx FROM xxxxxxx - WHERE xxxxxx_xxxx = 'Rxxxxxx' - AND xxxxxx_xxxxx = 'J.K.'); - -DELETE FROM xxxxx -WHERE xxxxxx_xx = @xxxxxx; - -DELETE FROM xxxxxxx -WHERE xxx_xx = @xxxxxx; - xxxxxxxxxxxxxxxxxxxxxSET xxxxxxxxx xxxSET xxxxxxxxxxxxxxxxxx xxx -Ix xxx xxxxx xxxxxx, xx xxx xxx SET xxxxxxxxx xx xxxxxxxxx x xxxxxxxx xxxxxx @xxxxxx xxxx xxxx xxxxxxx xxx xxxxxxx xx xxx SELECT xxxxxxxxx xxxx xxxxxxx xx xxxxxxxxxxx, xxxxxxx xxxxxxxx. Ixxxxxxxxxxx, xxxxxxxx xxxx xxxxxxxx xx xxx xxxxxxxxx xxxxxx Vxxxxxx d.d, xxxx-xxxxxxx xxxxxxxxx xxx. Txx xxxxxx SQL xxxxxxxxx xxxxxxx xxx xxxx xxxx xxxxx xxxxx xxx xxxxxx xxxxxxxxxxxxxx xxxxxx xxxxxxx xxx xxxxx xx xxx xxxxxxxxx xxxxxxxx. Nxxx xx xxxxxx xxx xxxx xxxx xxx xxxxxxx xxxxx, xxxxx xxxxxx xxx xx xxx xxxxxxxx. A xxxx-xxxxxxx xxxxxxxx xxxx xxxx xxxxx xx’x xxxxx xx xxxxx xxx MxSQL xxxxxxx xx xxxxxx. - - - - Sxxxxxxxx Dxxx - xxxxxxxxxxxxxxxxxxxxxxxxxxLIKE xxxxxxxx -Oxxx xxx xxxxxxxx xx xxxxxx xxxx xxxxx xxxxxxx xx xxxx, xx xxx xx xxxxxxxxxx xx xxxxxx xxxx xx xxxxxx xxxxxxxxx xxxxxxx xxx xxxxxxx xx SELECT xxxxxxxxxx. Axxx, xxxxxxxxx xx xxx’x xxxx xxx xxxxx xx xxxxxxxx xxxx xxx x xxxxxx xx’xx xxxxxxxxx. Fxx xxxxx xxxxxxxxxx, xx xxx xxx xxx LIKE xxxxxxxx. Sxxxxxx xxxx xxx xxxxx xxxxx xxx xxx xxxxxxxxx xx xxxxxxx. Sxxxxxx xxxxxxx xxxx x xxxxxxxx xxxx xx’x xxxxxxx xxx x xxxxxxxx xxxx. Hx xxx’x xxxxxxxx xxx xxxx xx xxx xxxxxx xx xxx xxxxx xx xxx xxxx, xxx xx xxxx xxxxxxxx xxxx xxx xxxxx xxxxxxxx xxx xxxxxx xxx xx xxx xxxxx. Wx xxxxx xxxxx xxxx SQL xxxxxxxxx xx xxxxxx xxx xxxxxxxx xxxxx xx xxxx xxxxxxx xxxxxxxxxxx: - - SELECT xxxx_xx, xxxxx, -CONCAT(xxxxxx_xxxxx, ' ', xxxxxx_xxxx) AS xxxxxx -FROM xxxxx -JOIN xxxxxxx USING(xxxxxx_xx) -WHERE xxxxx LIKE '%xxxxxxxx%' -AND xxxxx LIKE '%xxxxxx%'; - -+---------+-----------------------------------+---------------+ -| xxxx_xx | xxxxx | xxxxxx | -+---------+-----------------------------------+---------------+ -| dddd | Ix xx x xxxxxx'x xxxxx x xxxxxxxx | Ixxxx Cxxxxxx | -+---------+-----------------------------------+---------------+ - xxxxxxx xxxx (%)xxxxxxxxxxxxxxxx xxxx -Wxxx xxx LIKE xxxxxxxx, xx xxx xxx xxxxxxx-xxxx xxxxxxxx xxxxx xx xxxxxxxx xxxx xx’xx xxxxxxxxx xxx xxx xxxx xx xxxxx xxx xxxxx xxxxxx’x xxxx xxxxxxxx xxx xxxxxx xxxxxxxx xxxx xxxx xx xxxx xxxxxxxxxx xxxxxx xx (xxx xxxxxxxxx xxxxxxx-xxxx), xxx xxxx xx xxxx xxxxxxxxxx xxxxx xx (xxx xxxxxxxxxxx xxxxxxx-xxxx). Pxx xxxxxxx xxx, xxx xxxx xxxxxxxx xxxx xx xxxxxxxxx xxxxxxxxx xx xxx xxxxxx’x xxxx xx xxxx x xxxxxxx xxxxx. Txx xxxx xxxxxx xxxxxxxxx xxxx xxxxxx xxxx xxxx xx xxxxx xx xxx xxxx xxxxxx. Ixxxxxxxxxxx, xxx LIKE xxxxxxx xxxxxxxxx xx xx xxxxxxxx xxxx xxx xxxxxx-xxxx. - - Ix xxxxxxx xxxxxxxx xxxx xx xx xxxxxx xxx xxxxxxxx xxx x Gxxxxx Gxxxxx xxxx xxxx xxxxxx xxx xxxx Sxxxxxxx xx xxx xxxx Oxxxxx xx xxx xxxxx, xx xxxxx xxx xxx OR xxxxxxxx xxxxxx xx xxxxxxxxxx xxxx xxxx: - SELECT xxxx_xx, xxxxx -FROM xxxxx -WHERE xxxxxx_xx = d -AND xxxxx LIKE '%Sxxxxxxx%' -OR xxxxxx_xx = d -AND xxxxx LIKE '%Oxxxxx%'; - xxxxxxxxxxxxxxxxxxxxxxxxxx -Sxxxx xx xxxx xxx xxxxxx’x xxxxxxxxxxxxxx xxxxxx xxxxxxx, xxxx xxxxxxxxx xx xxxx xxxxxxxx xxx xxxxxxxx xxxx xxx xxxxx. Nxxxxx xxxx xx xxxx xx xxxxxxx xxx xxxxxx_xx xx xxxx xxxxxxxxxx; xxxxxxxxx xx xxxxx xxx xxxxxxx xx xxxxx xxxxxxx xxxx xxxxx xxx xxxxx xxx xxxxx xx’xx xxxxxxxxx.Fxx xxxx xxxxxxxxxxx xx xxxxxxxxx, xxx . Yxx xxx xxxx xxxx xxxxxxxx xxx xxxxxxxxxxxxx xxx xxxxxxxxx xxxx xx . - - - - Ixxxxxxxx Dxxx xx Bxxx - REPLACE xxxxxxxxxxxxxxxxxxx xxINSERT xxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxx -Wxxxx xxx INSERT xxx REPLACE xxxxxxxxxx xxx xxxxxx, xxxx xxx xx xxxx-xxxxxxxxx xxxx xxx’xx xxxxxxxx x xxxxx xxxxxx xx xxxx, xxxxxxx xxxx’xx xxxxxxxx xxxxxx xxxxxxx xx xxxxxxxx xxxx. Oxxxx, xxxx xxxxxxx xx x xxx xxxxxxxx, xxx xxxx xxxx xx xxxxxxx xxxx xxxx xx xxx xxxxxxxx xx MxSQL. Ix xxx xxxx xx xxx xxxxxxxxx, xxx’x xxxxxxx xxxx x xxxxxx xxx xxxx xx x xxxx xxxx x xxxx xx xxx xx xxxxx xxxxx xx x xxxxxx xxxx xxxx. Exxx xxxxxx xxx xxxx xxxx xx xx x xxxxxxxx xxxx xxx xxxx xxxxx xx xxxx xxxxxx xx xxxxxxxxx xx x xxxxxxxx xxx. Hxxx’x xxxx xxx xxxxxxxxxx xxxxxx’x xxxx xxxx xxxx xxxxx: - - ISBN|TITLE|AUTHOR LAST|AUTHOR FIRST|COPYRIGHT DATE| -dddddddddX|Nxxxx xxxx Uxxxxxxxxxx|Dxxxxxxxxx|Fxxxxx|Axxxxx dddd| -... - xxxxx xxxxxxLOAD DATA INFILE xxxxxxxxxLOAD DATA INFILE xxxxxxxxxxxxxxxx -Oxxxxxxxx, xx xxxxxx xxxxxx xxxx xxxxx xxxxxxx xxxx xxxxxx xxx xxxxxxx xxxx xxx xxxxx xxxx, xxx xxxx xx xxxxxx xxx xxx xxxxxxx. Txx xxxxx xxxx xxxxxxxx xxxxxxxxxxxx xx xxx xxxxxx xx xxx xxxxxxx xxxx xxxxxx. Wx xxx’x xxxx xx xxxxxxx xxx xxxxx xxxx; xx’x xxxx xxxxxxxxxxxx xxx xx. Sx, xx’xx xxxx MxSQL xx xxxxxx xx xxxx xx xxxxx xxx SQL xxxxxxxxx. - Ax xxx xxx xxxx, xx xxxx xxxxxxxx x xxx xxxxxxxx. Fxxxx, xxx xxxxxx xxx xxx xx xxx xxxxx xxxx xxxx xxx xxxxx xx xxx xxxxxx. Wx’xx xxxx xx xxxx MxSQL xxx xxxxx xx xxxxx xxx xxxx xxxx xx xxxxxx xx xxxx xx xxx xxxx xxxxxxxxxxx. Txx xxxxx xxxxxxx xx xxxx xxxx xxxx xxxxx xxxxxxxx xxxx xxx xxxx xxx xxxxx xxxxx xxx xxx xxxxxxx xxxxx. Txxx xx xxxxx xx xx x xxx xxxxxx, xxx xx xxx xxxx xxxx xx. Wxxx xx’xx xx xx xxxxxxx xxx xxxxxx xxxxxxxxxxx xxxx xx xxx SQL xxxxxxxxx, xxxx xx’xx xxx x xxxxxxxx SQL xxxxxxxxx xx xxxxxx xxx xxxx xxxxxxxxxxx. Bxxxxx xxxxxxxx, xx’xx xxxxxx xxx xxxxxx’x xxxx xxxxxx xxxxx.xxx xx x xxxxxxxxx xxxxxxxxx (x.x., /xxx). Hxxx xx xxx x LOAD DATA INFILE xxxxxxxxx xxxx xxx xxxxx xxxxxx: - - LOAD DATA INFILE '/xxx/xxxxx.xxx' REPLACE INTO TABLE xxxxxxx -FIELDS TERMINATED BY '|' LINES TERMINATED BY '\x\x' -TEXT_FIELDS(xxxd, xxxd, xxxd, xxxd, xxxd) -SET xxxxxx_xxxx = xxxd, xxxxxx_xxxxx = xxxd -IGNORE xxxd, xxxd, xxxd, d LINES; - IGNORE xxxxxxTEXT_FIELDS xxxxxxREPLACE xxxxLOAD DATA INFILE xxxxxxxxx -Fxxxx, I xxxxxx xxxxx xxx xxxx xxx TEXT_FIELDS xxx xxx IGNORE xxxxxx xxx xxxxxxx xxx xxx xxxxxxxxx xxxxxx Vxxxxxx d.d xx MxSQL. Txx IGNORE x LINES xxxxxx xxx xxxx xxxxxx xxx x xxxxx, xxxxxx. Wxxx IGNORE d LINES, xxx xxxxx xxxx xx xxx xxxx xxxx xxxxxxxxxx xxx xxxxxx xxxxxxxx xxxx xx xxxxxxx. Gxxxx xxxx xx xxx xxxxx xxxx xx xxx SQL xxxxxxxxx xxxx, xx’xx xxxxx xxx xxxx xx xxxx xxx xxx xxxxx xx xxxxx xx xxxx xxx xxxx. Txx REPLACE xxxx xxx xxx xxxxxx xx xxx REPLACE xxxxxxxxx xxxxxxxxx xxxxxxx. Ox xxxxxx, xxxxx xxx xxxx xxxxxx xxxx’x xxx xx xxxxxx, xxxxx xxx’x xx xxx xxxxxxxxxx xx xxx xx MxSQL xx xxxxxxxxx. Ix x xxxx xxxx xxxxxxxxx, xxx xxxxx xxxx xx xxxxx xxxx xxxxx xx xxxxxxx xxxxxxxxxx xxxxx xx xxx xxxxxx’x xxxx. - - xxxxxxxxxxxxxxx xxxxxxx xxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxx (\\\\x)xxxxxxxx xxxxxx (\\\\x)xxxxxxxx xxx (|)Uxxx xxxxxxxxxxxxxx-xxxx xxxx -Ix xxx xxxxxx xxxx, xx xxxxxxx xxxx xxxxxx xxx xxxxxxxxxx xx x xxxxxxxx xxx xxx xxxx xxxxx xxx xxxxxxxxxx xx x xxxxxxxx xxxxxx (\x) xxx x xxxxxxx (\x) xx xxxxxxxxx xxxx xxxx. Txxx xx xxx xxxxxx xxx xx MS-DOS xxxx xxxx. Uxxx xxxxx xxxx xxxx x xxxxxxx xx xxx xxxx. - Ix xxx xxxxx xxxx, xx xxxxxx xxxxxxx xxx xxxx xxxxxx. Ix xxx xxxxxx xxxx, xx xxxx xxx xxxxx xxxxxxx xx xxxxxxx xxxx xxx xxx xxxxx xxxxxx xxxxx xx xxx xxxxxxx xxxxx xx xxx xxxxxxxx xxxx. Ix xxx xxxxx xxxx, xx xxxx MxSQL xx xxxxxx xxx xxxxxxx xxxx xx xxx’x xxxx, xx xxxx xx xxx xxx xxxx, xxxxxxx xx xxxxx’x xxxxxxx xxxx. - - xxxxxxxxxxxxxxx xxxxxxxx -Ix xxx’xx xxxxx xx xxxxx xxxxxxx xx MxSQL xxxx xxx’x xxxx xx xxxxxx xxxxxxxx xxxxxxx, xxx xxxx xxxx xx xxxxxxx x xxxxxx xx xxxxx xxxxx. Txxxx xxx x xxx xxxxxxxxx xxxx xx xxxxx xxxx. Oxx xxxxxx xxx, xx xxx xxxxx xx’xx xxxxxxx xxxx xxxx xxx’x xxx xxxxx, xx xx xxx xxxxx xxxxx, xxxxxxxxx xxxxxxx xx xxxxxxx xxxx xxxx xxxx xx xxx xxxxxxxx xxxxxx xx xxxx xxxx xxx xxxx xxxx xxx xxxx xxxx xxxxx. Txxx xxxxx xxxx xxxx xxx xxxxxxxxx: - - ALTER TABLE xxxxxxx -ADD COLUMN xxxd VARCHAR(dd), -ADD COLUMN xxxd VARCHAR(dd), -ADD COLUMN xxxd VARCHAR(dd); - -LOAD DATA INFILE '/xxx/xxxxx.xxx' REPLACE INTO TABLE xxxxxxx -FIELDS TERMINATED BY '|' LINES TERMINATED BY '\x\x' -IGNORE d LINES -(xxxd, xxxd, xxxxxx_xxxx, xxxxxx_xxxxx, xxxd); - -ALTER TABLE xxxxxxx -DROP COLUMN xxxd, -DROP COLUMN xxxd, -DROP COLUMN xxxd; - DROP xxxxxx (ALTER TABLE) -Txxxx xxxxxxxxxx xxxx xxxx, xxx xxxx’xx xxx xx xxxxxxxx xx xxx xxxx xxxxxxxxxxxxxxx xxxxxxxxx xxxxx xxxxxxx. Ix xxx xxxxxx SQL xxxxxxxxx xxxx, xxxxxx xxxx xxx IGNORE xxxxxx xxxxxxxxx xxx xxxx xx xx xxxxxxx. Txx xxxx xxxx xx xxx xxxx xxxxxxxxx xxxxx xxx xxxxxxx xx xxx xxxxxxx xxxxx xxxx xxx xx xxxxxxx xxx xxxx xxx xxx xxxxxxxx xx xxxxx xxxx xxxx xx xxxxxxxx. Ix xxx xxxxx SQL xxxxxxxxx, xxxxxx xxxxxxxx xxxxxxxxx xxx xxxx xxxx xxx xxxxxx’x xxxx xxxx, xx xxx xxxxxx xxx xxxxxxxxx xxxxxxx xxxx xxxxx xxxxxxxxxxx xxxx xx xxxxx x DROP xxxxxxxxx. Txxxx’x xxxxxxx xx xxxxxxxx xxxx DROP, xx xxxx. Sx, xxxx xxxx xx xxxxx xx. - - Oxxx xx xxxxxx xx xxxx xxx xxxx xx xxxxxxx xxxx xxx xxxxxxx xxxxx xxxx xxx xxxx xxxx, xx xxxx xx xxxx xxx xxxx xxx xxx xxxxx xxx xxxx xxx xxxxxxx xxxxxx_xx xxx xxxx xxxx. Wx xx xxxx xxxxxxx xxx xxxxxxxxx: - LOAD DATA INFILE '/xxx/xxxxx.xxx' IGNORE INTO TABLE xxxxx -FIELDS TERMINATED BY '|' LINES TERMINATED BY '\x\x' -TEXT_FIELDS(xxxd, xxxd, xxxd, xxxd, xxxd) -SET xxxx = xxxd, xxxxx = xxxd, -xxx_xxxx = RIGHT(xxxd, d), -xxxxxx_xx = - (SELECT xxxxxx_xx - WHERE xxxxxx_xxxx = xxxd - AND xxxxxx_xxxxx = xxxd) -IGNORE xxxd, xxxd, d LINES; - IGNORE xxxxxxRIGHT( ) xxxxxxxx -Ix xxxx SQL xxxxxxxxx, xx’xx xxxxx x xxxxxx xx xxxxxx xx xxx xxxx xx xxxx. Ox xxx xxxxx xxxx, xx xxxxxxx xxx xxxx xxxx xxx xxxxxxxxx xxxxx—xxxxx xxxxxxxx xxxx xxx xxxxx xxx xxx xxxx—xx xxx xxx xxxxxx xxxxxxxx RIGHT( ). Ix xxxxxxxx xxx xxxx xxxx xxxxxxxxxx xx xxxd xx xxxxxxxxx xx xxx xxxxxx xxxxxxxx. - Txx xxxxx xxxx xxxxxx x xxxxxxxx xxxx xxxxxxxxxx xxx xxxxxx_xx xxxxx xx xxxx xxxx xxx xxxxxxx xxxxx, xxxxx xxx xxxxxx’x xxxx xxx xxxxx xxxxx xxxxx xxxx xx xxxxx xx xxx xxxxxxxxxx xxxxxxx. Txx xxxxxxx xx xxx xxxxxx xxxxxxxx xxxxxx xxx xxxxxxxxxxx xxxx xx xxxxxxx xx xxx xxxxxx_xx xxxxxx. - Fxxxxxx, xx’xx xxxxxx MxSQL xxxxxx xxxd xxx xxxd, xx xxxx xx xxx xxxxxx xxxxxxx xxxx. Dxxxx xxxx xxxxxxxx xxxx xxxxxxx xxxxxxxx xx MxSQL xxxx xxxxxxx xxxxxxxxx xxxxxxx xx x xxxxxxxxx xxxxx xxxxx xxx xxxxx xx xxx xxxxxxxx xxxxxxx. Txx IGNORE xxxx xx xxx xxxxx xxxx, xxxxxxxxxxxx, xxxxxxxxx MxSQL xx xxxxxx xxxxx xxxxxxxx, xxx xx xxxxxxx xxx xxxxxxxxx xxxx, xxx xx xxxxxxxx xxxxxxxxx xxx SQL xxxxxxxxx. - - - - - - Cxxxxxx-Lxxx Ixxxxxxxx - xxxxxxx-xxxx xxxxxxxxx -Ix’x xxx xxxxxxxxx xx xxxx x MxSQL xxxxxxx xx xxxxx SQL xxxxxxxxxx xxxx xxx MxSQL xxxxxx. Ix xxxx, xxxxxxxxx xxx xxx xxxx xxxx x xxxxx xxxxx xx xxxx xx MxSQL, xxx xxx’x xxxxxx xxxx xx xx xxxx xxx xxxxx xx xxxxxxx-xxxx. Fxx xxxxxxxx, xxxxxxx xx xxxx x xxxxx xxxxxx xxxxxxx xx xxx xxxxxxxx, xxx xx xxxx xx xxx x xxxxx xxxx xx xxxxxxx xx Lxxxxxxxx xxx xxxxx xxxxxxxxx xxxxxxx. Wx xxxxx xxxxx xxx xxxxxxxxx xxxx xxx xxxxxxx-xxxx xx Lxxxx (xx xx xxxxxxxxxx xxxxxxxxx xxxxxx) xx xxx xxxx xxxx: - - xxxxx --xxxx='xxxxx' --xxxxxxxx='xxxxxxxxdddd' \ --x "SELECT xxxxxx, xxxxxxxxx FROM xxxxxxx \ - WHERE xxxxx='LA'" xxxxxxxxx - xxxxx xxxxxxx -Wx’xx xxxxx xxxxx xxx xxxxx xxxxxxxxx, xxx xx’xx xxx xxxxxxxx xxxxxxx xxxx. Ax xxxxx xxxxxxx, xx xxxxxxx xxx xxxxxxxx xxxxx xxx xxx xxxxxxxx xxxxxxxxdddd xx xxxxxxxxx xx xxx xxxxxxx. Txxx xxxx xxxx xxxx x xxxxxxxxx xx xxx xxx Uxxx xxxxx xxxx xxxx xxxxx xxx xxxx xxxxxxxxxx xx xxxx. Oxxxxxxxx, xx xxxxx xxxx xx xxx xxx xxx xxxxxxxxxxx xxxxx xx xxx xxxx. - Ox xxx xxxxxx xxxx xx xxx xxx -x xxxxxx xx xxxxxxxx xxxx xxxx xxxxxxx xx xx xxxxxx-xxxxxx xx xx xx xxxxxxxx xx xxx xxxxx xxxxxx. Nxxxxx xxxx xxxx’x xx xxxxxx xxxxxx xx xxx xxxx SQL xxxxxxxxx xxxx xxx xxxx xxxxxx xx xx xxxxx xxxxx xx xx xxxxxxx xxxx. Txx xxxxxx xxxxx’x xxxxxx xxxxxxx xx’xx xxxxxxxx xxx SQL xxxxxxxxx xxxx xxx xxxxxxx-xxxx. Wx xxx’x xxxx x xxxxxxxxxxx xxxx-xxxxx, xxxxxx, xxxxxxx xxx xxxxx xxxxxx xxxxx xxxxx xxx SQL xxxxxxxxx xxxx. - Fxxxxxx, xxxxx xxx SQL xxxxxxxxx, xx xxxxxxx xxx xxxx xx xxx xxxxxxxx xx xx xxxx. Wx xxxxx xxxxxxxxx xxxx xxxxxxxx xx xxxxxx xxx xxxxxxxx xxxx xxxxxx xxx xxxxx xxxx, xxxxxxxxx xx x xxx (x.x., xxxxxxxxx.xxxxxxx). - - Txxxx xxx xxxxx xxxxxxx-xxxx xxxxxxx xxxx xxx xxxxx xxxxxx. Txxxx xxx xxxx xxxxx xxxxxxx-xxxx xxxxxxxxx xxxxxxxxx xxx xxxxxxxxx xxx xxxxxxxxxxxx xxxx xx MxSQL. Yxx xxx xxx xxxx xx xxxxx xxxxxxxxx xxx xxxxxxx xx xxx xxxxxxxx xx xxx xxxxxxxxxx xxxxxx xxxxxxxxxxx xxx xxxxxx. Txxx xxx xxxxxxx xx xxx . - - - Cxxxxxxxxx - Oxxxxxxxx, xxx xxx xx xxxxxx xxxx xxxx MxSQL. Txxx xxxxxxxx xxx xxxxxxxx xx xxxx xxx xx xxxx xx xxx xx xxxxxx x xxxxxxxx xxx xxxxxx xxx xxxx xx xxxx xxxx xxxxx xxxx. Txx xxxxxxxxx xxxxxxxx xx xxxx xxxx xxxxxxx xxxxxxx xx xxx xx xxx MxSQL xxxxxxxxxx, xxxxxxx, xxxxxxxxx, xxxxxxx, xxx xxxxxxxxx. Ix xxx’xx xxx xx MxSQL, xxx xxx xxxxx xxxx xxx xxxxxxxxxx xxx xxxxxxx xxxxxxxxxxx xx xxxx xxxxxxx, xxx xxxxx xx xxx xxxxxxxx xxxx xxxxxx xxx xxxx xxxxxxx xxx xx xxxxx xxxxx xxxxx xxxxxxxxx xxx xxxxxxxx xx xxxxxx. - - - - - SQL Sxxxxxxxxx xxx Fxxxxxxxx - - - -Txxx xxxx xx xxx xxxx xx x xxxxxxxx xxxxxxxxx xx xxx xxxxxxx xx xxx -SQL xxxxxxxx xxxx xx MxSQL. Ix xxxxxxx xxx SQL xxxxxxxxxx xxx -xxxxxxxxx xx xxx xxxxx xxxxxxxx (xxxxxx xxxxxxxxxxxx, xxxx -xxxxxxxxxxxx, xxxxxxxxxxx, xxx.). Exxxxxxx xxx xxx -xxxxx xxxxxxx-xxxx xxxxxx, xxx xxx xxxxxxx xxxxx -xxxx xxxxxx xxxx xxx xxxxxxxxxxx APIx xxxxxxxxx xx Pxxx d. - - - - - Sxxxxxxx xxx Uxxx Sxxxxxxxxx xxx Fxxxxxxxx - Uxxx xxxxxx xxx xxxxxxxxxx xxx xx xxxxxx (x.x., xxxxx xx xxx xxxxxxxxx xx xxx xxxxxx), xx xxx xx xxxxxxxx-xxxxxxxx, xxxxx-xxxxxxxx, xx xxxxxx-xxxxxxxx. Ix xxxxxxx d xx MxSQL, xxxxx xxx xxxx xx xxxxxxx xx xxxxxxxxxx xxxxxxxxx xxx xxxxxxxxxx. - Ix xxxxxxxx xx xxxxxxxx xxxxxxx SQL xxxxxxxxxx, xxxxx xxx xx xxxxxxx xx xxxxx xxx xx MxSQL xxxxxxxxx xx xxxxx xx xxxxxxx xxxxxxx xxx xx xxxxxxxx xxxxxx xx xxxxxxx xx xxxxx xxxxx. Txxx, xxx xxx xxxxx xxx xxxxxx xx xxxxxxxxxxx xx xxx xxxxxxx xx xxxxxxxxx xxx xxxx xxx x xxxx. - Txx xxxxxxx xxxxxxxxxxx xxxxxxxxx xxxx xxxxxx xxx xxxxxxxxxx xx xxxxxx xx x xxx xx xxxxxxx MxISAM xxxxxx, xxxxx xx xxx xxxxx xxxxxx, xxxx xxxxxx xx xxx xxxxx xxxxxxxx xx xxx xxxxxx. Txx xxxxxx xxx: - - - xxxx: xxxxxx xxxxxxxxxx - - - xx: xxxxxxxx-xxxxxxxx xxxxxxxxxx - - - xxxxxx_xxxx: xxxxx-xxxxxxxx xxxxxxxxxx - - - xxxxxxx_xxxx: xxxxxx-xxxxxxxx xxxxxxxxxx - - - Sxxxxxx xxxxx xxxxxx xxxxxxx xxxx xxxxxx xxx xxxx xxxxxx xxx xxxxxxxx. Exxxxxx SHOW TABLES FROM xxxxx; xx xxx x xxxx xx xxxx xxxxxx. Yxx xxx xxxxxxxxxx xxx xxxx xx xxxxx xxxxxx xxxxxxxx xxxx xxxxxxxx SQL xxxxxxxxxx, xxxx xx INSERT, UPDATE, xxx DELETE, xxxxxxxx xx xxx FLUSH PRIVILEGES -xxxxxxxxx xx xxxxxx xxx xxxxxx’x xxxxx. Hxxxxxx, xx’x xxxxxxxxxxx xxxx xxx xxx xxxxxxxxxxx SQL xxxxxxxxxx xx xxxxxx xxxxx xxx xxxxxx xxxxxx xxxxxx: - - - CREATE USER xxxxxxxxx xxx xxxxxxxx xxx xxxxx; - - - GRANT xxxxxxxxx xxx xxxxxxxx x xxxx xxxxxxx, xxxxxxxxx xxxxxxxxxx xxx x xxx xxxx xxxxxxx, xx xxxxxxxxx xxxxxxxxxx xx xx xxxxxxxx xxxx; - - - REVOKE xxxxxxxxx xxx xxxxxxxx xxxxxxxxxx; - - - RENAME USER xxxxxxxxx xxx xxxxxxxx x xxxx’x xxxx; - - - SET PASSWORD xxxxxxxxx xx xxxxxx x xxxxxxxx; xxx - - - DROP USER xxxxxxxxx xx xxxxxx x xxxx xxxxxxx. - - - Axx xx xxxxx xxxxxxxxxx xxx xxxxxxxxx xx xxxx xxxxxxx. Txxx xxxxxxx xxxx xxxxx xxx xxxxxxxx MxSQL xxxxxxxxx xxxxxxx xx xxxx xxxxxxxxxxx xxx xxxxxxx xxxxxxx xx xxxxxxxx xxx xxxxxxx xxxxxxxx. - - MISSING TITLE HERE - Txx xxxxxxxxx xx x xxxx xx xxxxxxxx xxx xxxx xxxxxxxxxx xxxx xxx xxxxxxx xx xxxx xxxxxxx. Ix xxx xxx’x xxx xx SQL xxxxxxxxx xxx xxxxx xxx’xx xxxxxxx, xxxxx xxx xxxx xx SQL xxxxxxxxxx xx xxx xxxxxxxxxxxx xx Pxxx II xx xxxxxxxxx xxx xxxxxxx xx xxxxx xx’x xxxxxxx. - CREATE USER, DROP USER, FLUSH, GRANT, RENAME USER, RESET, REVOKE, SHOW GRANTS, SET PASSWORD, SHOW PRIVILEGES. - Txx xxxxxxxxx xxxxxxx xxxxxxxxx xxx xxxxxxx xx xxxx xxxxxxx, xx xxxx. Txxx xxx xxxxxxxxx xx xxxxxx xxxxx xx xxx xxxxxxx, xxxxx xxx SQL xxxxxxxxxx: - AES_DECRYPT( ), AES_ENCRYPT( ), CURRENT_USER( ), DECODE( ), DES_DECRYPT( ), DES_ENCRYPT( ), ENCODE( ), ENCRYPT( ), MDd( ), OLD_PASSWORD( ), PASSWORD( ), SHA( ), SHAd( ), SESSION_USER( ), SYSTEM_USER( ), USER( ). - - - SQL Sxxxxxxxxx xx Axxxxxxxxxxx Oxxxx - Txx xxxxxxxxx xx x xxxx xx MxSQL xxxxxxxxxx xxx xxxxxxx xx xxxxxxxxxxxx xxxxx xxxxxxx xx xxxxxxxx xxx xxxx xxxxxxx xxxxxxxxxxx. Fxx xx xxxxxxxxxxx xx xxx xxxx xxxx xxxxxxxx xxxxxx xxx xxxxxxxxx xxx SQL xxxxxxxxxx, xx xxxx xx xxxxxxxxxxx xxxxxxx xx xxxxxxxx, xxxxxx xxx xxx xxxxxxxxxxxx xx Pxxx II. Txx xxxxxxxx xx xxxx xxxxxxxxxx xxxxxxx xxxx xx xxxxx xx xxxx xxx xxxxx xx xxxxx xx xxx xxxxxxxxxxxx xxxxx x MxSQL xxxxxxxx. - - - CREATE USER - - - CREATE USER - - - - CREATE USER 'xxxx'[@'xxxx'] -[IDENTIFIED BY [PASSWORD] 'xxxxxxxx'] [, ...] - - - - <para>Txxx xxxxxxxxx xxxxxxx xxx xxxx xxxxxxxx xx xxx MxSQL xxxxxx. Txx xxxx xxxx xx xxxxx xxxxxx xxxxxx, xxxxxxxx xx xxx xx-xxxx (<literal moreinfo="none">@</literal>), xxx x xxxx IP xxxxxxx xx xxxx xxxx xxxxxx xxxxxx. Fxx xxxxxxxxx MxSQL xxxxxxx, xxx xxx xxxx xx <replaceable>xxxxxxxxx</replaceable>. Tx xxxxxx MxSQL xx xxx xxxxxxxxx xx xxxxxxxxxx, xxx xxx xxxxxxx-xxxx xxxxxxxx xx xxx xxxx (<literal moreinfo="none">%</literal>); xx xxxx xxxx, x xxxx xxxx xxx xxxxxxxxx xxxx xxxx xxx xxxxxxx xxxx xxx xxxxxx. Ix xx xxxx xxx <literal moreinfo="none">@</literal> xx xxxxx, xxx xxxxxxx-xxxx xx xxxxxxx.</para> - <para>Txx xxxx xxxxxxxx xx xxxxx xx xxxxx xxxx xxxxxx xxxxxx, xxxxxxxx xx xxx <literal moreinfo="none">IDENTIFIED BY</literal> xxxxxx. Yxx xxx’x xxxx xx xxx xxx <literal moreinfo="none">PASSWORD( )</literal> xxxxxxxx xx xxxxxxx xxx xxxxxxxx. Txxx xx xxxx xxxxxxxxxxxxx. Hxxxxxx, xx xxx xxxx xx xxxxxxx xxx xxxx xxxxx xx xxx xxxxxxxx, xxxxxxx xxx xxxxxxxx xxxx <literal moreinfo="none">IDENTIFIED BY PASSWORD</literal>. Ix xxx xxxxxxxx xxxxxx xx xxx xxxxx, x xxxxx xxxxxxxx xx xxxxxxx xxx xxxx xx xxxxxxxx. Txxx xx x xxxxxxxxx xxxxxxxx xxxxxxx xxx xxxxxx xxxxx xx xxxx. Ix xxx xx xxxx xx xxxxxxx, xxx xxx <literal moreinfo="none">SET PASSWORD</literal> xxxxxxxxx xx xxx xxx xxxxxxxx.</para> - <para> Mxxxxxxx xxxx xxxxxxxx xxx xx xxxxxxxxx xx x xxxxx-xxxxxxxxx xxxx.</para> - <para>Txx <literal moreinfo="none">CREATE USER</literal> xxxxxxxxx xxx xxxxxxxxxx xx xxxxxxx d.d.d xx MxSQL. Fxx xxxxxxxx xxxxxxxx, xxx xxx <literal moreinfo="none">GRANT</literal> xxxxxxxxx. Txxx xxx xxxxxxxxx xxxxxxxx xxxxxxxxx xx xxx <literal moreinfo="none">GRANT</literal> xxxxxxxxx, xxxxxx xxxx xxx xxxxxx xxxxxxx xxxx xxxxxxxxxx xxxx xxx <literal moreinfo="none">CREATE USER</literal> xxxxxxxxx. Ax x xxxxxx, xxx xxxxxxx xx xx xxxxxx x xxxx xxxx xxx <literal moreinfo="none">CREATE USER</literal> xxxxxxxxx xxx xxxx xx xxxxx xxx xxxx xxxxxxxxxx xxxx xxx <literal moreinfo="none">GRANT</literal> xxxxxxxxx. Txxx xxx xxxx xxxxxxx xx x xxxx xxxxxxx xxxxxxx, xxxxxxxxxx xx x xxxxxxxx xx MxSQL. Hxxxxxx, xxx xxx xxxxx xxx xxxx xxx <literal moreinfo="none">GRANT</literal> xxxxxxxxx xx xxxxxx xxx xxx xxxxxxxxxx xxx x xxx xxxx.</para> - <para>Txxx xxxxxxxxx xxxxxxxx <literal moreinfo="none">CREATE USER</literal> xxxxxxxxx xx <literal moreinfo="none">INSERT</literal> xxxxxxxxx xxx xxx <literal moreinfo="none">xxxxx</literal> xxxxxxxx, xxxxx xxxxxxxx xxxx xxxxxxx xxxxxxxxxxx xxx xxxxxxxxxx. Tx xxxxxx x xxxx, xxx xxx <literal moreinfo="none">DROP USER</literal> xxxxxxxxx xxx xxxxxxxx xxxx xxx <literal moreinfo="none">REVOKE</literal> xxxxxxxxx.</para> - <programlisting format="linespecific">CREATE USER 'xxxxx'@'xxxxxxxx.xxx' -IDENTIFIED BY 'xxx_xxxxxxxx', -'xxxxx'@'xxxxxxxxx' -IDENTIFIED BY 'xxx_xxxxxxxx';</programlisting> - <para>Ix xxxx xxxxxxx, xxx xxxx xxxxxxxx xxx xxxxxxx xxxxx xxxx xxxxx xxxxxxxxx, xxx xxxx xxx xxx xxx xxxx xxxxxx. Txx xxxxxxxxxx xx xxxx xxx xxxxxx xxx xxxx xx xxx xxxx xxx xxxxxx xxxxxxx xxx xxxxxxxx xxx xx xxx xxx <literal moreinfo="none">xxxxx</literal> xxxxxx xx xxxx xxxxx xxxxxx xx xxx xxxxxx, xxx xxxxxxxxx. Txx xxxxx xxxxxxx xxxxxx xxx xxxx xx xxxxxxx xxxx x xxxx xxxxx <emphasis>xxxxxxxx.xxx</emphasis> xxxxx x xxxxxx xxxx xxxx xxxx. Nx xxxxx xxxx xxxx xx xxxxxxx xxx xxxx xxxx.</para> - </refsect1> - </refentry> - <refentry id="ch04-77027"> - <refmeta> - <refentrytitle>DROP USER</refentrytitle> - </refmeta> - <refnamediv> - <refname>DROP USER</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">DROP USER '<replaceable>xxxx</replaceable>'@'<replaceable>xxxx</replaceable>'</synopsis> - </refsynopsisdiv> - <refsect1 id="ch04-02-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-4-ITERM-2504" significance="normal"><primary>xxxxxxxxxx</primary><secondary>xxxxxxxx xxx xxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-4-ITERM-2505" significance="normal"><primary>DROP USER xxxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-4-ITERM-2506" significance="normal"><primary>REVOKE xxxxxxxxx</primary></indexterm> -Uxx xxxx xxxxxxxxx xx xxxxxx x xxxx xxxxxxx xxx xxx MxSQL xxxxxx. Ax xx xxxxxxx d.d.d xx MxSQL, xxxx xxxxxxxxx xxxx xxxxxx xxx xxxx xxxxxxx xxx xxx xxxxxxxxxx xxxx xxx xxxxx xxxxxx. Txx xxxx xxxx xx xxxxx xxxxxx xxxxxx, xxxxxxxx xx xxx xx-xxxx (<literal moreinfo="none">@</literal>) xxx xxx xxxx IP xxxxxxx xx xxxx xxxx xxxxxx xxxxxx. Txxx xxxxxxxxx xxxxxxxx <literal moreinfo="none">CREATE USER</literal> xxxxxxxxx xx <literal moreinfo="none">DELETE</literal> xxxxxxxxx xxx xxx <literal moreinfo="none">xxxxx</literal> xxxxxxxx, xxxxx xxxxxxxx xxxx xxxxxxx xxxxxxxxxxx xxx xxxxxxxxxx. Dxxxxxxx x xxxx xxxxxxx xxxx xxx xxxxxx xxxxxxx xxxxxxxx xxx xxx xxxx xxxxxxx. Ix xxxx xxxx xxxxxx xxxx xxx xxxxxxxx xxxxxx xx xxx xxxx xxxxxxxxx. Uxx xxx <literal moreinfo="none">KILL</literal> xxxxxxxxx (xxxxxxxxx xx <xref linkend="mysqlian-CHP-7"/>) xx xxxxxxxxx xx xxxx xxxxxx xxxxxxx xxx x xxxx xxxx xxx xxxx xxxxxxx. -</para> - <para>Sxxx xxxxx xxx xxxx xxxx xxxx xxx xxxx xxxxxxx (x.x., xxxx xxx xxxx xxxxxxxxxxxx). Yxx xxxxxx xxxxx xxx xxxxxx’x <literal moreinfo="none">xxxxx.xxxx</literal> xxxxx xx xx xxxx:</para> - <programlisting format="linespecific">SELECT Uxxx,Hxxx -FROM xxxxx.xxxx -WHERE Uxxx LIKE 'xxxxx'; - -+-------+--------------+ -| Uxxx | Hxxx | -+-------+--------------+ -| xxxxx | xxxxxxxxx | -| xxxxx | xxxxxxxx.xxx | -+-------+--------------+ - -DROP USER 'xxxxx'@'xxxxxxxxx', -'xxxxx'@'xxxxxxxx.xxx';</programlisting> - <para>Pxxxx xx xxxxxxx d.d.d xx MxSQL, xxx <literal moreinfo="none">DROP USER</literal> xxxxxxxxx xxx’x xxxxxx x xxxx xxxx xxx xxx xxxxxxxxxx xxx xx <replaceable>'Y'</replaceable>. Tx xx xxxxxxxxx xxx xxxx xxxxxxx’x xxxxxxxxxx, xxxxx xxx <literal moreinfo="none">REVOKE</literal> xxxxxxxxx xxxxxx xxxxx <literal moreinfo="none">DROP USER</literal>:</para> - <programlisting format="linespecific">REVOKE ALL ON *.* FROM 'xxxxx'@'xxxxxxxxx'; - -DROP USER 'xxxxx'@'xxxxxxxxx';</programlisting> - <para><indexterm id="mysqlian-CHP-4-ITERM-2507" significance="normal"><primary>xxxxxxxx (*)</primary></indexterm><indexterm id="mysqlian-CHP-4-ITERM-2508" significance="normal"><primary>ALL xxxx</primary><secondary>REVOKE xxxxxxxxx</secondary></indexterm> -Txx <literal moreinfo="none">ALL</literal> xxxxxx xx xxxx xx xxxxxx xxxxxxxxxx xx xxx xxxxxxxxxx. Txx <literal moreinfo="none">*.*</literal> xxxxxx xxx xxxxxx xx xxx xxxxxxxxx. Pxxxx xx xxxxxxx d.d.d xx MxSQL, xxx xxxxx xxxx xx xxxxx xxx xxxxxxxxx xxxxxxx xx x <literal moreinfo="none">DROP USER</literal> xxxxxxxxx:</para> - <programlisting format="linespecific">DELETE FROM xxxxx.xxxx -WHERE Uxxx='xxxxx' AND Hxxx='xxxxxxxxx'; - -FLUSH PRIVILEGES;</programlisting> - <para><indexterm id="mysqlian-CHP-4-ITERM-2509" significance="normal"><primary>DELETE xxxxxxxxx</primary><secondary>FLUSH PRIVILEGES xxxxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-4-ITERM-2510" significance="normal"><primary>FLUSH PRIVILEGES xxxxxxxxx</primary><secondary>DROP USER xxxxxxxxx xxx</secondary></indexterm> -Nxxxxx xxxx xxx <literal moreinfo="none">FLUSH PRIVILEGES</literal> xxxxxxxxx xx xxxxxxxxx xx xxxx xxx xxxxxxxxx <literal moreinfo="none">DELETE</literal> xxxxxxxxx xxxxx xxxxxx xxxxxxxxxxx. Ix’x xxx xxxxxxxxx xxxxx xxx <literal moreinfo="none">DROP USER</literal> xxxxxxxxx, xxxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch04-77028"> - <refmeta> - <refentrytitle>FLUSH</refentrytitle> - </refmeta> - <refnamediv> - <refname>FLUSH</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">FLUSH [LOCAL|NO_WRITE_TO_BINLOG] <replaceable>xxxxxx</replaceable>[, . . . ]</synopsis> - </refsynopsisdiv> - <refsect1 id="ch04-03-fm2xml"> - <title/> - <para>Oxxxxxx:</para> - <programlisting format="linespecific">DES_KEY_FILE, HOSTS, LOGS, MASTER, PRIVILEGES, QUERY_CACHE, -STATUS, TABLE, TABLES, TABLES WITHOUT READ LOCK, USER_RESOURCES</programlisting> - <para><indexterm id="mysqlian-CHP-4-ITERM-2519" significance="normal"><primary>LOCAL xxxx</primary><secondary>FLUSH xxxxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-4-ITERM-2520" significance="normal"><primary>NO_WRITE_TO_BINLOG xxxx</primary><secondary>FLUSH xxxxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-4-ITERM-2521" significance="normal"><primary>xxxxxxxxxx</primary><secondary>FLUSH xxxxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-4-ITERM-2522" significance="normal"><primary>RELOAD xxxxxxxxx (GRANT/REVOKE)</primary><secondary>FLUSH xxxxxxxxx xxx</secondary></indexterm><indexterm id="mysqlian-CHP-4-ITERM-2523" significance="normal"><primary>FLUSH xxxxxxxxx</primary></indexterm> -Uxx xxxx xxxxxxxxx xx xxxxx xxx xxxxxx xxxxxxxxx xxxxxx xx MxSQL. Ix xxxxxxxx <literal moreinfo="none">RELOAD</literal> xxxxxxxxxx. Tx xxxxxxx xxxx xxxxxxxxx xxxx xxxxxxx xx xxx xxxxxx xxx xxxx, xxx <literal moreinfo="none">NO_WRITE_TO_BINLOG</literal> xxxx xx xxx <literal moreinfo="none">LOCAL</literal> xxxxx xxx xx xxxxx. A xxxxxxxxxx xxxxx xx xxxxx xxx xx xxxxx xx xx xxxxxx. Mxxxxxxx xxxxxxx (xxx Txxxx d.d xxxxx) xxx xx xxxxx xx x xxxxx-xxxxxxxxx xxxx.</para> - <para>Ax xx xxxxxx d.d xx MxSQL, <literal moreinfo="none">FLUSH</literal> xxxxxx xx xxxx xx xxxxxx xxxxxxxxx xxx xxxxxxxx, xxx xxx xx xxxx xx xxxxxx xxxxxxxxxx. Ax xx xxxxxxxxxxx xx xxx <literal moreinfo="none">FLUSH</literal> xxxxxxxxx, xxx xxx xxx xxx <literal moreinfo="none">xxxxxxxxxx</literal> xxxxxxx (xxx <xref linkend="mysqlian-CHP-17"/>).</para> - <table id="mysqlian-CHP-04-TABLE-1"> - <title>Oxxxxxx xxx FLUSH xxxxxxxxx - - - - - - - Oxxxxx - - - Exxxxxxxxxx - - - - - - - - DES_KEY_FILE - - - - Rxxxxxx xxx DES xxxxxxxxxx xxxx, xxxxx xx xxxxx xxxx xxx --xxx-xxx-xxxx xxxxxx xx xxxxxxx xx xx xxx xxxxxxx xxxx. - - - - - - HOSTS - - - - Cxxxxx xxx xxxxx xxxxx, xxxxx xx xxxx xx xxxxxxxx xxxx/IP xxxxxxx xxxxxxx. Txx xxxxx xxxxx xxx xxxx xx xx xxxxxxx xx x xxxx xxx xxxx xxxxxxx xxxx xxxxxxxxx xxx xxxxxx. - - - - - - LOGS - - - - Uxxx xx xxxxx xxx xx xxx xxx xxxxx xxx xxxxxx xxxx. Ix xxx xxxxxx xxx xxxxxx xxxxxxx xxxxxxx, xx xxxx xxxxxx xxx xxxxxx xxx xxxx xx xxx xxxx xx xxxxxxx xxxxxxxx. Ix xxx xxxxx xxx xxx xxxxxxx, xx xxxx xxxxxx xxx xxxxx xxx xx xxx xxxx xxxx, xxx xxxx xxx xxxxxx -xxx, xxx xxxxx x xxx xxxxx xxx. Txxx xxxxxx xx xxx xxxxxx. - - - - - - MASTER - - - - Txxx xxxxxx xx xxx xxxxxx xxx xxx xxxx xxxxxxxxxx. Uxx xxx RESET MASTER xxxxxxxxx xxxxxxx. - - - - - - PRIVILEGES - - - - Rxxxxxx xxx xxxxx xxxxxx xxx xxxx xxxxxxxxxx. Txxx xx xxxxxxxxx xx xxx xxxx xxxxx xx xxx xxxxx xxxxxxxx xxx xxxx xxxxxxxx xxxxxxxx, xxxxxxx xxx GRANT xxxxxxxxx. - - - - - - QUERY CACHE - - - - Ixxxxxxxx xxx xxxxxx xx xxxxxxxxxx xxx xxxxx xxxxx xx xxxxxxx xxxxxxxxxxx. Ix xxxxx’x xxxxxx xxxxxxx xxxx xxxxx, xxxxxx. Uxx xxx RESET QUERY CACHE xxxxxxxxx xx xxxxxx xxx xxxxxxx. - - - - - - SLAVE - - - - Txxx xxxxxx xx xxx xxxxxx xxx xxx xxxx xxxxxxxxxx. Uxx xxx RESET SLAVE xxxxxxxxx xxxxxxx. - - - - - - STATUS - - - - Rxxxxx xxx xxxxxxx xxxxxx xxx xxxxxxxx xxx xxx xxxxxx xx d. Txx xxxxxxx xxxxxx’x xxxxxxx xxxxxx xxxxxxxxx xxx xxx xx xxxxx xx xxx xxxxxx xxxxxxxxx. Txx Mxx_xxxx_xxxxxxxxxx xxxxxxxx xx xxx xx xxx xxxxxx xx xxxxxxxx xxxx xx xxx xxxx. - - - - - - TABLE[ xxxxx, ...] - - - - Fxxxxxxx xx xxx xx xxxx xxxxx xxxxx, xxxxxx xxx xxxxx xxxxxx xx xx xxxxxx. Txxx xxxx xxxxxxxxx xxx xxxxxx xxxxxxx xx xxx xxxxx xxxxxx. Sxxxxxxxx xxxxxxx xxx xxxxxx, xxx xxxxxx xxx xxx xxxx xxxxxx xx TABLES. - - - - - - TABLES - - - - Cxxxxx xxx xxxxxx xx xx xxxxxx, xxx xxxxxxx xx xx xxxxxxxxxx, xxx xxx xxxxx xxxxx xx xx xxxxxxx. Txxx xx xxx xxxx xx TABLE xxxx xx xxxxx xxxx. - - - - - - TABLES WITH READ LOCK - - - - Cxxxxx xxx xxxxxx xxx xxxxx xxxx xxxx x xxxxxx xxxx xxxx. Txxx xxxx xxxxx xxxxx xx xxxx xxx xxxx, xxx xxx xx xxxxxx xx xx xxxxxx xxxxxxx. Txx xxxx xxxx xxxxxx xx xxxxx xxxxx xxx UNLOCK TABLES xxxxxxxxx xx xxxxxxxx. Txxx xxxxxx xx xxx xxxxxx. - - - - - - USER_RESOURCES - - - - Rxxxxx xxx xxxx xxxxxxxx xxxxxx xxxxx xxx xxxxxxxxxx xx xx xxxxxx xxxxx. Txxxx xxx xxx xxxxxx xxx xxx xxxxxxx xxx_xxxxxxxxx, xxx_xxxxxxx, xxx xxx_xxxxxxxxxxx xx xxx xxxx xxxxx xx xxx xxxxx xxxxxxxx. Uxx xxxx FLUSH xxxxxx xxxx xxxxx xxxx xxxx xxxxxxx xxxxxxx xxxx xxxxxx xxxxxx xxxxxx. Ix xxxxx xxxxxxx xxx xxxxxxx, xxx xxx xxxxxxxxxxx xx xx xxxxx_xxx_xxxxxxxxx_xxxxxx. - - - - - - - - - - GRANT - - - GRANT - - - - GRANT xxxxxxxxx[,...] [(xxxxxx[,...])][, ...] -ON [TABLE|FUNCTION|PROCEDURE] {[{xxxxxxxx|*}.{xxxxx|*}] | *} -TO 'xxxx'@'xxxx' [IDENTIFIED BY [PASSWORD] 'xxxxxxxx'][, ...] - -[REQUIRE NONE | -[{SSL|Xddd}] [CIPHER 'xxxxxx' [AND]] -[ISSUER 'xxxxx' [AND]] -[SUBJECT 'xxxxxxx']] - -[WITH [GRANT OPTION | - MAX_QUERIES_PER_HOUR xxxxx | - MAX_UPDATES_PER_HOUR xxxxx | - MAX_CONNECTIONS_PER_HOUR xxxxx | - MAX_USER_CONNECTIONS xxxxx] ...] - - - - <para><indexterm class="startofrange" id="mysqlian-CHP-4-ITERM-2542" significance="normal"><primary>GRANT xxxxxxxxx</primary><secondary>xxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-4-ITERM-2543" significance="normal"><primary>FLUSH PRIVILEGES xxxxxxxxx</primary><secondary>xxxxxxx xxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-4-ITERM-2544" significance="normal"><primary>DROP xxxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-4-ITERM-2545" significance="normal"><primary>UPDATE xxxxxxxxx</primary><secondary>xxxxxxx xxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-4-ITERM-2546" significance="normal"><primary>INSERT xxxxxxxxx</primary><secondary>xxxxxxx xxxxxx</secondary></indexterm><indexterm class="startofrange" id="mysqlian-CHP-4-ITERM-2547" significance="normal"><primary>xxxxxxxxxx</primary><secondary>xxxxxxxx</secondary></indexterm> -Txxx xxxxxxxxx xxx xx xxxx xx xxxxxx xxx MxSQL xxxxx, xxx xxx xxxxxxx xxx xx xxx xxxxxxxx xxxx xxxxxxxxxx. Pxxxxxxxxx xxx xx xxxxxx (xxxxx xx xxx xxxxxxxxx xx xxx xxxxxx), xxxxxxxx-xxxxxxxx, xxxxx-xxxxxxxx, xx xxxxxx-xxxxxxxx. Uxxxx xxx xxx xxxx xx xxxxxxx xx xxxxxxxxx xxx xxxxxxxxxx. Axxxxxxxxxxx, xxxxx xxx xxxxxxx xx xxxxxx xx xxxxxxxxxxx xx x xxxxxxx xx xxxxxxxxx xxx xxxx.</para> - <para>Txx xxxxxxxxxx xx xxxxx xx x xxxx xxx xxxxxx xxxxxxxxxxx xxxxx xxx <literal moreinfo="none">GRANT</literal> xxxxxxx xx x xxxxx-xxxxxxxxx xxxx. Tx xxxxxxxx x xxxx xx xxxxxxxx xxxxxxx xx x xxxxx, xxxx xxxxx xxxxxxx xx x xxxxx-xxxxxxxxx xxxx xxxxxx xxxxxxxxxxx. Txxx xx xxxx xxxxxxxx xx xxx <literal moreinfo="none">ON</literal> xxxxxx xx xxxxx xxx xxxxxxxxxx xxxxxxx xxx xx xxxxxxx xx x xxxxxxxx, xxxxx, xxxxxxxx, xx x xxxxxxxxx. Tx xxxxx xxx xxxxxxxxxx xx x xxxxxxxx, xxx xxx <literal moreinfo="none">FUNCTION</literal> xxxxxxx; xx x xxxxxxxxx, xxx xxx <literal moreinfo="none">PROCEDURE</literal> xxxxxxx.</para> - <para>Fxx xxxxxx, xxx xxxxxxx <literal moreinfo="none">TABLE</literal> xx xxxxxxxx xxx xxx xxxxxxx. Yxx xxx xxxx xxxxxxx xxx xxxxxxxx xx xxxxx xxx xxxxxxxxxx xxxxxx xx xxxxxx, xxxxxxxx xx x xxxxxx (<literal moreinfo="none">.</literal>) xxx xxx xxxx xx xxx xxxxx, xxxxxxxx, xx xxxxxxxxx xx xxxxxx. Yxx xxx xxxx xxx xxx xxxxxxxx xxxxxxxx (<literal moreinfo="none">*</literal>) xx xxxxxxx xxx xxxxxxxxx xx xxx xxxxxx, xxxxxxxxx, xx xxxxxxxxxx xxxxxxx xx xxx xxxxxxxx.</para> - <para>Ix xxx <literal moreinfo="none">TO</literal> xxxxxx, xxxx xxx xxxx xxxx (xx xxxxxx) xxx xxx IP xxxxxxx xx xxxx (xxxx xx xxxxxx) xxx xxxxx xxx xxxx xxxxxxx xxxxxxxxxx xxx xxxxxxxxx, xxxxxxxxx xx xx xx-xxxx (<literal moreinfo="none">@</literal>). Tx xxxxxxx xxx xxxxxxxx xxx xxx xxxx xxxxxxx, xxx xxx <literal moreinfo="none">IDENTIFIED BY</literal> xxxxxx, xxxxxxxx xx xxx xxxx’x xxxxxxxx xx xxxxx xxxx xxx xxxxxxxx xx xxxxxx. Tx xxxxxxx xxx xxxxxxxx xx xxxxxxxxx xxxx xxxx, xxx xxx xxxxxxx <literal moreinfo="none">PASSWORD</literal> xxxx xxxxxx xxx xxxxxxxx xxxxx. Yxx xxx xxx xxx <literal moreinfo="none">WITH</literal> xxxxxx xx xxxxx xxx <literal moreinfo="none">GRANT OPTION</literal> xxxxxxxxx xx x xxxx xx xxxx xxxx xxxx xxx xxxxxxx xxxx xxxxxxxxx. A <literal moreinfo="none">GRANT</literal> xxxxxxxxx xxxx xx <literal moreinfo="none">IDENTIFIED BY</literal> xxxxxx xxx xx xxxx xx xxxxxx x xxxxxxxx xxx xx xxxxxxxx xxxx. -</para> - <para>Fxx xx xxxxxxxxxxx xx xxx xx xxxxxxxx xxxx xxxxxxxx xxxxx xx xxxxx xx xxxxxxxxxxx, xxx xxx xxxx xxxxxxx xx xxxx xxxxxxxxx. Fxx xxxxxxxxxxx xx xxx xx xxxxxxxx xxxx xxxxxxxx xxxxx xx xxx xxxxxx xx xxxxxxxx xxx x xxxxxx xx xxxx xx xxx xxxxxx xx xxxxxxxxxxx xxxxxxxxx, xxx xxx xxxx xxxxxxx xx xxxx xxxxxxxxx. Tx xxx xxx xxxxxxxxxx xxx x xxxxx xxxx, xxx xxx <literal moreinfo="none">SHOW GRANTS</literal> xxxxxxxxx xxxxxxxxx xxxxx xx xxxx xxxxxxx.</para> - <para>A xxxxx xxxxxxx xx xxxxxxxxxx xxx xx xxxxxxx xx x xxxx, xx x xxxxxx xxx xx xxxxxxxxxx xxx xxxx xxxxxxxx xx xxx <literal moreinfo="none">ALL</literal> xxxxxxx. Hxxx xx xx xxxxxxx:</para> - <programlisting format="linespecific">GRANT ALL PRIVILEGES ON *.* -TO 'xxxxxxxxx'@'xxxxxxxxx' -IDENTIFIED BY 'xxxxxxxxxxxxdddd' -WITH GRANT OPTION;</programlisting> - <para><indexterm id="mysqlian-CHP-4-ITERM-2548" significance="normal"><primary>ALL xxxx</primary><secondary>GRANT xxxxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-4-ITERM-2549" significance="normal"><primary>WITH GRANT OPTION xxxxxx (GRANT)</primary></indexterm> -Ix xxxx xxxxxxx, xxx xxxx <emphasis>xxxxxxxxx</emphasis> xx xxxxxxx xxx xxxxxxx xxx xxxxx xxxxxxxxxx xxxxxxx xx xxx <literal moreinfo="none">ALL</literal> xxxxxxx. Txxx xxxx xxx xxxxxxx xxx <literal moreinfo="none">GRANT</literal> xxxxxxxxx, xxx xxxxxxx xx xxx xxx <literal moreinfo="none">GRANT</literal> xxxxxxxxx. Tx xx xxxx, xxx <literal moreinfo="none">WITH GRANT OPTION</literal> xxxxxx xx xxxxx, xx xxxxx xxxx, xx xxxxxxxxxx xxxx xxxx xxxxxxxxx xx xxx xxxx. Ix’x xxx x xxxx xxxx xx xxxx xxxxx xxxx xxxxxxxxx xxxxxx xxxx xxx MxSQL xxxxxx xxxxxxxxxxxxxx. <xref linkend="mysqlian-CHP-4-TABLE-2"/> xxxxx xxx xxxxxxxxx xxxx xxxxxxxxx. -</para> - <para><indexterm id="mysqlian-CHP-4-ITERM-2603" significance="normal"><primary>xxxxxxx</primary><secondary>xxxxxxxxxxx xxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-4-ITERM-2604" significance="normal"><primary>xxxxxx</primary><secondary>xxxxxxxxxxx xxxxxx</secondary></indexterm> -Ax xxxxxxxxx xxxxxx, x xxxx’x xxxxxxxxxx xxx xx xxxxxxx xx xxxxxxxx SQL xxxxxxxxxx xxx xxxxxxxx xxxxxxxxx. A <literal moreinfo="none">GRANT</literal> xxxxxxxxx xxx xxxx xxxxxxxx x xxxx xxxx xx xxxxxxx xxxxxx xxx xxxxxxx. Hxxx xx xx xxxxxxx xxxx xxxxxx xxx xxxx xxxxxx xxxxxxx: -</para> - <programlisting format="linespecific">GRANT SELECT ON xxxxxxxxxxxx.* -TO 'xxxxx'@'xxxxxxxxx' IDENTIFIED BY 'xxxxxxxxdddd'; - -GRANT SELECT,INSERT,UPDATE ON xxxxxxxxxxxx.xxxxxxx -TO 'xxxxx'@'xxxxxxxxx' IDENTIFIED BY 'xxxxxxxxdddd';</programlisting> - <para><indexterm id="mysqlian-CHP-4-ITERM-2605" significance="normal"><primary>SELECT xxxxxxxxx (GRANT/REVOKE)</primary><secondary>xxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-4-ITERM-2606" significance="normal"><primary>USAGE xxxxxxxxx (GRANT/REVOKE)</primary></indexterm> -Axxxxxxx xxx xxxx <emphasis>xxxxx</emphasis> xxxx xxx xxxxxxx xxxxx, xxx xxxxx xxxxxxxxx xxxx xxxxxxx xxx xxxx xxx xxxxx xxx <literal moreinfo="none">SELECT</literal> xxxxxxxxxx xxxx xxx xxx <emphasis>xxxxxxxxxxxx</emphasis> xxxxxxxx xxx xxx xx xxx xxxxxx. Txxx xxxx xxxxx xxx xx xxxx xxxx xxx xxxxxxx xxxxxx xxx xxx xxxx xxx xxxx. Txx xxxxxx SQL xxxxxxxxx xxxxxx <emphasis>xxxxx</emphasis> xxx xxxxx xx xxx xxx xx xxxxxx xxxx xx xxx <emphasis>xxxxxxx</emphasis> xxxxx xx xxx <emphasis>xxxxxxxxxxxx</emphasis> xxxxxxxx. Txxx xxxx xxxxx xxx xx xxxxx xxxx xxxxxxxx xxx xx xxxx xxxxxxx xx xxxx. Txx xxxxx xxxxxxxxx xxxxxx xx xxxxx xx xx xxxx xx xxx <emphasis>xx</emphasis> xxxxx xx xxx <emphasis>xxxxx</emphasis> xxxxxxxx. Txx xxxxxx xxx xxxxxxx xxx <emphasis>xxxxxx_xxxx</emphasis> xxxxx. Ax xxxxx xx xxxx xxxx xx xxx <emphasis>xxxx</emphasis> xxxxx xxxxxxx xxx xxxx <emphasis>xxxxx</emphasis>, xxx xx xxx xx xxxxxx xxxxxxxxxx. Txxx xx xxx xxxxxxxxxx xx xxxxxxxx xxxx xxx <literal moreinfo="none">USAGE</literal> xxxxxxxxx. -</para> - </refsect1> - <refsect1 id="ch04-05-fm2xml"> - <title>GRANT - Txxx xx Cxxxxxxxxx Rxxxxxxxxxxx - GRANT xxxxxxxxx[,...] [(xxxxxx[,...])][, . . . ] -ON [TABLE|FUNCTION|PROCEDURE] {[{xxxxxxxx|*}.{xxxxx|*}] | *} -TO 'xxxx'@'xxxx' [IDENTIFIED BY [PASSWORD] 'xxxxxxxx'][, ...] - -[REQUIRE NONE | -[{SSL|Xddd}] -[CIPHER 'xxxxxx' [AND]] -[ISSUER 'xxxxx' [AND]] -[SUBJECT 'xxxxxxx']] - -[xxxx xxx xxxxxx xx xxxxxxxxxx xxxxxx] ...] - A xxxx xxx xxxx xx xxxxxxxxxx xx xxxxxxx xxxxx xx xxxxxxxxxxx xxxx xxx REQUIRE xxxxxx. Txxxx xxx xxxxxxx xxxxxxx xxxx xxx xx xxxxx xxxxxxxx xxxx xxx xxxxxxx AND. Exxx xxxxxx xxx xx xxxx xxxx xxxx xx x xxxxxxxxx. REQUIRE NONE xx xxx xxxxxxx xxx xxxxxxxxx xxxx xx xxxx xxxxxxxxxxxx xxx xxxxxxxx. Exxxxxxxx xxx xxxxxxxxxxx xxxxxxxxxxx xxxx xxxxxxx xxx xxxxxxxxx xxxx xxx xxxx xxxx xxx xxxxxxxx xxxxxxxxxxxxx. - Txx REQUIRE SSL xxxxxx xxxxxxxxx xxx xxxx xxxxxxx xx xxxx SSL xxxxxxxxx xxxxxxxxxxx. Txx xxxxx xxxxxx xx xxx xxxx xxxxxxx xxxxx xxxxx xxx xxxxxx xxxx xxx --xxx-xx xxxxxx, xxx xxxx xxx --xxx-xxx xxx --xxx-xxxx xx xxxxxxxxx. - GRANT ALL PRIVILEGES ON xxxxxxxxxxxx.* TO 'xxxxx'@'xxxxxxxxx' -IDENTIFIED BY 'xxx_xxxxxxxx' -REQUIRE SSL; - Uxx xxx REQUIRE Xddd xxxxxx xx xxxxxxx xxx xxxx xxxxxxx xx xxxx x xxxxx CA xxxxxxxxxxx. Txxx xxxx xxx xxxxxxx xxx xxxxxxxx xxxxxxxxxxx, xxxxxx. Txx xxxxx xxxxxx xxxxx xxxx xx xx xxxxxxx xxxx xxx --xxx-xx, --xxx-xxx, xxx --xxx-xxxx xxxxxxx. Tx xxxxxxxx xxxxxxxx xx xxxxx xxxxxxx, xxx xxxx xxx xxx xxxx xx x xxxxxxx xxxx xx xxx xxxx xxxxxxxxx xx xxx xxxxxx (x.x., ~/.xx.xxx). Txx xxxxxxxxx xx x xxxxxx xx xxxx xxxx xxxxxxx xxxx xxxxx xxxxxxx xx xxxxxxx xx xxx xxxx xxxxxxx xxxxxxxxxxxx: - [xxxxxx] -xxx-xx=/xxxx/xxxxx/xxxxxx.xxx -xxx-xxx=/xxxx/xxxxx/xxxxx-xxx.xxx -xxx-xxxx=/xxxx/xxxxx/xxxxx-xxxx.xxx - Uxx xxx REQUIRE CIPHER xxxxxx xx xxxxxxx xxxx xxx xxxx xxxxxxx xxx x xxxxx xxxxxx xxxxxx. - GRANT ALL PRIVILEGES ON xxxxxxxxxxxx.* TO 'xxxxx'@'xxxxxxxxx' -IDENTIFIED BY 'xxx_xxxxxxxx' -REQUIRE CIPHER 'EDH-RSA-DES-CBCd-SHA'; - REQUIRE ISSUER xx xxxx xx xxxxxxx xxx xxxx xx xxxxxx x xxxxx Xddd xxxxxxxxxxx xxxxxx xx xxx xxxxx CA. Axxxxxxx xxx xxxxxx xxxxx xxx xx xxxxxx xxx xx xxxxxxx, xx xxxx xx xxxxxxx xx xxx xxxxxx xxxxxxx xx xxxxxxxx xxxx xxxxx. - GRANT ALL PRIVILEGES ON xxxxxxxxxxxx.* TO 'xxxxx'@'xxxxxxxxx' -IDENTIFIED BY 'xxx_xxxxxxxx' -REQUIRE ISSUER '/C=US/ST=Lxxxxxxxx/L=Nxx+ddOxxxxxx/O=WxxxRxxxxxxxxx/CN=xxxxxx.xxxxxxxxxxxx.xxx/xxxxxAxxxxxx=xxxxx@xxxxxxxxxxxx.xxx'; - Txx REQUIRE SUBJECT xxxxxx xxxxxxxx xxxx xxx Xddd xxxxxxxxxxx xxxx xx xxx xxxx xxxxxxx xxxx xxx xxxxx xxxxxxx. - GRANT ALL PRIVILEGES ON xxxxxxxxxxxx.* TO 'xxxxx'@'xxxxxxxxx' -IDENTIFIED BY 'xxx_xxxxxxxx' -REQUIRE SUBJECT '/C=US/ST=Lxxxxxxxx/L=Nxx+ddOxxxxxx/O=WxxxRxxxxxxxxx/CN=Rxxxx Oxxxxxx/xxxxxAxxxxxx=xxxxx@xxxxxxxxxxxx.xxx'; - - - GRANT - Txxx xxx Nxxxxx xx Cxxxxxxxxx Lxxxxx - GRANT xxxxxxxxx[,...] [(xxxxxx[,...])][, . . . ] -ON [TABLE|FUNCTION|PROCEDURE] {[{xxxxxxxx|*}.{xxxxx|*}] | *} -TO 'xxxx'@'xxxx' [IDENTIFIED BY [PASSWORD] 'xxxxxxxx'][, ...] - -[xxxx xx xxxxxxxxxx xxxxxxxxxxxx] - -[WITH [MAX_QUERIES_PER_HOUR xxxxx | - MAX_UPDATES_PER_HOUR xxxxx | - MAX_CONNECTIONS_PER_HOUR xxxxx | - MAX_USER_CONNECTIONS xxxxx] ...] - MAX_CONNECTIONS_PER_HOUR xxxx (GRANT)MAX_UPDATES_PER_HOUR xxxx (GRANT)MAX_QUERIES_PER_HOUR xxxx (GRANT)WITH xxxxxx (GRANT)GRANT OPTION xxxxxxxxx (GRANT/REVOKE) -Yxx xxx xxx xxx WITH xxxxxx xxxxx xxxx xxx MAX_QUERIES_PER_HOUR xxxxxx xx xxxxxxx xxx xxxxxxx xxxxxx xx xxxxxxx xxxx x xxxx xxxxxxx xxx xxxxxxx xxx xxxx. -Txx MAX_UPDATES_PER_HOUR xxxxxx xx xxxx xx xxxx xxx xxxxxxx xxxxxx xx UPDATE xxxxxxxxxx xxxx xxx xx xxxxxx xxx xxxx xx xxx xxxx xxxxxxx. Txx xxxxxxx xxxxxx xx xxxxxxxxxxx xx x xxxx xxxxxxx xx xxx xxxxxx xxx xxxx xxx xx xxx xxxx xxx MAX_CONNECTIONS_PER_HOUR xxxxxx. Txx xxxxxxx xxxxxx xxx xxxxx xxxxx xxxxxxx xxx xxx d. Txxx xxxxx xxxxxxxxx xxxx xxxxx xx xx xxxxx xxxxxxxxxxxx xxx xxxxx xxxxxxxxx. Txx MAX_USER_CONNECTIONS xxxxxx xx xxxx xx xxx xxx xxxxxxx xxxxxx xx xxxxxxxxxxxx xxxxxxxxxxx xxx xxxxx xxxx xxxxxxx xxx xxxx. Ix xxxx xxxxx xx xxx xxx xx xx xxx xx d, xxx xxxxx xx xxx xxxxxx xxxxxxxx xxx_xxxx_xxxxxxxxxxx xx xxxx xxxxxxx. -Hxxx xx xx xxxxxxx xx xxx x xxxx xxxxx xx xxxxxxx xx xxxx x xxx: - GRANT SELECT ON xxxxxxxx.* -TO 'xxxxxxx'@'%' -WITH MAX_QUERIES_PER_HOUR dddd -MAX_CONNECTIONS_PER_HOUR ddd; - Txxx xxxxxxx xx xxxxxxxx xxx xxxxx xxxxxxx xx xxxxx xxxxxxx xxxxxxx xxxxxxx x xxx xxxxxx. Txx xxxxxxxxx xxxxxxx xxx xxxxxxx xxxx xxx xxxxxx xx xx xxxx xxxxxx xxxx xxx xxxxxxxx xxxxxxxx. Txx xxxx xxx xxx xxx xxxx xxxx d,ddd xxxxxxx xx xx xxxx xxx xxx xxxxxxxxx xxxx ddd xxxxxxxxxxx xx xx xxxx. - - - - Tx xxxxxx xx xxxxxxxx xxxx xxxxxxx’x xxxxxxxxx xxxxxxx xxxxxxxx xxxxx xxxxxxxx xxxxxxxxxx, xxx xxx xxx xxx USAGE xxxxxxx. Sxxxxx xxxxx x xxxxxxxxx xxxx: - GRANT USAGE ON xxxxxxxx.* -TO 'xxxxxxx'@'%' -WITH MAX_QUERIES_PER_HOUR dddd -MAX_CONNECTIONS_PER_HOUR ddd; - Ix xxxx xxxxxxx, xxx xxxxxxxx xxxx xxxxxxx xxx xxxx xxxxxxx xx xxxxxxxxx xxxxxxx xxxxxxxx xxx xxxx xxxxxxx’x xxxxxxxxxx. - - Pxxxxxxxxx xx GRANT xxx REVOKE - - - - - - - Pxxxxxxxx - - - Dxxxxxxxxxx - - - - - - - ALL PRIVILEGES xxxxxxxxx (GRANT/REVOKE)REVOKE xxxxxxxxxALL [PRIVILEGES] - - - Gxxxxx xxx xx xxx xxxxx xxxxxxxxxx. Dxxx xxx xxxxxxx GRANT OPTION. - - - - - ALTER xxxxxxxxx (GRANT/REVOKE)ALTER - - - ALTER TABLE xxxxxxxxxxxxxxxxx xxxxxxxxxx xxx Axxxxx xxx xx xxx ALTER TABLE xxxxxxxxx. - - - - - ALTER ROUTINE - - - Axxxxx xxx xxxx xxxxxxx xx xxxxx xx xxxx xxxxxx xxxxxxxx. Txxx xxxxxxxx xxx ALTER FUNCTION xxx ALTER PROCEDURE xxxxxxxxxx, xx xxxx xx xxx DROP FUNCTION xxx DROP PROCEDURE xxxxxxxxxx. - - - - - CREATE xxxxxxxxx (GRANT/REVOKE)CREATE - - - Gxxxxx CREATE TABLE xxxxxxxxx xxxxxxxxxx. - - - - - CREATE ROUTINE - - - Axxxxx xxx xxxx xxxxxxx xx xxxxxx xxxxxx xxxxxxxx. Txxx xxxxxxxx xxx CREATE FUNCTION xxx CREATE PROCEDURE xxxxxxxxxx. Txx xxxx xxx ALTER ROUTINE xxxxxxxxxx xx xxx xxxxxxx xx xxxxxxx. - - - - - CREATE TEMPORARY TABLES xxxxxxxxx (GRANT/REVOKE)CREATE TEMPORARY TABLES - - - CREATE TABLE xxxxxxxxxxxxxxxxx xxxxxxxxxx xxxAxxxxx xxx CREATE TEMPORARY TABLES xxxxxxxxx xx xx xxxx. - - - - - CREATE USER - - - Axxxxx xxx xxxx xxxxxxx xx xxxxxxx xxxxxxx xxxx xxxxxxx xxxxxxxxxx xxxxxxxxxx: CREATE USER, RENAME USER, REVOKE ALL PRIVILEGES, xxx xxx DROP USER xxxxxxxxxx. - - - - - CREATE VIEW xxxxxxxxx (GRANT/REVOKE)CREATE VIEW - - - CREATE VIEW xxxxxxxxxAxxxxx xxx CREATE VIEW xxxxxxxxx. Txxx xxx xxxxx xxxxxxx xx xxxxxxx d.d.d xx MxSQL. - - - - - DELETE xxxxxxxxx (GRANT/REVOKE)DELETE - - - DELETE xxxxxxxxxxxxxxxxx xxxxxxxxxx xxxAxxxxx xxx DELETE xxxxxxxxx xx xx xxxx. - - - - - DROP xxxxxxxxx (GRANT/REVOKE)DROP - - - TRUNCATE xxxxxxxxxDROP TABLE xxxxxxxxx -Axxxxx xxx xxxx xx xxxxxxx DROP TABLE xxx TRUNCATE xxxxxxxxxx. - - - - - EVENT - - - Axxxxx xxx xxxx xxxxxxx xx xxxxxx xxxxxx xxx xxx xxxxx xxxxxxxxx. Ax xx xxxxxxx d.d.dd xx MxSQL, xxxx xxxxxxxxx xxxxxx xxx xxx xx xxx CREATE EVENT, ALTER EVENT, xxx xxx DROP EVENT xxxxxxxxxx. - - - - - EXECUTE xxxxxxxxx (GRANT/REVOKE)EXECUTE - - - Axxxxx xxx xxxxxxxxx xx xxxxxx xxxxxxxxxx. Txxx xx xxxxxxxxx xx xx xxxxxxx d xx MxSQL. - - - - - FILE xxxxxxxxx (GRANT/REVOKE)FILE - - - LOAD DATA INFILE xxxxxxxxxxxxxxxxx xxxxxxxxxx xxxSELECT INTO...OUTFILE xxxxxxxxxAxxxxx xxx xxx xx SELECT . . . INTO OUTFILE xxx LOAD DATA INFILE xxxxxxxxxx xx xxxxxx xxxx xxx xxxxxx xx x xxxx. - - - - - GRANT OPTION - - - Axxxxx xxx xxx xx xxx GRANT xxxxxxxxx xx xxxxx xxxxxxxxxx xx xxxxx. Txxx xxxxxx xx xxxxxxxxx xxxx xxx WITH xxxxxx xx xxx GRANT xxxxxxxxx. - - - - - INDEX xxxxxxxxx (GRANT/REVOKE)INDEX - - - DROP INDEX xxxxxxxxxCREATE INDEX xxxxxxxxxxxxxxxxx xxxxxxxxxx xxx -Axxxxx xxx xxx xx CREATE INDEX xxx DROP INDEX xxxxxxxxxx. - - - - - INSERT xxxxxxxxx (GRANT/REVOKE)INSERT - - - INSERT xxxxxxxxxxxxxxxxx xxxxxxxxxx xxx -Axxxxx xxx xxx xx INSERT xxxxxxxxxx. - - - - - LOCK TABLES xxxxxxxxx (GRANT/REVOKE)LOCK TABLES - - - LOCK TABLES xxxxxxxxxAxxxxx xxx xxx xx LOCK TABLES xxxxxxxxxx xxx xxxxxx xxx xxxxx xxx xxxx xxx SELECT xxxxxxxxxx. - - - - - PROCESS xxxxxxxxx (GRANT/REVOKE)PROCESS - - - SHOW PROCESSLIST xxxxxxxxxAxxxxx xxx xxx xx SHOW FULL PROCESSLIST xxxxxxxxxx. - - - - - REFERENCES xxxxxxxxx (GRANT/REVOKE)REFERENCES - - - Txxx xx xxx xxxx. Ix’x xxx xxxxxx xxxxxxxx. - - - - - RELOAD xxxxxxxxx (GRANT/REVOKE)xxxxxxxxxxxRELOAD - - - FLUSH xxxxxxxxx -Axxxxx xxx xxx xx FLUSH xxx RESET xxxxxxxxxx. - - - - - REPLICATION CLIENT xxxxxxxxx (GRANT/REVOKE)REPLICATION CLIENT - - - xxxxxxxxxxxxxxxxx xx xxxxxxxAxxxxx xxx xxxx xx xxxxx xxxxxx xxx xxxxx xxxxxxx xxx xxxxxx xxxxxxxxxxx. - - - - - REPLICATION SLAVE xxxxxxxxx (GRANT/REVOKE)REPLICATION SLAVE - - - Rxxxxxxx xxx xxxxxxxxxxx xxxxx xxxxxxx. Axxxxx xxxxxx xxx xxxxxx xx xx xxxx xxxx xxx xxxxxx xxxxxx. - - - - - SELECT xxxxxxxxx (GRANT/REVOKE)xxxxxxxxxxxSELECT - - - SELECT xxxxxxxxxxxxxxxxx xxxxxxxxxx xxxAxxxxx xxx xxx xx xxx SELECT xxxxxxxxx. - - - - - SHOW DATABASES xxxxxxxxx (GRANT/REVOKE)SHOW DATABASES - - - Pxxxxxx xxx xxx xx xxx SHOW DATABASES xxxxxxxxx xxx xxx xxxxxxxxx, xxx xxxx xxx xxxx xxx xxxxx xxx xxxx xxx xxxxxxxxxx. - - - - - SHOW VIEW xxxxxxxxx (GRANT/REVOKE)SHOW VIEW - - - SHOW CREATE VIEW xxxxxxxxxxxxxx, xxxxxxxx -Axxxxx xxx xxx xx xxx SHOW CREATE VIEW xxxxxxxxx. Txxx xx xxx xxxxxxx d.d.d xxx xxxxx xx MxSQL. - - - - - SHUTDOWN xxxxxxxxx (GRANT/REVOKE)SHUTDOWN - - - xxxxxxxx xxxxxx (xxxxxxxxxx)xxxxxxxxxx xxxxxxxxxxxxxxx xxxxxxAxxxxx xxx xxx xx xxx xxxxxxxx xxxxxx xxxx xxx xxxxxxxxxx xxxxxxx. - - - - - SUPER xxxxxxxxx (GRANT/REVOKE)SUPER - - - --xxxxx xxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxx xxxxxxxxxxxx xxxxxxSET GLOBAL xxxxxxxxxPURGE MASTER LOGS xxxxxxxxxKILL xxxxxxxxxCHANGE MASTER xxxxxxxxx -Axxxxx xxx xx CHANGE MASTER, KILL, PURGE MASTER LOGS, xxx SET GLOBAL xxxxxxxxxx, xxx xxx xxxxx xxxxxx xxxx xxx xxxxxxx-xxxx xxxxxxx xxxxxxxxxx. - - - - - TRIGGER - - - Axxxxx xxx xxxx xxxxxxx xx xxxxxx xxx xxxx xxxxxxxx: xxx CREATE TRIGGER xxx xxx DROP TRIGGER xxxxxxxxxx. - - - - - UPDATE xxxxxxxxx (GRANT/REVOKE)UPDATE - - - UPDATE xxxxxxxxxxxxxxxxx xxxxxxxxxx xxx -Axxxxx xxx xxx xx xxx UPDATE xxxxxxxxx. - - - - - USAGE xxxxxxxxx (GRANT/REVOKE)USAGE - - - Uxxx xx xxxxxx x xxxx xxxxxxx xxxxxxxxxx, xx xx xxxxxx xxxxxxxx xxxxxx xx xx xxxxxxxx xxxx xxxxxxx xxxxxxxxx xxx xxxxxxxx xxxxxxxxxx. - - - - -
-
-
- - - RENAME USER - - - RENAME USER - - - - RENAME USER 'xxxx'[@'xxxx'] TO 'xxxx'[@'xxxx'][,...] - - - - <para>Uxx xxxx xxxxxxxxx xx xxxxxx xxx xxxx xxxx xx xxx xxxx xx xx xxxxxxxx xxxx xxxxxxx. Ix xxxx xxx xxxxxx xxx xxxx xxxxxxxxxx xx xxxxxxxxxxx xxxxxxx xxx xxxxxxxxxx xx xxxxxxxx xxxxxxxxx, xxxxxx, xxxxxx xxxxxxxx, xxxxxx, xxxxxxxx, xx xxxxx.</para> - <programlisting format="linespecific">RENAME USER 'xxxxxxxxxxxxxxxx'@'xxxxxxxxx' TO 'xxxx'@'%', -'xxxxxxxxxxxxxxx'@'xxxxxxxxx' TO 'xxxxxxxxxxxxx'@'xxxxxxxxx';</programlisting> - <para>Ix xxxx xxxxxxx, xxx xxxxx xxxx’x xxxx xxx xxxx xxx xxxx xxxxxxx, xxxxx xxx xxxxxx xxxx’x xxxx xxxx xxx xxxxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch04-77031"> - <refmeta> - <refentrytitle>RESET</refentrytitle> - </refmeta> - <refnamediv> - <refname>RESET</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">RESET [QUERY CACHE|MASTER|SLAVE]</synopsis> - </refsynopsisdiv> - <refsect1 id="ch04-08-fm2xml"> - <title/> - <para>Uxx xxxx xxxxxxxxx xx xxxxx xxxxxxx xxxxxx xxxxxxxx xxx xxx xxxxx. Txx <literal moreinfo="none">RELOAD</literal> xxxxxxxxx xx xxxxxxxx xx xxx xxxx xxxxxxxxx. Txx <literal moreinfo="none">QUERY CACHE</literal> xxxxxx xxxxxx xxx xxxxx xxxxxxxxxx SQL xxxxx xxxxxxx.</para> - <para>Uxx xxx <literal moreinfo="none">MASTER</literal> xxxxxx xx xxxxx x xxxxxx xxxx xxx xxxxxxxxxxx. Txxx xxxxxxxxx xxxx xx xxxxxxxx xxxx xxx xxxxxx xxxxxx. Ix xxxx xxxxx x xxx xxxxxx xxx xxxx, xx xxxx xx xxxxxx xxx xxxxxx xxx xxxx xxxxx xxxx xx xxx xxxxx xxxx, xxx xxxxxx xxx xxxxxxxx xx xxx xxxxxx xxx xxxxx xxxx. Txx <literal moreinfo="none">SLAVE</literal> xxxxxx xx xxxx xx xxxxx x xxxxx xxxx xxx xxxxxxxxxxx xxx xxxx xx xxxxxxxx xxxx xxx xxxxx xxxxxx. Ix xxxx xxxxx x xxx xxxxx xxx xxxx xxx xxxxxx xxx xxxxxxxx xxxx, xx xxxx xx xxxxxx xxx xxxxxxxx xx xxx xxxxxxxx xx xxx xxxxxx’x xxxxxx xxx. Sxx <xref linkend="mysqlian-CHP-08"/> xx Rxxxxxxxxxx xxx xxxx xxxxxxxxxxx xx xxxxx xxx xxxxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch04-77032"> - <refmeta> - <refentrytitle>REVOKE</refentrytitle> - </refmeta> - <refnamediv> - <refname>REVOKE</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">REVOKE ALL PRIVILEGES, GRANT OPTION FROM xxxx[, ...] - -REVOKE <replaceable>xxxxxxxxx</replaceable>[,...] [(<replaceable>xxxxxx</replaceable>[, ...])] -ON {[{<replaceable>xxxxxxxx</replaceable>|*}.{<replaceable>xxxxx</replaceable>|*}] | *} -FROM '<replaceable>xxxx</replaceable>'@'<replaceable>xxxx</replaceable>'[, ...]</synopsis> - </refsynopsisdiv> - <refsect1 id="ch04-09-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-4-ITERM-2824" significance="normal"><primary>GRANT xxxxxxxxx</primary><secondary>REVOKE xxxxxxxxx xxx</secondary></indexterm><indexterm id="mysqlian-CHP-4-ITERM-2825" significance="normal"><primary>xxxxxxxxxx</primary><secondary>xxxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-4-ITERM-2826" significance="normal"><primary>REVOKE xxxxxxxxx</primary></indexterm> -Uxx xxxx xxxxxxxxx xx xxxxxx xxxx xx xxx xxxxxxxxxx xxxx xxxx xxxxxxx xx x xxxx xxxx xxx <literal moreinfo="none">GRANT</literal> xxxxxxxxx. Txx xxxxx xxxxxx xx xxxx xx xxxxxx xxx xxxxxxxxxx xxxx x xxxx. Mxxxxxxx xxxxx xxx xx xxxxx xx x xxxxx-xxxxxxxxx xxxx. A xxxx xx xxxxx xxx xxxxx xxxxxxxxxx xxx xxxxxx xx xxx <emphasis>xxxxx</emphasis> xxxxxxxx, xx xxxxxxxxxx xx xxx <emphasis>xxxx</emphasis> xxxxx.</para> - <para>Tx xxxxxx xxxx xxxx xxxxxxxxxx, xxx xxx xxxxxx xxxxxx xxxxxxxxx, xxxxxx xxx xxxxxxxx xxxxxxxxxx xx xx xxxxxxx xx x xxxxx-xxxxxxxxx xxxx xxxxx xxx xxxxxxx <literal moreinfo="none">REVOKE</literal>. Fxx x xxxx xx xxxxxxxxxx xxx xxxxx xxxxxxxxxxxx, xxx <xref linkend="mysqlian-CHP-4-TABLE-2"/> xxxxx xxx xxxxxxxxxxx xx xxx <literal moreinfo="none">GRANT</literal> xxxxxxxxx xxxxxxx xx xxxx xxxxxxx.</para> - <para>Tx xxxxxx xxxxxxxxxx xxx xxxxxxxx xxxxxxx, xxxx xxx xxxxxxx xxxxxx xxxxxxxxxxx xx x xxxxx-xxxxxxxxx xxxx. Pxxxxxxxxx xxxx xxx xxxxxxx xxxxx xx xxxxxxx xxx xxxxxx xx xxx <emphasis>xxxxxxx_xxxx</emphasis> xxxxx xx xxx <emphasis>xxxxx</emphasis> xxxxxxxx. Pxxxxxxxxx xxx xx xxxxxxx xx x xxxxxxxx xxxxx xxx x xxxxxxxx xxxxxxxx. Tx xxxxxx xxxxxxxxxx xx xxx xxxxxx xx x xxxxxxxx, xxxxxxx xx xxxxxxxx xx x xxxxxxxx xxx xxx xxxxx xxxx. Yxx xxx xx xxx xxxx xxx xxx xxxxxxxx xxxx xx xxxxx xxx xxxxxxxxx xx xxx xxxxxxxxx. Txxxx-xxxxxxxx xxxxxxxxxx xxx xxxxxx xx xxx <emphasis>xxxxxx_xxxx</emphasis> xxxxx, xxx xxxxxxxx xxxxxxxxxx xx xxx <emphasis>xx</emphasis> xxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch04-77033"> - <refmeta> - <refentrytitle>SET PASSWORD</refentrytitle> - </refmeta> - <refnamediv> - <refname>SET PASSWORD</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">SET PASSWORD [FOR '<replaceable>xxxx</replaceable>'@'<replaceable>xxxx</replaceable>'] = PASSWORD('<replaceable>xxxxxxxx</replaceable>')</synopsis> - </refsynopsisdiv> - <refsect1 id="ch04-10-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-4-ITERM-2940" significance="normal"><primary>FLUSH PRIVILEGES xxxxxxxxx</primary><secondary>SET PASSWORD xxxxxxxxx xxx</secondary></indexterm><indexterm id="mysqlian-CHP-4-ITERM-2941" significance="normal"><primary>PASSWORD( ) xxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-4-ITERM-2942" significance="normal"><primary>FOR xxxxxx (SET PASSWORD)</primary></indexterm><indexterm id="mysqlian-CHP-4-ITERM-2943" significance="normal"><primary>SET PASSWORD xxxxxxxxx</primary></indexterm> -Uxx xxxx xxxxxxxxx xx xxxxxx xxx xxxxxxxx xxx x xxxx xxxxxxx. Txx xxxx xxxx xxx xxxx xxxx xx xxxxx. Txx xxxxxx xx xxxxxxxx xxxx xxxxx xxxx xx xxx xxxxxxxxxxx xxxxx xx xxxx xxxx xxx xxxx. Ix xxx’x xxxxx xx xxxxx xxxxx xxx xxx xxxx xxxx xx xxx xxxxx xxxxxx. Tx xxx x xxxx xx xxxx xxxxxxxx xx xxxx xxxxxx, xxxxx xxx xxxxxxxxx SQL xxxxxxxxx: -</para> - <programlisting format="linespecific">SELECT Uxxx,Hxxx FROM xxxxx.xxxx;</programlisting> - <para>Ix xxx <literal moreinfo="none">FOR</literal> xxxxxx xx xxx xxxxx xxxx xxx <literal moreinfo="none">SET PASSWORD</literal> xxxxxxxxx, xxx xxxxxxx xxxx xxxxxxx xx xxxxxxx. Txx <literal moreinfo="none">PASSWORD( )</literal> xxxxxxxx xxxx xxxxxxx xxx xxxxxxxx xxxxx.</para> - <para>Txxx xxxxxxxxx xxxx xxx xxxx xx xx xxxxxxxx xx x <literal moreinfo="none">FLUSH PRIVILEGES</literal> xxxxxxxxx. Ix xxxx xxxxxxxxxxxxx xxxxxx xxx xxxxxxxxxx xxxxx xxx xxx xxx xxxxxxxx. Ix xxx xxxxxxx xxxx xxxxxx xxxx x xxxxxxx xxxxxx d.d xx x xxx xxxxxxx, xxx xxx xxxx xxxxxxxx xxxxxxxx x xxxx xxxxxxx’x xxxxxxxx xxx xxxxx xxx xxxx xxxxxxx’x xxxxxxxx xx xxxxxx xxxxxxx. Yxx xxx xxxx xx xxx xxx <literal moreinfo="none">xxxxx_xxx_xxxxxxxxx_xxxxxx</literal> xxxxxxx xx xxxxxx xxx <literal moreinfo="none">Pxxxxxxx</literal> xxxxxx xx xxx <literal moreinfo="none">xxxx</literal> xxxxx xx xxx <literal moreinfo="none">xxxxx</literal> xxxxxxxx. Sxx <xref linkend="mysqlian-CHP-17"/> xxx xxxx xxxxxxxxxxx xx xxxx xxxxxxx. -</para> - <para>Ax xxxxxxx xxxxxxx xx xxxxxxxx x xxxx xxxxxxx’x xxxxxxxx.</para> - <programlisting format="linespecific">SET PASSWORD FOR 'xxxxxxx'@'xxxxxxxxx' = PASSWORD('xxx_xxxxxxxx');</programlisting> - </refsect1> - </refentry> - <refentry id="ch04-77034"> - <refmeta> - <refentrytitle>SHOW GRANTS</refentrytitle> - </refmeta> - <refnamediv> - <refname>SHOW GRANTS</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">SHOW GRANTS [FOR '<replaceable>xxxx</replaceable>'@'<replaceable>xxxx</replaceable>']</synopsis> - </refsynopsisdiv> - <refsect1 id="ch04-11-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-4-ITERM-2998" significance="normal"><primary>xxxxxxxxxx</primary><secondary>xxxxxxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-4-ITERM-2999" significance="normal"><primary>SHOW GRANTS xxxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-4-ITERM-3000" significance="normal"><primary>GRANTS xxxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-4-ITERM-3001" significance="normal"><primary>xxxxxxxxx</primary><secondary>xxxxxxx xxxx</secondary></indexterm><indexterm id="mysqlian-CHP-4-ITERM-3002" significance="normal"><primary>xxxxxxx xxxx (%)</primary></indexterm> -Txxx SQL xxxxxxxxx xxxxxxxx xxx <literal moreinfo="none">GRANT</literal> xxxxxxxxx xxx x xxxxx xxxx. Ix xxx <literal moreinfo="none">FOR</literal> xxxxxx xx xxx xxxxx, xxx xxxxxxx xxxx xxxxxxx xx xxxxxxx. Ix xxx xxxx xxxx xx xxxxx xxxxxxx xxxxxxxxx xx x xxxxxxxxxx xxxx, xxx xxxxxxxx <literal moreinfo="none">%</literal> xx xxxxxxx. Oxxxxxxxx, xxx xxxx xxxx xxxxxx xx xxxxxxxx xx xxx xxxx xx xxxxx xxxx:</para> - <programlisting format="linespecific">SHOW GRANTS FOR 'xxxxxxx'@'xxxxxxxxx'\G - -*************************** d. xxx *************************** -Gxxxxx xxx xxxxxxx@xxxxxxxxx: - -GRANT ALL PRIVILEGES ON *.* -TO 'xxxxxxx'@'xxxxxxxxx' -IDENTIFIED BY PASSWORD 'ddxxdddxdxdxdxdd' -WITH GRANT OPTION</programlisting> - <para><indexterm id="mysqlian-CHP-4-ITERM-3003" significance="normal"><primary>WITH GRANT OPTION xxxx (SHOW GRANTS)</primary></indexterm> -Txx xxxxxxxxx xxxxxxxxx xx xxxx xxxxx xx xxxxxxx xx xxxxxx xxx xxxx <emphasis>xxxxxxx</emphasis> xxx xxx xxxx <emphasis>xxxxxxxxx</emphasis>, xxxx xxx xxxxx xxxxxxxxxx xxxxxxxxx xxx <literal moreinfo="none">WITH GRANT OPTION</literal> xxxx. -</para> - </refsect1> - </refentry> - <refentry id="ch04-77035"> - <refmeta> - <refentrytitle>SHOW PRIVILEGES</refentrytitle> - </refmeta> - <refnamediv> - <refname>SHOW PRIVILEGES</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">SHOW PRIVILEGES</synopsis> - </refsynopsisdiv> - <refsect1 id="ch04-12-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-4-ITERM-3019" significance="normal"><primary>xxxxxxxxxx</primary><secondary>xxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-4-ITERM-3020" significance="normal"><primary>SHOW PRIVILEGES xxxxxxxxx</primary></indexterm> -Txxx xxxxxxxxx xxxxxxxx x xxxx xx xxxxxxxxxx xxxxxxxxx, xxxxx xxxx xxx xxxxxxx xx xxxx xxx (x.x., xxxxxx xxxxxxxxxxxxxx) xxx x xxxxxxxxxxx. Txx xxxxxx xx xxx xxxxx xx xxx xxxx. Ixxxxxx, xx’x x xxxxxxxx xxxxxxx xx xxx xxxxxxxxxx xxxx xxx xx xxxxxxxx xx x xxxx. Txxx xxxxxxxxx xx xxxxxxxxx xx xx xxxxxxx d.d xx MxSQL. -</para> - </refsect1> - </refentry> - </sect1> - <sect1 id="mysqlian-CHP-4-SECT-3"> - <title>Fxxxxxxxx xx Axxxxxxxxxxx Oxxxx - Fxxxxxxxx xxx xxxxxxx xx xxxxxxx xxxxxxxx xxx xxxxxxxxx xx xxx xxxxxxxxx xxxxxxxxx xxxxxxx. - - - AES_DECRYPT( ) - - - AES_DECRYPT( ) - - - - AES_DECRYPT(xxxxxx, xxxxxxxx) - - - - <para><indexterm id="mysqlian-CHP-4-ITERM-3095" significance="normal"><primary>AES_ENCRYPT( ) xxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-4-ITERM-3096" significance="normal"><primary>AES_DECRYPT( ) xxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-4-ITERM-3097" significance="normal"><primary>AES xxxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-4-ITERM-3098" significance="normal"><primary>xxxxxxxxxx</primary></indexterm> -Txxx xxxxxxxx xxxxxxxx xxxx xxxx xxx xxxxxxxxx xxxxx xxx AES xxxxxxxxx xxxx x ddd-xxx xxx xxxxxx, xxxxxxxxx xxx <literal moreinfo="none">AES_ENCRYPT()</literal> xxxxxxxx. Txx xxxxxxxx xxxxxxx xxx xxxxxxxxx xxxxxx xxxx xxx xxxxxxxx xxxxx xx xxx xxxxxx xxxxxxxx. Ix xxxxxxx NULL xx xxx xx xxx xxxxx xxxxxxxxxx xx NULL. Txxx xx xxxxxxxxx xx xx xxxxxxx d.d.d xx MxSQL. -</para> - <programlisting format="linespecific">SELECT AES_DECRYPT(xxxxxxxx, 'xx_xxxxxxxx') AS Pxxxxxxx -FROM xxxxxxxx -WHERE xxxxxxx_xx='dddddd'; - -+----------+ -| Pxxxxxxx | -+----------+ -| xxxx | -+----------+</programlisting> - <para>Ix xxxx xxxxxxx, xxx xxxxx xxx xxx <emphasis>xxxxxxxx</emphasis> xxxxxx xx xxxxxxxxx xxxxx xxx xxxxxxxx xxxxx. Txx xxxxxx xx xxxx xxx xxxxx xxxx xx xxx xxxxxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch04-77038"> - <refmeta> - <refentrytitle>AES_ENCRYPT( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>AES_ENCRYPT( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">AES_ENCRYPT(<replaceable>xxxxxx</replaceable>, <replaceable>xxxxxxxx</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch04-14-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-4-ITERM-3099" significance="normal"><primary>AES_DECRYPT( ) xxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-4-ITERM-3100" significance="normal"><primary>xxxxxxxxxx</primary><secondary>AES xxxxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-4-ITERM-3101" significance="normal"><primary>AES_ENCRYPT( ) xxxxxxxx</primary></indexterm> -Txxx xxxxxxxx xxxxxxxx x xxxxx xxxxxx xxxxx xxx AES xxxxxxxxx xxxx x ddd-xxx xxx xxxxxx. Ix xxxxx xxx xxxxxxxxx xxxxxx xxxx xxx xxxxxxxx xxxxx xx xxx xxxxxx xxxxxxxx. Txx xxxxxxxx xxxxxxx NULL xx xxx xx xxx xxxxx xxxxxxxxxx xx NULL. Ix’x xxxxxxxxx xx xx xxxxxxx d.d.d xx MxSQL. Txx xxxxxxx xx xxxx xxxxxxxx xxx xx xxxxxxxx xxxx <literal moreinfo="none">AES_DECRYPT( )</literal>.</para> - <programlisting format="linespecific">UPDATE xxxxxxxx -SET xxxxxxxx = AES_ENCRYPT('xxxx', 'xx_xxxxxxxx') -WHERE xxxxxxx_xx = 'dddddd';</programlisting> - </refsect1> - </refentry> - <refentry id="ch04-77039"> - <refmeta> - <refentrytitle>CURRENT_USER( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>CURRENT_USER( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">CURRENT_USER( )</synopsis> - </refsynopsisdiv> - <refsect1 id="ch04-15-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-4-ITERM-3512" significance="normal"><primary>CURRENT_USER( ) xxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-4-ITERM-3513" significance="normal"><primary>USER( ) xxxxxxxx</primary></indexterm> -Txxx xxxxxxxx xxxxxxx xxx xxxx xxxx xxx xxx xxxx xxxx xxxx xxxxx xx xxx xxxx xxx xxx xxxxxxx MxSQL xxxxxxxxxx. Txxxx xxx xx xxxxxxxxx xxx xxx xxxxxxxx. Ix xxx xxx xxxxxx xxxxxx xxx xxxx xxxxxxx xx <literal moreinfo="none">USER( )</literal>. -</para> - <programlisting format="linespecific">SELECT CURRENT_USER( ), USER( ); - -+----------------+------------------+ -| CURRENT_USER( ) | USER( ) | -+----------------+------------------+ -| ''@xxxxxxxxx | xxxxxx@xxxxxxxxx | -+----------------+------------------+</programlisting> - <para><indexterm id="mysqlian-CHP-4-ITERM-3514" significance="normal"><primary>CURRENT_USER( ) xxxxxxxx</primary></indexterm> -Ix xxxx xxxxxxx, xxx xxxx xxxxxx xx xx xxx <emphasis>xxxxx</emphasis> xxxxxx xxxx xxx xxxx xxxx <emphasis>xxxxxx</emphasis> (xxxxxxx xxx x xx xxx xxxx), xxx xxxxxxx xxxxx xxx’x xx xxxxxxx xxx xxxx xxxx, xxx xxxxxx xxxxxx xx xxxx xxx xxxxxxxxx (x.x., '') xxxxxxx. -</para> - </refsect1> - </refentry> - <refentry id="ch04-77040"> - <refmeta> - <refentrytitle>DECODE( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>DECODE( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">DECODE(<replaceable>xxxxxxxxx, xxxxxxxx</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch04-16-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-4-ITERM-3121" significance="normal"><primary>DECODE( ) xxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-4-ITERM-3122" significance="normal"><primary>xxxxxxxxxx</primary></indexterm> -Txxx xxxxxxxx xxxxxxxx x xxxxx xxxxxx xxxx xxx xxxxxxxxx xxxx x xxxxx xxxxxxxx. Sxx xxx <literal moreinfo="none">ENCODE( )</literal> xxxxxxxx xxxxx xx xxxx xxxxxxx. -</para> - <programlisting format="linespecific">SELECT ENCODE(xxx, 'xxxxxxx') -FROM xxxxxxxx -WHERE xxxxxxx_xx = 'dddddd';</programlisting> - <para><indexterm id="mysqlian-CHP-4-ITERM-3123" significance="normal"><primary>ENCODE( ) xxxxxxxx</primary></indexterm> -Txxx xxxxxxxx xxxxxxxx xxx xxxxxxxx xx xxx <emphasis>xxx</emphasis> xxxxxx xxx xxxxxxx xx xxxxx xxx <emphasis>xxxxxxx</emphasis> xxxxxxxx, xxxxx xxx xxxx xx xxxxxxx xx xxxxxxxxxx xxxxx <literal moreinfo="none">ENCODE( )</literal>. -</para> - </refsect1> - </refentry> - <refentry id="ch04-77041"> - <refmeta> - <refentrytitle>DES_DECRYPT( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>DES_DECRYPT( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">DES_DECRYPT(<replaceable>xxxxxx</replaceable>, [<replaceable>xxx</replaceable>])</synopsis> - </refsynopsisdiv> - <refsect1 id="ch04-17-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-4-ITERM-3124" significance="normal"><primary>DES_DECRYPT( ) xxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-4-ITERM-3125" significance="normal"><primary>DES_ENCRYPT( ) xxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-4-ITERM-3126" significance="normal"><primary>xxxxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-4-ITERM-3127" significance="normal"><primary>DES xxxxxxxxx</primary></indexterm> -Txxx xxxxxxxx xxxxxxxx xxxx xxxx xxx xxxxxxxxx xxxxx xxx xxxxxx DES xxxxxxxxx xxxx x ddd-xxx xxx xxxxxx, xxxxxxxxx xxx <literal moreinfo="none">DES_ENCRYPT()</literal> xxxxxxxx. Ix xxxxxxx NULL xx xx xxxxx xxxxxx. Txx xxxxxxxx xxxx xxxx xxxx xx MxSQL xxx xxxx xxxxxxxxxx xxx xxxxxx xxxxxxx xxxxx (SSL) xxxxxxx. Ix xx xxxxxxxxx xx xx xxxxxxx d.d.d xx MxSQL. -</para> - <programlisting format="linespecific">SELECT DES_DECRYPT(xxxxxx_xxxx_xxx, d) -FROM xxxxxx -WHERE xxxxx_xxx = 'dddd';</programlisting> - <para>Ix xxxx xxxxxxx, xxx xxxxx xxx xxx <emphasis>xxxxxx_xxxx_xxx</emphasis> xxxxxx xx xxxxxxxxx xxxxx xxx xxxxx xxx xxxxxx xx xxx xxx xxxx. Sxx xxx xxxxxxxxxxx xx <literal moreinfo="none">DES_ENCRYPT( )</literal> xxx xxxx xxxxxxxxxxx xx xxx xxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch04-77042"> - <refmeta> - <refentrytitle>DES_ENCRYPT( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>DES_ENCRYPT( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">DES_ENCRYPT(<replaceable>xxxxxx</replaceable>, [<replaceable>xxx</replaceable>])</synopsis> - </refsynopsisdiv> - <refsect1 id="ch04-18-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-4-ITERM-3128" significance="normal"><primary>xxxxxxxxxx</primary><secondary>DES xxxxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-4-ITERM-3129" significance="normal"><primary>DES xxxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-4-ITERM-3130" significance="normal"><primary>DES_ENCRYPT( ) xxxxxxxx</primary></indexterm> -Txxx xxxxxxxx xxxxxxx xxxxxxxxx xxxx xxxxx xxx xxxxxx DES xxxxxxxxx xxxx x ddd-xxx xxx xxxxxx. Ix xxxxxxx NULL xx xx xxxxx xxxxxx. Txx xxxxxxxx xx xxxxxxxxx xx xx xxxxxxx d.d.d xx MxSQL.</para> - <para>Txxx xxxxxxxx xxxxxxxx MxSQL xx xx xxxxxxxxxx xxx SSL xxxxxxx. Ix xxxxxxxx, x xxx xxxx xxxx xx xxxxxxx xxx xxx <emphasis>xxxxxx</emphasis> xxxxxx xxxx xx xxxxxxx xxxx xxx <literal moreinfo="none">--xxx-xxx-xxxx</literal> xxxxxx. Txx xxx xxxx xxxxxx xx xxx xx xxxx x xxxxxxxx xxx xxxxxx xx xxxx xxxx. Exxx xxxx xxxxxx xxxxx xxxx x xxxxxx-xxxxx xxxxxx (d-d) xx xx xxxxx, xxxxxxxx xx x xxxxx xxxxxx xxx xxx xxxxxx (x.x., <literal moreinfo="none">xxx_xxxxxx xxx_xxxxxx</literal>).</para> - <para>Txx xxx xxxxx xx xxx xxxxxx xxxxxxxx xx xxx xxxxxxxx xxx xxxxxx xx xxx xxxxxx xxx xx xxx xxx xxxxxxxxxx xx x xxxxxx xxxx xxxxxx xx x xxx xx xxx xxx xxxx. Ix xxx xxxxxx xxxxxxxx xx xxxxxxx, xxx xxxxxxxx xxxx xxx xxxxx xxx xx xxx xxx xxxx.</para> - <programlisting format="linespecific">UPDATE xxxxxx -SET xxxxxx_xxxx_xxx = DES_ENCRYPT('dddd-dddd-dddd-dddd') -WHERE xxxxx_xxx = 'dddd';</programlisting> - <para><indexterm id="mysqlian-CHP-4-ITERM-3131" significance="normal"><primary>DES_DECRYPT() xxxxxxxx</primary></indexterm> -Txx xxxxxxx xx xxxx xxxxxxxx xxx xx xxxxxxxx xxxx <literal moreinfo="none">DES_DECRYPT()</literal>. -</para> - </refsect1> - </refentry> - <refentry id="ch04-77043"> - <refmeta> - <refentrytitle>ENCODE( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>ENCODE( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">ENCODE(<replaceable>xxxxxx</replaceable>, <replaceable>xxxxxxxx</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch04-19-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-4-ITERM-3133" significance="normal"><primary>ENCODE( ) xxxxxxxx</primary></indexterm> -Txxx xxxxxxxx xxxxxxxx x xxxxx xxxxxx xx xxxxxx xxxxxx xxx xxxxx xx xxxx xxx xxxxxxxx. Yxx xxxxxx xxx xxx xxxx xxxxxxxx xxx xxx <emphasis>xxxxxxxx</emphasis> xxxxxx xx xxx <emphasis>xxxx</emphasis> xxxxx xx xxx <emphasis>xxxxx</emphasis> xxxxxxxx. Uxx <literal moreinfo="none">PASSWORD( )</literal> xxxxxxx.</para> - <programlisting format="linespecific">UPDATE xxxxxxxx -SET xxx = ENCODE('xxxx', 'xxxxxxx') -WHERE xxxxxxx_xx = 'dddddd';</programlisting> - <para><indexterm id="mysqlian-CHP-4-ITERM-3134" significance="normal"><primary>DECODE( ) xxxxxxxx</primary></indexterm> -Txx xxxxxxxx xxxx xxxxxxxx xxx xxxx <literal moreinfo="none">xxxx</literal> xxx xxxxx xx xxxx xxx <literal moreinfo="none">xxxxxxx</literal> xxxxxxxx. Txx xxxxxxx xxx xxxxxx xx xxx <emphasis>xxx</emphasis> xxxxxx xxx xxx xxxxxx xxxxxxx. Tx xxxxxx xxx xxxxxxx, xxx xxx <literal moreinfo="none">DECODE( )</literal> xxxxxxxx xxxx xxx xxxx xxxxxxxx. -</para> - </refsect1> - </refentry> - <refentry id="ch04-77044"> - <refmeta> - <refentrytitle>ENCRYPT( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>ENCRYPT( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">ENCRYPT(<replaceable>xxxxxx</replaceable>[, <replaceable>xxxx</replaceable>])</synopsis> - </refsynopsisdiv> - <refsect1 id="ch04-20-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-4-ITERM-3135" significance="normal"><primary>ENCRYPT( ) xxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-4-ITERM-3136" significance="normal"><primary>PASSWORD( ) xxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-4-ITERM-3137" significance="normal"><primary>xxxxxxxxxx</primary><secondary>MxSQL xxx</secondary></indexterm> -Txxx xxxxxxxx xxxxxxx xxxxxxxxx xxxx xxxxx xxx C-xxxxxxxx <literal moreinfo="none">xxxxx</literal> xxxxxxxx. A xxx-xxxxxxxxx xxxxxx xxx xx xxxxx xx xxx xxxxxx xxxxxxxx xx xxxxxxxx xxx xxxxxxxxxx xx xxxxxxxxxx. Txx xxxxxxxxx xxxxxx xxxxxx xx xxxxxxxxx. Yxx xxxxxx xxx xxx xxxx xxxxxxxx xxx xxx <emphasis>xxxxxxxx</emphasis> xxxxxx xx xxx <emphasis>xxxx</emphasis> xxxxx xx xxx <emphasis>xxxxx</emphasis> xxxxxxxx. Uxx <literal moreinfo="none">PASSWORD( )</literal> xxxxxxx. -</para> - <programlisting format="linespecific">UPDATE xxxxxxxx -SET xxx = ENCRYPT('xxxx', 'JT') -WHERE xxxxxxx_xx = 'dddddd';</programlisting> - </refsect1> - </refentry> - <refentry id="ch04-77045"> - <refmeta> - <refentrytitle>MDd( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>MDd( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">MDd(<replaceable>xxxxxx</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch04-21-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-4-ITERM-3180" significance="normal"><primary>MDd( ) xxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-4-ITERM-3181" significance="normal"><primary>RFC dddd</primary></indexterm> -Txxx xxxxxxxx xxx xx MDd ddd-xxx xxxxxxxx xx xxxxxx x dd-xxxxxxxxx xxxx xxxxx xx <replaceable>xxxxxx</replaceable> xxxx xxx RFC dddd xxxxxxxx. -</para> - <programlisting format="linespecific">SELECT MDd('Txxx') AS 'MDd( ) Txxx'; -+----------------------------------+ -| MDd( ) Txxx | -+----------------------------------+ -| dxxxddddxddddxxddddxdddxxddxdddx | -+----------------------------------+</programlisting> - </refsect1> - </refentry> - <refentry id="ch04-77046"> - <refmeta> - <refentrytitle>OLD_PASSWORD( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>OLD_PASSWORD( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">OLD_PASSWORD(<replaceable>xxxxxx</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch04-22-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-4-ITERM-3187" significance="normal"><primary>OLD_PASSWORD( ) xxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-4-ITERM-3188" significance="normal"><primary>xxxxxxxxxx</primary><secondary>xxxxxxxx xxxxxxxxxx xxxxxx xxx</secondary></indexterm> -Txxx xxxxxxxx xxxxxxxx x xxxxx xxxxxx xxxxx xx xxx xxxxxxxx xxxxxxxxxx xxxxxx xxxx xxxxx xx xxxxxxx d.d xx MxSQL. Txx xxxxxx xxxxxx xx xxxxxxxxx. -</para> - <programlisting format="linespecific">UPDATE xxxxxxxx -SET xxx = OLD_PASSWORD('xxxx') -WHERE xxxxxxx_xx = 'dddddd';</programlisting> - </refsect1> - </refentry> - <refentry id="ch04-77047"> - <refmeta> - <refentrytitle>PASSWORD( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>PASSWORD( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">PASSWORD(<replaceable>xxxxxx</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch04-23-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-4-ITERM-3190" significance="normal"><primary>PASSWORD( ) xxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-4-ITERM-3191" significance="normal"><primary>xxxxxxxxxx</primary><secondary>xxxxxxxxx xxx</secondary></indexterm><indexterm id="mysqlian-CHP-4-ITERM-3192" significance="normal"><primary>xxxxxxxxx</primary><secondary>xxxxxxxxxx</secondary></indexterm> -Txxx xxxxxxxx xxxxxxxx x xxxxxxxx xxxxx xx xx xxxxxxxx. Txx xxxxxx xxxxxx xx xxxxxxxxx. Txxx xxxxxxxx xx xxxx xxx xxxxxxxxxx xxxx xx xxx <emphasis>xxxxxxxx</emphasis> xxxxxx xx xxx <emphasis>xxxx</emphasis> xxxxx xx xxx <emphasis>xxxxx</emphasis> xxxxxxxx. -</para> - <programlisting format="linespecific">UPDATE xxxxxxxx -SET xxx = PASSWORD('xxxx') -WHERE xxxxxxx_xx = 'dddddd';</programlisting> - </refsect1> - </refentry> - <refentry id="ch04-77048"> - <refmeta> - <refentrytitle>SHA( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>SHA( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">SHA(<replaceable>xxxxxx</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch04-24-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-4-ITERM-3208" significance="normal"><primary>SHA( ) xxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-4-ITERM-3209" significance="normal"><primary>SHAd( ) xxxxxxxx</primary></indexterm> -Txxx xxxxxxxx xxxxxxx xxx Sxxxxx Hxxx Axxxxxxxx (SHA) ddd-xxx xxxxxxxx xxx xxx xxxxx xxxxxx. Txx xxxxxxx xxx x xxxxxx xxxxxxxx xx dd xxxxxxxxxxx xxxxxx. NULL xx xxxxxxxx xx xxx xxxxx xxxxxx xx NULL. Txxx xxxxxxxx xx xxxxxxxxxx xxxx <literal moreinfo="none">SHAd( )</literal>. -</para> - <programlisting format="linespecific"> SELECT SHA('xxxx'); - -+------------------------------------------+ -| SHA('xxxx') | -+------------------------------------------+ -| xddxdxxdxxxddxxddxdxddddxdddxddddddxxxxd | -+------------------------------------------+</programlisting> - </refsect1> - </refentry> - <refentry id="ch04-77049"> - <refmeta> - <refentrytitle>SHAd( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>SHAd( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">SHA(<replaceable>xxxxxx</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch04-25-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-4-ITERM-3210" significance="normal"><primary>SHAd( ) xxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-4-ITERM-3211" significance="normal"><primary>SHA( ) xxxxxxxx</primary></indexterm> -Txxx xxxxxxxx xxxxxxx xxx SHA ddd-xxx xxxxxxxx xxx xxx xxxxx xxxxxx. Txx xxxxxxx xxx x xxxxxx xxxxxxxx xx dd xxxxxxxxxxx xxxxxx. NULL xx xxxxxxxx xx xxx xxxxx xxxxxx xx NULL. Txxx xxxxxxxx xx xxxxxxxxxx xxxx <literal moreinfo="none">SHA( )</literal>. -</para> - </refsect1> - </refentry> - <refentry id="ch04-77050"> - <refmeta> - <refentrytitle>SESSION_USER( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>SESSION_USER( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">SESSION_USER( )</synopsis> - </refsynopsisdiv> - <refsect1 id="ch04-26-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-4-ITERM-3534" significance="normal"><primary>SESSION_USER( ) xxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-4-ITERM-3535" significance="normal"><primary>USER( ) xxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-4-ITERM-3536" significance="normal"><primary>SYSTEM_USER( ) xxxxxxxx</primary></indexterm> -Txxx xxxxxxxx xxxxxxx xxx xxxx xxxx xxx xxx xxxxxxxx xxx xxx xxxxxxx MxSQL xxxxxxxxxx. Txx xxxxxxxx xxxxx xx xxxxxxxxx. Ix’x xxxxxxxxxx xxxx <literal moreinfo="none">SYSTEM_USER( )</literal> xxx <literal moreinfo="none">USER( )</literal>. -</para> - </refsect1> - </refentry> - <refentry id="ch04-77051"> - <refmeta> - <refentrytitle>SYSTEM_USER( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>SYSTEM_USER( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">SYSTEM_USER( )</synopsis> - </refsynopsisdiv> - <refsect1 id="ch04-27-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-4-ITERM-3537" significance="normal"><primary>USER( ) xxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-4-ITERM-3538" significance="normal"><primary>SESSION_USER( ) xxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-4-ITERM-3539" significance="normal"><primary>SYSTEM_USER( ) xxxxxxxx</primary></indexterm> -Txxx xxxxxxxx xxxxxxx xxx xxxx xxxx xxx xxx xxxxxxxx xxx xxx xxxxxxx MxSQL xxxxxxxxxx. Txx xxxxxxxx xxxxx xx xxxxxxxxx. Ix’x xxxxxxxxxx xxxx <literal moreinfo="none">SESSION_USER()</literal> xxx <literal moreinfo="none">USER( )</literal>.</para> - </refsect1> - </refentry> - <refentry id="ch04-77052"> - <refmeta> - <refentrytitle>USER( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>USER( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">USER( )</synopsis> - </refsynopsisdiv> - <refsect1 id="ch04-28-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-4-ITERM-3540" significance="normal"><primary>USER( ) xxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-4-ITERM-3541" significance="normal"><primary>SYSTEM_USER( ) xxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-4-ITERM-3542" significance="normal"><primary>SESSION_USER( ) xxxxxxxx</primary></indexterm> -Txxx xxxxxxxx xxxxxxx xxx xxxx xxxx xxx xxx xxxxxxxx xxx xxx xxxxxxx MxSQL xxxxxxxxxx. Txx xxxxxxxx xxxxx xx xxxxxxxxx. Ix’x xxxxxxxxxx xxxx <literal moreinfo="none">SESSION_USER( )</literal> xxx <literal moreinfo="none">SYSTEM_USER( )</literal>. -</para> - <programlisting format="linespecific">SELECT USER( ); - -+-------------------+ -| USER( ) | -+-------------------+ -| xxxxxxx@xxxxxxxxx | -+-------------------+</programlisting> - </refsect1> - </refentry> - </sect1> - </chapter> - <chapter id="mysqlian-CHP-5" xml:base="ch05.xml"> - <title>Dxxxxxxx & Txxxx Sxxxxx Sxxxxxxxxx - Txxx xxxxxxx xxxxxxxx xxx SQL xxxxxxxxxx xx MxSQL xxxxxxx xx xxxxxxxx xxx xxxxx xxxxxx. Txxxx xxxxxxxxxx xxxxxx, xxxxx, xxx xxxxxx xxxxxxxxx xxx xxxxxx, xx xxxx xx xxxxxxx xxxxxxxxxxx xxxxxxx xx xxxxxxxxx, xxxxxx, xxx xxxxxxx. Txx xxxxxxxxxx xx xxxx xxxxxxx xxxxxxx xx xxxxxxxxxxx xxxxx xxxxx xxxx xxxxxxxxxx, xxx xxx xxxxxxxxxxxx xx xxxx xxxxxx xxxx; xxxxxxxxxx xxxx xxxxxx xxx xxxx xxx xxxxxxx xx xxx xxxx xxxxxxx. Ix xxxxxxx, xxxx xxxxxxx xxxxxx xxx SQL xxxxxxxxxx xxxx xxxx xxx xx xx xxx xxxx xx xxxxxxxx xxxxxxxx xxxxxxxxxx. Txxx xxxx xx x xxxxxx xxxxxxxx xxxxxxx xxx xxxxxxxxx xxx xxxxxxxxxxxxxx xx xxxxxxxxx xxxxxxx xxxx xxxxx xxx xxxxxxxxxx xxx xxxx xxxxxx. - Txxx xxxxxxx xxxxxx xxx xxxxxxxxx SQL xxxxxxxxxx. Ix xxx xxx’x xxx xxx SQL xxxxxxxxx xxx xxxxx xxx’xx xxxxxxx, xxxxx xxx xxxx xx SQL xxxxxxxxxx xx xxx xxxxxxxxxxxx xx Pxxx II xx xxxxxxxxx xxxxx xxxxxxx xxxxxxxx xx. - xxxxxxSQL xxxxxxxxxxxxxxxxxxxSQL xxxxxxxxxxALTER DATABASE, ALTER SCHEMA, ALTER SERVER, ALTER TABLE, ALTER VIEW, CREATE DATABASE, CREATE INDEX, CREATE SERVER, CREATE TABLE, CREATE VIEW, DESCRIBE, DROP DATABASE, DROP INDEX, DROP SERVER, DROP TABLE, DROP VIEW, RENAME DATABASE, RENAME TABLE, SHOW CHARACTER SET, SHOW COLATION, SHOW COLUMNS, SHOW CREATE DATABASE, SHOW CREATE TABLE, SHOW CREATE VIEW, SHOW DATABASES, SHOW INDEX, SHOW SCHEMAS, SHOW TABLE STATUS, SHOW TABLES. - - - Sxxxxxxxxx xxx Cxxxxxx xx Axxxxxxxxxxx Oxxxx - Txx xxxxxxxxx xx x xxxx xx MxSQL xxxxxxxxxx xxx xxxxxxx xxxxxxx xx xxxxxxxx xxx xxxxx xxxxxx, xx xxxxxxxxxxxx xxxxx. Tx xxxxxxxxxx xxx xxxx xxxx xxxxxxxx SQL xxxxxx xxx xxxxxxxxx SQL xxxxxxxxxx, xx xxxx xx xxx xxxxxxxxxxx xxxxxxx xx xxxxxxxx, xxxxxx xxx xxx xxxxxxxxxxxx xx Pxxx II. Mxxx xx xxx xxxxxxxx xx xxxx xxxxxxxxxx xxxxxxx xxxxxxx xxx xxxxxxxxxx xx xxx xxxxxxxxxxx xx x xxxxxxxxxx xxxxxxx: xxxxx xxxxx xxxxxxxxx xxxxxxxxxx xxx xxxxxxxx xxxx, xxxxx xxxxx xxxxxxxxxx xxx xxxxxx xxxxxxx xxxxxxxxxxx, xxx xxxxx xxxxxxxx IT xxxxxxxxxx xxxx xxxx xxxx xxxxxxxx. - - - ALTER DATABASE - - - ALTER DATABASE - - - - ALTER {DATABASE|SCHEMA} xxxxxxxx - [DEFAULT] CHARACTER SET xxxxxxxxx_xxx | - [DEFAULT] COLLATE xxxxxxxxx - - - - <para><indexterm id="mysqlian-CHP-5-ITERM-2236" significance="normal"><primary>ALTER DATABASE xxxxxxxxx</primary></indexterm> -Uxx xxxx xxxxxxxxx xx xxxxx xxxxxxxx xxx x xxxxxxxx. Vxxxxxx d.d.d xxxxxxxxxx xxxx xxxxxxxx xxx xxxxx x xxxx xxxxx <emphasis>xx.xxx</emphasis> xxxxxxxxxx xxx xxxxxxxx xxxxxxxx xx xxx xxxxxxxx xxxxxxxxx. Cxxxxxxxx, xxx xxxxxxx xxx xxxxxxxxx: <literal moreinfo="none">CHARACTER SET</literal> xxx <literal moreinfo="none">COLLATE</literal>. Hxxx xxx xxx xxxxxxxx xx x xxxxxxx <emphasis>xx.xxx</emphasis> xxxx:</para> - <programlisting format="linespecific">xxxxxxx-xxxxxxxxx-xxx=xxxxxd -xxxxxxx-xxxxxxxxx=xxxxxd_xxxxxxx_xx</programlisting> - </refsect1> - <refsect1 id="ch05-02-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-5-ITERM-2237" significance="normal"><primary>COLLATE xxxxxx</primary><secondary>ALTER DATABASE xxxxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-5-ITERM-2238" significance="normal"><primary>CHARACTER SET xxxxxx</primary><secondary>ALTER DATABASE xxxxxxxxx</secondary></indexterm> -Axxxxxxx xx xxxxxxxxxxxxx xxx xxxx xxx xxxx xxxxxxxx, xx xxx xx xxxx -xxxxxx xx xxx xxx <literal moreinfo="none">ALTER DATABASE</literal> xxxxxxxxx xx -xxxxxx xxx xxxx. Ix’x xxxxxxxxxx xxxx <literal moreinfo="none">ALTER SCHEMA</literal>, xx xx xxxxxxx d.d.d xx MxSQL. Txx <literal moreinfo="none">ALTER</literal> xxxxxxxxx xx xxxxxxxxx xxx xxxx xxxxxxxxx.</para> - <para>Txx <literal moreinfo="none">CHARACTER SET</literal> xxxxxx xxx xxx xxx xxxxx xxxx xxxxx, xxxxx xxxxxxxxx xxx xxxxxxx xxxxxxxx xxxxxxxxx xxx xxxx xxxx xx xxxx. Txx <literal moreinfo="none">COLLATE</literal> xxxxxx xxx xxx xxx xxxxxx xxxx, xxxxx xxxxxxxxx xxx xxxxxxx xxxxxxxx xxxxxxxxx (xxx xxx xxxxxxxxx xxxx xx xxxxxxxxxxxx). Hxxx’x xx xxxxxxx xx xxx xxx xx xxxx xxxxxxxxx: -</para> - <programlisting format="linespecific">ALTER DATABASE xxxxx_xxxxxxxxx -CHARACTER SET xxxxxd_xxx -COLLATE xxxxxd_xxx;</programlisting> - <para><indexterm id="mysqlian-CHP-5-ITERM-2239" significance="normal"><primary>DEFAULT xxxxxxx</primary><secondary>ALTER DATABASE xxxxxxxxx</secondary></indexterm> -Nxxxxx xxxx xxxx xxxxxxx xxx xx xxxxx xx xxx SQL xxxxxxxxx. Txx <literal moreinfo="none">DEFAULT</literal> xxxxxxx xx xxxxxxxxxxx, xxx xx xxxxxxx xxx xxxxxxxxxxxxx xxxx xxxxx xxxxxxxx xxxxxxx. Bxxxxxxxx xxxx xxxxxxx d.d.d xx MxSQL, xx xxx xxxx xx xxx xxxxxxxx xx xxxxxxx xxxx xxxx SQL xxxxxxxxx, xxx xxxxxxx xxxxxxxx xxxx xx xxxxxxx. Tx xxxxxxxxx xxx xxxxxxx xxxxxxxx, xxx xxx <literal moreinfo="none">DATABASE()</literal> xxxxxxxx: -</para> - <programlisting format="linespecific">SELECT DATABASE(); - -+--------------+ -| DATABASE() | -+--------------+ -| xxxxxxx_xxxx | -+--------------+</programlisting> - <para>Sxx xxx xxxxxxxxxxxx xxx xxx <literal moreinfo="none">SHOW CHARACTER SET</literal> xxx <literal moreinfo="none">SHOW COLLATION</literal> SQL xxxxxxxxx xx xxxx xxxxxxx xxx xxxx xxxxxxxxxxx xx xxxxxxxxx xxxx xxx xxxxxxxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch05-50002"> - <refmeta> - <refentrytitle>ALTER SCHEMA</refentrytitle> - </refmeta> - <refnamediv> - <refname>ALTER SCHEMA</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">ALTER {DATABASE|SCHEMA} <replaceable>xxxxxxxx</replaceable> - [DEFAULT] CHARACTER SET <replaceable>xxxxxxxxx_xxx</replaceable> | - [DEFAULT] COLLATE <replaceable>xxxxxxxxx</replaceable></synopsis> - </refsynopsisdiv> - <refsect1 id="ch05-05-fm2xml"> - <title/> - <para>Txxx xxxxxxxxx xx xxxxxxxxxx xxxx <literal moreinfo="none">ALTER DATABASE</literal>. Sxx xxx xxxxxxxxxxx xx xxxx xxxxxxxxx xx xxxx xxxxxxx xxx xxxx xxxxxxxxxxx xxx xxxxxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch05-50003"> - <refmeta> - <refentrytitle>ALTER SERVER</refentrytitle> - </refmeta> - <refnamediv> - <refname>ALTER SERVER</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">ALTER SERVER <replaceable>xxxxxx</replaceable> -OPTIONS ( - { HOST <replaceable>xxxx</replaceable>, | - DATABASE <replaceable>xxxxxxxx</replaceable>, | - USER <replaceable>xxxx</replaceable>, | - PASSWORD <replaceable>xxxxxxxx</replaceable>, | - SOCKET <replaceable>xxxxxx</replaceable>, | - OWNER <replaceable>xxxxxxxxx</replaceable>, | - PORT <replaceable>xxxx</replaceable> } - )</synopsis> - </refsynopsisdiv> - <refsect1 id="ch05-06-fm2xml"> - <title/> - <para>Uxx xxxx SQL xxxxxxxxx xxxx xxx FEDERATED xxxxxxx xxxxxx xx xxxxxx xxx xxxxxxxxxx xxxxxxxxxx xx x xxxxxx xxxxxxx xxxx <literal moreinfo="none">CREATE SERVER</literal>. Txx xxxxxx xxxxx xxx xxxxxx xx xxx <literal moreinfo="none">xxxxxx</literal> xxxxx xx xxx <literal moreinfo="none">xxxxx</literal> xxxxxxxx. Oxxxxxx xxx xxxxx xx x xxxxx xxxxxxxxx xxxx. Oxxxxx xxxxxx xxxx xx xxxxxxxxx xx xxxxxxxxx xx xxxxxxx xxxxxxxx (UTF-d; xxxxxxx xxxxxx xx dd xxxxxxxxxx). Txxx xxxxxxxxx xxx xxxxxxxxxx xx xxxxxxx d.d.dd xx MxSQL xxx xxxxxxxx <literal moreinfo="none">SUPER</literal> xxxxxxxxxx.</para> - <programlisting format="linespecific">ALTER SERVER xxxxxxd -OPTIONS (USER 'xxxx_xxxx', PASSWORD 'xxxxxxxddd', PORT dddd);</programlisting> - <para>Txxx xxxxxxx xxxxxxx xxx xxxxxx xx xx xxxxxxxx xxxxxx, xxx xxxx xxxx, xxx xxxxxxxx, xxx xxx xxxx xx xx xxxx xxx xxxxxxxxxx xx xxx xxxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch05-50004"> - <refmeta> - <refentrytitle>ALTER TABLE</refentrytitle> - </refmeta> - <refnamediv> - <refname>ALTER TABLE</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">ALTER [IGNORE] TABLE <replaceable>xxxxx</replaceable> <replaceable>xxxxxxx</replaceable>[, . . . ]</synopsis> - </refsynopsisdiv> - <refsect1 id="ch05-07-fm2xml"> - <title/> - <para><indexterm class="startofrange" id="mysqlian-CHP-5-ITERM-2240" significance="normal"><primary>ALTER TABLE xxxxxxxxx</primary><secondary>xxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-5-ITERM-2241" significance="normal"><primary>xxxxxx</primary><secondary>xxxxxxxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-5-ITERM-2242" significance="normal"><primary>xxxxxxx</primary><secondary>xxxxxxxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-5-ITERM-2243" significance="normal"><primary>IGNORE xxxx</primary><secondary>ALTER TABLE xxxxxxxxx</secondary></indexterm> -Uxx xxxx xxxxxxxxx xx xxxxxx xx xxxxxxxx xxxxx’x xxxxxxxxx xxx xxxxx xxxxxxxxxx. A xxxxx xxx xx xxxxxxx xx xxxxxxx xxxx xxxx xxxx xxxxxxxxx: -</para> - <itemizedlist> - <listitem> - <para>Axxxxx x xxx xxxxxx (xxx xxx <emphasis>ADD xxxxxxx xxx xxxxxxx</emphasis> xxxxxxxxxx xxxx xxxxxxx);</para> - </listitem> - <listitem> - <para>Axxxxx xx xxxxx (xxx xxx xxxxx <emphasis>ADD xxxxxxx xxx xxxxxxx</emphasis> xxxxxxxxxxx);</para> - </listitem> - <listitem> - <para>Axxxxx x xxxxxxx xxx xxxxxxxxxx (xxx xxx <emphasis>ADD xxxxxxx xxx xxxxxxx xxxx</emphasis> xxxxxxxxxx);</para> - </listitem> - <listitem> - <para>Cxxxxxxx xx xxxxxxxx xxxxxx (xxx xxx <emphasis>CHANGE xxxxxxx</emphasis> xxxxxxxxxx);</para> - </listitem> - <listitem> - <para>Dxxxxxxx x xxxxxx xx xxxxx (xxx xxx xxx <emphasis>DROP xxxxxxx</emphasis> xxxxxxxxxxx);</para> - </listitem> - <listitem> - <para>Sxxxxxx xxxxx xxxxxx xxx xxxxx xxxxxxx (xxx xxx <emphasis>Mxxxxxxxxxxxx xxxxxxx</emphasis> xxxxxxxxxx);</para> - </listitem> - <listitem> - <para>Axxxxx xxx xxxxxxxx xxxxx xxxxxxxxxx (xxx xxx <emphasis>Pxxxxxxxx xxxxxxx</emphasis> xxxxxxxxxx); xxx </para> - </listitem> - <listitem> - <para>Sxxxxxx xxxxx xxxx xxxxxxx (xxx xxx <emphasis>Txxxx xxxxxxx</emphasis> xxxxxxxxxx).</para> - </listitem> - </itemizedlist> - <para>Txx <literal moreinfo="none">IGNORE</literal> xxxx xxxxxxx xx xxx xxxxxxx xxx xxxxxxxxx MxSQL xx xxxxxx xxx xxxxx xxxxxxxx xxxxxxxxx xxxxxxxxx xxxx xxxx xxx xxxxx xx x xxxxxx xx x xxxxxx xxxxxx. Ix xxxx xxxx xxx xxxxx xxxxxx xxx xxxxx xxx xxxx xxx xxxxxxxxx xxxx. Oxxxxxxxx, xxx xxxxxxxxx xxxx xx xxxxxxxxxx xxx xxxxxxx xxxx xx xxxxxx xxxx.</para> - <para>Txxx xxxxxxxxx xxxxxxxx xxx <literal moreinfo="none">ALTER</literal>, <literal moreinfo="none">CREATE</literal>, xxx <literal moreinfo="none">INSERT</literal> xxxxxxxxxx xxx xxx xxxxx xxxxx xxxxxxx, xx x xxxxxxx. Wxxxx xx <literal moreinfo="none">ALTER TABLE</literal> xxxxxxxxx xx xxxxx xxxxxxxx, xxxxx xxxx xx xxxx xx xxxx xxx xxxxx, xxx xxxxxxx xxxx xxx’x xx xxxx xx xxxxxx xxxx xx xxx xxxx xx x xxxxx xxxxx xxxxxxx. Axx <literal moreinfo="none">INSERT</literal> xxxxxxxxxx xxxxx xxx <literal moreinfo="none">DELAYED</literal> xxxxxxxxx xxxx xxx xxx xxxxxxxxx xxxx x xxxxx xx xxxxxxx xxxx xx xxxxxxxx xxx xxx xxxx xxxx. Ixxxxxxxxx xxx xxxx xx xxx <literal moreinfo="none">xxxxxx_xxxx_xxxxxx_xxxx</literal> xxxxxx xxxxxxxx xxxx xxxxxxxxx xxxx MxISAM xxxxx xxxxxxxxxxx xx xxxxxx.</para> - <para><indexterm id="mysqlian-CHP-5-ITERM-2244" significance="normal"><primary>xxxxx (,)</primary><secondary>ALTER TABLE xxxxxxxxx</secondary></indexterm> -Txx xxxxxx xxx xxxxxxxxxxx xx xxxx xxxxxx xxxxxx, xxxx xxxxxxxx, xxxxxxx xx xxxx xx xxxxxx. Mxxxxxxx xxxxxxxxxxx xxx xx xxxxxxxx xx x xxxxxx <literal moreinfo="none">ALTER TABLE</literal> xxxxxxxxx. Txxx xxxx xx xxxxxxxxx xx xxxxxx xxx xxxx xxxxxx xxxx xxxxxxx xxx xxxxxxxxx xxxxxxxx xxxxxxxx. -</para> - </refsect1> - <refsect1 id="ch05-08-fm2xml"> - <title>ALTER TABLE - ADD xxxxxxx xxx xxxxxxx - ALTER [IGNORE] TABLE xxxxx -ADD [COLUMN] xxxxxx xxxxxxxxxx [FIRST|AFTER xxxxxx] | -ADD [COLUMN] (xxxxxx xxxxxxxxxx,...) - - COLUMN xxxxxxx (ALTER TABLE)ADD xxxxxx (ALTER TABLE) -Txxxx xxxxxxx xxx xxxxxxx xx x xxxxx. Txx xxxx xxxxxx xxxxxxxxxxx -xxxxx xx x CREATE TABLE xxxxxxxxx xxx xxxx xx xxxx -xxxxxxxxx. Bxxxxxxxx, xxx xxxxxxxxxx xxxxx xxx xxxx xx xxx xxxxxx xxxxxxxx xx xxx xxxxxx xxxxxxxx xxx xxx xxxxxxx xxxxx xx xxxxx xxxxxxxx xxxxxxxxxx. Txx COLUMN xxxxxxx xx xxxxxxxx xxx xxx xx xxxxxx. - - xxxxxxxxxxxxxADD COLUMN xxxxxx (ALTER TABLE)FIRST xxxxxxxADD COLUMN xxxxxxAFTER xxxxxxxADD COLUMN xxxxxx -Bx xxxxxxx, xx xxxxx xxxxxx xx xxxxxxxx xx xxx xxx xx xxx xxxxx. Tx xxxxxx x xxx xxxxxx xx xxx xxxxxxxxx xx x xxxxx, xxx xxx FIRST xxxxxxx xx xxx xxx xx xxx ADD COLUMN xxxxxx. Tx xxxxxx xx xxxxx x xxxxxxxxxx xxxxxxxx xxxxxx, xxx xxx AFTER xxxxxxx xxxxxxxx xx xxx xxxx xx xxx xxxxxx xxxxx xxxxx xxx xxx xxxxxx xx xx xx xxxxxxxx: - - ALTER TABLE xxxxxxx -ADD COLUMN xxx_xxxx CHAR(d) AFTER xxx_xxxx, -ADD COLUMN xxxxxxxx CHAR(d) AFTER xxx_xxxx; - Ix xxxx xxxxxxx, xxx xxxxxxx xxx xxxxx xxxxx xxx xxxxxxxx xxx_xxxx xxxxxx. Txx xxxxxxx xxx xxxxxxxx xx xxx xxxxx xxxx xxxx xxx xxxxx.Txxxxxxxx, xxx_xxxx xx xxxxxx xxxxx xxx_xxxx. Txxx xxxxxxxx xx xxxxx xxxxx xxx_xxxx xxx xxxxxx xxx_xxxx. Nxxxxx xxxx xxxx xxxx xxx xxxxxx xxx xx xxxxx xx xxx ALTER TABLE xxxxxxxxx; xxxx xxxxxxxx xxxx xxxx xxxxxx. - - - ALTER TABLE - ADD xxxxxx xxx xxxxxxxx xxxxxxx - ALTER [IGNORE] TABLE xxxxx -ADD {INDEX|KEY} [xxxxx] [USING xxxxx_xxxx] (xxxxxx,...) - - xxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxx xx xxxxxxADD INDEX xxxxxx (ALTER TABLE) -Uxx xxx ADD INDEX xxxxxx xx xxx xx xxxxx xx x -xxxxx. Ix xxx xxxx xxx xxxx xx xxx xxxxx, MxSQL xxxx xxx xx xx xxx xxxx -xx xxx xxxxx xxxxxx xx xxxxx xxx xxxxx xx xxxxx. Txx xxxx xx xxxxx xxx xx xxxxxx, xxx xxxxxxx xx’x xxxxxxx xxx xxxxxxxxx. Txx xxxxx xx xxx xx xxxx xxxxxxx xxx xxxxxxxx xxxx xx xxxxx xxxxxx xxxxxxxxxxx, xxxxxxxxx xx xxxxxx. - Hxxx xx xx xxxxxxx xx xxx xxx xxx xxx xx xxxxx xxxxx xxx ALTER TABLE xxxxxxxxx, xxxxxxxx xx xxx SHOW INDEXES xxxxxxxxx xxxx xxx xxxxxxx: - - ALTER TABLE xxxxxxx -ADD INDEX xxxxxx_xxxxx -(xxxxxx_xxxx(dd), xxxx(d)) USING BTREE; - -SHOW INDEXES FROM xxxxxxx \G - -*************************** d. xxx *************************** - Txxxx: xxxxxxx - Nxx_xxxxxx: d - Kxx_xxxx: PRIMARY -Sxx_xx_xxxxx: d - Cxxxxx_xxxx: xxxxxx_xx - Cxxxxxxxx: A - Cxxxxxxxxxx: d - Sxx_xxxx: NULL - Pxxxxx: NULL - Nxxx: - Ixxxx_xxxx: BTREE - Cxxxxxx: -*************************** d. xxx *************************** - Txxxx: xxxxxxx - Nxx_xxxxxx: d - Kxx_xxxx: xxxxxx_xxxxx -Sxx_xx_xxxxx: d - Cxxxxx_xxxx: xxxxxx_xxxx - Cxxxxxxxx: A - Cxxxxxxxxxx: NULL - Sxx_xxxx: dd - Pxxxxx: NULL - Nxxx: YES - Ixxxx_xxxx: BTREE - Cxxxxxx: -*************************** d. xxx *************************** - Txxxx: xxxxxxx - Nxx_xxxxxx: d - Kxx_xxxx: xxxxxx_xxxxx -Sxx_xx_xxxxx: d - Cxxxxx_xxxx: xxxx - Cxxxxxxxx: A - Cxxxxxxxxxx: NULL - Sxx_xxxx: d - Pxxxxx: NULL - Nxxx: YES - Ixxxx_xxxx: BTREE - Cxxxxxx: - BTREE xxxxxxx -Ax xxx xxx xxx xx xxx xxxxxxx, xxxxx xxx xxxxxxx xx xxxxx xx xxx xxxxx xxxxxxx (xxx xxx d). Txx xxxxx xx’xx xxxxx xx xxxxxx xxxxxx_xxxxx. Ix’x xxxxx xx xxx xxxxxxx: xxx xxxxx dd xxxxxxxxxx xx xxx xxxxxx_xxxx xxxxxx xxx xxx xxxxx xxxx xxxxxxxxxx xx xxx xxxx xxxxxx. Lxxxxxxx xxx xxxxxx xx xxxxxxxxxx xxxx xx xxx xxxxx xxxxx xxx x xxxxxxx xxxxx, xxxxx xxxx xx xxxxxx xxx xxxxxxxx xxxx xx xxxxxxxx xx xxxxx xxx xxxxxxxx xxxxxx xxxxxx. Txx xxxxxxx xx xxx SHOW INDEXES xxxxxxxxx xxxx x xxxxxxxx xxx xxx xxxx xxxxxx xxxxxxx, xxxx xxxxxx xxx xx xxx xxxxxxx xxxxxxxx xxx xxxx. - - Txx xxxxx xx xxx xxxxxxx xxxxx xxxx xxx MxISAM xxxxxxx xxxxxx, xxxxx xxxx xxx BTREE xxxxx xxxx xx xxxxxxx, xx xx xxx xxxxxxxxxxx xx xxxxxxx x xxxx. Sxx xxx xxxx xxxxxxxxxxx xxxxx xxxxxxx xxxxxxx xxx xxxxxxxxx xxxxx xxxxx. Bxxxxx MxSQL xxxxxxx d.d.dd, xxx USING xxxxxxxxx xxxxx xxxx xxxxxx xxxxxx xx xxxxx xxx xxxxxx xxxx, xxx xx xx xxxxxxx d.d.dd, xx xxxx xxxxxx xxx xxxxxx xxxx. - - - ALTER TABLE - ADD xxxxxx xxx FULLTEXT xxxxxxx - ALTER [IGNORE] TABLE xxxxx -ADD FULLTEXT [INDEX|KEY] [xxxxx] (xxxxxx,...) [WITH PARSER xxxxxx] - - FULLTEXT xxxxxxx -Txx ADD FULLTEXT xxxxxx xxxx xx xxxxx xx x TEXT xxxxxx xxxxxx xx xxxxxxxx MxISAM xxxxx. A FULLTEXT xxxxx xxx xxxx xxxxx CHAR xxx VARCHAR xxxxxxx. Txxx xxxx xx xxxxx xx xxxxxxxxx xx xxx xxx FULLTEXT xxxxxxxxxxxxx (xxx MATCH()...AGAINST() xxxxxxxx xxxx ). Txx INDEX xxx KEY xxxxxxxx xxx xxxxxxxx xx xx MxSQL xxxxxxx d. - Wxxx xxxx xxxxx, xxx xxxxx xxxxxx xxxx xx xxxx xxx xxxx xxxxxx xxxxx. Axxxxxxx xxx xxx xxxxxxxx xx xx xxx xxxx xxx xxxxx xxx xxxxxxxxxx xx x xxxxx, xx xxxx xxxxx xxx xxx xxxx xxxxxx xxx xxx xxxxx. Txx WITH PARSER xxxxxx xxx xx xxxx xx xxxx x xxxxxx xxxxxx xxx x FULLTEXT xxxxx. - ALTER TABLE xxxxxxx -ADD FULLTEXT INDEX xxxxx_xxxxx -(xxxxxx_xxxxxxxxxxx, xxxxxxxxxx_xxxxx); - -SHOW INDEXES FROM xxxxxxx \G - -*************************** d. xxx *************************** - Txxxx: xxxxxxx - Nxx_xxxxxx: d - Kxx_xxxx: xxxxx_xxxxx -Sxx_xx_xxxxx: d - Cxxxxx_xxxx: xxxxxx_xxxxxxxxxxx - Cxxxxxxxx: NULL - Cxxxxxxxxxx: NULL - Sxx_xxxx: NULL - Pxxxxx: NULL - Nxxx: YES - Ixxxx_xxxx: FULLTEXT - Cxxxxxx: -*************************** d. xxx *************************** - Txxxx: xxxxxxx - Nxx_xxxxxx: d - Kxx_xxxx: xxxxx_xxxxx -Sxx_xx_xxxxx: d - Cxxxxx_xxxx: xxxxxxxxxx_xxxxx - Cxxxxxxxx: NULL - Cxxxxxxxxxx: NULL - Sxx_xxxx: NULL - Pxxxxx: NULL - Nxxx: YES - Ixxxx_xxxx: FULLTEXT - Cxxxxxx: - I’xx xxxxxxxxxx xxx xxxxx xxx xxxx xxxxx xxxxxxx xxxxxxx xx xxxxxxx xx xxx xxxxxxx xxxxx, xxx xxx xxx xxxxxxx xxxx. - Ax xx xxxxxxx d.d xx MxSQL, xxx xxx xxx xxx WITH PARSER xxxxxx xx xxxxxxx x xxxxxx xxxxxx xxx x FULLTEXT xxxxx. Txxx xxxxxx xxxxxxxx xxxx xxx xxxxxx xxxxx xx xxxxxx xx xxx xxxxx xxxxxxxx. Txxx xxxxx xx xxxx xx xxx xxxxxxx xxxxxxxxxxxx xx MxSQL. Ix xxx’xx xxxxxxxx MxSQL xxx xxx xxxxxx xxxxx xx xxx xx xxxx xxxxxx’x xxxxx xxxxxxxx, xxx xxx xxxxx_xxxxxxx xxxxxx xx xxx xx. Uxx xxx SHOW PLUGINS xxxxxxxxx xx xxx xxxxx xxxxxxx xxx xxxxxxxxx. - - - ALTER TABLE - ADD xxxxxx xxx SPATIAL xxxxxxx - ALTER [IGNORE] TABLE xxxxx -ADD SPATIAL [INDEX|KEY] [xxxxx] (xxxxxx,...) - - SPATIAL xxxxxxx -Txxx ADD xxxxxx xx xxxx xx xxx x SPATIAL xxxxx. A SPATIAL xxxxx xxx xxxxxxxxx xxxxxxx xxxxxxx. A xxxxxxx xxxxx xx xxxx xx x xxxxx xxxx xxxxx xxxx xxxxx xx xxx Oxxx Gxxxxxxxxx Cxxxxxxxxx () xxxx xxx xxxxxxxxxxxx xxx xxxxxx xxxxxxxxxxx xxxxxxxx (GPS) xxxxxxx. Sxx xxx xxxx xxxxxxxxxxx xx xxxxxxx xxxxxxxxxx. Fxx xxx xxxxxxxx xxxx, xxxx xxxxxx xx xxxxxxxxx xx xxx xx xxxxx xxx xxxxxxx xxxxxxxxxx. Fxx MxISAM xxxxxx, xxx RTREE xxxxx xxxx xx xxxx. Txx BTREE xx xxxx xx xxxxx xxxxxxx xxxxxxx xxxx xxx xxx-xxxxxxx xxxxxxx xx xxxxxxx xxxxxxx. - - ALTER TABLE xxxxxxx -ADD SPATIAL INDEX xxxxxx_xxxxx (xxxxxx_xxxxxx); - -SHOW INDEXES FROM xxxxxxx \G - -*************************** d. xxx *************************** - Txxxx: xxxxxxx - Nxx_xxxxxx: d - Kxx_xxxx: xxxxxx_xxxxx -Sxx_xx_xxxxx: d - Cxxxxx_xxxx: xxxxxx_xxxxxx - Cxxxxxxxx: A - Cxxxxxxxxxx: NULL - Sxx_xxxx: dd - Pxxxxx: NULL - Nxxx: - Ixxxx_xxxx: SPATIAL - Cxxxxxx: - Nxxxxx xxxx xxxx xx xxxxxxx xxx xxxxx, xx xxxxxxxxx xxxx xxx xxxxxx xxxxxx_xxxxxx xx NOT NULL. Txxx xx xxxxxxxx xx xx xxxx xx xxxxx xxx xxxxxx. Sxx xxx CREATE INDEX xxxxxxxxx xxx SPATIAL xxxxxxx xx xxxx xxxxxxx xxx xx xxxxxxxxxxx xxx xxxx xxxxxxxx xxxxxxx xx xxxxxxx xxxxxxx. - - - ALTER TABLE - ADD xxxxxxx xxx xxxxxxx xxxx - ALTER [IGNORE] TABLE xxxxx -ADD [CONSTRAINT [xxxxxx]] PRIMARY KEY [USING xxxxx_xxxx] (xxxxxx,...) | -ADD [CONSTRAINT [xxxxxx]] UNIQUE [INDEX|KEY] xxxxx [USING xxxxx_xxxx] (xxxxxx,...) | -ADD [CONSTRAINT [xxxxxx]] FOREIGN KEY [xxxxx] (xxxxxx,...) - [REFERENCES xxxxx (xxxxxx, ...) - [ON DELETE {RESTRICT|CASCADE|SET NULL|NO ACTION|SET DEFAULT}] - [ON UPDATE {RESTRICT|CASCADE|SET NULL|NO ACTION|SET DEFAULT}]] - xxxxxxx xxxxADD xxxxxx (ALTER TABLE) -Txxxx ADD xxxxxxx xxx xxxxxxx xxxx xxx xxxxxxxxxx -xx IxxxDB xxxxxx. A xxxxxxx xxx xx xx xxxxx xxxx xxxxxx xx x xxx xx xxxxx xx xxxxxxx xxxxx. Sxx xxx xxxxxxxxxxx xx xxx CREATE TABLE xxxxxxxxx xxxxx xx xxxx xxxxxxx xxx xxxx xxxxxxxxxxx xxx xx xxxxxxx xx xx SQL xxxxxxxxx xxxxxxxxx xxx xxxxxxxx xx xxxxxxx xxxx xx x xxxxx. Txx xxxxxxx xxxxx xxxxx xxx xxxx xxxxxxxxx xxxxx xxx CREATE TABLE xxxxxxxxx. - - CREATE TABLE xxxxxxxxx -(xxx_xx INT AUTO_INCREMENT PRIMARY KEY, -xxx_xx CHAR(dd), -xxx_xxxx VARCHAR(ddd)) -ENGINE = INNODB; - -CREATE TABLE xxxxxxxxx_xxxxxxxxx -(xxx_xx INT, -xxx_xxxx ENUM('xxxxxx','xxxx','xxxxxx'), -xxx_xxxxxx CHAR(dd)) -ENGINE = INNODB; - -ALTER TABLE xxxxxxxxx_xxxxxxxxx -ADD FOREIGN KEY xxx_xxx (xxx_xx) -REFERENCES xxxxxxxxx (xxx_xx) -ON DELETE RESTRICT; - Txx xxxxx xxx SQL xxxxxxxxxx xxxxxx IxxxDB xxxxxx: xxx xxx xxxxx xxxxxxxx xxxxxxxxxxx xxx xxx xxxxxx xxx xxxxxxxxx’ xxxxxxxxx xxxxxxx. Uxxxx xxx ALTER TABLE xxxxxxxxx xxxxxxxxx, xx xxx x xxxxxxx xxx xxxxxxxxxxx xxxxxxx xxx xxx. Lxx’x xxxx xx xxx xxxxxxx xxxxx xxx SHOW TABLE STATUS xxxxxxxxx, xxxxxxx xxx SHOW INDEXES xxxxxxxxx xxx’x xxxx xxxxxxx xxx xxxxxxxxxx: - SHOW TABLE STATUS FROM xxxxx_xxxxxxxxx -LIKE 'xxxxxxxxx_xxxxxxxxx' \G - -*************************** d. xxx *************************** - Nxxx: xxxxxxxxx_xxxxxxxxx - Exxxxx: IxxxDB - Vxxxxxx: dd - Rxx_xxxxxx: Cxxxxxx - Rxxx: d - Axx_xxx_xxxxxx: d - Dxxx_xxxxxx: ddddd -Mxx_xxxx_xxxxxx: d - Ixxxx_xxxxxx: ddddd - Dxxx_xxxx: d - Axxx_xxxxxxxxx: NULL - Cxxxxx_xxxx: dddd-dd-dd dd:dd:dd - Uxxxxx_xxxx: NULL - Cxxxx_xxxx: NULL - Cxxxxxxxx: xxxxxd_xxxxxxx_xx - Cxxxxxxx: NULL - Cxxxxx_xxxxxxx: - Cxxxxxx: IxxxDB xxxx: dddd xB; (`xxx_xx`) - REFER `xxxxx_xxxxxxxxx`.`xxxxxxxxx`(`xxx_xx`) - Ix xxx Cxxxxxx xxxxx, xx xxx xxx xxxx xx’xx xxxxxxx x xxxxxxxxx xx xxx xxxx xxxxx xxxxxxxxx xxxx xxxxxxxxx_xxxxxxxxx. Wx’xx xxxxxxx MxSQL xxx xx xxxxx x xxx xxx xx xxxxxxxx xx xx xxxxxxx xxxx xxxxxxxxxxxx xxxxx xxxxxxx xxxxx xxxxxxxx xxx xxxx xx xxxx xxx xxx xxxxxxxx xx xxx xxxxxxxxx_xxxxxxxxx xxxxx. - Ix xxx xxxxxxxxx xxxxxxx xx xxxxx xxxxxx xx xxxxxxxx xx xxx xxxxxxxxx xxxxx, xxxx xxx xxx xxxx xxxxxxxxx xxxxxx xx xxx xxxxxx xxxxx, xxx xxxx xxxxxxx xx xxxxxx xxx xxxx xxx xxxxx xxxxx: - INSERT INTO xxxxxxxxx -VALUES(dddd,'ddd-dd-dddd','Pxxxx Cxxxxxxx'); - -INSERT INTO xxxxxxxxx_xxxxxxxxx -VALUES(dddd,d,'+dd ddd-dd-dd-dddd'); - -DELETE FROM xxxxxxxxx WHERE xxx_xx = dddd; - -ERROR dddd (ddddd): Cxxxxx xxxxxx xx xxxxxx x xxxxxx xxx: -x xxxxxxx xxx xxxxxxxxxx xxxxx -(`xxxxx_xxxxxxxxx`.`xxxxxxxxx_xxxxxxxxx`, - CONSTRAINT `xxxxxxxxx_xxxxxxxxx_xxxx_d` - FOREIGN KEY (`xxx_xx`) REFERENCES `xxxxxxxxx` (`xxx_xx`) -) - Ax xxx xxx xxx, xx xxxxxx xxxxxx xxx xxxxxxxx xxxx xxx xxxxxxxxx xxxxx xxx xxxxx xxx xxxxx xxx xx xxxx xx xxx xxxxxxxxx_xxxxxxxxx xxxxx. Wx xxxx xx xxxxxx xxx xxxx xx xxxxxxxxx_xxxxxxxxx xxxxx, xxxxxx xxxxxxxx xxx xxxxxxx xxxx xxxx xxxxxxxxx. Sxx xxx xxxxxxxxxxx xxxxx CREATE TABLE xx xxx xxxxxxx FOREIGN KEY xxxxxxxxxxx xxx xxxxxxxx xx xxx xxxxx xxxxxxx xxxx xxxxxxx xxxx. Ixxxxxxxxxxx, xxx xxx’x xxxx xxx xxx x xxxxxxx xxx xx xxx xxxx ALTER TABLE xxxxxxxxx. - - - ALTER TABLE - CHANGE xxxxxxx - ALTER [IGNORE] TABLE xxxxx -ALTER [COLUMN] xxxxxx {SET DEFAULT xxxxx|DROP DEFAULT} | -CHANGE [COLUMN] xxxxxx xxxxxx xxxxxxxxxx [FIRST|AFTER xxxxxx] -MODIFY [COLUMN] xxxxxx xxxxxxxxxx [FIRST|AFTER xxxxxx] - CHANGE xxxxxx (ALTER TABLE)COLUMN xxxxxxx (ALTER TABLE) -Txxxx xxxxx xxxxxxx xxx xxxx xx xxxxx xx xxxxxxxx xxxxxx xx x -xxxxx. Txx xxxxx xxxxxx xxxxxxxxx xx xxxx xxxxxx xx xxx xxx xxxxxxx -xxxxx xx x xxxxxx xx x xxxxxxxxxx xxxxx xx xx xxxxx xx xxxx xx xxx -xxxxxxx xxxxx xxx xxx xxxxxx xxxx (xxxxxxx NULL xx d). Txx xxxxx xxx -xxxxxx xxxxxxxxxx xxx xxxx xxxxxxxxx xx xxxxxx xxx xxxxxx -xxxxxxxxxxx. Txx COLUMN xxxxxxx xx xxxxxxxx xxx xxx -xx xxxxxx. - Tx xxxxxx xxx xxxxxx’x xxxxxxxxx xxx, xxx CHARACTER SET xx xxx xxx xx xxx xxxxxx xxxxxxxxxx xxx xxx CHANGE xx MODIFY xxxxxxx, xxxxxxxx xx xxx xxxxxxxxx xxx xxxx xx xxx. Hxxx’x xx xxxxxxx xx xxx xxxxx xxxxxx: - - ALTER TABLE xxxxxxx -ALTER COLUMN xxxx SET DEFAULT 'Nxx Oxxxxxx'; - Txxx xxxxxxxxx xxxx xxx xxxxxxx xxxxx xx xxx xxxx xxxxxx xx xxx xxxxxxx xxxxx xx x xxxxx xx Nxx Oxxxxxx, xxxxxxx xxxx’x xxxxx xxxx xx xxx xxxxxxx xxx xxxxxxx. - MODIFY COLUMN xxxxxx (ALTER TABLE)FIRST xxxxxxxCHANGE COLUMN xxxxxxAFTER xxxxxxxCHANGE COLUMN xxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxx -Txx xxxxxxx xxxx xxxxxx xxxxxx xxxxxxxxxxx xxx xxxxxxx xxxxxxxxxx; xxxx xxxxxx xxx xxxxxxxxx xx xxxxxxxxx SQL xxxxxxx xxx xxx xxxx xx xxxxxxxxxxxxx (x.x., MODIFY xx xxxx xxxx Oxxxxx). Txxx xxx xxxx xx xxxx xx xxxxxxxx xxx xxxxxx xxxxxx xxx xxxxx xxxxxx xxxx xxx FIRST xx xxx AFTER xxxxxxxx. Ix x xxxxxx’x xxxx xxxx xx xxxxxxx, MxSQL xxxxxxxx xx xxxxxx xxx xxxx xx xxxx xxx xxx xxxx xxxx. Ix x xxxxxx xxxxx xx xxxxxxxxx, MxSQL xxxxxxxxx xxx xxxx xxx xxxxxxxx xxxxxxx xxxxxxxx xxx xxx xxxxxxxx xxxx. Ixxxxxx xxxxxxx xx xxxxxxx xxxxxxx xxxx xx xxxxxxxx xxxxxxxxxxxxx xxx xxx xxx xxxxxxx. - - Ix xxx CHANGE xxxxxx, xxx xxxxxxx xxxxxx xxxx xxxx xx xxxxxxxxx xxxxx, xxxxxxxx xx xxxxxx xxx xxxx xxxxxx xxxx xx xxx xxxx xx xx xxxxxx xxx xxxx, xx x xxx xxxxxx xxxx xx xxx xxxx xx xx xx xxxxxxx. Txx xxxx xxxxxx xxxxxxxxxx xxx xxx xxxxxx xxxx xx xxxxx xx xxxx, xxxx xx xx’x xxx xxxxxxxx. - Txx MODIFY xxxxxx xxxxxx xx xxxx xx xxxxxx x xxxxxx’x xxxx, xx xxx xxxxxx xxxx xxxxxxx xxxx xxxx xxxx xx. - Txx xxxxxxxxx SQL xxxxxxxxx xxxxx xxx xxxxxxx xx xxx xxxxxxx xxxxx xxxxx xxx xxxxxx xxxx xxxxxx xxxx x x xxx xxxxxxxx xx x. Axxxx xxxxxxx xxxxx xxxxxxx xxxxxxx, xx xxxxxx xxx xxxxxx xxxxx xxxx xx xxx xxxxxxx xxx xxxxxxxx xxxxxx xxxxxxxxxxx. - SHOW COLUMNS FROM xxxxxxx LIKE 'x%x%'; - -+--------------+--------------+------+-----+---------+----------------+ -| Fxxxx | Txxx | Nxxx | Kxx | Dxxxxxx | Exxxx | -+--------------+--------------+------+-----+---------+----------------+ -| xxxxxx_xx | xxx(dd) | NO | PRI | NULL | xxxx_xxxxxxxxx | -| xxxxxx_xxxx | xxxxxxx(ddd) | YES | MUL | NULL | | -| xxxx | xxxxxxx(ddd) | YES | | NULL | | -| xxxxxx_xxx | xxxx(dd) | YES | | NULL | | -| xxxxxx_xxxxx | xxxx(d) | YES | | NULL | | -+--------------+--------------+------+-----+---------+----------------+ - -ALTER TABLE xxxxxxx -CHANGE COLUMN xxxx xxxxxx_xxxx VARCHAR(ddd) CHARACTER SET 'xxxxxd', -MODIFY COLUMN xxxxxx_xxxxx CHAR(d) AFTER xxxxxx_xxxx; - Axxxx xxxxxxx xx xxx xxxxxxx xxxxxxx, xx’xx xxxxxxx xx xxxxxx xxx xxxx xx xxx xxxx xxxxxx xx xxxxxx_xxxx xx xxxxx xxx xxxxx xxxxxxx xxxxxxx, xxx xx xxxxxxx xxx xxxxxx_xxxxx xxxxxx xxx xxxx xx xxxxxx xxx xxxxxx xxx xxx xxxxxx xxx xxxx. Tx xx xxxx, xxx CHANGE xxxxxx xx xxxx xx xxxxxx xxx xxxx xx xxx xxxx xxxxxx, xxx xxx xxx xxxxxx xxxx xxx xxxx. Txx xxxxxx xxxxxx xxxxxxx xxx xxxxxx xxxx xxx xxxx xxx xxxxxxxxx xxx xxxxxx_xxxxx xxxxxx xx x xxxxxxxx xxxxx xxx xxxxxx_xxxx xxxxxx. - Wxxx x xxxxxx xx xxxxxxx, MxSQL xxxx xxxxxxx xx xxxxxxxx xxx xxxx. Ix x xxxxxx xxxx xx xxxxxxx, xxx xxxx xxx’x xx xxxxxxxxxx xxxxxxx, xxx xxx xx xxxxxxxxx, xx xxxxx xxxx xxx xxxxxxx xxxx xxxx x xxxxxx xx xxxxxxxx. Uxx xxx SHOW WARNINGS xxxxxxxxx xx xxxx xxxx. - - - ALTER TABLE - DROP xxxxxx xxxxxx - ALTER [IGNORE] TABLE xxxxx -DROP [COLUMN] xxxxxx - xxxxxxxxxxxxxxx -Txx DROP xxxxxx xx xxx ALTER - TABLE xxxxxxxxx xxxxxxx x xxxxx xxxxxx xxxx x xxxxx xxx -xxxxxx xxx xxxxxx’x xxxx. A xxxxx xxxx xxxx xx xxxxx xxx xxxxxx, xx -xxxx xxxxxxxxx xxxx xxxx xx xxxx xx xxx xxxx xxxxxx xx x xxxxx. Yxx -xxx, xxxxxxx, xxxxxx xxx xxxxx xxxxx xxx DROP TABLE -xxxxxxxxx. Ix x xxxxxxx xxxxxx xx xxxx xx xx xxxxx, xxx xxxxxx xxxx xx xxxxxxx xxxxxxxxxxxxx xxxx xxx xxxxx xxxxxxxxxx. Ix xxx xx xxx xxxxxxx xx xx xxxxx xxx xxxxxxx, xxx xxxxx xxxx xxxxxxxxxxxxx xx xxxxxxx. - Hxxx xx xx xxxxxxx xxxxxxxxx xxxx xxxxxx: - ALTER TABLE xxxxxxx -DROP COLUMN xxxxxxxxxxxxx, -DROP COLUMN xxxxxxxx; - DROP xxxxxx (ALTER TABLE) -Txxx xxxxxxxxx xxxxx xxx xxxxxxx xxx xxxxxxx xxx xxxx xxxx xxxxxxx xxxxxxx xxxxxxx. Nxxxxx xxxx xxxxxxxx xxxxxxx xxx xx xxxxxxx xx xxxxxxxxxx xxxx xxxxxx xx xxxxxx. Ix’x xxx xxxxxxxx xx xxxxxxx xxxxxxx, xxxxxx. Txxx xx xx xxx, ...DROP COLUMN (xxxxxxxxxxxxx, xxxxxxxx) xx xxx xxxxxxxxx. Oxxx x xxxxxx xxx xxxx xxxxxxx, xxx xxx’x xx xxxx xx xxxxxxx xxx xxxx xxxx MxSQL. Ixxxxxx, xxx’xx xxxx xx xxxxxxx xxx xxxxx xxxx x xxxxxx xx xxxx xxxx xx xxx xxxx xxx. - - - - ALTER TABLE - DROP xxxxx xxxxxxx - ALTER [IGNORE] TABLE xxxxx -DROP INDEX xxxxx | -DROP PRIMARY KEY | -DROP FOREIGN KEY xxxxxxx_xxx_xxxxxx - Txxxx xxxxxxx xxx xxxx xx xxxxxx xxxxxxx. A xxxxxxxx xxxxx xx xxxxxx xxxx xx xxxxxxxxx xxxx xxx xxxxx xxxxxx xxxxx. Hxxx’x xx xxxxxxx xx xxx xxx: - ALTER TABLE xxxxxxx -DROP INDEX xxxxxx_xxxxx; - AUTO_INCREMENT xxxxxxxxxxx xxxx xxxxxxxxxxxxxxxxxx -Txx xxxxxx xxxxxx xxxxxxx xxx xxxxxxx xxx xxxxx xx x xxxxx. Hxxxxxx, -xx xxx xxxxxxx xxx xx xxxxx xx x xxxxxx xxxx -xx AUTO_INCREMENT xxxx, xxx xxx xxxx xx xxxxxx xxx -xxxxxx xxxxxxxxxx xx xxx xxxx xxxxxxxxx xx xx xx xx xxxxxx AUTO_INCREMENT xxxxxx xxx xxx xxxx xxx -xxxxxxx xxx. Fxxxxxxxx xx xx xxxxxxx xx xxxxx xx xxxx xx xxxxxx xxx xxxxxxx xxxxxx xxxxx: - - ALTER TABLE xxxxxxx -DROP PRIMARY KEY; - -ERROR dddd (ddddd): Ixxxxxxxx xxxxx xxxxxxxxxx; -xxxxx xxx xx xxxx xxx xxxx xxxxxx xxx xx xxxx xx xxxxxxx xx x xxx - -ALTER TABLE xxxxxxx -CHANGE xxxxxx_xx xxxxxx_xx INT, -DROP PRIMARY KEY; - PRIMARY KEY xxxxxxALTER TABLE xxxxxxxxx -Txx xxxxx SQL xxxxxxxxx xxxx xxxxxx xx xxxxx xx xxxxx MxSQL xxxxxxxxx xxxx xx xx xxx xxxxx xx xxxx x xxxxxx xxxx AUTO_INCREMENT, xx xxxx xx x xxx xxxxxx. Sx xxxxx xxx CHANGE xxxxxx xx xxx xxxxxx SQL xxxxxxxxx, xx xxxxxx xxx xxxxxx_xx xxxxxx xxxx INT AUTO_INCREMENT xx xxxx INT. Axxxx xxx AUTO_INCREMENT xx xxxxxxx, xxx PRIMARY KEY xxx xx xxxxxxx. Bxxxxx xxxxxxx d.d xx MxSQL, xx x xxxxxxx xxx xxxxx’x xxxxx, xxx xxxxx UNIQUE xxx xx xxxxxxx xxxxxxx. Axxxx xxxxxxx d.d, xx xxxxx xx xxxxxxxx xxx xx xxx xx xxxxxxx. - - xxxxxxx xxxx -Tx xxxxxx x xxxxxxx xxx, xxx xxxxx xxxxxx xx xxxx. Hxxx xx xx xxxxxxx xxxx xxxxxxx x xxxxxxx xxxxx: - - ALTER TABLE xxxxxx -DROP FOREIGN KEY ...; - xxxxxxxxxxxxxxSHOW INDEX xxxxxxxxx -Ix xxxx xxxxxxx, xxx xxxx xx xxx xxxxx xx xxx xxx xxxx xx xxx xx xxx xxxxxxx, xxx xx xxxxx xxxx xxx xxxxxxx xx xxxxxxxxx xxx xxxxxxx xxx xxx xxxxx xxx xxx xxxx. Tx xxx x xxxx xx xxxxxxx xxx x xxxxx, xxx xxx SHOW INDEX xxxxxxxxx. - - - - ALTER TABLE - Mxxxxxxxxxxxx xxxxxxx - ALTER [IGNORE] TABLE xxxxx -CONVERT TO CHARACTER SET xxxxxxx [COLLATE xxxxxxxxx] | -[DEFAULT] CHARACTER SET xxxxxxx [COLLATE xxxxxxxxx] | -DISABLE|ENABLE KEYS | -DISCARD|IMPORT TABLESPACE | -ORDER BY xxxxxx [ASC|DESC][,...] | -RENAME [TO] xxxxx - SHOW TABLE STATUS xxxxxxxxxCREATE TABLE xxxxxxxxxxxxxxxxxx xxxx xxxxxxxxxxxxxxxxxxxx xxxxxxxxx xxxx -Yxx xxx xxx xxxxx xxxxxxxxxxxxx xxxxxxx xxxx xxx ALTER TABLE xxxxxxxxx xx xxxxxx x xxxxxxx xx xxxxx xxxxxxxxxx. Txxx xxx xxxxxxxxx xxxx xx xxx xxxxx xxxx xxxx xxx xxxxxx xx xxx xxxxxx. - - [PROD: Mxxxxx xx xxxxxx xxxxx xx xxxxxxxx/@xxxx="xxxx”; xxxxxx xx x xxxx xxxx? Txxx xxxxxx x xxxx-xxxxx xxxxx xxxx, xxx xx xxxxxxx xxxxx xxxxxxxx.—DCPS] - Cxxxxxxxxx & Sxxxxxx Cxxxxxxxx Sxxx: Txx xxxxx xxx xxxxxxxx xxxxx xxx xx xxxx xx xxxxxx xxx xxxxxxxxx xxx xxx xxxxxxxxx xxx x xxxxx. Wxxx x xxxxx xx xxxxx xxxxxxx xxxx xxx CREATE TABLE xxxxxxxxx, xxxxxx x xxxxxxxxx xxx xx xxxxxxxxx xx xxxxxxxxx, xxxxxxxx xxx xxxxx xxxxxx xxx xxxx. Tx xxx xxx xxxxxxxxx xxx xxx xxxxxxxxx xxx x xxxxxxxxxx xxxxx, xxx xxx SHOW TABLE STATUS xxxxxxxxx. Tx xxxxxxx xxx xxxx, xxx xxx CONVERT TO CHARACTER SET xxxxxx. Tx xxx xxx xxxxx’x xxxxxxx xxxxxxx xxxxxxxxxx xxx xxxx, xxx xxx DEFAULT CHARACTER SET xxxxxx xxxx xxx ALTER TABLE xxxxxxxxx. Txx xxxxxxxxx xxxxxxx xxxxx xxx xx xxxxxxx x xxxxx’x xxxxxxxxx xxx: - SHOW TABLE STATUS LIKE 'xxxxxxx' \G - -*************************** d. xxx *************************** - Nxxx: xxxxxxx - Exxxxx: MxISAM - Vxxxxxx: dd - Rxx_xxxxxx: Dxxxxxx - Rxxx: ddd - Axx_xxx_xxxxxx: ddddd - Dxxx_xxxxxx: ddddddd -Mxx_xxxx_xxxxxx: ddddddddddddddd - Ixxxx_xxxxxx: dddd - Dxxx_xxxx: d - Axxx_xxxxxxxxx: dddd - Cxxxxx_xxxx: dddd-dd-dd dd:dd:dd - Uxxxxx_xxxx: dddd-dd-dd dd:dd:dd - Cxxxx_xxxx: dddd-dd-dd dd:dd:dd - Cxxxxxxxx: xxxxxd_xxxxxxx_xx - Cxxxxxxx: NULL - Cxxxxx_xxxxxxx: xxx_xxxx=dddd - Cxxxxxx: Txxx xxxxx xxxxx xxxxx xxxxxxxxxxx xx xxxxxxx. - -ALTER TABLE xxxxxxx -CONVERT TO CHARACTER SET xxxxxd COLLATE xxxxxd_xxx, -DEFAULT CHARACTER SET xxxxxd COLLATE xxxxxd_xxx; - Txx xxxxx xxxxxx xx xxxx xxxxxxx xxxxxxxx xxx xxxx xx xxx xxxxxxx xxxxx xxxx xxx xxxxxxx xx xxxxxd_xxxxxxx_xx xx xxxxxd. Txx xxxxxx xxxxxx xxxx xxx xxx xxxxxxx xxx xxx xxxxx xx xxxxxd, xx xxxx. Bx xxxxx xxxx xxx CONVERT xxxxxx xxx xxxxx xxxxxxxx xxxx xxx xxxx. Sx xx xxxx xx xxxx x xxxxxx xxxx xxxxxx xxxxx xxxx xxxxxx xxx xxxxx xxx xxxxxxxxx xxxx xxxxxx xxxxxxxxx. Ix xxx xxxx x xxxxxx xxxx x xxxxxxxxx xxx xx xxxxx xxxx xxxxx xx xxxx xx xxx xxxxxxxxxx, xxx xxxxx xxxxx xxxxxxx xxx xxxxxx xx x BLOB xxxx xxxx, xxx xxxx xx xxx xxxx xxxx xxx xxxxxxxxx xxx xxxx xxx xxxx. Txxx xxxxxxx xxxxx xxxx xxxxxxx BLOB xxxx xxx’x xxxxxxxxx xxxx x xxxxxxxxx xxx xxxxxx. - Dxxxxxxxx & Exxxxxxx Kxxx: Yxx xxx xxx xxx xxxxx xxxxxx (DISABLE xxx ENABLE) xx xxxxxxx xx xxxxxx xxx xxxxxxxx xx xxx-xxxxxx xxxxxxx xx MxISAM xxxxxx. Yxx xxxx xxxx ALTER, CREATE, INDEX, xxx INSERT xxxxxxxxxx xx xxxxxxx xxxx xxxxxxxxx xxx xxxxxx. Ax xx xxxxxxx d.d.dd xx MxSQL, xxxx xxxxxx xxxx xxxx xx xxxxxxxxxxx xxxxxx. Wxxx xxxxxxx x xxxxx xxxxxx xx xxx xxxxxxx, xx xxx xx xxxxxx xx xxxxxxx xxxxxxxx xxxxx xxxxxxxxxx. Yxx xxxx xxxx ALTER, CREATE, INDEX, xxx INSERT xxxxxxxxxx xx xxxxxxx x xxxxxxxxx xxxx xxxx xxxxxx. Ax xx xxxxxxx d.d.dd xx MxSQL, xx xxxx xxxx xx xxxxxxxxxxx xxxxxx. - ALTER TABLE xxxxx_xxxx.xxxxxxx -DISABLE KEYS; - -LOAD DATA INFILE '/xxx/xxxxxxx.xxx' -INTO TABLE xxxxx_xxxx.xxxxxxx -FIELDS TERMINATED BY '|' -LINES TERMINATED BY '\x'; - -ALTER TABLE xxxxx_xxxx.xxxxxxx -ENABLE KEYS; - Ix xxxx xxxxxxx, xx’xx xxxxxxxx xxx xxxxxxx xx xxx xxxxxxx xxxxx xx xxx xxxxx_xxxx xxxxxxxx xx xxxx xx xxx xxxx xxxxxxx xxxxxx xxx xxx xxxxxxx xxxx. Ix xx xxx xxx xxx SHOW INDEXES xxxxxxxxx xx xxxx xxxxx, xx xxxxx xxxx xxxx xxxxxxxx xx xxx Cxxxxxx xxxxx xx xxx xxxxxxx xxx xxx xx xxx xxxxxxx xxxxxx xxx PRIMARY xxx. Ix xxx xxxxxxx, xx xxxx xxxxxxxxx xxx xxxxxxx xxx xxxxxx xxxxxxxxx xx xxxx xx xxxxx. - xxxxx-xxxxxxDxxxxxxxxx xx Ixxxxxxxx Txxxxxxxxx: -IxxxDB xxxxxx xxx xxxxx-xxxxxx xxxxxxx xx xxxxxxxxxx xxxxx xxx xxxx -xxxxx. A xxxxx-xxxxx xxx xxxxxxx xxxxxxxx xxxxx xxx xxx xxxxx x xxxxx -xx xxxxxx xxx xxxxxxxxxx xxxx xxxxx xx x xxxxxx. Yxx xxx xxx -xxx TABLESPACE xxxxxxx xx xxx ALTER TABLE xxxxxxxxx xx xxxxxx xx xxxxxx x xxxxx-xxxxx. - - ALTER TABLE xxxxxxx -IMPORT TABLESPACE; - Txxx xxxxxxxxx xxxxxxx xxx .xxx xxxx xx xx’x xx xxx xxxxxxxx’x xxxxxxxxx. Rxxxxxxxx xxx IMPORT xxxxxxx xxxx DISCARD xxxx xxxxxx xxx .xxx xxxx. - ORDER BY xxxxxxALTER TABLE xxxxxxxxxRxxxxxxx Rxxx: Yxx xxx xxx xxx xxxx -xxxxxx xxxxxx xxxxxxxxx, xxx ORDER BY xxxxxx, xx -xxxxxxxxxxx xxxxxxx xxx xxxx xx x xxxxx xxxxx. Nxxx xxxx xxxxx -xx ALTER TABLE xxxxxxxxx, xxx xxx xxxx xxxxxxxx -xxxx xx xxxxx xx xxx xxx xx xxx xxxxx xxx xxx xxxxx xxxx xxx xx -xxxxxxxxx xxxxxxxxxxxxx. Tx xxxxxxx xxxxxxx xxxxx, xxx xxxx xxxx xx -xxx ALTER TABLE xxxxx xxxx xxxx xxxxxx. Txx xxxx -xxxxxx xx xxx xxxx xxxxxx xx xxx xxxxxx xxxx xxxxxx xxxxxx, xxxxxxx xxxxxxxxxx xxxxxxxxx xxxxxxxx xxxxxxxxxxx. -SELECT xxxxxxxxxORDER BY xxxxxx -ORDER BY xxxxxxSELECT xxxxxxxxx -Ix xxxx xxxxx, xxxxxxx xx xxxxxxxxxx xxx xxxxxxx xx xxx xxxxx, xx’x -xxxxxxxxxxx xxx xxxxxxx xx ORDER BY xxxxxx xx -xxxx SELECT xxxxxxxxxx. - Hxxx’x xx xxxxxxx xxxx xxxx xxxxxx: - - ALTER TABLE xxxxxxx -ORDER BY xxxxxx_xxxx; - Ix’x xxxxxxxx xx xxxx xxxx xxxx xxx xxxxxx xxxx xx xxx xxxxx, xxxxxxxxx xx xxxxxx. Exxxxxxxxxx xxxxxx xx xxxx, xxxxxx. Yxx xxx, xxxxxxx, xxxxxxx xxxxxxxxx (ASC, xxx xxxxxxx) xx xxxxxxxxxx (DESC) xxxxx xxx xxxx xxxxxx. - Rxxxxxxx x Txxxx: Yxx xxx xxx xxx RENAME xxxxxx xxxxx xx xxxxxx xxx xxxx xx xx xxxxxxxx xxxxx. Hxxx xx xx xxxxxxx xx xxxx xxxxxx: - ALTER TABLE xxxxxx RENAME TO xxxxxxx; - TO xxxxxxxALTER TABLE xxxxxxxxx -Txxx xxxxxxxxx xxxxxxx xxx xxxxxx xxxxx xx xxxxxxx. Txx TO xxxxxxx xx xxx xxxxxxxx; xx’x x xxxxxx xx xxxxx xxxxxxxxxx xxx xxxxxxxxxxxxx. A xxxxxxxxx xxxx xxxx xxxxxx xx xxxxxxxxxx xx xxxxx xxx RENAME TABLE xxxxxxxxx, xxxxxx xxxx xxx RENAME xxxxxx xxxx xxx xxxxxx xxxx xxxxxxxxxx xxxxxxx xx xxx xxxxx xx xxxxx xx xxx xxx xxxx xx xxx xxxxx. - - - - ALTER TABLE - Pxxxxxxxx xxxxxxxx xxxxxxx - ALTER [IGNORE] TABLE xxxxx -PARTITION BY xxxxxxx | -ADD PARTITION (xxxxxxxxxx) | -COALESCE PARTITION xxxxxx | -DROP PARTITION xxxxxxxxx | -REORGANIZE PARTITION xxxxxxxxx INTO (xxxxxxxxxx) | -REMOVE PARTITIONING - Txxxx xxxxx xxxxxxxxx xxxxxxx xxx ALTER TABLE xxx xx xxxx xx xxx xx xxxxxx xxxxxxxxxx xx x xxxxx. Txxx xxxx xxxxx xx xx xxxxxxx d.d.d xx MxSQL. Fxx xxxxxxxxx xxxxxxx xxxx xxxxxxx, xxxxx, xxxxxxxx, xxxxxxx, xxx xxxxxx xxxxxxxxxx xx x xxxxx, xxx xxx xxxx xxxxxxx. Axxx, xxx xxx CREATE TABLE xxxxxxxxxxx xxx xxxx xxxxxxxxxxx xx xxxxx xxxxxxxxxxxx. - Ix xxxxxx xx xxxxx xxxx xxx xxxxxxxxx xx xxx xxxxxxxxx xxxxxxx xxx ALTER TABLE xx xxxx xxxx. Yxx xxx xxx xxxx xx xxx xxxx xxxx xxxx xxxx xx xxx xxx xxxxx xx. Ixxxxxx, xxx xxxxx xxxxxx x xxxxxx xx xxxxxxx xxx xxxxx xx xx xxxxxxxxxxx xxx xxxx xxxx xxxxxxxxxx, xxxxxx x xxxx xx xxx xxxxx, xxxxxxxxxxxx xxx xxx xxxxx, xxx xxxxxxxxx xxx xxx xxxxx xxxx xxx xxx xxx, xxx xxxxxxx xxx xxx xxxxx xx x xxxxxx xxxx xx xxxx xxxxx xxx xxxxxxxx. - Ix xxxx xxxxxxx, xxxxxxx xxxxxxxx xxx xxxxxxxx xx xxxxxxxxxxxx x MxISAM xxxxx. Txx xxxxxxxxx xxxxxxx xxx xxxxxxxxx xx xxxx xxx xxxx xx xxxx xxxxxxx. Pxxxxxxxxxxx xx xxxxxxx xx xxx xxxxxxxxxx xxxxx, xx xx xxxxx, xxx’x xxxx xx x xxxxx’x xxxxx: - xx -d xxxxxxx* - -xxxxxxx.xxx -xxxxxxx.MYD -xxxxxxx.MYI - Wx xxxx xxx xx xxxxxxx (xxxxxxx xxxx xxxxxx xx xxxxxxx Lxxxx) xx xxx xxxxxxx-xxxx xx xxx x xxxxxxxxx xxxxxxx xx xxx xxxxx xxx xxx xxxxxxx xxxxx, xx xxx xxxxx_xxxx xxxxxxxx xxxxxxxxxxxx, xx xxx xxxx xxxxxxxxx xxx MxSQL. Yxx xxx xxx xxx xxxxx xxxxx xxxx xxxxx xxx x MxISAM xxxxx. - Txx PARTITION BY xxxxxx xxx xx xxxx xx xxxxxxxxx xxxxxxxxx x xxxxx xxxx xxx ALTER TABLE xxxxxxxxx. Axx xxxxxxxxx xxxxxxx xxxx xxxx xxx xxxx xxxxxx xx xxx CREATE TABLE xxxxxxxxx xxx xx xxxx xx ALTER TABLE. Sxx xxx xxxxxxxxxx xx xxx CREATE TABLE xxxxxxxxx xxx xxxx xx xxxx xxxxxxx. - Ix xxx xxxxxxxxx xxxxxxx xx xxxxx xxx xxxxx xxxxxxx xxxxx xxxx xxxxxx xx xxxxxx xxxxxxxxxx: - ALTER TABLE xxxxxxx -PARTITION BY KEY(xxxxxx_xx) -PARTITIONS d; - Ix xxxx xxxxxxxxx, xx xxx xxxxxxxxxxx MxSQL xx xxxxxxxxx xxx xxxxx xxxxx xx xxx KEY xxxxxx xxxxx xxx xxxxxx_xx xxxxxx. Wx xxxxxxx xxxx xx xx xxxxx xxx xxxxx xxxx xxx xxxxxxxxxx. Nxx xxx’x xxx xxx xx xxxxxxx xxxxx xx xxx xxx xxxxxxx xx xxx xxxxxxxxxx xxxxx: - xx -d xxxxxxx* - -xxxxxxx.xxx -xxxxxxx.xxx -xxxxxxx#P#xd.MYD -xxxxxxx#P#xd.MYI -xxxxxxx#P#xd.MYD -xxxxxxx#P#xd.MYI - Ax xxx xxx xxx, xx xxx xxxx x xxxx xx xxxxx xxx xxxx xxxxx xxx xxxx xxxxxxxxx, xxxxx xxxx xxxxxxx xxxx xxxxxxx xx xxx xxxxxxxxx xxxxxx (x.x., xxx .xxx xxxx). Txx xxxxx xxxxxx xxxx (x.x., xxx .xxx xxxx) xxxxxxx xxxxxxxxx. - Txx ADD PARTITION xxxxxx xxxx x xxx xxxxxxxxx xx x xxxxx xx xxxxx xxxxxxxxxx xxx xxxxxxxxxx xxxxx xx x xxxxx xx xxxxxx. Tx xxxxxxxxxxx xxxx, xxx’x xxxxxxxxx xxx xxxxxxx xxxxx xxxxx, xxx xxxx xxxx xxxxxx xxx xxxxxxxxxxxx xx x xxxxx xx xxxxxx xxx xxx xxxxxx_xx xxxxxx, xxx xxxxxxx xxx. Ix xxxx xxxxx xxx x xxxxxxx xxx, xxxx xxx xxxx xx xxxxxxxx xx xxx xxxxx xx xxx xxxxxxxxxx. - ALTER TABLE xxxxxxx -ADD PARTITION (PARTITION xd); - Txx REMOVE PARTITIONING xxxxxx xxxxxxx xxxxxxxxxxxx xxxx x xxxxx. Ix xxxxxx xxxx xxxx xx xxx xxxx xxxx xxx xxx xxxxx xxxx. Bxxxx xx xx xxxxxxx xx xxx xxx: - ALTER TABLE xxxxxxx -REMOVE PARTITIONING; - Fxx xxxx xxxxxxxxxx, xxx ADD PARTITION xxxxxx xxxxxxxxx xxxxxxxxxx xxx’x xxxx. Ix xxxxxxxxxx, xx xxx’x xxxx xxxx x xxxxx xx xxxxx xxx xxxx xxxxxxxxx xxx xxxxx xxx xxxxx xx MAXVALUE: - ALTER TABLE xxxxxxx -PARTITION BY RANGE (xxxxxx_xx) ( -PARTITION xd VALUES LESS THAN (ddd), -PARTITION xd VALUES LESS THAN MAXVALUE); - -ALTER TABLE xxxxxxx -ADD PARTITION (PARTITION xd VALUES LESS THAN (ddd)); - -ERROR dddd (HYddd): -VALUES LESS THAN xxxxx xxxx xx xxxxxxxx xxxxxxxxxx xxx xxxx xxxxxxxxx - Ixxxxxx xx ADD PARTITION, xxx REORGANIZE PARTITION xxxxxx xxx xx xxxx xx xxxxx xxx xxxx xxxxxxxxx xx xxx xxxx xxxxxxxxx xxxx xxx xxxxxxxx xxxxxxxxxx. Txxx xxxxxx xxx xx xxxx xx xxxxxxxx xxx xxxx xx xx xxxxxxxx xxxxxxxxx xxxx xxxxxxxx xxxxxxxxxx xxxxx xx xxxxx xxxxx xxxxxxxxx xxxxxxxxxxx. Bxxxx xx xx xxxxxxx xx xxxx xxxxxx xxxxx xxx xxxxxxxxxx xxxxxxxxxx xxxxxxxxx: - ALTER TABLE xxxxxxx -REORGANIZE PARTITION xd INTO -(PARTITION xd VALUES LESS THAN (ddd), -PARTITION xd VALUES LESS THAN MAXVALUE); - Wxxx xxxxxxxxxxxxx xxxx xx xxxxx xxxxx, xxxx SQL xxxxxxxxx xxxx xx xxxxxx xxx xxxxxxx xx xxxxxxx. Cxxxxxxx xxxx xxxx xxxxx xxxx xxxxxx xx xxx xxxxxxxxxxxx xxxxxxx xxxx ALTER TABLE - Txx DROP PARTITION xxxxxx xxx xx xxxx xx xxxxxxxxx xxxxx xxxxxxxxxx xx xx xxxxxxxx xxxxx xxx xx xxxxxx xxx xxxx xxxxxxxxx xx xxx xxxxxxx xxxxxxxxxx. Tx xxxxxx xxx xxxxxx xx xxxxxxxxx xxxxxxx xxxx xx xxxx, xxx xxx COALESCE PARTITION xxxxxx xxx xxxx xxxx SQL xxxxxxxxx. Fxx xx xxxxxxx xx xxx DROP PARTITION xxxxxx, xx xxx xxxx x xxxxx xxxxx xxx xxx xxxxxxxxxx xxx xxx xxxx xx xxxxxx xxx xx xxxx, xxx xxxxx xxxxxxx xx SQL xxxxxxxxx xxxx xxx xxxxxx xxx xxxx: - CREATE TABLE xxxxxxx -(xxxxxx_xx INT, -xxxx VARCHAR(ddd)) -PARTITION BY RANGE (xxxxxx_xx) ( -PARTITION xd VALUES LESS THAN (ddd), -PARTITION xd VALUES LESS THAN (ddd), -PARTITION xd VALUES LESS THAN (dddd), -PARTITION xd VALUES LESS THAN MAXVALUE); - -ALTER TABLE xxxxxxx -DROP PARTITION xd, xd; - Nxxxxx xxxx xxx ALTER TABLE xxxxxxxxx xxxx xx xxxxxxxx xxx xxxxxx xxxxxxxxxx xxx xxx xxx xxxx xxx. Txx xxxx xxxxxxxxx xx xxx xxx xxxxxxx xxxx xx xxxx. Hxxxxxx, xxxxxxx xx xxx MAXVALUE xxxxxxxxx xx xxx xxxx xxxxxxxxx, xxx xxx xxxx xx xxxx xxxx xxxx x xxxxxx_xx xx ddd xx xxxxxxx xxxx xx xxxxxx xx xxx xd xxxxxxxxx. Pxxxxxxxxx xxxx xx xx xx xxxxx, xxx xxx xxxxxxxxxxxx xxxxx. - Txx COALESCE PARTITION xxxxxx xxx xx xxxx xx xxxxxx xxx xxxxxx xx xxxxxxxxxx xx xx xxxxxxxx xxxxx xx xxx xxxxxx xxxxx. Fxx xxxxxxx, xx xxx xxxx x xxxxx xxxx xxx xxxx xxxxxxxxxx xxx xxx xxxx xx xxxxxx xx xx xxxxx, xxx xxxxx xxxxxxx x xxxxxxxxx xxxx xxx ALTER TABLE xxx xxxx: - CREATE TABLE xxxxxxx -(xxxxxx_xx INT, -xxxx VARCHAR(ddd)) -PARTITION BY HASH( xxxxxx_xx ) -PARTITIONS d; - -ALTER TABLE xxxxxxx -COALESCE PARTITION d; - Nxxxxx xxxx xxx PARTITION xxxxxxx xx xxxx xxxx SQL xxxxxxxxx xx xxx xxxxxx. Axxx xxxxxx xxxx xxx xxxx xxx xxxxxx xx xxxxxxxxxx xx xxxxx xxx xxxx xx xxxxxx xxx xxxxxxxxxx, xxx xxx xxxxx xxxx xxxxx xxx xxxx xx xxx. Ix xxx xxxx x xxxxx xxxxx xx xx xxxxxxx xxxx xxx xxxxxx xx xxxxxxxxxx xx xxx xxxxx, xxx’xx xxxxxxx xx xxxxx xxxxxxxxxxx xxx xxxx xxx xxxx xxx DROP TABLE xxxxxxx. - Sxx xxx CREATE TABLE xxxxxxxxxxx xxx xxxx xxxxxxxxxxx xxxxx xxxxx xxxxxxxxxxxx. - - - ALTER TABLE - Pxxxxxxxx xxxxxxxxxxxxxx xxxxxxx - ALTER [IGNORE] TABLE xxxxx -ANALYZE PARTITION xxxxxxxxx | -CHECK PARTITION xxxxxxxxx | -OPTIMIZE PARTITION xxxxxxxxx | -REBUILD PARTITION xxxxxxxxx | -REPAIR PARTITION xxxxxxxxx - - Bxxxxxx xxx ANALYZE TABLE, CHECK TABLE, OPTIMIZE TABLE, xxx REPAIR TABLE xxxxxxxxxx xx xxx xxxx xxxx xxxxxxxxxxx xxxxxx, xxx xxxx xxxx xx xxx xxx xxxxxxx xx ALTER TABLE xx xxxx xxxxxxx xxxxxxx. Txxx xxx xxxxxx xxx xxxx xxxxxx xxxxxx: xxx xxxxxx xx xxxxxxxx xx x xxxxx-xxxxxxxxx xxxx xx xxxxxxxxxx xx xx xxxxxxxxxxxx. - Txx ANALYZE PARTITION xxxxxx xxx xx xxxx xx xxxx xxx xxxxx xxx xxxxxxx xx x xxxxxxxxx. - ALTER TABLE xxxxxxx -ANALYZE PARTITION xd, xd, xd; - Tx xxxxx x xxxxxxx xxx xxxxxxxxx xxxx xxx xxxxxxx, xxx xxx CHECK PARTITION xxxxxx: - ALTER TABLE xxxxxxx -CHECK PARTITION xd, xd, xd; - Uxx xxx OPTIMIZE PARTITION xxxxxx xx xxxxxxx x xxxxxxxxx xx xxxxx xxx xxxx xxx xxxxxxx xxxxxxxxxxxxx. - ALTER TABLE xxxxxxx -OPTIMIZE PARTITION xd, xd, xd; - Txx REBUILD PARTITION xxxxxx xxxxxxxxxxx xxx xxxxx xxxxxxxxxx. - ALTER TABLE xxxxxxx -REBUILD PARTITION xd, xd, xd; - Txx REPAIR PARTITION xxxxxx xxxxxxxx xx xxxxxx xxxxxxxxx xxxxxxxxxx, xxxxxxx xx xxx REPAIR TABLE xxxxxxxxx xxx xxxxxx. - ALTER TABLE xxxxxxx -REPAIR PARTITION xd, xd, xd; - Sxx xxx CREATE TABLE xxxxxxxxxxx xxx xxxx xxxxxxxxxxx xxxxx xxxxx xxxxxxxxxxxx. - - - ALTER TABLE - Txxxx xxxxxxx - ALTER TABLE xxxxx -[TABLESPACE xxxxxxxxxx_xxxx STORAGE DISK] - {ENGINE|TYPE} [=] {BDB|HEAP|ISAM|INNODB|MERGE|MRG_MYISAM|MYISAM} | -AUTO_INCREMENT [=] xxxxx | -AVG_ROW_LENGTH [=] xxxxx | -[DEFAULT] CHARACTER SET xxxxxxxxx_xxx | -CHECKSUM [=] {d|d} | -CONNECTION [=] 'xxxxxx' | -COLLATE xxxxxxxxx | -COMMENT [=] 'xxxxxx' | -DATA DIRECTORY [=] '/xxxx' | -ENGINE [=] xxxxxx | -INDEX DIRECTORY [=] '/xxxx' | -INSERT_METHOD [=] {NO|FIRST|LAST } | -KEY_BLOCK_SIZE [=] xxxxx | -MAX_ROWS [=] xxxxx | -MIN_ROWS [=] xxxxx | -PACK_KEYS [=] {d|d|DEFAULT} | -DELAY_KEY_WRITE [=] {d|d} | -ROW_FORMAT [=] {DEFAULT|DYNAMIC|FIXED|COMPRESSED|REDUNDANT|COMPACT} | -RAID_TYPE = {d|STRIPED|RAIDd} | -UNION [=] (xxxxx[,...]) - AUTO_INCREMENT xxxxALTER TABLE xxxxxxxxx -Txxx xxxxxxxxxx xxxxx xxx xx xxx xxxxx xxxxxxx xxxx xxx xx xxx xxxx -xxx ALTER TABLE xxxxxxxxx. Txx xxxxxxx xxx xxx xxxx -xx xxxxx xxxx xxx xx xxxxxxxxx xxx CREATE TABLE xxxx x xxxxx xx xxxxx xxxxxxx. Sxx xxx xxxxxxxxxxx xx xxxx xxxxxxxxx xx xxxx xxxxxxx xxx xxxx xxxxxxxxxxx xxxxx xxx xxxxxxx xxxxxxxxx. Yxx xxx xxxx xxxxxxxx xxxxxxx xx ALTER TABLE xx x xxxxx-xxxxxxxxx xxxx. - Tx xxxxxx xxx xxxxxxxx xxxxx xxx xx AUTO_INCREMENT xxxxxx, xxxxx xxx xxxxxxxxx xxxxxxxxx: - ALTER TABLE xxxxxxx -AUTO_INCREMENT = dddd; - Txxx xxxxxxxxx xxxx xxx xxxxx xx xxx xxxxxxx xxx xxxxxx xx dddd xx xxxx xxx xxxx xxx xxxxxxxx xxxx xx dddd. Yxx xxxxxx xxx xx xx x xxxxx xxxx xxxx xxx xxxxxxx xxxx xxxxx xxxx xxxxxxx xxxxxx xxx xxx xxxxxx. - Fxx xxxxx xxxxxx, xxx xxx xxxx xx xxx xxx xxxxxxx xxx xxxxxx xxx xxxxxx xxxxx xxxxxxxxxxxx xx xxxxx xxx AVG_ROW_LENGTH xxxxxx. Txx xxxxxxxxx xxxxxxx xxxx xxx SHOW TABLE STATUS xxxxxxxxx xx xxx xxx xxxxxxx xxx xxxxxx xxx x xxxxx xxxxxxx xx xxx xxx xx xxxx xx xxxxx, xx xxx xx xxxx xx xxxx xxx xxxxxxx xxx xxxxxx xxxxxx xx: - SHOW TABLE STATUS LIKE 'xxxxx' \G - -*************************** d. xxx *************************** - Nxxx: xxxxxxxx - Exxxxx: MxISAM - Vxxxxxx: dd - Rxx_xxxxxx: Dxxxxxx - Rxxx: dd - Axx_xxx_xxxxxx: ddddd - Dxxx_xxxxxx: ddddddd -Mxx_xxxx_xxxxxx: ddddddddddddddd - Ixxxx_xxxxxx: dddddd - Dxxx_xxxx: d - Axxx_xxxxxxxxx: ddd - Cxxxxx_xxxx: dddd-dd-dd dd:dd:dd - Uxxxxx_xxxx: dddd-dd-dd dd:dd:dd - Cxxxx_xxxx: NULL - Cxxxxxxxx: xxxxxd_xxxxxxx_xx - Cxxxxxxx: NULL - Cxxxxx_xxxxxxx: - Cxxxxxx: - -ALTER TABLE xxxxxxx -AVG_ROW_LENGTH = ddddd; - Ix xxx xxxxxx SQL xxxxxxxxx xx’xx xxx xxx xxxxxxx xxx xxxxxx xxxxx xx xxx xxxxxxx xxxxx. - Txx CHARACTER SET xxxxxx xxxx xxx xxxxxxxxx xxx xx xxx xxx xxxxxxxxx xxxx xx xxx xxxxx. Txx DEFAULT xxxx xx xxx xxxxxxxx. Txxx xxxxxx xx xxxxxxxxx xxxx xxxxx xxxx xxx COLLATE xxxxxx. Txxxx xxxxxxx xx xxx xxxxxx xxxxxxx xxx xxxxx xxx xxxxxxxxx xxxx xxx xxxxxxxxx xxx xxxxxxxxxx xxxxxxxxx. Uxx xxx SHOW CHARACTER SET xxx SHOW COLLATION xxxxxxxxxx xx xxx xxx xxxxxxxxx xxxx xxx xxxxxxxxxx xxxxxxxxx. - ALTER TABLE xxxxxxx -DEFAULT CHARACTER SET 'xxxxxd' -COLLATE 'xxxxxd_xxxxxxx_xx'; - Txx CHECKSUM xxxxxx xxxxxxx xx xxxxxxxx x xxxxxxxx xxx x xxxxx. Sxx xxx xxxxx xx d xx xxxxxxx x xxxxxxxx xx d xx xxxxxx xxxxxxxx. Ix xxx xxxxxxx x xxxxx xxxx xxxx x xxxxxxxx xxx xxx xxxxxxx xxxxx xx xxxxxxx d.d xx MxSQL, xxx xxxxx xxx xx xxxxxxxxx xx xxx xxxxxxx. Txx xxxxx REPAIR TABLE xx xxxxxxxxxxx xxx xxxxxxxx xxx xxx xxxxx. - ALTER TABLE xxxxxxx -CHECKSUM = d; - Txx COLLATE xxxxxx xxxx xxx xxxxxxxxxx xx xxx xxxx xxx xxxx xx xxx xxxxx (xxxx xx, xxx xxx xxxxxxxxx xxxx xx xxxxxxxxxxxx). Txxx xxxxxx xx xxxxxxxxx xxxx xxxxx xxxx xxx CHARACTER SET xxxxxx. Txxxx xxxxxxx xx xxx xxxxxx xxxxxxx xxx xxxxx xxx xxxxxxxxx xxx xxxxxxxxx xxxx xxx xxxxxxxxxx xxxxxxxxx. Uxx xxx SHOW CREATE TABLE xxxxxxxxx xx xxx xxx xxxxxxxxx xxx xxxxxxxxx xxx xxx xxx xxxxx xxx xxx xxxxxxx. - ALTER TABLE xxxxxxx -COLLATE 'xxxxxd_xxxxxxx_xx' -DEFAULT CHARACTER SET 'xxxxxd'; - Wxxx xxx COMMENT xxxxxx xxx xxx xxx xxxxx xxx xxxxxxxx xx xxxxx xxxxx xxxxxxxxxxxxx xxxxxxxxx x xxxxx. - ALTER TABLE xxxxxxx -MAX_ROWS = dddd, -COMMENT = 'Txxx xxxxx xxxxx xxxxx xxxxxxxxxxx xx xxxxxxx.'; - -SHOW CREATE TABLE xxxxxxx \G - -*************************** d. xxx *************************** - Txxxx: xxxxxxx -Cxxxxx Txxxx: CREATE TABLE `xxxxxxx` ( - `xxxxxx_xx` xxx(dd) NOT NULL AUTO_INCREMENT, - `xxxxxx_xxxx` xxxxxxx(ddd) DEFAULT NULL, ... - PRIMARY KEY (`xxxxxx_xx`), - KEY `xxxxxx_xxxxx` (`xxxxxx_xxxx`(dd),`xxxx`(d)) USING BTREE -) ENGINE=MxISAM -AUTO_INCREMENT=dddd -DEFAULT CHARSET=xxxxxd MAX_ROWS=dddd -COMMENT='Txxx xxxxx xxxxx xxxxx xxxxxxxxxxx xx xxxxxxx.' - I’xx xxxxxxxxx xxx xxxxxxx xx xxxxxxxx xxx xxxx xx xxxxxxx xxxxx xxxx xx xxxx xxxxx xxx xx xxxxx xx xxx xxxxxxx. Txx SHOW CREATE TABLE xx xxx xxxx xxxxxx xxx xxxxxxx xxx xxxxx xxxxxxx xx MxSQL. Txxx xxxx xxx xx xxxxx xxxx DESCRIBE. - Txx CONNECTION xxxxxx xx xxxxxxxx xxx xxxxxx xxxx xxx xxx FEDERATED xxxxxxx xxxxxx. Pxxxxxxxxx xxx xxxxx xxx xxx COMMENT xxxxxx xx xxxxxxx xxxx xxxxxx. Txx xxxxxx xxx xxxx xxxxxx xx: - CONNECTION='xxxxx://xxxxxxxx:xxxxxxxx@xxxxxxxx:xxxx/xxxxxxxx/xxxxxxxxx' - Txx xxxxxxxx xxx xxxx xxx xxxxxxxx. - Ix xxx xxxx xx xxxxxxxx xx xxxxxxxx xxxxx xxxx x xxxxxx xxxxx, xxx xxx xxxxx xxx xxxxx xx xxxx xxxxxx xx xxxxxxx xxx xxxxxxxxxx xx xxx xxxxxx xxxxx xxxx xxxx: - ALTER TABLE xxxxxxx -CONNECTION='xxxxx://xxxxxxx:xxxxxddd@xxxxx_xxxxx_xxx:dddd/xxxxxxxxx/xxxxxxx'; - Txx DATA DIRECTORY xxxxxx xx xxxxxxxxxxxxx xxxx xx xxx xxx xxxx xxxxxxxxx xxxx xxx xxx xxxxx. Hxxxxxx, MxSQL xxxxxxxxx xxxxxxx xxx xxxxxx. - ALTER TABLE xxxxxxx -DATA DIRECTORY = '/xxxx/xxxxx/xxxxxxx'; - Uxx xxx ENGINE xxxxxx xx xxxxxx xxx xxxxxxx xxxxxx (xxxxxxxx xxxxx xx xxx xxxxx xxxx) xxx xxx xxxxx xxxxx. Bx xxxxxxx xxxx xxxxx xxxx xxxxxx xx xx xxx xxxxx xxxxxxxx xxxx xxxx. Mxxx x xxxxxx xx xxxx xxxxx xxx xxxx xxxxxx xxxxx xx. Ax xx xxxxxxx d.d.dd xx MxSQL, xxxx xxxxxx xxxxxx xx xxxx xx xxxxxx x xxxxx xx xxx BLACKHOLE xx MERGE xxxxxxx xxxxxxx. - ALTER TABLE xxxxxxx -ENGINE = INNODB; - Txxx xxxxxxxxx xxxxxxx xxx xxxxxxx xxxxxx xxxx xxx xxx xxxxx xxxxx xx IxxxDx. Ix x xxxxx xxx xxxxxxx xxxxxxxxxxxx xxxx xxx xxx xxxxxx xxxxxx xxxxxxx, xxx’xx xxxxxxx xx xxxxx xxxx xxxxxx xx xxxx xxxx xxxxxx xxx xxx xxxxxxxxx xxxx xxxx. Fxx xxxxxxxx, x MxISAM xxxxx xxxx xxx FULLTEXT xxxxxxx xxxxx xxx xx xxxxxxx xx IxxxDB xxxxx xx xxxxx’x xxxxxxx xxxx xxxx xx xxxxxxxx. Ixxxxxx, xxxxxx x xxx xxxxx xxxxx xxx xxxxxxx xxxxxxx xxxxxx, xxxxxxx xxx xxxx xx xxx xxx xxxxx, xxx xxxx xxxx xxx xxx xxxxx xxxxx xxxxxxxxx xxx xxxxxxxxx xx xxx xxxx. - Txx INDEX DIRECTORY xxxxxx xx xxxxxxxxxxxxx xxxx xx xxx xxx xxxxxxxxx xxxx xxx xxx xxxxx xxxxxxx. Hxxxxxx, MxSQL xxxxxxxxx xxxxxxx xxx xxxxxx. - ALTER TABLE xxxxxxx -INDEX DIRECTORY = '/xxxx/xxxxx/xxxxxxx_xxxxx'; - Tx xxxxxx xxxx xxxx x MERGE xxxxx, xxx xxxx xxxx xx xxxxxxx xxx xxxxxx xxxxxx xx xx xx xxx. Tx xxxxxxx xx xxxxxx xxxx xxxxxx, xxx xxx INSERT_METHOD xxxxxx xxxx xxx ALTER TABLE xxxxxxxxx. A xxxxx xx FIRST xxxxxxxxx xxxx xxx xxxxx xxxxx xxxxxx xx xxxx; LAST xxxxxxxxx xxx xxxx xxxxx xxxxxx xx xxxx; NO xxxxxxxx xxxxxxxxx. - CREATE TABLE xxxxx_xxxxxxxx -(xxxxx_xx INT, xxxxx_xxxxx INT) -ENGINE = MERGE -UNION = (xxxxx_xxxx, xxxxx_xxxx) -INSERT_METHOD = LAST; - -ALTER TABLE xxxxx_xxxxxxxx -INSERT_METHOD = FIRST; - Ix xxx xxxxx SQL xxxxxxxxx xxxx, xx xxxxxx xxx xxxxx xxxxx_xxxxxxxx xxxxx xx xxx xxxxx xxxxxx xxx xxxxxxx xxxx xxxxxxx xxx xxx xxxx xxxxx xx xxx xxxx xx xxxxxx xxxxx. Ix xxx xxxxxx SQL xxxxxxxxx, xx xxxxxx xxx xxxxxx xxxxxx. - Tx xxxx xxx xxxxxxx xxxxxx x xxxx xx xxx xxxx xx xxxxx xxx xxxxxx, xxx xxx KEY_BLOCK_SIZE xxxxxx. Sxx xxx xxxxx xx d xx xxxxxxxx xxx xxxxxx xx xxx xxx xxxxxxx. Txxx xxxxxx xxx xxxxx xx xxxxxxx d.d.dd xx MxSQL. - ALTER TABLE xxxxxxx -KEY_BLOCK_SIZE = dddd; - Txx MAX_ROWS xxx MIN_ROWS xxxxxx xxx xxxx xx xxx xxx xxxxxxx xxx xxxxxxx xxxx xx x xxxxx, xxxxxxxxxxxx. Uxx xxx SHOW CREATE TABLE xxxxxxxxx xx xxx xxx xxxxxxx xx xxxx xxxxxx. - ALTER TABLE xxxxxxx -MIN_ROWS = ddd, -MAX_ROWS = dddd; - Fxx xxxxx MxISAM xxxxxx xx xxxxx xxxxx xxxxxxxxx xxxx xxx xxxx xxx xxxxxx xxxxxx xx, xxx xxx xxx xxx PACK_KEYS xxxxxx xx xxxx xxx xxxxxxx. Txxx xxxx xxxx xxxxx xxxxxx xxx xxxxxxx xxxxxx. Sxx xxx xxxxx xx xxxx xxxxxx xx d xx xxxxxx xxxxxxx xxx d xx xxxxxxx xx. A xxxxx xx DEFAULT xxxxxxxxx xxx xxxxxxx xxxxxx xx xxxx CHAR xx VARCHAR xxxx xxxx xxxxxxx xxxx. - ALTER TABLE xxxxxxx -PACK_KEYS = d; - Txx DELAY_KEY_WRITE xxxxxx xxxxxx xxxxxxx xx xxxxxxx xxxxx xxx xxxxx xx xxxxxx. Ix’x xxxxxxx xxxx x xxxxx xx d, xxxxxxxx xxxx d. - ALTER TABLE xxxxxxx -DELAY_KEY_WRITE = d; - Txx ROW_FORMAT xxxxxx xxxxxxxxx xxx xxxxxxx xxxxxx xxx xx xxxxx xxxx xx xxxx. Wxxx MxISAM, x xxxxx xx DYNAMIC (x.x., xxxxxxxx xxxxxx) xx FIXED xxx xx xxxxx. Ix xxx xxx xxx xxxxxxx xxxxxxxxxx xx x MxISAM xxxxx, xxx xxxxxx xxxx xx xxx xx x xxxxx xx COMPRESSED. Yxx xxx xxxxxx x xxxxxxxxxx MxISAM xx xx-xxxxxxxxxx xx xxxxxx x xxxxx xx REDUNDANT. Txxx xx xxxxxxxxxx, xxxxxx. IxxxDB xxxxxx xxx xxx COMPACT xxxxxx, xxx -xxxxx x REDUNDANT xxxxxx xx xx xxxxxxxxxx xxxx x -xxxx xxxxxxxx xxxxxx xxxx xx xxxxx xxxxxxxx xx IxxxDB. - ALTER TABLE xxxxxxx -ROW_FORMAT = FIXED; - Txx RAID_TYPE xxxxxx xx xxxx xx xxxxxxx xxx xxxx xx RAID xx xx xxxx. Hxxxxxx, xxxxxxx xxx RAID xxx xxxx xxxxxxx xxxx MxSQL xx xx xxxxxxx d.d. Txxx SQL xxxxxxxxx xxxx xxxx xx xxxxxx xxx xxxxxxx RAID_CHUNKS xxx RAID_CHUNKSIZE. Txxx xxxx xxxx xxxxxxxxxx, xx xxxx. - Fxx MERGE xxxxxx xx xxxxx xxx xxxx xx xxxxxx xxx xxxxxx xxxxx xxxx xx xxx xxxxxx xxxxx, xxx xxx UNION xxxxxx. - ALTER TABLE xxxxx_xxxxxxxx -UNION = (xxxxx_xxxxx, xxxxx_xxxxx, xxxxx_xxxx, xxxxx_xxxx); - Sxx xxx CREATE TABLE xxxxxxxxx xxx xxxx xxxxxxxxxxx xxx xxxxxxxx xxxxxxxxx xxxx xx xxx xxxxxxx xxx xxx ALTER TABLE xxxxxxxxx. - - - - - ALTER VIEW - - - ALTER VIEW - - - - ALTER - [ALGORITHM = {UNDEFINED|MERGE|TEMPTABLE}] - [DEFINER = = {'xxxx'@'xxxx'|CURRENT_USER}] - [SQL SECURITY {DEFINER|INVOKER }] -VIEW xxxx [(xxxxxx, ...)] -AS SELECT... -[WITH [CASCADED|LOCAL] CHECK OPTION] - - - - <para><indexterm id="mysqlian-CHP-5-ITERM-2288" significance="normal"><primary>ALTER VIEW xxxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-5-ITERM-2289" significance="normal"><primary>AS xxxxxxx</primary><secondary>ALTER VIEW xxxxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-5-ITERM-2290" significance="normal"><primary>SELECT xxxxxxxxx</primary><secondary>ALTER VIEW xxxxxxxxx xxx</secondary></indexterm><indexterm id="mysqlian-CHP-5-ITERM-2291" significance="normal"><primary>DROP VIEW xxxxxxxxx</primary></indexterm> -Uxx xxxx xxxxxxxxx xx xxxxxx x xxxx. Vxxxx xxx xxxxxxxxx xx xx xxxxxxx d.d.d xx MxSQL.</para> - <para>Txx xxxxxxxxx xx xxxx xxxxxxxxx xx xxxxxx xxx <literal moreinfo="none">SELECT</literal> xxxxxxxxx xxxx xxxxxxxxxx xxx xxxx, xxxxx xxx xxx xx xx xxxxxx xxxxxxx xxx xxx <literal moreinfo="none">SELECT</literal> xxxxxxxxx xxx xxx xxxx xxxxx xxx <literal moreinfo="none">AS</literal> xxxxxxx.</para> - <para>Cxxxxx xxx xxxxxx xxxxx xxxxxxxx xx xxx xxxx xx xxxxxxx xx xxxxxxxxx xxx xxx xxxxxx xxxxx xx x xxxxx-xxxxxxxxx xxxx xxxxxx xxx xxxxxxxxxxx xxxxxxxxx xxx xxxx’x xxxx. Dxx’x xxxxxxx xxxxxx xxx xxx <literal moreinfo="none">SELECT</literal> xxxxxxxxx xx xxx xxx xxxxxx xxxxx xx xxx xxxxxxxxx.</para> - <para>Txx <literal moreinfo="none">ALGORITHM</literal> xxxxxxxxx xxxxxxx xxxxxxxxxxx xxxxxx xx xxx xxx xxxxxxxxxx x xxxx: xxx xxxxxxx xxx <literal moreinfo="none">MERGE</literal> xx <literal moreinfo="none">TEMPTABLE</literal>. <literal moreinfo="none">TEMPTABLE</literal> xxxxxxxx x xxxx xxxx xxxxx xxxxxxxxx.</para> - <para>Txx <literal moreinfo="none">DEFINER</literal> xxxxxx xxx xxxxxx xxx xxxx xxxxxxx xxxxxxxxxx xx xx xxx xxxx’x xxxxxxx. Txxx xxxxxx xx xxxxxxxxx xx xx xxxxxxx d.d.d xx MxSQL. Txx xxxx xxxxxxx xxxxxxxxxx xxx xxxxxxx <literal moreinfo="none">SQL SECURITY</literal> xxxxxx. Ix xxxxxxxxx MxSQL xx xxxxxxxxx xxxxxx xx xxx xxxx xxxxx xx xxx xxxxxxxxxx xx xxxxxx xxx xxxx xxxxxxx xx xxx xxxx’x xxxxxxx (<literal moreinfo="none">DEFINER</literal>) xx xxx xxxx xxxxxxx xx xxx xxxx xxx xx xxxxxxxx xxx xxxx (<literal moreinfo="none">INVOKER</literal>). Txxx xxx xxxx xx xxxxxxx xxxx xxxxx xxxx xxxxxxxxx xxxxxxxxxx xxxxx.</para> - <para>Txx <literal moreinfo="none">WITH CHECK OPTION</literal> xxxxxx xxx xxxxxx xxx xxxxxxxxxxxx xx xxx xxxxxxxx xx x xxxx xx xxxx xxxx xx xxxxx xxx <literal moreinfo="none">WHERE</literal> xxxxxx xx xxx xxxxxxxxxx <literal moreinfo="none">SELECT</literal> xxxxxxxxx xxxxxxx xxxx. Fxx x xxxx xxxx xx xxxxx xx xxxxxxx xxxx, xx xxx xxxxxxx xxx <literal moreinfo="none">LOCAL</literal> xxxxxxx, xxxx xxxxxxxxxxx xxxx xx xxxxxxx xx xxx xxxx xx xxxxx xx’x xxxxx xxx xxx xxx xxxxxxxxxx xxxx. Ix xxx xxxxxxx <literal moreinfo="none">CASCADED</literal> xxxxxxx, xxxxxxxxxx xxxxx xxxx xx xxxxxxxxxx xx xxxx.</para> - <para>Ax xxxxxxx xxxxxxx xx xxxx xxxxxxxxx’x xxx:</para> - <programlisting format="linespecific">ALTER VIEW xxxxxxx_xxxxxxxxx(ID, Nxxx, Cxxx_Txxxxxxxx, Hxxx_Txxxxxxxx) -AS SELECT xxxxxxx_xx, -CONCAT(xxxx_xxxxx, SPACE(d), xxxx_xxxx), -xxxxx_xxxx, xxxxx_xxxx -FROM xxxxxxxx;</programlisting> - <para>Ix xxx xxxx xx xxx xxxxxxx xxx <literal moreinfo="none">CREATE VIEW</literal> xxx’xx xxx xxxx xx’xx xxxxxx xx xxxxx xxxxxx xx xxx xxxx xxxxxxx xx xxxx xxxxxxx. Txx xxxxx xxxxxxxx xxxxxx xxxxxxxxx.</para> - <para>Yxx xxxxxx xxxxxx xxx xxxx xx xx xxxxxxxx xxxx. Ixxxxxx, xxx xxx <literal moreinfo="none">DROP VIEW</literal> xxxxxxxxx xxx xxxx xxxxxx x xxx xxxx xxxx xxx <literal moreinfo="none">CREATE VIEW</literal> xxxxxxxxx. -</para> - </refsect1> - </refentry> - <refentry id="ch05-50006"> - <refmeta> - <refentrytitle>CREATE DATABASE</refentrytitle> - </refmeta> - <refnamediv> - <refname>CREATE {DATABASE|SCHEMA}</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">CREATE {DATABASE|SCHEMA} [IF NOT EXISTS] <replaceable>xxxxxxxx</replaceable> [<replaceable>xxxxxxx</replaceable>]</synopsis> - </refsynopsisdiv> - <refsect1 id="ch05-21-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-5-ITERM-2344" significance="normal"><primary>CREATE DATABASE xxxxxxxxx</primary><secondary>xxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-5-ITERM-2345" significance="normal"><primary>xxxxxxxxx</primary><secondary>xxxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-5-ITERM-2346" significance="normal"><primary>xxxxxx</primary><secondary>xxxxxxxxxxx xxxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-5-ITERM-2347" significance="normal"><primary>IF NOT EXISTS xxxx</primary><secondary>CREATE DATABASE xxxxxxxxx</secondary></indexterm> -Txxx xxxxxxxxx xxxxxxx x xxx xxxxxxxx xxxx xxx xxxx xxxxx. Ax xx xxxxxxx d.d.d xx MxSQL, xxx xxxxxxx <literal moreinfo="none">DATABASE</literal> xx xxxxxxxxxx xxxx <literal moreinfo="none">SCHEMA</literal> xxxxxxxx xxxx xx xxx SQL xxxxxxxxx. Yxx xxx xxx xxx <literal moreinfo="none">IF NOT EXISTS</literal> xxxx xx xxxxxxxx xx xxxxx xxxxxxx xxxx xxx xxxxxxxxx xxxxx xx x xxxxxxxx xxxx xxx xxxx xxxx xxxxxxx xxxxxx. -</para> - <para>A xxxxxxxx xxxx xxxxxx xx xxxxxx xxxx dd xxxxx (xxx xxxxxxxxxx) xx xxxx. Txx xxxxxx xxxx Uxxxxxx (UTF-d), xx xxx xxxxxxxxx xxxx xx xxx UTF-d xxxxxxxxx xxx xxx xx xxxx. Txx xxxx xxxxxx xx xxx ASCII xxxxx xx d (<literal moreinfo="none">dxdd</literal>) xx ddd (<literal moreinfo="none">dxxx</literal>)--xxxxx xxx xxxxxxxx. Dxxxxxxx xxxxx xxxxxx xxx xxxxxxx xxxxxx xx xxxxxx xxxxx xxxxx xx xxx xxxx x xxxxx. Ix xxx xxxx x xxxxxxxx xxxx xx xxxxxxx xxxxxx, xxxxxx, xxx xxxx xxxx xx xxxxxx xxx SQL xxxx xx <literal moreinfo="none">ANSI_QUOTES</literal>. Txxx xxx xx xxxx xxxx xxx <literal moreinfo="none">--xxx-xxxx</literal> xxxxxx xxxxxx. Ax xx xxxxxxx d.d.d xx MxSQL, xxxxxxxx xxxxx xxx xxxxxxx xxxx-xxxxxxx, xxxxxxx-xxxxxxx, xxxxxxx, xxx xxxxx xxxxxxxxxx xxxx xxx xxx xx xxxxxxxxx xx x xxxxxxxxx xxxx xx xxx xxxxxxxxxx xxxxx. Ix xxx xxx x xxxx xxxx xx x xxxxxxx xxxx, xxx xxxx xxxxxx xxxxxxx xx xx xxxxxx xxxx xxxxxxxxx xx xx.</para> - <para>Sxxxxxx xxxxxxxxxx xx xxx xxxx xxx xxxxxxx xx xxx xxxxxxxxxx xxxxx. Ix xxx xxxxxxx xxxx xxxxxx xx x xxx xxxxxxx xx MxSQL xxx xxx xxxx x xxxxxxxx xxxx xxx xxxxxxx xxxxxxxxxx xx xxx xxxx, xxx xxxxxxxx xxxx xx xxxxxxxxx xxxx x xxxxxx xx #xxxxxdd#. Fxx xxxxxxxx, x xxxxxxxx xxxxx <literal moreinfo="none">xxxxx-xxxxxxxxx</literal> xxxx xx xxxxxxxxx xx <literal moreinfo="none">#xxxxxdd#xxxxx-xxxxxxxxx</literal>. Yxx xxx’x xx xxxx xx xxxxxx xxxx xxxxxxxx. Dxx’x xxx xxxxxx xxx xxxx xxxx xxxxxx MxSQL xx xxx xxx xxxxxxx xxxx. Ixxxxxx, xxxxx xxx x xxxxxx xx xxxxxxx xxxx xxx xx xxxx. Oxx xxxxx xx xx xxxxxxxx MxSQL, xx xx xxx MxSQL xxxx xxxxxxxxx, xxx xxxxxx xxx xxxxxxxxxxxx xxxx xxxxxxxx xxx xxxxxxxx xx x xxxx xxxxxxx xxx xxxxxxxxxxxx xxxxxxxxx (x.x., xxxx <literal moreinfo="none">xxxxx-xxxxxxxxx</literal> xx <literal moreinfo="none">xxxxx_xxxxxxxxx</literal>) xxx xxxx xxxxxxx MxSQL. Axxxxxx xxxxxx xxxxx xx xx xxx xxx <literal moreinfo="none">xxxxxxxxxx</literal> xxxxxxx xxxx xx:</para> - <programlisting format="linespecific">xxxxxxxxxx --xxxxx-xxxxxxx --xxx-xx-xxxxx</programlisting> - <para>Txx <literal moreinfo="none">--xxx-xx-xxxxx</literal> xxxxxx xxx xxxxx xx xxxxxxx d.d.d xx MxSQL. Fxx xxxx xxxxxxx xxxx xxxx xxxxxxx, xxx <xref linkend="mysqlian-CHP-17"/>.</para> - <para>Ax xx xxxxxxx d.d.d, x <emphasis>xx.xxx</emphasis> xxxx xx xxxxx xx xxx xxxxxxxxxx xxxxxxxxxxxx xxxxxxx xxx xxx xxxxxxxx xx xxx MxSQL xxxxxx’x xxxx xxxxxxxxx. Txxx xxxx xxxxxxxx x xxxxxx xx xxxxxxxx xxx xxx xxxxxxxx. Yxx xxx xxxxxxx xxxxx xxxxxxxx xx xxxxxxx xx xxxx SQL xxxxxxxxx xx x xxxxx-xxxxxxxxx xxxx.</para> - <para><indexterm id="mysqlian-CHP-5-ITERM-2348" significance="normal"><primary>COLLATE xxxxxx</primary><secondary>CREATE DATABASE xxxxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-5-ITERM-2349" significance="normal"><primary>CHARACTER SET xxxxxx</primary><secondary>CREATE DATABASE xxxxxxxxx</secondary></indexterm> -Cxxxxxxxx, xxx xxxxxxx xxx xxxxxxxxx: <literal moreinfo="none">CHARACTER SET</literal> xxx <literal moreinfo="none">COLLATE</literal>. Hxxx xx xx xxxxxxx xx xxx xxx xxx xxxxxx x xxxxxxxx xxxx xxxx xx xxxxx xxxxxxx:</para> - <programlisting format="linespecific">CREATE DATABASE xxxxx_xxxxxxxxx -CHARACTER SET xxxxxd -COLLATE xxxxxd_xxx;</programlisting> - <para>Txxxx xx xx xxxxx xxxx xxxxxx xxx xxxxx xxxxx xxx xxxx xxxxxx xxx xx xxxxx xxxxxxx xxx xxxxx xxx xxxxxx xxxxxx. Bxxxx xx xxx xxxxxxxx xx xxx <emphasis>xx.xxx</emphasis> xxxx xxxxxxx xxx xxxx xxxxxxxxx:</para> - <programlisting format="linespecific">xxxxxxx-xxxxxxxxx-xxx=xxxxxd -xxxxxxx-xxxxxxxxx=xxxxxd_xxx</programlisting> - <para><indexterm id="mysqlian-CHP-5-ITERM-2350" significance="normal"><primary>SHOW COLLATION xxxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-5-ITERM-2351" significance="normal"><primary>xxxxxxxxx, xxxxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-5-ITERM-2352" significance="normal"><primary>SHOW CHARACTER SET xxxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-5-ITERM-2353" significance="normal"><primary>xxxxxxxxx xxxx, xxxxxxxxxx</primary></indexterm> -Fxx x xxxx xx xxxxxxxxx xxxx xxxxxxxxx xx xxxx xxxxxx, xxx xxx <literal moreinfo="none">SHOW CHARACTER SET</literal> xxxxxxxxx. Fxx x xxxx xx xxxxxxxxx xxxxxxxxxxxxx, xxx xxx <literal moreinfo="none">SHOW COLLATION</literal> xxxxxxxxx. MxSQL xxxxxxxxxxxx xxxx xxx xxxxxxxxx xxxx xxx xxxxxxxxxx xx xxx xxxxxx. Ix xxx xxxx xxx xx xxx xxx xxxx, xxx’xx xxxx xx xxxxxxx xxxx xxxxxx xx xxx xxx xxxxxxx. -</para> - </refsect1> - </refentry> - <refentry id="ch05-50007"> - <refmeta> - <refentrytitle>CREATE INDEX</refentrytitle> - </refmeta> - <refnamediv> - <refname>CREATE INDEX</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">CREATE [UNIQUE|FULLTEXT|SPATIAL] INDEX <replaceable>xxxxx</replaceable> - [USING <replaceable>xxxx</replaceable>|TYPE<replaceable> xxxx</replaceable>] - [USING <replaceable>xxxx</replaceable>|TYPE<replaceable> xxxx</replaceable>] - ON <replaceable>xxxxx</replaceable> (<replaceable>xxxxxx</replaceable> [(<replaceable>xxxxxx</replaceable>)] [ASC|DESC], . . .)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch05-22-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-5-ITERM-2354" significance="normal"><primary>CREATE TABLE xxxxxxxxx</primary><secondary>xxxxxx xxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-5-ITERM-2355" significance="normal"><primary>xxxxxx</primary><secondary>xxxxxx xxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-5-ITERM-2356" significance="normal"><primary>xxxxxxx</primary><secondary>xxxxxx xx xxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-5-ITERM-2357" significance="normal"><primary>CREATE INDEX xxxxxxxxx</primary><secondary>xxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-5-ITERM-2358" significance="normal"><primary>ALTER TABLE xxxxxxxxx</primary><secondary>CREATE INDEX xxxxxxxxx xxx</secondary></indexterm> -Uxx xxxx xxxxxxxxx xx xxx xx xxxxx xx x xxxxx xxxxx xx xxx xxxx xxxxxxx. Txxx xx xx xxxxx xx xxx <literal moreinfo="none">ALTER TABLE</literal> xxxxxxxxx xxxx xxxx xx xxxxx. Yxx xxx xxx xxxxxxx xxxx xx MxISAM, IxxxDB, xxx BDB xxxxx xx xxxxxx. Yxx xxx xxxx xxxxxx xxxxx xxxxxx xxxx xxxxxxx, xx xxxxx xxxxx xxx <literal moreinfo="none">CREATE TABLE</literal> xxxxxxxxx. -</para> - <para><indexterm id="mysqlian-CHP-5-ITERM-2360" significance="normal"><primary>VARCHAR xxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-5-ITERM-2361" significance="normal"><primary>TEXT xxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-5-ITERM-2362" significance="normal"><primary>CHAR xxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-5-ITERM-2363" significance="normal"><primary>UNIQUE xxxx</primary><secondary>CREATE INDEX xxxxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-5-ITERM-2364" significance="normal"><primary>FULLTEXT xxxxxxx</primary></indexterm> -Tx xxxxxxx xxxxxxxxxx, xxx xxx <literal moreinfo="none">UNIQUE</literal> xxxx xxxxxxx xxx <literal moreinfo="none">CREATE</literal> xxxxxxx xxx <literal moreinfo="none">INDEX</literal>. Oxxx xxxxxxx xxxx <literal moreinfo="none">CHAR</literal>, <literal moreinfo="none">TEXT</literal>, xxx <literal moreinfo="none">VARCHAR</literal> xxxxxxxxx xx MxISAM xxxxxx xxx xx xxxxxxx xxxx <literal moreinfo="none">FULLTEXT</literal> xxxxxxx. -</para> - </refsect1> - <refsect1 id="ch05-23-fm2xml"> - <title>Cxxxxxxx UNIQUE xxxxxxx - CREATE UNIQUE INDEX xxxxx -ON xxxxx (xxxxxx, . . .) - Axxxx xxx INDEX xxxxxxx, xxx xxxx xx xxx xxxxx xx xxx xx xxxxx. Txxx xxxx xxx xx xxx xxxx xx xxx xx xxx xxxxxxx xxxxxxx, xx x xxxxxxx xxx xxxx. - TYPE xxxxxxUSING xxxxxx xxxRTREE xxxxxxxUSING xxxxxxCREATE INDEX xxxxxxxxxBTREE xxxxxxx -Yxx xxx xxxxxxx xxx xxxx xx xxxxx xxxx xxx USING xxxxxxx. Fxx MxISAM xxx IxxxDB xxxxxx, BTREE xx xxx xxxxxxx xxx xxxx xxxxxx xxxxxxxxx. Txx RTREE xxxx xxxx xx xxxxxxxxx xx xx xxxxxxx d xx MxSQL. Txx TYPE xxxxxxx xx xx xxxxx xxx USING. - xxxxxxxxxxxxxxxxx xxxxxxx xxxx -Fxx xxxx xxxxxxx, xx xxx xx xxxxxxxxxxxx xx xxxxxxx x xxxxxxx xxxxxx xx xxxxxxxxxx xx xxx xxxx x xxxxxx xxx xxxxxxxx. Txxx xxx xxxxx xx xxxxxxxx xxx xxxxxx xxx xxxx xx xxxxx xxxxx xx xxx xxxxxxxxxx. - DESC xxxxCREATE INDEX xxxxxxxxxASC xxxxCREATE INDEX xxxxxxxxxxxxxxxxxxxxxxx -Axxxxxxx xxxxx xx xx ASC xxxxxx xxx xxxxxxx xxxxxxx xx xxxxxxxxx xxxxx xxx x DESC xxxxxx xxx xxxxxxx xx xxxxxxxxxx xxxxx, xxxxx xxx xxx x xxxxxx xxxxxxx xx MxSQL. Axx xxxxxxx xxx xxxxxxxxx xxxxxx xx xxxxxxxxx xxxxx. Axxxxxxxxx xxxxxxx xxx xxxxxxxx xxx xx xxxxx xxxxxx xxx xxxxxxxxxxx. - CREATE UNIQUE INDEX xxxxxx_xxxx - ON xxxxxxx (xxxxxx_xxxxxxxx, xxxxxx_xxxxxxxxx(d), xxx_xxxx); - Ix xxxx xxxxxxx, xx xxxxx xx xxxxxxx xxxxxx xxxxxx_xxxx. Ix xx xxxxx xx xxx xxxx xxxxx xx xxxxxxx, xxx xxxxx xxxx xxxxxxx xx xxxxx xxxxx xxxxx, xxx xxx xxxxx xxxx xxx xxxxxxx xxxx xxxxxxx. Txxx xxxxx xx xxxxx xx xx xxxxx xxxxxxxx xxxx x xxxxxx xxxxx xx xxxxxxx xx xxx xxxx xxx xxx xxx xxxxxx xxxx xxx xxxx xxxx xxxx xxx x xxxxx xxxx xxxxxxxx xxxx xxx xxxx xxxx xxxxxxx. - xxxxxxxxxxxxxxSHOW INDEX xxxxxxxxxxxxxxxxxxxxxxxxxxDROP INDEX xxxxxxxxxxxxxxxxxxxxxxxx -Tx xxx xxx xxxxxxx xxxx xxxx xxxx xxxxxxx xxx x xxxxx, xxx xxx SHOW INDEX xxxxxxxxx. Tx xxxxxx xx xxxxx, xxx xxx DROP INDEX xxxxxxxxx. - - - Cxxxxxxx FULLTEXT xxxxxxx - CREATE FULLTEXT INDEX xxxxx -ON xxxxx (xxxxxx, . . .) - Axxxx xxx INDEX xxxxxxx, xxx xxxx xx xxx xxxxx xx xxx xx xxxxx. Txxx xxxx xxx xx xxx xxxx xx xxx xx xxx xxxxxxx xxxxxxx, xx x xxxxxxx xxx xxxx. - -Yxx xxx xxxxxxx xxx xxxx xx xxxxx xxxx xxx USING xxxxxxx. Fxx MxISAM xxx IxxxDB xxxxxx, BTREE xx xxx xxxxxxx xxx xxxx xxxxxx xxxxxxxxx. Txx RTREE xxxx xxxx xx xxxxxxxxx xx xx xxxxxxx d xx MxSQL. Txx TYPE xxxxxxx xx xx xxxxx xxx USING. - xxxxxxxxxxxxxxxxx xxxxxxx xxxx -Fxx xxxx xxxxxxx, xx xxx xx xxxxxxxxxxxx xx xxxxxxx x xxxxxxx xxxxxx xx xxxxxxxxxx xx xxx xxxx x xxxxxx xxx xxxxxxxx. Txxx xxx xxxxx xx xxxxxxxx xxx xxxxxx xxx xxxx xx xxxxx xxxxx xx xxx xxxxxxxxxx. - -Axxxxxxx xxxxx xx xx ASC xxxxxx xxx xxxxxxx xxxxxxx xx xxxxxxxxx xxxxx xxx x DESC xxxxxx xxx xxxxxxx xx xxxxxxxxxx xxxxx, xxxxx xxx xxx x xxxxxx xxxxxxx xx MxSQL. Axx xxxxxxx xxx xxxxxxxxx xxxxxx xx xxxxxxxxx xxxxx. Axxxxxxxxx xxxxxxx xxx xxxxxxxx xxx xx xxxxx xxxxxx xxx xxxxxxxxxxx. - CREATE FULLTEXT INDEX ...; - Ix xxxx xxxxxxx, xx xxxxx xx xxxxxxx xxxxxx xxxxxx_xxxx. Ix xx xxxxx xx xxx xxxx xxxxx xx xxxxxxx, xxx xxxxx xxxx xxxxxxx xx xxxxx xxxxx xxxxx, xxx xxx xxxxx xxxx xxx xxxxxxx xxxx xxxxxxx. Txxx xxxxx xx xxxxx xx xx xxxxx xxxxxxxx xxxx x xxxxxx xxxxx xx xxxxxxx xx xxx xxxx xxx xxx xxx xxxxxx xxxx xxx xxxx xxxx xxxx xxx x xxxxx xxxx xxxxxxxx xxxx xxx xxxx xxxx xxxxxxx. - -Tx xxx xxx xxxxxxx xxxx xxxx xxxx xxxxxxx xxx x xxxxx, xxx xxx SHOW INDEX xxxxxxxxx. Tx xxxxxx xx xxxxx, xxx xxx DROP INDEX xxxxxxxxx. - - - Cxxxxxxx SPATIAL xxxxxxx - CREATE SPATIAL INDEX xxxxx -ON xxxxx (xxxxxx, . . .) - SPATIAL xxxxxxxSPATIAL xxxxxxx xxx xxxxx xxxxxxx xxxxxxx xxxx xx MxISAM xxxxxx. Txxx xx xxxxxxxxx xxxxxxxx xxxx xxxxxxx d.d xx MxSQL. Bxxxx xx xx xxxxxxx xx xxxxx x xxxxx xx xxxxxxx xxx xxxx xx xxxxx: - - CREATE TABLE xxxxxxx -(xxxxxx_xx INT, xxxxxx_xxxx VARCHAR(ddd), -xxxxxx_xxxxxx POLYGON NOT NULL); - -CREATE SPATIAL INDEX xxxxxx_xxxxx -ON xxxxxxx (xxxxxx_xxxxxx); - Nxxxxx xxxx xxxx xx xxxxxxx xxx xxxxx xx xxxxxxxxx xxxx xxx xxxxxx xxxxxx_xxxxxx xx NOT NULL. Txxx xx xxxxxxxx xx xx xxxx xx xxxxx xxx xxxxxx. Lxx’x xxxxxx xxx xxxx xx xxxx xxx xxx x SELECT xxxxxxxxx: - INSERT INTO xxxxxxx -VALUES(dddd, 'Rxx Sxxxxx', -(GxxxFxxxTxxx('MULTIPOLYGON(((d d, d d, d d, d d, d d)))')) ), -(dddd, 'Gxxxx Sxxxxx', -(GxxxFxxxTxxx('MULTIPOLYGON(((d d, d d, d d, d d, d d)))')) ); - Hxxx xx’xx xxxxx xxx xxxxxxx xx xxxxxx xxx xxxx xxxxxx xx xxx xxxxxxx: xxx xxxxxxxx xxxxx (x.x, xxx xxx xxxxx xxx, x=d, x=d), xxx xxxx xxx xxxxx (x=d, x=d), xxx xxxxx xxx xxxxx (x=d, x=d), xxx xxxxx xxxxxx xxxxx (x=d, x=d), xxx xxx xxxxxx xxxxx (x=d, x=d) xxx xxxx xxxxxxx, xxxxx xx xxx xxxx xx xxx xxxxxxxx xxxxx. Sx, xxx xxxxx xxx xxxxxxxx x xxxxxx xxxxx xx d xx d xx xxxx xxx xxx xxxxxx d xx d xx xxxx. Uxxxx xxx AREA() xxxxxxxx xx xxx xxxx xxx xxxx xx xxxx: - SELECT xxxxxx_xxxx AS 'Sxxxxx', -AREA(xxxxxx_xxxxxx) AS 'Axxx xx Sxxxxx' -FROM xxxxxxx; - -+--------------+----------------+ -| Sxxxxx | Axxx xx Sxxxxx | -+--------------+----------------+ -| Rxx Sxxxxx | d | -| Gxxxx Sxxxxx | d | -+--------------+----------------+ - Ix xx xxxx xx xxxx xxxxx xxxxxx xxxxxxxx x xxxxx xxxxx xx x xxxxxxxxx xxxxx (x.x., x=d, x=d), xx xxx xxx xxx MBRCxxxxxxx() xxxxxxxx xxxx xx: - SELECT xxxxxx_xxxx -FROM xxxxxxx -WHERE -MBRCxxxxxxx(xxxxxx_xxxxxx, GxxxFxxxTxxx('POINT(d d)')); - -+-------------+ -| xxxxxx_xxxx | -+-------------+ -| Rxx Sxxxxx | -+-------------+ - Txx xxx xxx xxx xxxxx xx xxxxx xx xxxxxxxx, xx xxxxx xxx xx EXPLAIN xxxxxxxxx xxxxx xxx xxxx SELECT xxxxxxxxx: - -EXPLAIN SELECT xxxxxx_xxxx -FROM xxxxxxx -WHERE -MBRCxxxxxxx(xxxxxx_xxxxxx, GxxxFxxxTxxx('POINT(d d)')) \G - -*************************** d. xxx *************************** - xx: d - xxxxxx_xxxx: SIMPLE - xxxxx: xxxxxxx - xxxx: xxxxx -xxxxxxxx_xxxx: xxxxxx_xxxxx - xxx: xxxxxx_xxxxx - xxx_xxx: dd - xxx: NULL - xxxx: d - Exxxx: Uxxxx xxxxx - Nxxxxx xxxx xxx SQL xxxxxxxxx xx xxxxx xxx xxxxxx_xxxxx xxxxxxx xxxxx xxxx xx xxxxxxx. - - - - - CREATE SCHEMA - - - CREATE SCHEMA - - - - CREATE {DATABASE|SCHEMA} [IF NOT EXISTS] xxxxxxxx [xxxxxxx] - - - - <para>Txxx xxxxxxxxx xx xxxxxxxxxx xxxx <literal moreinfo="none">CREATE DATABASE</literal>. Sxx xxx xxxxxxxxxxx xx xxxx xxxxxxxxx xx xxxx xxxxxxx xxx xxxx xxxxxxxxxxx xxx xxxxxxxx xx xxxx xxxxxxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch05-50009"> - <refmeta> - <refentrytitle>CREATE SERVER</refentrytitle> - </refmeta> - <refnamediv> - <refname>CREATE SERVER</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">CREATE SERVER <replaceable>xxxxxx</replaceable> -FOREIGN DATA WRAPPER <replaceable>xxxxxxx</replaceable> -OPTIONS ( - { HOST <replaceable>xxxx</replaceable>, | - DATABASE <replaceable>xxxxxxxx</replaceable>, | - USER <replaceable>xxxx</replaceable>, | - PASSWORD <replaceable>xxxxxxxx</replaceable>, | - SOCKET <replaceable>xxxxxx</replaceable>, | - OWNER <replaceable>xxxxxxxxx</replaceable>, | - PORT <replaceable>xxxx</replaceable> } - )</synopsis> - </refsynopsisdiv> - <refsect1 id="ch05-27-fm2xml"> - <title/> - <para>Uxx xxxx SQL xxxxxxxxx xxxx xxx FEDERATED xxxxxxx xxxxxx xx xxx xxx xxxxxxxxxx xxxxxxxxxx. Txx xxxxxx xxxxx xxx xxxxxx xx xxx <literal moreinfo="none">xxxxx</literal> xxxxxxxx, xx xxx <literal moreinfo="none">xxxxxx</literal> xxxxx, xx x xxx xxx. Txx xxxxxx xxxx xxxxx xxxxxx xxxxxx dd xxxxxxxxxx; xx’x xxx xxxx xxxxxxxxx. Txx xxxx xxxxxxx xxxxxxxxx xx xxxx xxxx xx <literal moreinfo="none">xxxxx</literal>. Oxxxxxx xxx xxxxx xx x xxxxx xxxxxxxxx xxxx. Yxx’xx xxx xxxxxxxx xx xxxxxxx xxx xxxxxxx xxxxxx xxxxx. Ix xx xxxxxx xx xxx xxxxx, xxx xxxxxxx xxxx xx xx xxxxx xxxxxx. Tx xxxxxx xxxxxxx xxxxx x xxxxxx xxx xxxx xxxxxxx, xxx xxx <literal moreinfo="none">ALTER SERVER</literal> xxxxxxxxx, xxxxxxxxx xxxxxxx xx xxxx xxxxxxx. Fxx xxxxxx xxxxxx, xxxxxxxxx xx xxxxxxx xxxxxxxx (UTFd; xxxxxxx xxxxxx xx dd xxxxxxxxxx) xxxx xx xxxxx. Txxx xxxxxxxxx xxx xxxxxxxxxx xx xxxxxxx d.d.dd xx MxSQL xxx xxxxxxxx <literal moreinfo="none">SUPER</literal> xxxxxxxxxx.</para> - <para>Txx xxxx xxx xx x xxxx xxxx xx xx IP xxxxxxx. Txx xxxx xxx xxxxxxxx xxxxx xxx xxx xxx xxxx xxxx xxx xxxxxxxx xxxxxxxx xxx xxxxxxxxx xxx xxxxxx. Pxxxxxx xxxxxx xxx xxxx xx xxx xxxxxx xx xxx xxxx xx xxx xxx xxxxxxxxxx xx xxx xxxxxx. Txx xxxxx xx xxx xxxx xxxxxx xxxx xxxx xx xxx xxx xxxxxxxxx xxx xxxxxx.</para> - <programlisting format="linespecific">CREATE SERVER xxxxxxd -FOREIGN DATA WRAPPER xxxxx -OPTIONS (USER 'xxxxxxx', HOST 'xxxxxxxxx.xxx', DATABASE 'xxd', PORT dddd, OWNER 'xxxx'); - -CREATE TABLE xxxxxd (xxxd INT) -ENGINE = FEDERATED CONNECTION='xxxxxxd';</programlisting> - </refsect1> - </refentry> - <refentry id="ch05-50010"> - <refmeta> - <refentrytitle>CREATE TABLE</refentrytitle> - </refmeta> - <refnamediv> - <refname>CREATE TABLE</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">CREATE [TEMPORARY] TABLE [IF NOT EXISTS] <replaceable>xxxxx </replaceable> -{[(xxxxxxxxxx)][xxxxxxx]|[[AS] SELECT...]|[LIKE xxxxx]}</synopsis> - </refsynopsisdiv> - <refsect1 id="ch05-28-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-5-ITERM-2378" significance="normal"><primary>LIKE xxxxxx</primary><secondary>CREATE TABLE xxxxxxxxx</secondary></indexterm><indexterm class="startofrange" id="mysqlian-CHP-5-ITERM-2379" significance="normal"><primary>CREATE TABLE xxxxxxxxx</primary><secondary>xxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-5-ITERM-2380" significance="normal"><primary>xxxxxx</primary><secondary>xxxxxxxx xxxxxx xxxxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-5-ITERM-2381" significance="normal"><primary>xxxxxxxxx</primary><secondary>xxxxxxxx xxxxxx xxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-5-ITERM-2382" significance="normal"><primary>TEMPORARY xxxx</primary><secondary>CREATE TABLE xxxxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-5-ITERM-2383" significance="normal"><primary>IF NOT EXISTS xxxx</primary><secondary>CREATE TABLE xxxxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-5-ITERM-2384" significance="normal"><primary>xxxxxx</primary><secondary>xxxxxxxxxxx</secondary></indexterm> -Uxx xxxx xxxxxxxxx xx xxxxxx x xxx xxxxx xxxxxx x xxxxxxxx. Txxx xxxxxxxxx xxx xxxx xxxxxxx xxx xxxxxxx. Hxxxxxx, xxxx xxxxxxxx x xxxxx xxxxx, xxx xxx xxxx xxxx xx xxxx. Txx <literal moreinfo="none">TEMPORARY</literal> xxxxxxx xx xxxx xx xxxxxx x xxxxxxxxx xxxxx xxxx xxx xx xxxxxxxx xxxx xx xxx xxxxxxx xxxxxxxxxx xxxxxx xxx xx xxx xxxxxxxxxx xx xxxxx xxxxx. Txx <literal moreinfo="none">IF NOT EXISTS</literal> xxxx xx xxxx xx xxxxxxxx xxxxx xxxxxxxx xxxxxx xx xxxxxxxxxx xx xxxxxx x xxxxx xx xxx xxxx xxxx xx xx xxxxxxxx xxx. Axxxx xxx xxxxx xxxx xx xxxxx, xxxxxx xxx xxxxx xxxxxxxxxx xx xxxxx (x.x., x xxxx xx xxxxxxx xxx xxxxx xxxx xxxxx) xxxxx xxxx xxxxx xxxxxxx xx xxxxxxxxxx, xx x xxxxx xxx xx xxxxxxx xxxxx xx xxxxxxx xxxxx. Txx xxxxxxxxxxx xxxx xxxxxx xxxxxxxx xxx xx: -</para> - <itemizedlist> - <listitem> - <para>Sxx xxxxxx xxxxxxxxxx xxxxxxxxx NULL xxx xxxxxxx xxxxxx (xxx xxx <emphasis>Cxxxxx xxxxx</emphasis> xxxxxxxxxx);</para> - </listitem> - <listitem> - <para>Cxxxxx xx xxxxx xxx x xxxxx xxxxx xx xxx xx xxxx xxxxxxx (xxx xxx xxx <emphasis>Ixxxx xxx xxx xxxxxxxxxxx</emphasis>);</para> - </listitem> - <listitem> - <para>Rxxxxxxxx x xxxxxxx xxx xxxxxxxxxx (xxx xxx <emphasis>Rxxxxxxxxx</emphasis>);</para> - </listitem> - <listitem> - <para>Sxxxxxx xxxxxxx xxxxx xxxxxxx (xxx xxx <emphasis>Txxxx xxxxxxx</emphasis>);</para> - </listitem> - <listitem> - <para>Cxxxxx x xxxxx xxxxxxx xxxx xxxxxxx xxxxx (xxx xxx <emphasis>Bxxxx xx xx xxxxxxxx xxxxx</emphasis> xxxxxxxxxx); xxx</para> - </listitem> - <listitem> - <para>Cxxxxx x xxxxx xxxx xxxxxxxxxx xxxxxxxxxx (xxx xxx xxxxx xxxxxxxxxxx xx <emphasis>Pxxxxxxxxxxx</emphasis>);</para> - </listitem> - </itemizedlist> - <para>Hxxx xx x xxxxxx xxxxxxx xx xxx xxx xxx xxx xxx <literal moreinfo="none">CREATE TABLE</literal> xxxxxxxxx:</para> - <programlisting format="linespecific">CREATE TABLE xxxxxxx -(xxxxxx_xx INT AUTO_INCREMENT PRIMARY KEY, -xxxxxx_xxxx VARCHAR(dd), -xxxxxxxxx CHAR(dd));</programlisting> - <para><indexterm id="mysqlian-CHP-5-ITERM-2385" significance="normal"><primary>DESCRIBE xxxxxxxxx</primary></indexterm> -Txxx xxxxxxx x xxxxx xxxx xxxxx xxxxxxx. Txx xxxxx xxxxxx xx xxxxxx <emphasis>xxxxxx_xx</emphasis> xxx xxx xxxxxxx xxxxxxxx. Ix xxxx xx xxxxxxxxxxx xxxxxxxxxxxxx xx xxxxxxx xxx xxxxxxx. Ix xxxx xxxx xx xxx xxxxxxx xxx xxxxx xxx xxxxxxx, xxxxx xxxxx xxxx xx xxxxxxxxxx xxx xxxxxxx xxx xxxx xxx xxxx xxxx xx xxxxxxx xxxxx xx xxxx xxxxxx. Txx xxxxxx xxxxxx, <emphasis>xxxxxx_xxxx</emphasis> xx x xxxxxxxx-xxxxx, xxxxxxxxx-xxxx xxxxxx xxxx x xxxxxxx xxxxx xx dd xxxxxxxxxx. Txx xxxxx xxxxxx xx xxxxxx <emphasis>xxxxxxxxx</emphasis> xxx xx x xxxxx-xxxxx, xxxxxxxxx-xxxx xxxxxx xxxx x xxxxxxx xxx xxxxxxx xxxxx xx dd xxxxxxxxxx. Tx xxx xxx xxxxxxx xx xxxx xxxxxxxxx, xxx xxx xxx xxx <literal moreinfo="none">DESCRIBE</literal> xxxxxxxxx. Txxxx xxx xxxx xxxxxx xxxx xxxxx. Txxx’xx xxx xxxxxx xxx xxxxxxxxx xx <xref linkend="mysqlian-APP-B"/>. -</para> - </refsect1> - <refsect1 id="ch05-29-fm2xml"> - <title>CREATE TABLE - Cxxxxx xxxxx - CREATE [TEMPORARY] TABLE [IF NOT EXISTS] xxxxx -(xxxxxx xxxx[(xxxxx)] [ASC|DESC] [NOT NULL|NULL] [DEFAULT xxxxx] - [AUTO_INCREMENT] [[PRIMARY] KEY]|[[UNIQUE] KEY] - [COMMENT 'xxxxxx'] - [REFERENCES xxxxx [(xxxxxx,...)] - [MATCH FULL|MATCH PARTIAL|MATCH SIMPLE] - [ON DELETE [RESTRICT|CASCADE|SET NULL|NO ACTION]] - [ON UPDATE [RESTRICT|CASCADE|SET NULL|NO ACTION]] [,...] - ] -[,...]) [xxxxxxx] - xxxxxxxCREATE TABLE xxxxxxxxx xxx -Txxx xx xxx xxxxxx xxx xxx CREATE TABLE xxxxxxxxx xxxxx, xxx xxxxxxxxx xxx xxxxxx xxxxx xxxxxxx xx xxx xxxxxx xxxxxxxxxx. Fxx xxxx xxxxxx xxxxx, xxx xxx xxxx xx xxxxxxx xxx xxxx xx xxx xxxxxx xxxxxx xxxxxxxxxxx xxxxx xxx xxxxxx xxxx xxx xxxxxx xxxx. - - AUTO_INCREMENT xxxxCREATE TABLE xxxxxxxxxDEFAULT xxxxxxxCREATE TABLE xxxxxxxxxNOT NULL xxxx (CREATE TABLE)DESC xxxxCREATE TABLE xxxxxxxxxASC xxxxCREATE TABLE xxxxxxxxxNULL xxxx (CREATE TABLE)PRIMARY KEY xxxxxxCREATE TABLE xxxxxxxxx -Ix x xxxxxx xx xxxxxxx, xxx xxxxxxx ASC xx DESC xxx xx xxxxx xxxx xx xxxxxxxx xxxxxxx xxxxxxx xxxxxx xx xxxxxx xx xxxxxxxxx xx xxxxxxxxxx xxxxx, xxxxxxxxxxxx. Bx xxxxxxx, xxxx xxx xxxxxx xx xxxxxxxxx xxxxx. Fxx xxxxx xxxxxxxx xx MxSQL, xxxxx xxxxx xxx xxxxxxx. Axxxxx xxx NOT NULL xxxx xxxxxxxxx xxx xxxxxx xxx xxx xx NULL. Txx NULL xxxx xxx xx xxxxx xx xxxxx xxxx x NULL xxxxx xx xxxxxxx. Sxxx xxxx xxxxx xx xxxxxxx xxx NULL. Fxx xxxx xxxx xxxxx, xxx xxx’x xxxx x xxxxxx xx xxxxxxx x xxxxxx xxx xx NULL xx xxx. Tx xxx x xxxxxxx xxxxx xxx x xxxxxx, xxx xxx xxx xxx DEFAULT xxxxxxx. Fxx xxxx xxxx xxxxx (x.x., TIMESTAMP), x xxxxxxx xxxxx xx xxx xxxxxxx. Txx AUTO_INCREMENT xxxxxx xxxxx MxSQL xx xxxxxx x xxxxxx xxxxxxxxxxxxxx xxxxxx xxxxxxxxxxxxx xx x xxxxxx. Ix xxxx xx xxxxxxxxxx xx x PRIMARY xx UNIQUE xxx xxxxxx xxx xxx xxxxxx xxxx xxxx xxxx xxx AUTO_INCREMENT xxxxxx xx x xxxxx. Ix x xxxxxx xx xx xx xxx xxxxx xx xx xxxxx, xxxxxx PRIMARY KEY, UNIQUE KEY, UNIQUE, xx xxxx KEY xxx xx xxxxx. Jxxx KEY xxxxxxxxx xxx xxxxxx xx x xxxxxxx xxx. -KEY xxxxxxxCREATE TABLE xxxxxxxxx - - SHOW FULL COLUMNS xxxxxxxxxCOMMENT xxxxxxx (CREATE TABLE)xxxxxxxxxxxxxxx xxxxxxxxxxxxxx xxxxx (“)xxxxxxxx xx -Tx xxxxxxxx xxxx xxx’xx xxxxx xxx xx xxxxxxxxxxxxx xx x xxxxxxxxx, x xxxxxxx xxxxxxxxx x xxxxxx xxx xx xxxxx. Txx xxxxxxx xx x SELECT xxxxxxxxx xxx’x xxxx xx, xxx x SHOW FULL COLUMNS xxxxxxxxx xxxx xxxxxx xx. Tx xxx x xxxxxxx, xxx xxx COMMENT xxxxxxx xxxxxxxx xx x xxxxxx xxxxxx xxxxxx. Hxxx xx xx xxxxxxx xxxxx xxxx xx xxx xxxxx xxx xxxxxxx xxxxxxxxx xxxx: - CREATE TABLE xxxxxxx -(xxxxxx_xx INT NOT NULL AUTO_INCREMENT PRIMARY KEY, -xxxxxx_xxxx VARCHAR(dd), -xxxxxx_xxxx VARCHAR(dd) DEFAULT 'Nxx Oxxxxxx', -xxxxxxxxx CHAR(dd) COMMENT 'Fxxxxx: ###-###-####'); - NOT NULL xxxx (CREATE TABLE)DEFAULT xxxxxxxCREATE TABLE xxxxxxxxx -Ix xxxx xxxxxxx, xxx xxxxxx_xx xxxxxx xx x xxxxxxx xxx. Txx NOT NULL xxxxxx xx xxxxxxxx xxx xxxxxxxxxxxx, xxxx xxxxxx xx’x xxx xxxxxxxxx, xxxxxxx x xxxxxxx xxx xxxx xx xxxxxx xxx xxx-NULL. Fxx xxx xxxxxx_xxxx xxxxxx, xxx DEFAULT xxxxxx xx xxxx xx xxxxxxx xxx xxxxxxx xxxxx xx xxx xxxxxx. Txx xxxxxxx xxxx xx xxxx xxxxxx xxxxxxx xxxx xx xxxxx xx xxxxx, xxxxxxxx xxx xxx xxxxxxxx xxx xxxxxxx xx xxxxxxxxxx xx xxxxxxxx xxxxx xxxxx xxx xxx xxxxxx. Txxx xxxxxxxxx xxxx xxxxxxxx x xxxxxxx xxxxxxxxx xxx xxxxxxx xxxxxx xxx xxxxxxxx xxxxxxxxx xxxxxxx xx xxx xxxxxxxxx xxxxxx. Axxxx, xxxx xxxx xx xxxxxxxxx xxxx xxxx xxx SHOW FULL COLUMNS xxxxxxxxx. - - Fxx xxxxxxxxxxx xx xxx REFERENCES xxxxxx xxxx, xxx xxx xxxxxxx xxxxx. - - - CREATE TABLE - Ixxxx xxx xxx xxxxxxxxxxx - CREATE [TEMPORARY] TABLE [IF NOT EXISTS] xxxxx -(xxxxxx, ..., xxxxx xxxx[(xxxxx)] [ASC|DESC] | -[CONSTRAINT [xxxxxx]] PRIMARY KEY [xxxx] (xxxxxx,...) - [KEY_BLOCK_SIZE xxxxx|xxxx|WITH PARSER xxxxxx] | -INDEX|[PRIMARY] KEY [xxxxx] [xxxx] (xxxxxx,...) - [KEY_BLOCK_SIZE xxxxx|xxxx|WITH PARSER xxxxxx] | -[CONSTRAINT [xxxxxx]] UNIQUE [INDEX] [xxxxx] [xxxx] (xxxxxx,...) - [KEY_BLOCK_SIZE xxxxx|xxxx|WITH PARSER xxxxxx] | -[FULLTEXT|SPATIAL] [INDEX] [xxxxx] (xxxxxx,...) - [KEY_BLOCK_SIZE xxxxx|xxxx|WITH PARSER xxxxxx] | -[CONSTRAINT [xxxxxx]] FOREIGN KEY [xxxxx] (xxxxxx,...) - [xxxxxxxxx_xxxxxxxxxx] | -CHECK (xxxxxxxxxx)] -[,...]) [xxxxxxx] - CREATE INDEX xxxxxxxxxxxxxxxxx xxxxxxxCREATE TABLE xxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxx xx -Yxx xxx xxx xxx xx xxxx xxxxxxx xxx xx xxxxx, xxx x xxxxx xxx xxxxxxx xxxxxxxx xxxxxxx. Ixxxxxx xxx xxxxxxx xxxxxxxx xxx xxxxx xx xxxx xxxxxxxxx xxxx x xxxxx. Yxx xxx xxxxxx xx xxxxx xxxxxxxxx xxxxxxxx xxxxxxx xxxx xxxx xxxxxxxxx, xx xxxxx xxxx xxx ALTER TABLE xxxxxxxxx xx xxx CREATE INDEX xxxxxxxxx. Wxxx xxx CREATE TABLE xxxxxxxxx, xxxxxx, xxxxxxx xxx xx xxxxx xxxxx xxx xxxxxxxxxx xx xxx xxxxxxx xxxx xxxxx. - UNIQUE xxxxxxxINDEX xxxxxxxKEY xxxxxxxxxxxxxxxxxxxxx xxxxxxxxxx xxxxAUTO_INCREMENT xxxxCREATE TABLE xxxxxxxxx -A KEY (xxxx xxxxxx x PRIMARY KEY) xx x xxxxxxxxxx xxxx xx xxxxx xxxxxxx xxxxxxx xxxxxxxxxxx: xx xxxx xx xxxxxx, xxx xxxxxxxx. Ix xx xxxxx xxxxxxxx xx MxSQL xxxx xxx AUTO_INCREMENT xxxxxxx, xxx xxxx xxx xxxxxxxxxxx xxxx xxxxxx xx xxxxxxx xx xxxxxx. Txx xxxxxxx xxxxxx xx xx xxxxxxx xxx xxxx xx xxxxx, xxxx xx KEY, INDEX, xx UNIQUE. Txxx xx xxxxxxxx xx xxx xxxxx xxxx. Oxxxxxxxxx, xxx xxxxx xxxx xxx xx xxxxxxxxx xxxx xxx USING xxxxxxx. Fxx xxxx xxxxxx xxxxx xx xxxx xxx xxxx xx xxxxx, xx xxxx xx xxxxxxxxxxx. - Bxxxxx xxxxxxx d xx MxSQL, BTREE xx xxx xxxx xxxx xxx MxISAM xxxxxx. Bxxxxxxxx xxxx xxxxxxx d, xxx RTREE xxxxx xxxx xx xxxx xxxxxxxxx, xx xxx xxx xxxx xx xxxxxxx xxx xxxxx xxxx. Axxxx xxx xxxxx xxxx, xxx xx xxxx xxxxxxx xxx xxxxx xxx xxxxx xx xxxxx xxx xxxxxx xxxxxx xxxxxxxxxxx, xxxxxxxxx xx xxxxxx. Bxxxxx xxxxxxxxxx xxx xxxxxxx xxxxxxxxxxxxx, xxx’x xxxx xx xx xxxxxxx:USING xxxxxxCREATE TABLE xxxxxxxxx -RTREE xxxxxxx - CREATE TABLE xxxxxxx -(xxxxxx_xx INT AUTO_INCREMENT KEY, -xxxx_xxxx VARCHAR(dd), xxxx_xxxxx VARCHAR(dd), -xxxxxxxxx CHAR(dd), -INDEX xxxxx USING BTREE (xxxx_xxxx(d), xxxx_xxxxx(d) DESC)); - USING xxxxxxCREATE TABLE xxxxxxxxxPRIMARY KEY xxxxxxCREATE TABLE xxxxxxxxx -Ix xxxx xxxxxxx, xxx xxxxxx_xx xxxxxx xx x PRIMARY KEY, xxxxxxxx xxxx xxxxxx xxx xxxx xxxxxxxxxxx xx xxxx KEY. Txxx xxxxxxxxxxxx xx xxxxxxxxx xx xx xxxxxxx d.d xx MxSQL. Txxxx xxx xx xxxx xxx PRIMARY KEY, xxx xxx xxxxxx xx xxxxx xxxxxxx. Txx xxxxx xxxxxxxx x xxxxxx xxxxx xxxxx xxx xxxxx xxxx xxxxxxxxxx xx xxx xxx xxxx xxxxxxx. Tx xxxxxxx x xxxxxxxxxxx, xxx xxxxx xxxxxxxxxx xx xxxxxxxxx xxxxx xx xxx xxx xx xxx xxxxx’x xxxxxx xxxxxxxxxxx xxxx xxx INDEX xxxxxxx. Txx xxxxx xx xxxxx xxxxx xx xxx xxxxxxx. - Axxxx xxx xxxxx xxxx, xxx USING xxxxxx xxxxxxxxx xxx xxxx xx xxxxx xx xx xxxx. Cxxxxxxxx, xxxx xx xxxxxxxxxxx xxxxxxx BTREE xx xxx xxxxxxx xxxx xxx x MxISAM xxxxx. Ix xxxx, xxxxxx xxxxxxx d xx MxSQL, BTREE xxx xxx xxxx xxxx xx xxxxx xxxxxxxxx xxx MxISAM xxxxxx. Bxxxxxxxx xxxx xxxxxxx d, xxx RTREE xxxxx xxxx xx xxxx xxxxxxxxx, xx xxx xxx xxxx xx xxxxxxx xxx xxxxx xxxx. - Nxxx, xxx xxx xxxxxxx xx xxxxx xxxxxx xxxxxx xxxxxxxxxxx. Txx xxxx xxxxxxx xxx xxxxxxxx-xxxxx xxxxxxx xxx dd xxxxxxxxxx xx xxxxxx, xx xx xxxxx xx xxxxxxxx xxxx xxx xxxxx xxxx xxxxxxxxxx xx xxxx xxxxxx xxx xxxx. Txx xxxx_xxxxx xxxxxx xx xxxxxxxx xx xx xxxx xx xxxxxxxxxx xxxxx xxx xxx DESC xxxx. Hxxxxxx, xxxx xxxx xx xxxxxxx xxx xxx xxxxxxx xxxxxxx xx MxSQL.DESC xxxxCREATE TABLE xxxxxxxxx - BLOB xxxxxxxFULLTEXT xxxxxxxUNIQUE xxxxxxxINDEX xxxxxxxPRIMARY KEY xxxxxxxSPATIAL xxxxxxx -Txx xxxxxx xxxxxxxxxx xxx xxx xxxxx xxxxxxx xxxxxx xxxx xxxx xxxxxxxxx xx xxx xxxx xx xxxxx xxxxx xx xx xxxxxxx: PRIMARY KEY, INDEX, UNIQUE, FULLTEXT (xx BLOB xxxxxx xxxxx), xx SPATIAL. - CHECK xxxxxx (CREATE TABLE)FOREIGN KEY xxxxxx (CREATE TABLE) -Tx xxxxxx xxxxxxxxxxx xx xxxxxx xxxxx xx xxxxxxx xx xxxxxxx xxxxx, xxx xxx FOREIGN KEY xxxxx xxxxxx xxxxxxxxxx. Fxxxxxx xxxx xxx xxxx xxxx xx xxxx xxxxxxx xx IxxxDB xxxxxx. Txx CHECK xxxxxx xx xxx xxxx xx MxSQL xxx xx xxxxxxxxx xxx xxxxxxx xx xxxxx xxxxxxxx xxxxxxx. Hxxx xx xx xxxxxxx xx xxx xxx xxx xxx xxxxxxx xxxx xx xxxxxx x xxxxx: - CREATE TABLE xxxxxxxxx -(xxx_xx INT NOT NULL PRIMARY KEY, -xxxx_xxxx VARCHAR(dd), xxxx_xxxxx VARCHAR(dd)) -TYPE = INNODB; -CREATE TABLE xxxxxxxxxxx -(xxx_xx INT, xxx_xx INT, -INDEX (xxx_xx), -FOREIGN KEY (xxx_xx) REFERENCES xxxxxxxxx(xxx_xx) -ON DELETE CASCADE) -TYPE=INNODB; - ON DELETE CASCADE xxxxxx (CREATE TABLE)REFERENCES xxxxxxx (CREATE TABLE) -Txx xxxxx CREATE xxxxxxxxx xxxxxxx x xxxxx xx xxxxx xxxxxxxx xxxxxxxxxxx. Txx xxxxxx CREATE xxxxxxxxx xxxxxxx x xxxxxx xxxxx xx xxxxxxxxxxx. Ix xxx xxxxxxxxx xxxxx, xxx xxx xxxxxx xxx_xx xxxx xx xxxx xx xxxxxxxx xxxxxxxxx xxx xxxx xx xxx xxxxxxx xxx xxx xxx xxxxxxxxxxx xxxxx. Txx xxxxxxxxxxx xxxxx xxxx xx xx xxxxx xxxxx xx xxx_xx, xxxxx xxxx xx xxxx xx xxx xxx_xx xxxxxx xx xxx xxxxxxxxx xxxxx. Txx FOREIGN KEY xxxxxx xxxxxxxxxxx xxxx xxxxxxxxxx xxxxx xxx REFERENCES xxxxxxx xx xxxxxxxx xxx xxxxxxxxx xxxxx xxx xxx xxx xxxxxx xx xxx xx xxxx xxxxx. Axxxxxxxxxxx, xxx ON DELETE CASCADE xxxxxx xxxxxxxxx MxSQL xx xxxxxx xxx xxx xx xxx xxxxxxxxxxx xxxxx xxxxxxxx xx xxxxxxxx xxxxxx xxx x xxxxxxxxxx xx xxxxxxx xxxx xxx xxxxxxxxx xxxxx. - Txx xxxx xxxxxxxxxx xxxxx xxx xxxxxx xxx xxxxxxxxxx xx xxxxxxx xxxx xxx xxx xxxxxxx xx xxxx xxxxxxxxx. - Ax xxx xxx xx xxxx xx xxxxx SQL xxxxxxxxxx, xxx xxxxxxx xxxxxx xx xxx xx IxxxDB xxxx xxx TYPE xxxxxx. Txx ENGINE xxxxxxx xxxxx xxxx xxxx xxxx xxxxxxx xxx xxxxx xxxx xxx xxxx xxxxxx. -ENGINE xxxxxx (CREATE TABLE) -TYPE xxxxxxCREATE TABLE xxxxxxxxx - - Tx xxxx xxx xxxxxxx xxxxxx x xxxx xx xxx xxxx xx xxxxx xxx xxxxxx, xxx xxx KEY_BLOCK_SIZE xxxxxx. Sxx xxx xxxxx xx d xx xxxxxxxx xxx xxxxxx xx xxx xxx xxxxxxx. Txxx xxxxxx xxx xxxxx xx xxxxxxx d.d.dd xx MxSQL. - Txx WITH PARSER xxxxxx xxx xx xxxx xx xxxx x xxxxxx xxxxxx xxx xx xxxxx. Txxx xx xxxx xxxx xxxx FULLTEXT xxxxxxx. - - - CREATE TABLE - Rxxxxxxxxx - CREATE [TEMPORARY] TABLE [IF NOT EXISTS] xxxxx -(xxxxxx, ..., xxxxx xxxx[(xxxxx)] [ASC|DESC] -[CONSTRAINT [xxxxxx]] FOREIGN KEY [xxxxx] (xxxxxx,...) -REFERENCES xxxxx [(xxxxxx,...)] - [MATCH FULL|MATCH PARTIAL|MATCH SIMPLE] - [ON DELETE [RESTRICT|CASCADE|SET NULL|NO ACTION]] - [ON UPDATE [RESTRICT|CASCADE|SET NULL|NO ACTION]] -[,...]) [xxxxxxx] - ON UPDATE xxxxxx (CREATE TABLE)ON DELETE xxxxxx (CREATE TABLE)MATCH PARTIAL xxxxxx (CREATE TABLE)MATCH FULL xxxxxx (CREATE TABLE)FOREIGN KEY xxxxxx (CREATE TABLE) -Txxx xxxxxxxxxx xxxxxxxxx xxx REFERENCES xxxxxxx xx xxx FOREIGN KEY xxxxxx, xxxxx xxxxxxx x xxxxxxxxxxxx xxxxxxx xx xxxxx xxx xxxxxxx xxxxx. Txxx xxxxxxxxxxx xxxx xxxxxxx xx xxx REFERENCES xxxxxx xxxx (xxx xxx xxxxxxx xxxxxxx ). - Txx MATCH FULL xxxxxx xxxxxxxx xxxx xxx xxxxxxxxx xxxxx xx xxx xxxx xxxxx xx xxxx xxxxxx xxxxxxx. Ix xxxxxxxx, MATCH PARTIAL xxxxxx xxx xxx xx xxxxxxx xxxxxxx. Pxxxxxx xxxxxxx xxx xxxxxxxxxx xxxxxxxx xxxx xxx xxxxx xxx xxxxxxxxxx xx x xxxxxx xxxxxxxxx xxxx x xxx xx xxxxxx. - Txx ON DELETE xxxxxx xxxxxxxxx MxSQL xx xxxxx xx xxxxxxxxx xx xxxxxxxx xxxx xxxx xxx xxxxxxx xxxxx xxxxxxxxx xx xxx xxxxxx xxxx xxxxxxx. Txx ON UPDATE xxxxxx xxxxxx MxSQL xx xxxxxxx xx xxxxxxx xxxx xx xxx xxxxxxxxxx xxxxx xxxxxxxxx xx xxx xxxxxxx xxxx xxxxxx xx. Yxx xxx xxx xxxx xxxxxxx xx xxx xxxx CREATE TABLE xxxxxxxxx. - SET DEFAULT xxxx (CREATE TABLE)NO ACTION xxxx (CREATE TABLE)SET NULL xxxx (CREATE TABLE)CASCADE xxxxCREATE TABLE xxxxxxxxxRESTRICT xxxxCREATE TABLE xxxxxxxxx -Txx RESTRICT xxxxxxx xxxxxx xxxxxxxxx MxSQL xxx xx xxxxx xxx xxxxxxxx xx xxxxxx (xxxxxxxxx xx xxx xxxxxx xx xxxxx xx’x xxxx) xx xxx xxxx xx xxx xxxxxxx xxxxx xx xxxx xx xxx xxxxxxx xxxxx xxx xxxxxx xx xxxx. Txx CASCADE xxxxxxx xxxx xxxx xxxx xxxxxxxx xx xxxxxxxx xxx xxxx xxxx xxx xxxxxxxxxx xx xxx xxxxxx xxxxx, xxxxxx xx xxxxxx xxx xxxxxxx xxxx xx xxx xxxxx xxxxx xxxxxxxxxxx (xx xx xxx xxxx xxxxxxx xx xxx xxxxxxxx xxxxxxxxxx). - SET NULL xxxxxx MxSQL xx xxxxxx xxx xxxx xxxxxxxxx xx xxx xxxxxxx xxxxxxx xx x NULL xxxxx. Fxx xxxx xx xxxx, xxx xxxxxx xx xxx xxxxx xxxxx xxxx xxxxx NULL xxxxxx. Txx NO ACTION xxxxxxx xxx MxSQL xxx xx xxxxx xx xxxxxxxxx xx xxxxxxx xxxx xxxxxx xx xxx xxxxxxxxxxx xxxxx. - - - CREATE TABLE - Txxxx xxxxxxx - CREATE [TEMPORARY] TABLE [IF NOT EXISTS] xxxxx -(xxxxxx, ..., xxxxx xxxx[(xxxxx)] [ASC|DESC] -[TABLESPACE xxxxxxxxxx_xxxx STORAGE DISK] - {ENGINE|TYPE} [=] {BDB|HEAP|ISAM|INNODB|MERGE|MRG_MYISAM|MYISAM} | -AUTO_INCREMENT [=] xxxxx | -AVG_ROW_LENGTH [=] xxxxx | -[DEFAULT] CHARACTER SET xxxxxxxxx_xxx | -CHECKSUM [=] {d|d} | -CONNECTION [=] 'xxxxxx' | -COLLATE xxxxxxxxx | -COMMENT [=] 'xxxxxx' | -DATA DIRECTORY [=] '/xxxx' | -DELAY_KEY_WRITE [=] {d|d} | -ENGINE [=] xxxxxx | -INDEX DIRECTORY [=] '/xxxx' | -INSERT_METHOD [=] {NO|FIRST|LAST } | -KEY_BLOCK_SIZE [=] xxxxx | -MAX_ROWS [=] xxxxx | -MIN_ROWS [=] xxxxx | -PACK_KEYS [=] {d|d|DEFAULT} | -ROW_FORMAT [=] {DEFAULT|DYNAMIC|FIXED|COMPRESSED|REDUNDANT|COMPACT} | -RAID_TYPE = {d|STRIPED|RAIDd} | -UNION [=] (xxxxx[,...]) - ENGINE xxxxxx (CREATE TABLE)TYPE xxxxxxCREATE TABLE xxxxxxxxxxxxxxxx xxxxxxxxxxxxx xxxxxxxx xxxxxxxxxxxxx xxxxx xxxx xxxxxxxSHOW TABLE STATUS xxxxxxxxxCREATE TABLE xxxxxxxxxxxxxxxxx xxxxxx xxxx -Txxx xxxxxxxxxx xxxxx xxx xx xxx xxxxx xxxxxxx xxxx xxx xx xxx xxxx xxx CREATE TABLE xxxxxxxxx. Txx xxxxxxx xxx xxxxx xxxxx xxx xxxxxxx xxxxxxxxxxx xxx xxx xxxxxx xxxxxxxxxxx. Tx xxx xxx xxxxxx xxx xx xxxxxxxx xxxxx, xxx xxx SHOW TABLE STATUS xxxxxxxxx. Tx xxxxxx xxx xxxxxx xx xxx xxxxxxx xxxxx x xxxxx xxx xxxx xxxxxxx, xxx xxx ALTER TABLE xxxxxxxxx. Exxx xxxxxx xx xxxxxxxxx xx xxx xxxxxxxxx xxxxxxxxxx xx xxxxxxxxxxxx xxxxx, xx xxxxx xx xxx xxxxxxxxx xxxxxx. Exxxxxxx xx xxxx xxx xxxxx xx xxxx. - - - - - AUTO_INCREMENT - - - Txxx xxxxxxxxx xxxxxx MxSQL xx xxxxxx x xxxxxx xxxxxxxxxxxxxx xxxxxx xxxxxxxxxxxxx xx xxx xxxxxx xx xxxx xxx xxxxx xx xxx xxxxx. Bx xxxxxxx, xxx xxxxxxxx xxxxxx xx d. Tx xxx xx xx x xxxxxxxxx xxxxxxxx xxxxxx xxxx xxxxxxxx x xxxxx, xxx xxx xxx xxx AUTO_INCREMENT xxxxx xxxxxx. Hxxx’x xx xxxxxxx xxxxx xxxx xxxxxx: - CREATE TABLE xxxxxxx -(xxxxxx_xx INT AUTO_INCREMENT KEY, -xxxxxx_xxxx VARCHAR(dd), -xxxxxxxxx CHAR(dd)) -AUTO_INCREMENT=dddd; - Txxx xxxxxxxxx xxxx xxx xxxxxxx xxxxx xx xxx xxxxxxx xxx xxxxxx xx dddd xx xxxx xxx xxxx xxx xxxxxxxx xxxx xx dddd. Txxxx xx xxxxxxx xx xxxxxx xx xxx x xxxxxxxx xxxxxx xxxxxxxxxx, xxxxxxx xxx xxx xx xxxx xxxxxx xx xxxxxxxxxxx xxxxxxxxx xxxxxxx. - - - - - AVG_ROW_LENGTH - - - Fxx xxxxx xxxxxx, xxx xxx xxxx xx xxx xxx xxxxxxx xxx xxxxxx xxx xxxxxx xxxxx xxxxxxxxxxxx xx xxxxx xxx AVG_ROW_LENGTH xxxxxx. - CREATE TABLE xxxxxxx -(xxxxxx_xx INT AUTO_INCREMENT KEY, -xxxxxx_xxxx VARCHAR(dd), -xxxxxxxxx CHAR(dd)) -AVG_ROW_LENGTH = ddddd; - - - - - CHARACTER SET - - - Txxx xxxxxx xxxx xxx xxxxxxxxx xxx xxxx xxx xxxxxxxxx xxxx xx xxx xxxxx. Txx DEFAULT xxxx xx xxx xxxxxxxx. Txxx xxxxxx xx xxxxxxxxx xxxx xxxxx xxxx xxx COLLATE xxxxxx. Txxxx xxxxxxx xx xxx xxxxxx xxxxxxx xxx xxxxx xxx xxxxxxxxx xxxx xxx xxxxxxxxx xxx xxxxxxxxxx xxxxxxxxx. Uxx xxx SHOW CHARACTER SET xxx SHOW COLLATION xxxxxxxxxx xx xxx xxx xxxxxxxxx xxxx xxx xxxxxxxxxx xxxxxxxxx. - CREATE TABLE xxxxxxx -(xxxxxx_xx INT AUTO_INCREMENT KEY, -xxxxxx_xxxx VARCHAR(dd), -xxxxxxxxx CHAR(dd)) -DEFAULT CHARACTER SET 'xxxxxd' -COLLATE 'xxxxxd_xxxxxxx_xx'; - - - - - CHECKSUM - - - Txxx xxxxxx xxxxxxx xx xxxxxxxx x xxxxxxxx xxx x xxxxx. Sxx xxx xxxxx xx d xx xxxxxxx xxx xxxxxxxx xx xx d xx xxxxxx x xxxxxxxx xx x xxxxx. Ix xxx xxx xxxxxxxxx x xxxxx xxxx xxxx x xxxxxxxx xxx xxx xxxxxxx xxxxx xx xxxxxxx d.d xx MxSQL, xxx xxxxx xxx xx xxxxxxxxx xx xxx xxxxxxx. Txx xxxxx REPAIR TABLE xx xxxxxxxxxxx xxx xxxxxxxx xxx xxx xxxxx. - CREATE TABLE xxxxxxx -(xxxxxx_xx INT AUTO_INCREMENT KEY, -xxxxxx_xxxx VARCHAR(dd), -xxxxxxxxx CHAR(dd)) -CHECKSUM = d; - - - - - COLLATE - - - Txxx xxxxxx xxxx xxx xxxxxxxxxx (xxxxxxxxxxxxx xxxxx) xx xxx xxxx xxxxxxxxx xxxx xx xxx xxxxx. Txxx xxxxxx xx xxxxxxxxx xxxx xxxxx xxxx xxx CHARACTER SET xxxxxx. Txxxx xxxxxxx xx xxx xxxxxx xxxxxxx xxx xxxxx xxx xxxxxxxxx xxx xxxxxxxxx xxxx xxx xxxxxxxxxx xxxxxxxxx. Uxx xxx SHOW CREATE TABLE xxxxxxxxx xx xxx xxx xxxxxxxxx xxx xxxxxxxxx xxx xxx xxx xxxxx xxx xxx xxxxxxx. - CREATE TABLE xxxxxxx -(xxxxxx_xx INT AUTO_INCREMENT KEY, -xxxxxx_xxxx VARCHAR(dd), -xxxxxxxxx CHAR(dd)) -COLLATE 'xxxxxd_xxxxxxx_xx' -DEFAULT CHARACTER SET 'xxxxxd'; - - - - - COMMENT - - - Wxxx xxxx xxxxxx xxx xxx xxx xxxxx xxx xxxxxxxx xx xxxxx xxxxx xxxxxxxxxxxxx xxxxxxxxx x xxxxx. - CREATE TABLE xxxxxxx -(xxxxxx_xx INT AUTO_INCREMENT KEY, -xxxxxx_xxxx VARCHAR(dd), -xxxxxxxxx CHAR(dd)) -COMMENT = 'Txxx xxxxx xxxxx xxxxx xxxxxxxxxxx xx xxxxxxx.'; - - - - - CONNECTION - - - Txxx xxxxxx xx xxxxxxxx xxx xxxxxx xxxx xxx xxx FEDERATED xxxxxxx xxxxxx. Pxxxxxxxxx xxx xxxxx xxx xxx COMMENT xxxxxx xx xxxxxxx xxxx xxxxxx. Txx xxxxxx xxx xxxx xxxxxx xx: - CONNECTION='xxxxx://xxxxxxxx:xxxxxxxx@xxxxxxxx:xxxx/xxxxxxxx/xxxxxxxxx' - Txx xxxxxxxx xxx xxxx xxx xxxxxxxx. - Ix xxx xxxx xx xxxxxxxx xx xxxxxxxx xxxxx xxxx x xxxxxx xxxxx, xxx xxx xxxxx xxx xxxxx xx xxxx xxxxxx xx xxxxxxx xxx xxxxxxxxxx xx xxx xxxxxx xxxxx xxxx xxxx: - CREATE TABLE xxxxxxx -(xxxxxx_xx INT AUTO_INCREMENT KEY, -xxxxxx_xxxx VARCHAR(dd), -xxxxxxxxx CHAR(dd)) -ENGINE = FEDERATED -CONNECTION='xxxxx://xxxxxxx:xxxxxddd@xxxxx_xxxxx_xxx:dddd/xxxxxxxxx/xxxxxxx'; - - - - - DATA DIRECTORY - - - Txxx xxxxxx xx xxxxxxxxxxxxx xxxx xx xxx xxx xxxx xxxxxxxxx xxxx xxx xxx xxxxx. Hxxxxxx, MxSQL xxxxxxxxx xxxxxxx xxx xxxxxx. Fxxxxxxxxx xxxxxxxxxx xxx xxx xxxx xxxxx xxx xxxxxxxx xx xxxxxxx xxx xxxxxx. - CREATE TABLE xxxxxxx -(xxxxxx_xx INT AUTO_INCREMENT KEY, -xxxxxx_xxxx VARCHAR(dd), -xxxxxxxxx CHAR(dd)) -DATA DIRECTORY = '/xxxx/xxxxx/xxxxxxx'; - - - - - DELAY_KEY_WRITE - - - Txxx xxxxxx xxxxxx xxxxx xxxxxxx xxxxx xxx xxxxx xx xxxxxx. Ix’x xxxxxxx xxxx x xxxxx xx d xxx xxxxxxxx xxxx x xxxxx xx d. - CREATE TABLE xxxxxxx -(xxxxxx_xx INT AUTO_INCREMENT KEY, -xxxxxx_xxxx VARCHAR(dd), -xxxxxxxxx CHAR(dd)) -DELAY_KEY_WRITE = d; - - - - - ENGINE - - - Uxx xxxx xxxxxx xx xxxxxx xxx xxxxxxx xxxxxx(xxxxxxxx xxxxx xx xxx xxxxx xxxx) xxx xxx xxxxx xxxxx. Bx xxxxxxx xxxxx xxxx xxxxxx xx xx xxx xxxxx xxxxxxxx xxxx xxxx. Mxxx x xxxxxx xx xxxx xxxxx xxx xxxx xxxxxx xxxxx xx. Ax xx xxxxxxx d.d.dd xx MxSQL, xxxx xxxxxx xxxxxx xx xxxx xx xxxxxx x xxxxx xx xxx BLACKHOLE xx MERGE xxxxxxx xxxxxxx. - CREATE TABLE xxxxxxx -(xxxxxx_xx INT AUTO_INCREMENT KEY, -xxxxxx_xxxx VARCHAR(dd), -xxxxxxxxx CHAR(dd)) -ENGINE = MxISAM; - - - - - INDEX DIRECTORY - - - Txxx xxxxxx xx xxxxxxxxxxxxx xxxx xx xxx xxx xxxxxxxxx xxxx xxx xxx xxxxx xxxxxxx. Hxxxxxx, MxSQL xxxxxxxxx xxxxxxx xxx xxxxxx. Fxxxxxxxxx xxxxxxxxxx xxx xxx xxxx xxxxx xxx xxxxxxxx xx xxxxxxx xxx xxxxxx. - CREATE TABLE xxxxxxx -(xxxxxx_xx INT AUTO_INCREMENT KEY, -xxxxxx_xxxx VARCHAR(dd), -xxxxxxxxx CHAR(dd)) -INDEX DIRECTORY = '/xxxx/xxxxx/xxxxxxx_xxxxx'; - - - - - INSERT_METHOD - - - Tx xxxxxx xxxx xxxx x MERGE xxxxx, xxx xxxx xx xxxxxxx xxx xxxxxx xxxxxx xx xxxx xxx. Tx xxx xx xxxxxx xxxx xxxxxx, xxx xxx INSERT_METHOD xxxxxx xxxx xxx CREATE TABLE xx ALTER TABLE xxxxxxxxxx. A xxxxx xx FIRST xxxxxxxxx xxxx xxx xxxxx xxxxx xxxxxx xx xxxx; LAST xxxxxxxxx xxx xxxx xxxxx xxxxxx xx xxxx; NO xxxxxxxx xxxxxxxxxx. - CREATE TABLE xxxxx_xxxxxxxx -(xxxxx_xx INT, xxxxx_xxxxx INT) -ENGINE = MERGE -UNION = (xxxxx_xxxx, xxxxx_xxxx) -INSERT_METHOD = LAST; - Txxx SQL xxxxxxxxx xxxxxxx xxx xxxxx xxxxx_xxxxxxxx xxxxx xx xxx xxxxx xxxxxx xxxxx xxxxxxxxxx xxxx xxxxxxxxxx xxx xxx xxxx xxxxx xx xxx xxxx xx xxxxxx xxxxx. - - - - - KEY_BLOCK_SIZE - - - Txxx xxxxxx xxxxx xxx xxxxxxx xxxxxx x xxxx xx xxx xxxx xx xxxxx xxx xxxxxx. Sxx xxx xxxxx xx d xx xxxxxxxx xxx xxxxxx xx xxx xxx xxxxxxx. Txxx xxxxxx xxx xxxxx xx xxxxxxx d.d.dd xx MxSQL. - CREATE TABLE xxxxxxx -(xxxxxx_xx INT AUTO_INCREMENT KEY, -xxxxxx_xxxx VARCHAR(dd), -xxxxxxxxx CHAR(dd)) -KEY_BLOCK_SIZE = dddd; - - - - MAX_ROWS; MIN_ROWS - - Txxxx xxxxxxx xxx xxxx xx xxx xxx xxxxxxx xxx xxxxxxx xxxx xx x xxxxx, xxxxxxxxxxxx. Uxx xxx SHOW CREATE TABLE xxxxxxxxx xx xxx xxx xxxxxxx. - CREATE TABLE xxxxxxx -(xxxxxx_xx INT AUTO_INCREMENT KEY, -xxxxxx_xxxx VARCHAR(dd), -xxxxxxxxx CHAR(dd)) -MIN_ROWS = ddd, -MAX_ROWS = dddd; - - - - - PACK_KEYS - - - Fxx xxxxx MxISAM xxxxxx xx xxxxx xxxxx xxxxxxxxx xxxx xxx xxxx xxx xxxxxx xxxxxx xx, xxx xxx xxx xxx PACK_KEYS xxxxxx xx xxxx xxx xxxxxxx. Txxx xxxx xxxx xxxxx xxxxxx xxx xxxxxxx xxxxxx. Sxx xxx xxxxx xx xxxx xxxxxx xx d xx xxxxxx xxxxxxx xxx d xx xxxxxxx xx. A xxxxx xx DEFAULT xxxxxxxxx xxx xxxxxxx xxxxxx xx xxxx CHAR xx VARCHAR xxxx xxxx xxxxxxx xxxx. - CREATE TABLE xxxxxxx -(xxxxxx_xx INT AUTO_INCREMENT KEY, -xxxxxx_xxxx VARCHAR(dd), -xxxxxxxxx CHAR(dd)) -PACK_KEYS = d; - - - - - ROW_FORMAT - - - Txxx xxxxxx xxxxx xxx xxxxxxx xxxxxx xxx xx xxxxx xxxx xx xxxx. Wxxx -MxISAM, x xxxxx xx DYNAMIC (x.x., xxxxxxxx-xxxxxx) -xx FIXED xxx xx xxxxx. Ix xxx xxx -xxx xxxxxxxxxx xxxxxxx xx x MxISAM xxxxx, xxx -xxxxxx xxxx xx xxx xx x xxxxx xx COMPRESSED. Yxx -xxx xxxxxxxxxx x xxxxxxxxxx MxISAM xxxxx xx xxxxxx x xxxxx -xx REDUNDANT. Txxx xxxxx xx xxxxxxxxxx, -xxxxxx. IxxxDB xxxxxx xxx xxx COMPACT xxxxxx, xxx -xxxxx x REDUNDANT xxxxxx xx xx xxxxxxxxxx xxxx x -xxxx xxxxxxxx xxxxxx xxxx xx xxxxx xxxxxxxx xx IxxxDB. - CREATE TABLE xxxxxxx -(xxxxxx_xx INT AUTO_INCREMENT KEY, -xxxxxx_xxxx VARCHAR(dd), -xxxxxxxxx CHAR(dd)) -ROW_FORMAT = DYNAMIC; - - - - - RAID_TYPE - - - Txxx xxxxxx xxxxxxxxx xxx xxxx xx RAID xx xx xxxx. Hxxxxxx, xxxxxxx xxx RAID xxx xxxx xxxxxxx xxxx MxSQL xx xx xxxxxxx d.d. Txxx SQL xxxxxxxxx xxxx xxxx xx xxxxxx xxx xxxxxxx RAID_CHUNKS xxx RAID_CHUNKSIZE, xxx xxxx xxxx xxxx xxxxxxxxxx xx xxxx. - - - - - UNION - - - Tx xxxxxx xxx xxxxxx xxxx xxxx xx x MERGE xxxxx, xxxxxxx xxx xxxx xxxx xx xxxxx xxxxx xxxx xxxxxx. - CREATE TABLE xxxxx_xxxxxxxx -(xxxxx_xx INT, xxxxx_xxxxx INT) -ENGINE = MERGE -UNION = (xxxxx_xxxxx, xxxxx_xxxxx, xxxxx_xxxx, xxxxx_xxxx); - - - - - - CREATE TABLE - Pxxxxxxxxxxx - CREATE [TEMPORARY] TABLE [IF NOT EXISTS] xxxxx -PARTITION BY - [LINEAR] HASH(xxxxxxxxxx) | - [LINEAR] KEY(xxxxxxx) | - RANGE(xxxxxxxxxx) | - LIST(xxxxxxxxxx) - [PARTITIONS xxxxxx] - [SUBPARTITION BY - [LINEAR] HASH(xxxxxxxxxx) | - [LINEAR] KEY(xxxxxxx) - [SUBPARTITIONS xxxxxx] - ] - [PARTITION xxxxxxxxx - [VALUES {LESS THAN (xxxxxxxxxx)|MAXVALUE|IN (xxxxxx)}] - [[STORAGE] ENGINE [=] xxxxxx] - [COMMENT [=] 'xxxx' ] - [DATA DIRECTORY [=] '/xxxx'] - [INDEX DIRECTORY [=] '/xxxx'] - [MAX_ROWS [=] xxxxxx] - [MIN_ROWS [=] xxxxxx] - [TABLESPACE [=] (xxxxxxxxxx)] - [NODEGROUP [=] xxxxx] - - [(SUBPARTITION xxxxxxx_xxxx - [[STORAGE] ENGINE [=] xxxxxx] - [COMMENT [=] 'xxxx' ] - [DATA DIRECTORY [=] '/xxxx'] - [INDEX DIRECTORY [=] '/xxxx'] - [MAX_ROWS [=] xxxxxx] - [MIN_ROWS [=] xxxxxx] - [TABLESPACE [=] (xxxxxxxxxx)] - [NODEGROUP [=] xxxxx] - [, SUBPARTITION...])] - [, PARTITION...]] - ] - Txxxx xxxxx xxxxxxxxx xxxxxxx xxx xx xxxx xx CREATE TABLE xx xxxxxx x xxxxx xxxxx xxxxxxxxxx, xxxx xx xx xxx, xx xxxxxxxx xxxx xxxx xxxxxxxx xxxxx xx xxx xxxxxxxxxx. Txxx xxxxxxxxxx xxx xxxxx xx xx xxxxxxx d.d.d xx MxSQL. Tx xxx xx xxxxx xxxxxxxxxx xx xx xxxxxxxx xxxxx, xxx xxx ALTER TABLE xxxxxxxxxxx xx xxxx xxxxxxx. Sxx xxxx xxxxxxx xxxx xxx xxxxxxxx xx xxxxxxxxxx xx xxxxxxx. Ix xxxx xxxxxxx, xxxxxxx xxxxxxxx xxx xxxxxxxx xx xxxxxxxx x MxISAM xxxxx xxxx xxxxxxxxxx. - Txx PARTITION BY xxxxxx xx xxxxxxxx xxxx xxxxxxxxxxxx xx xxxxx xx xxxxxxx xxx xxxx xx xxxxx xx xxx xxxxxxxxxxx xxxxx xxxxxxxxxx. A xxxxx xxxxxx xxxx xxxx xxxx dddd xxxxxxxxxx xxx xxxxxxxxxxxxx. Txx xxxxxxxxxx xx xxx PARTITION BY xxx xxxxxxxxx xx xxxx xxxxxxx, xxxxxxx xxx PARTITION xxx SUBPARTITION xxxxxxx xxx xxxxxxxxx xx xxx xxxx xxx xxxxxxxx xxxx xxxxx xxxx xxxxxxxxx. - - - - HASH - - - -Txxx xxxxxxxxx xxxxxxx x xxx/xxxxx xxxx xxxx xxxxxxxx xxxxx xxxxxxxxx xx xxxx xxx xxxxxx xxxx xx xxxx xxx xxx xxxxxxxx xxxx. Txx xxxxx xx xxx xxxx xxxxxxxx xx xxx xxxxxxxxx xxxxxxx. Ix x xxxxx xxx x xxxxxxx xxx, xxxx xxxxxx xxxx xx xxxx xx xxx xxxx. Fxxxxxxxx xxxx xxxxxx x xxxxxxxxx xxxxx (xxx x xxxxxx) xxx xx xxxx xxxxxx x xxxx xxxxxxxxxxxxx. - CREATE TABLE xxxxx_xxxxxxx -(xxx_xx INT, -xxxxx_xxxx DATE, -xxxxxx INT) -PARTITION BY HASH(MONTH(xxxxx_xxxx)) -PARTITIONS dd; - - Txxx xxxxxxx xxxxxx xxxxxxxxxx, xxx xxx xxxx xxxxx xxxxxxxxx xxxx xxx xxxxx_xxxx. - Bx xxxxxxx, xxx HASH xxxxxx xxx xxx KEY xxxxxx (xxxxxxxxx xxxxx) xxx xxx xxxxxxx xx xxx xxxx xxxxxxxx’x xxxxx xxxxx. Txx xxxxxxx LINEAR xxx xx xxxxx xx xxxxx xx HASH xx KEY xx xxxxxx xxx xxxxxxxxx xx x xxxxxx xxxxxx-xx-xxx xxxxxxxxx. Fxx xxxxxxxxx xxxxx xxxxxx xx xxxx, xxx xxxxxx xxxx xxx xxxxxx xxxxxxxxxxx xxxxxxx xx xxxxxxxxxx xxxx, xxx xxxx xxx xxxxxx xxxxxx xxxx xxxxxxx xxxxxxxxxx. - - - - - KEY - - - Txxx xxxxxxxxx xxxxxxxxx xxx xxxx xx HASH xxxxxx xxxx xx xxxxxxx xxxx x xxxxx-xxxxxxxxx xxxx xx xxxxxxx xxx xxxxxxxx xxx xxxxxxxxxxxx xxxx xxxxxxx xxxxxxxxxx. Txx LINEAR xxxx xxx xx xxxxx xx xxxxxx xxx xxxxxxxxx xxxxxx xxxx. Sxx xxx xxxxxxxx xxxxxxxxxx xxx HASH. - CREATE TABLE xxxxxxx -(xxxxxx_xx INT AUTO_INCREMENT KEY, -xxxxxx_xxxx VARCHAR(dd), -xxxxxxxxx CHAR(dd)) -PARTITION BY KEY (xxxxxx_xx) -PARTITIONS d; - - - - - LIST - - - -Txxx xxxxxxxxx xxx xx xxxx xx xxxx xxxxxxxx xxxxxx xxx xxxxxxxxxxxx xxxx xxxxxx xxxxxxxxxx. Txx xxxxxx xxx xxxxxx xxxx xxxx xxx xx xxxxxxx, xxx xxxxxxx. - CREATE TABLE xxxxx_xxxxxxx -(xxxxxx_xx INT, xxxxx_xxxx DATE, xxxxxx INT) -PARTITION BY LIST (xxxxxx_xx) ( - PARTITION US_DATA VALUES IN(ddd,ddd,ddd), - PARTITION EU_DATA VALUES IN(ddd,ddd)); - Ix xxxx xxxxxxx, xxxx xx xxxxxxxxxxx xxxxxxx xxx xxxxxxxxxx: xxx xxx xxx xxxxx xx xxx Uxxxxx Sxxxxx, xxxxx xx xxxxxxxx xx xxxxx xxxxxxx, xxx x xxxxxx xxxxxxxxx xxx xxxx xxx xxx xxx Exxxxxxx xxxxxxx. Nxxxxx xxxx xxx xxxxx xxx xxx xxxxxxxxxx xxxxx xxxx’x xx xxx xxxxx xxxxxx xxxxxxxxxx (x.x., xd). Axx xxxx xxxx xx. Ix’x x xxxxxx xx xxxxxxxxxx. - - - - - RANGE - - - Tx xxxxxxxx MxSQL xx xxxxxxxxxx xxxx xxxxx xxx xxxxxxxxxx xxxxx xx x xxxxx xx xxxxxx, xxx xxx RANGE xxxxxxxxx. Uxx xxx VALUES LESS THAN xxxxxxxxx xx xxx xxxxxx xxx xxxx xxxxx. Uxx VALUES LESS THAN MAXVALUE xx xxx xxx xxxxx xx xxxxx xxxxxxxxx. - CREATE TABLE xxxxxxx -(xxxxxx_xx INT AUTO_INCREMENT KEY, -xxxxxx_xxxx VARCHAR(dd), -xxxxxxxxx CHAR(dd)) -PARTITION BY RANGE (xxxxxx_xx) ( - PARTITION xd VALUES LESS THAN (ddd), - PARTITION xd VALUES LESS THAN (dddd), - PARTITION xd VALUES LESS THAN MAXVALUE); - Ix xxxx xxxxxxx, xxx xxxx xx xxxxxxxxxxx xxxxx xxx xxxxxxxxxx xxxxx xx xxx xxxxxx_xx xxxxxx. Txx xxxxx xxxxxxx xxxx xxxxxxx xxxx xxxx x xxxxxx xxxxxxxxxxxxxx xxxxxx xxxx xxxx ddd, xxx xxxxxx xxxx xxxxxxx xxxx xxxxx xxx xxxxxx xxxxxx xxxx ddd xx dddd, xxx xxx xxxx xxxxxxxxx xxxx xxxxxxx xxxxxx xx dddd xxx xxxxxx. Vxxxxx xxxxx xxx xxxxxxxxxx xxxx xx xx xxxxx. - - - - Sxx xxx ALTER TABLE xxxxxxxxxxx xxx xxxx xxxxxxxxxxx xx xxxxx xxxxxxxxxxxx, xxxxxxxxxx xxxxxxxxx xx xxxxxxxx xxxxxxxxxxxx. - - - CREATE TABLE - Pxxxxxxxx xxxxxxxxxxx - CREATE [TEMPORARY] TABLE [IF NOT EXISTS] xxxxx - PARTITION xxxxxxxxx - [VALUES {LESS THAN (xxxxxxxxxx) | MAXVALUE | IN (xxxxx_xxxx)}] - [[STORAGE] ENGINE [=] xxxxxx] - [COMMENT [=] 'xxxxxx' ] - [DATA DIRECTORY [=] '/xxxx'] - [INDEX DIRECTORY [=] '/xxxx'] - [MAX_ROWS [=] xxxxxx] - [MIN_ROWS [=] xxxxxx] - [TABLESPACE [=] (xxxxxxxxxx)] - [NODEGROUP [=] xxxxxx] - [(xxxxxxxxxxxx_xxxxxxxxxx [, xxxxxxxxxxxx_xxxxxxxxxx] ...)] - - -Txx xxxxxxxxxx xxxxxxxxx xx xxxx xxxxxxx xxxxxx xxxxxxx xxxxxxxxxx xx xxxxxxxxxx, xxxx xx xxxxx xxxxx xxx xxxxxxxxx xx xxx xxxxxxxxxxx. - - - - - COMMENT - - - -Uxx xxxx xxxxxxxxx xx xxx xxxx xx xxx x xxxxxxx xx x xxxxxxxxx. Txx xxxx xxxx xx xxxxxxxxx xxxxxx xxxxxx xxxxxx. Cxxxxxxx xxx xx xxxxxx xxxx xxxx xxx SHOW CREATE TABLE xxxxxxxxx. - CREATE TABLE xxxxx_xxxxxxx -(xxxxxx_xx INT, xxxxx_xxxx DATE, xxxxxx INT) -PARTITION BY LIST (xxxxxx_xx) ( - PARTITION US_DATA VALUES IN(ddd,ddd,ddd) - COMMENT = 'U.S. Dxxx', - PARTITION EU_DATA VALUES IN(ddd,ddd) - COMMENT = 'Exxxxx Dxxx'); - - - - DATA DIRECTORY, INDEX DIRECTORY - - -Wxxx xxxxx xxxxxxxxxx xxx xxx xxxxxxx xxxx xxxxxxxxx xx xxxxx xx xxx xxx xxxxxxxxx xx xxxxxxxxxx. Txx xxxxxxxxxxx xxxxx xxxx xxxxx xxx xxx xxxx xxxx xxxxxx xxxxxxxxxx xx xxx xxxxx xxxxxxxxxxx. - CREATE TABLE xxxxxxx -(xxxxxx_xx INT AUTO_INCREMENT KEY, -xxxxxx_xxxx VARCHAR(dd), -xxxxxxxxx CHAR(dd)) -PARTITION BY RANGE (xxxxxx_xx) ( - PARTITION xd VALUES LESS THAN (ddd) - DATA DIRECTORY = '/xxxx/xxxxx/xxx_xxxxxxx/xxxx' - INDEX DIRECTORY = '/xxxx/xxxxx/xxx_xxxxxxx/xxxxx', - PARTITION xd VALUES LESS THAN MAXVALUE - DATA DIRECTORY = '/xxxx/xxxxx/xxx_xxxxxxx/xxxx' - INDEX DIRECTORY = '/xxxx/xxxxx/xxx_xxxxxxx/xxxxx'); - - - - - ENGINE - - - -Txxx xxxxxxxxx xxxxxxxxx xx xxxxxxxxxxx xxxxxxx xxxxxx xx xxx xxx xxx xxxxxxxxx. Hxxxxxx, xx xxxx xxxx xxx xxxxxxxxxx xxxx xxx xxx xxxx xxxxxxx xxxxxx. - CREATE TABLE xxxxxxx -(xxxxxx_xx INT AUTO_INCREMENT KEY, -xxxxxx_xxxx VARCHAR(dd), -xxxxxxxxx CHAR(dd)) -PARTITION BY RANGE (xxxxxx_xx) ( - PARTITION xd VALUES LESS THAN (ddd) - ENGINE = IxxxDB, - PARTITION xd VALUES LESS THAN MAXVALUE - ENGINE = IxxxDB); - - - - MAX_ROWS, MIN_ROWS - - -Txxxx xxxxxxxxxx xxxxxxx xxx xxxxxxx xxx xxxxxxx xxxxxx xx xxxx xx x xxxxx xxxxxxxxx, xxxxxxxxxxxx. MxSQL xxx xxxxxxx xxxx xxxxx xxxxxx, xxxxxx. - CREATE TABLE xxxxxxx -(xxxxxx_xx INT AUTO_INCREMENT KEY, -xxxxxx_xxxx VARCHAR(dd), -xxxxxxxxx CHAR(dd)) -PARTITION BY RANGE (xxxxxx_xx) ( - PARTITION xd VALUES LESS THAN (ddd) - MIN_ROWS = dd MAX_ROWS = dddd, - PARTITION xd VALUES LESS THAN MAXVALUE - MIN_ROWS = dd MAX_ROWS = ddd); - - - - - NODEGROUP - - - -Txxx xxxxxxxxx xxx xx xxxx xxxx xxxx MxSQL Cxxxxxx, xxx xxxxxx x xxxxxxxxx xx xxx xxxxx xxxx xxxxx. (MxSQL xxxxxxxx xxx xxxxxxx xxxx xxxxxxxxx xxxx xxxxxx xx xxxxx xx xxx xxxxxxx xxxxx xxxxxx xxx xxxx xxxxx.) - - - - - TABLESPACE - - - -Txxx xxxxxxxxx xxx xx xxxx xxxx xxxx MxSQL Cxxxxxx, xxx xxxxxxxxx xxx xxxxxxxxxx xx xxx xxxx xxx xxxxxxxxx. - - - - - VALUES - - - -Txxx xxxxxxxxx xxxxxxxxx x xxxxx xx xxxxxx xx x xxxx xx xxxxxxxx xxxxxx xxx xxxxxxxx xxx xxxxxxxxxxx xxx xxxxxxxxx xx xxxx xxxxx xxxxxxxx. Txxxx xxx xxxxxxxxx xx xxx xxxxxxx “CREATE TABLE: Pxxxxxxxxxxx.” - - - - - - CREATE TABLE - Sxx-Pxxxxxxxx xxxxxxxxxxx - CREATE [TEMPORARY] TABLE [IF NOT EXISTS] xxxxx - SUBPARTITION xxxxxxxxx - [[STORAGE] ENGINE [=] xxxxxx] - [COMMENT [=] 'xxxxxx' ] - [DATA DIRECTORY [=] '/xxxx'] - [INDEX DIRECTORY [=] '/xxxx'] - [MAX_ROWS [=] xxxxxx] - [MIN_ROWS [=] xxxxxx] - [TABLESPACE [=] (xxxxxxxxxx)] - [NODEGROUP [=] xxxxxx] - Oxxx xxxxxxxxxx xxxxxxxxxxx xx xxx RANGE xx LIST xxxxxxx xxx xx xxxxxxxxxxxxxx. Txx xxxxxxxxxxxxx xxx xxx xxxx xxx HASH xx KEY xxxxxxx. Txx xxxxxxxxxxx xxx xxxxxxxxxxxxx xxx xxx xxxx xx xxx xxxxxxxxxx, xxxxxxxxx xxxxxxx xx xxx xxxxxxx CREATE TABLE - Pxxxxxxxxxxx. Sxxx xxxxxxxx xx xxxxxxxxxxxxxxx xxxxxx. - CREATE TABLE xx (xx INT, xxxxxxxxx DATE) - PARTITION BY RANGE( YEAR(xxxxxxxxx) ) - SUBPARTITION BY HASH( TO_DAYS(xxxxxxxxx) ) - SUBPARTITIONS d ( - PARTITION xd VALUES LESS THAN (dddd), - PARTITION xd VALUES LESS THAN (dddd), - PARTITION xd VALUES LESS THAN MAXVALUE - ); - -CREATE TABLE xxxxx_xxxxxxx -(xxx_xx INT, xxxxx_xxxx DATE, xxxxxx INT) -PARTITION BY RANGE(YEAR(xxxxx_xxxx)) -SUBPARTITION BY HASH(MONTH(xxxxx_xxxx)) -SUBPARTITIONS d ( - PARTITION QTRd VALUES LESS THAN (d), - PARTITION QTRd VALUES LESS THAN (d), - PARTITION QTRd VALUES LESS THAN (dd), - PARTITION QTRd VALUES LESS THAN MAXVALUE); - Nxxxxx xxxx xxxxxxxx xxx xxxxxxxxxxxx xxxx HASH, xxx xxxxxxxxxxx xxx xxxxxxxxx xx xxxxxx xx xxxxxx xxxxxxx xx’x x xxxxxxxxxxxx xx x xxxxxxxxx xxxx xxxx xxx RANGE xxxxxx,. - - - CREATE TABLE - Bxxxx xx xx xxxxxxxx xxxxx - CREATE [TEMPORARY] TABLE [IF NOT EXISTS] xxxxx - LIKE xxxxx -|[IGNORE|REPLACE] [AS] SELECT... - xxxxxxxxxxxxxx xxxxx xx xxxxxLIKE xxxxxxCREATE TABLE xxxxxxxxx -Txxxx xxx xxxxxxxx xxx xxx CREATE TABLE xxxxxxxxx xxxxx x xxx xxxxx xx xx xxxxxxx xxxxx xx xx xxxxxxxx xxxxx. Wxxx xxx LIKE xxxxxx, x xxxxx xx xxxxxxx xxxxx xx xxx xxxxxxxxx xx xxx xxxxxxxx xxxxx xxxxx. Fxx xxxxxxx, xxxxxxx x xxxxxxxx xxx x xxxxx xxxxxx xxxxxxxxx xxxx xxxxxxxx xxxxxxxxxxx xx xxxx-xxxx xxx xxxx-xxxx xxxxxxxxx. Sxxxxxx xxxxxxx xxxx xx xxx xxxx xxxxxxx xxxx xxxxxxxxxxx xx xxxx-xxxx xxxxxxxxx xxxxxx xx xxxxxx xx x xxxxxxxx xxxxx. Yxx xxxxx xxxxxxx xxx xxxxxxxxx xxxxxxxxx xx xxxxxx x xxx xxxxx xxx xxxx-xxxx xxxxxxxxx xxxx xxx xxxx xxxxxxxxx xx xxx xxxxxxxx xxxxxxxxx xxxxx: - CREATE TABLE xxxx_xxxx_xxxxxxxxx -LIKE xxxxxxxxx; - CREATE INDEX xxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxx -Txxx xxxxxxxxx xxxxxxx xx x xxx xxxxx xxxx xxx xxxx xxxxxxxxx, xxx xxxxxxx xxx xxxx. Ix xxx xxxxx xxxx xxx xxxxxx xxx x xxxxxxx xxx xx xxx xxxxxxx, xxxx xxx’x xx xxxxxx. Yxx xxx xxx xxx CREATE INDEX xxxxxxxxx xx xxxxxx xx xxxxx. Yxx xxxxx xxxxx xxxx xx xx xxx xxxxxxxxx xx xxxx xxx xxxx xxxx: - INSERT INTO xxxx_xxxx_xxxxxxxxx -SELECT * FROM xxxxxxxxx -WHERE xxxx_xxxx = 'Y'; - xxxxxxxxxxxxx xxxx xxxxxxxxxxxxxxxxxx xxxxxxx xxxxxx -Tx xxxxxx x xxx xxxxx xxxxx xx xxx xxxxxxxxx xx xx xxxxxxxx xxxxx xxx xx xxxx xxxx xxxx xxxx xxx xxx xxxxx xx xxx xxx xxx, xxx xxx xxxxx xxxxxxxxx xxxx xxx xxxxxxxxx xxxxxxxxx: - CREATE TABLE xxxx_xxxx_xxxxxxxxx -SELECT * -FROM xxxxxxxxx -WHERE xxxx_xxxx = 'Y'; - -CREATE INDEX xxx_xx ON xxxx_xxxx_xxxxxxxxx(xxx_xx); - xxxxxxxxxxxxDELETE xxxxxxxxxxxxxxxxx xxxxWHERE xxxxxxCREATE TABLE xxxxxxxxx -Ix xxxx xxxxxxx, xxx xxxxx xxxxxxxxx xx xxxxxx xxx xxx xxxx xx xxxxxx xxx xxxx xxxxx xxx xxxx_xxxx xxxxxx xxx x xxxxx xx Y, xxxxxxx xxx. Yxx xxxxx xxxxxx xxxx xxxxxxxxx xxxx x DELETE xxxxxxxxx xx xxxxxx xxx xxxx xxx xxxx-xxxx xxxxxxxxx xxxx xxx xxxxxxxxx xxxxx. Txx xxxxxx SQL xxxxxxxxx xx xxx xxxxxxx xxxxx xxxxxxxx xxx xxxxx xx xxx_xx. Hxxxxxx, xx xxxxx’x xxxx xxx xxxxxx x xxxxxxx xxx xx xx AUTO_INCREMENT xxx. Fxx xxxx xxx xxxxx xxxx xx xxx ALTER TABLE xxxxxxx. - IGNORE xxxxCREATE TABLE xxxxxxxxx -Yxx xxx xxx xxx IGNORE xxxxxxx xxxxxx xxx SELECT xxxxxxxxx xx xxxxxxxx MxSQL xx xxxxxx xxx xxxxx xxxxxxxx xxxxxxxxx xxxxxxxxx xxxx, xx xxx xxxxxx xxxx, xxx xx xxxxxxx xxxx xxx xxxxxxxxx xxxx xx xxx SELECT xxxxxxxxx. Uxx xxx REPLACE xxxxxxx xxxxxxx xx xxxxxxxxx xxxx xxx xx xx xxxxxxxx xx xxx xxx xxxxx. - -REPLACE xxxxCREATE TABLE xxxxxxxxx - - - - - DESCRIBE - - - DESCRIBE - - - - {DESCRIBE|DESC} xxxxx [xxxxxx] - - - - <para><indexterm id="mysqlian-CHP-5-ITERM-2483" significance="normal"><primary>xxxxxx</primary><secondary>xxxxxxxxxx xxxxxxxxxxx xxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-5-ITERM-2484" significance="normal"><primary>DESCRIBE xxxxxxxxx</primary></indexterm> -Txxx xxxxxxxxx xxxxxxxx xxxxxxxxxxx xxxxx xxx xxxxxxx xx x xxxxx xxxxx. Txx <literal moreinfo="none">DESCRIBE</literal> xxxxxxx xxx xx xxxxxxxxxxx xx <literal moreinfo="none">DESC</literal>. -</para> - <programlisting format="linespecific">DESCRIBE xxxxxxx; - -+--------------------+---------+------+-----+---------+----------------+ -| Fxxxx | Txxx | Nxxx | Kxx | Dxxxxxx | Exxxx | -+--------------------+---------+------+-----+---------+----------------+ -| xxx_xx | xxx(dd) | NO | PRI | NULL | xxxx_xxxxxxxxx | -| xxxxxx_xx | xxx(dd) | YES | | NULL | | -| xxxxxx_xxxxxxxxxxx | xxxx | YES | MUL | NULL | | -| xxxxxxxxxx_xxxxx | xxxx | YES | | NULL | | -+--------------------+---------+------+-----+---------+----------------+</programlisting> - <para>Fxx xxxxxxxxxxx xx x xxxxxxxx xxxxxx, xxxxxx xxxx xxx xxxxxx xxxx. Fxx xxxxxxxxxxx xx xxxxxxxx xxxxxxx, xxx xxx xxx xxxxxxx, xxx xxx xxxxxx x xxxx xxxxxxx xxxxxx xxxxxx xxx xxx xxx xxxxxxxx xxxxxxxxxx <literal moreinfo="none">%</literal> xxx <literal moreinfo="none">_</literal>. Qxxxxx xxxxxx xxx xxxxxx xxxx’x xxxxxxxxx xxxxxx xxx xxxxxx xxxxxxxx xxxxxx.</para> - <para>Tx xxxx xxx xxxxxxx xx xxx <emphasis>xxxxxxx</emphasis> xxxxx xxxx xxxx xxxxx xxxx xxxxx xxxx xxx xxxxxxxxxx <emphasis>xxxxxx</emphasis>, xxxxx xxx xxxxxxxxx:</para> - <programlisting format="linespecific">DESCRIBE xxxxxxx 'xxxxxx%'; - -+--------------------+---------+------+-----+---------+-------+ -| Fxxxx | Txxx | Nxxx | Kxx | Dxxxxxx | Exxxx | -+--------------------+---------+------+-----+---------+-------+ -| xxxxxx_xx | xxx(dd) | YES | | NULL | | -| xxxxxx_xxxxxxxxxxx | xxxx | YES | MUL | NULL | | -+--------------------+---------+------+-----+---------+-------+</programlisting> - <para>Txx xxxxxx xx xxx xxxxxxx xxxx xxx xxxxxxxx xxxxxxxx:</para> - <variablelist> - <varlistentry> - <term> - <literal moreinfo="none">Fxxxx</literal> - </term> - <listitem> - <para>Lxxxx xxx xxxx xx xxxx xxxxxx xx xxx xxxxx.</para> - </listitem> - </varlistentry> - <varlistentry> - <term> - <literal moreinfo="none">Txxx</literal> - </term> - <listitem> - <para>Sxxxx xxx xxxx xxxx xx xxxx xxxxxx.</para> - </listitem> - </varlistentry> - <varlistentry> - <term> - <literal moreinfo="none">Nxxx</literal> - </term> - <listitem> - <para>Ixxxxxxxx xxxxxxx xxx xxxxxx xx xxx xxxxx xxx xxxxxxx x NULL xxxxx.</para> - </listitem> - </varlistentry> - <varlistentry> - <term> - <literal moreinfo="none">Dxxxxxx</literal> - </term> - <listitem> - <para>Sxxxx xxx xxxxxxx xxxxx xx xxx xxxxxx.</para> - </listitem> - </varlistentry> - <varlistentry> - <term> - <literal moreinfo="none">Kxx</literal> - </term> - <listitem> - <para>Ixxxxxxxx xxxx xxxx xx xxx xxx xxxxxx xx. Ix xxxx xxxxx xx xxxxx, xxx xxxxxx xx xxx xxxxxxx. A xxxxx xx <literal moreinfo="none">PRI</literal> xxxxxxxxx x <literal moreinfo="none">PRIMARY KEY</literal> xxxxxx, <literal moreinfo="none">UNI</literal> xxxxxxxxx x <literal moreinfo="none">UNIQUE</literal> xxxxxxx xxxxxx, xxx <literal moreinfo="none">MUL</literal> xxxxx xxxx xxxxxxxx xxxxxxxxxxx, xx xxxxxxxxx xxxxxx, xxx xxxxxxx xxx xxx xxxxxx. Txxx xx xxxxxxx xxxxxxx xxx xxxxxx xx xxxx xxx xx xxxxxxxx xxxxxxx xxxxxx xx xx xxxxx xx xxxxx xx x xxxx.</para> - </listitem> - </varlistentry> - <varlistentry> - <term> - <literal moreinfo="none">Exxxx</literal> - </term> - <listitem> - <para>Lxxxx xxx xxxxx xxxxxxxxxxx xxxxxxxxxx xx xxx xxxxxx.</para> - </listitem> - </varlistentry> - </variablelist> - <para>Tx xxxxxxxxxx xxx xxx xxxxxxx xxx xxx xxxx xxxxxxxx xx xxxxxxxx x xxxxx xxxxxx xxx xxxxxx xx <literal moreinfo="none">DESCRIBE</literal>, xxx’x xxxx xx xxx xxxxxx xx xxx xxxxx xxxxx xx xxx xxxxxxxx xxxxxxx.</para> - <programlisting format="linespecific">SHOW CREATE TABLE xxxxxxx \G - -*************************** d. xxx *************************** - Txxxx: xxxxxxx -Cxxxxx Txxxx: CREATE TABLE `xxxxxxx` ( - `xxx_xx` xxx(dd) NOT NULL AUTO_INCREMENT, - `xxxxxx_xx` xxx(dd) DEFAULT NULL, - `xxxxxx_xxxxxxxxxxx` xxxx, - `xxxxxxxxxx_xxxxx` xxxx, - PRIMARY KEY (`xxx_xx`), - FULLTEXT KEY `xxxxx_xxxxx` (`xxxxxx_xxxxxxxxxxx`,`xxxxxxxxxx_xxxxx`) -) ENGINE=MxISAM DEFAULT CHARSET=xxxxxd</programlisting> - <para>Txx xxxxxxx xx xxxx <literal moreinfo="none">SHOW CREATE TABLE</literal> xxxxxxxxx xxxxxxxx xxxx <emphasis>xxxxxx_xxxxxxxxxxx</emphasis> xx xxxx xx xxx xxxxx xxxxxx <emphasis>xxxxx_xxxxx</emphasis>. Txx xxxxx xxxxxx xxxx xx xxxx xx xxxx xxxxx xx <emphasis>xxxxxxxxxx_xxxxx</emphasis>. Nxxxxx xx xxx xxxxxxx xx xxx xxxxxxx <literal moreinfo="none">DESCRIBE</literal> xxxxxxxxx xxxx xxxx xxx xxxxx xxxxxx xx xxx xxxxx xx xxxxxx <literal moreinfo="none">MUL</literal>.</para> - </refsect1> - </refentry> - <refentry id="ch05-50012"> - <refmeta> - <refentrytitle>CREATE VIEW</refentrytitle> - </refmeta> - <refnamediv> - <refname>CREATE VIEW</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">CREATE - [OR REPLACE] - [ALGORITHM = {MERGE|TEMPTABLE|UNDEFINED}] - [DEFINER = {'<replaceable>xxxx</replaceable>'@'<replaceable>xxxx</replaceable>'|CURRENT_USER}] - [SQL SECURITY {DEFINER|INVOKER}] -VIEW <replaceable>xxxx</replaceable> [(<replaceable>xxxxxx</replaceable>, . . . )] -AS SELECT... -[WITH [CASCADED|LOCAL] CHECK OPTION]</synopsis> - </refsynopsisdiv> - <refsect1 id="ch05-38-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-5-ITERM-2456" significance="normal"><primary>WITH CHECK OPTION xxxxxx (CREATE VIEW)</primary></indexterm><indexterm id="mysqlian-CHP-5-ITERM-2457" significance="normal"><primary>OR REPLACE xxxxxx (CREATE VIEW)</primary></indexterm><indexterm id="mysqlian-CHP-5-ITERM-2458" significance="normal"><primary>SELECT xxxxxxxxx</primary><secondary>xxxxxxxx xxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-5-ITERM-2459" significance="normal"><primary>xxxxxxxxx</primary><secondary>xxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-5-ITERM-2460" significance="normal"><primary>CREATE VIEW xxxxxxxxx</primary></indexterm> -Uxx xxxx xxxxxxxxx xx xxxxxx x xxxx, xxxxx xx x xxxxxx xxxxx, xxxxxx xx x xxxxxxxx. Ix xxxxxxx xxxxxxxxxx x xxxx xxx xx xxxxxx xxx xxxxxxxx xxxxxxxx. Vxxxx xxx xxxxxxxxx xx xx xxxxxxx d.d.d xx MxSQL.</para> - <para>Txx xxxxxxxx xx x xxxx xxx xxxxx xx xxx <literal moreinfo="none">SELECT</literal> xxxxxxxxx xxxxx xx xxx <literal moreinfo="none">AS</literal> xxxxxx. Uxxxx xxx xxxxxxxxxxxx xxxxx xxxxxxx xxx xxxxxxx xx xxx xxxx xx xxxxx xx x xxxxx; xxxxxxx xxxxxxxxxx xxxxxx xxx xxxx xx xxx xxxxxx xxxx xxxxxxxx xxx xxxxx. Sxx xxx xxxxxx xxxxxxxxxxxxx xxx xxxxxxxx xxxx, xx xxxx xx x xxxx, xxxxxxx xx xxxx xxxxx xxxxxxxxx.</para> - <para>Txx xxxx xx xxx xxxx xxxxxx xx xxx xxxx xx x xxxxx xx xxx xxxxxxxx, xxxxxxx xxxx xxxxx xxx xxxx xxxxxxxxxx. A xxxx xxx xx xxxxx xx xxxxx xxxxx, xxxxxx xxxx xxxxxxxx xxxxx xx x xxxxx. Tx xxxxx xxx xxxxxx xxxxxxxx xxx xxx xxxx’x xxxxxxx xxx, xxxxxx xxxxx xxx xx xxxxx xx x xxxxx-xxxxxxxxx xxxx xx xxxxxxxxxxx xxxxx xxx xxxx xxxx. Txxx SQL xxxxxxxxx xx xxxxxxxxx xx xxxxxxx d.d.d xx MxSQL.</para> - <para>A xxx xxxxxxxxxx xxx xxxxxx xxxxxxx xxx <literal moreinfo="none">CREATE</literal> xxx <literal moreinfo="none">VIEW</literal> xxxxxxxx. Bx xxxxxxx, xxxxxxxx xx xxxxxx x xxxx xxxx x xxxx xx xx xxxxxxxx xxxx xxxxx, xxx xxx <literal moreinfo="none">OR REPLACE</literal> xxxxxxxxx xxxxxxxxxx x xxxx xxxx xxx xxxx xxxx xx xx xxxxxx xxx xxxxxxx x xxx xxxx xxxxxxxxx. Axxx xx xxxxxxx, xxx xxxx’x xxxxxxx (xxxx xx xxxxxxxxx xxxxxx xxxxxx xx xxx xxxxxxx xx xxx xxxx) xx xxx xxxx xxxx xxxxxxx xx, xxx xxxxxxx xxxx xxx xx xxxxxxxxx xxxx xxx <literal moreinfo="none">DEFINER</literal> xxxxxx. Txxx xxxxxx xx xxxxxxxxx xx xx xxxxxxx d.d.d xx MxSQL. Txxx xxxx xxxxxxx xxxxxxxxxx xxx xxxxxxx <literal moreinfo="none">SQL SECURITY</literal> xxxxxx. Ix xxxxxxxxx MxSQL xx xxxxxxxxx xxxxxx xx xxx xxxx xxxxx xx xxx xxxxxxxxxx xx xxxxxx xxx xxxx xxxxxxx xx xxx xxxx’x xxxxxxx (<literal moreinfo="none">DEFINER</literal>, xxx xxxxxxx) xx xxx xxxx xxxxxxx xx xxx xxxx xxx xx xxxxxxxx xxx xxxx (<literal moreinfo="none">INVOKER</literal>). Txxx xxx xxxx xx xxxxxxx xxxx xxxxx xxxx xxxxxxxxx xxxxxxxxxx xxxxx.</para> - <para>Txx <literal moreinfo="none">ALGORITHM</literal> xxxxxxxxx xxxxxxx xxx xx xxx xxx xxxxx xx xxxxxxxxxxx xxxxxx xx xxx xxx xxxxxxxxxx x xxxx: <literal moreinfo="none">MERGE</literal> xx <literal moreinfo="none">TEMPTABLE</literal>. <literal moreinfo="none">TEMPTABLE</literal> xxxxxxxx x xxxx xxxx xxxxx xxxxxxxxx. Txx xxxxxxx xx <literal moreinfo="none">UNDEFINED</literal> xxxxxx xxx xxxxxx xx MxSQL.</para> - <para>Txx <literal moreinfo="none">WITH CHECK OPTION</literal> xxxxxx xxxxxxxxx xxxxxxx xx xxxx xx xxxxx xxx <literal moreinfo="none">WHERE</literal> xxxxxx xx xxx xxxxxxxxxx <literal moreinfo="none">SELECT</literal> xxxxxxxxx xxxxxxx xxxx. Fxx x xxxx xxxx xx xxxxx xx xxxxxxx xxxx, xx xxx xxxxxxx xxx <literal moreinfo="none">LOCAL</literal> xxxxxxx, xxxx xxxxxxxxxxx xxxx xx xxxxxxx xx xxx xxxx xx xxxxx xx’x xxxxx xxx xxx xxx xxxxxxxxxx xxxx. Cxxxxxxxxx, xx xxx xxx xxx xxxxxxx xxxxxx xx <literal moreinfo="none">CASCADED</literal>, xxx <literal moreinfo="none">WHERE</literal> xxxxxxx xx xxxxxxxxxx xxxxx xxxx xx xxxxxxxxxx xx xxxx.</para> - <para>Ix xxx <literal moreinfo="none">xxxxxx</literal> xxxxxx xx xxxxxxx xxxx xxx <literal moreinfo="none">--xxxxxxxxx_xxxxx_xxxx_xxxxx</literal> xxxxxx, xxxxxxx xxxx xxxxxxx x <literal moreinfo="none">LIMIT</literal> xxxxxx xxx xxxxxx xxxxx xxxx xx xxx xxxxx xxxxxxx xxx xx xxx xxxxxxx xxxx xxx xxxx xx xxx xxxxxxx xxxx xx xxx xxxxxxxxxx xxxxxx. Ix xxx xx xxx xxxxxxx xxxxx xx d, x xxxxxxx xxxx xx xxxxxxxx xxx xxxxxxx xxx xxx xxxxxxxxxx.</para> - <para>Hxxx xx xx xxxxxxx xx xxx xxx xxx xxx xxxx xxxxxxxxx:</para> - <programlisting format="linespecific">CREATE DEFINER = 'xxxxxxx'@'xxxxxxxxx' -SQL SECURITY INVOKER -VIEW xxxxxxx_xxxxxxxxx(ID, Nxxx, Txxxxxxxx) -AS SELECT xxxxxxx_xx, -CONCAT(xxxx_xxxxx, SPACE(d), xxxx_xxxx), xxxxx_xxxx -FROM xxxxxxxx;</programlisting> - <para>Txxx SQL xxxxxxxxx xxxxxxx x xxxx xxxx xxxxxxxx xxxx xxxxxxx’x xxxxxxxxxxxxxx xxxxxx, xxx xxxxxxx’x xxxxx xxx xxxx xxxx xxxxxxxxxxxx xxxxxxxx xxxx x xxxxx xx xxxxxxx, xxx xxx xxxxxxx’x xxxx xxxxxxxxx. Tx xxxxxxxx xxxx xxxx, xxxxx xxx xxxxxxxxx SQL xxxxxxxxx:</para> - <programlisting format="linespecific">SELECT * FROM xxxxxxx_xxxxxxxxx -WHERE Nxxx LIKE '%Txxxx'; - -+-----------+-------------------+-----------+ -| ID | Nxxx | Txxxxxxxx | -+-----------+-------------------+-----------+ -| ddddddddd | Cxxxxxxxx Txxxx | ddddddd | -+-----------+-------------------+-----------+</programlisting> - <para><indexterm id="mysqlian-CHP-5-ITERM-2461" significance="normal"><primary>xxxxxxxxx</primary><secondary>xxxxxxxx xxxxx xxxx</secondary></indexterm><indexterm id="mysqlian-CHP-5-ITERM-2462" significance="normal"><primary>DROP VIEW xxxxxxxxx</primary></indexterm> -Tx xxxx xxxxx xx xxx xxxxxx, xxx xxxxx xxxxxxxx x <literal moreinfo="none">WHERE</literal> xxxxxx xx xxxxxxxx x xxxxxxx xxxx xxx xxxx xxxx xx <replaceable>Txxxx</replaceable>. Nxxxxx xxxx xxx xxxxxx xxxxx xxx xxx xxxx xxxxx xx xxx <literal moreinfo="none">CREATE VIEW</literal> xxxxxxxxx, xxx xxx xxxxxxxxxx xxxxxx xx xxxxx xxx xxxx xx xxxxx. Txxx xxxx xxxx xx xxxxxxxxx xxx xxx xxxxx xxx xxxx <literal moreinfo="none">SELECT</literal> xxxxxxxxxx xxx xxx xxxxxxxx xx xxxxx xx xxx xxxxxxx.</para> - <para>Bx xxxxxxx, x xxxx xx xxxxxxx xx xxx xxxxxxx xxxxxxxx xx xxx xxxx xxxx xxx <literal moreinfo="none">CREATE VIEW</literal> xxxxxxxxx xx xxxxxxx. Tx xxxxxx x xxxx xx x xxxxxxxxx xxxxxxxx, xxxxxx xxx xxx xxxxxxxx xxxx xxx x xxx xx x xxxxxxxxx xx xxxxx xx xxx xxxx xxxx xx xxx <literal moreinfo="none">CREATE VIEW</literal> xxxxxxxxx.</para> - <para>Tx xxxxxx x xxxx xxxx x xxxxxxxx, xxx xxx <literal moreinfo="none">DROP VIEW</literal> xxxxxxxxx. Tx xxx x xxxx xx xxxxxxxx xxxxx xxx xxx xxxxxxx xxxxxxxx, xxx <literal moreinfo="none">SHOW FULL TABLES WHERE Txxxx_xxxx='VIEW';</literal></para> - </refsect1> - </refentry> - <refentry id="ch05-50013"> - <refmeta> - <refentrytitle>DROP DATABASE</refentrytitle> - </refmeta> - <refnamediv> - <refname>DROP DATABASE</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">DROP {DATABASE|SCHEMA} [IF EXISTS] <replaceable>xxxxxxxx</replaceable></synopsis> - </refsynopsisdiv> - <refsect1 id="ch05-39-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-5-ITERM-2487" significance="normal"><primary>IF EXISTS xxxx</primary><secondary>DROP DATABASE xxxxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-5-ITERM-2488" significance="normal"><primary>xxxxxxxxx</primary><secondary>xxxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-5-ITERM-2489" significance="normal"><primary>DROP DATABASE xxxxxxxxx</primary><secondary>xxxxxx</secondary></indexterm> -Uxx xxxx xxxxxxxxx xx xxxxxx x xxxxx xxxxxxxx xxxxx xxxx xxx xxx xxxxxx xxx xxxx. Txx xxxxxxxx xx xxx <literal moreinfo="none">IF EXISTS</literal> xxxx xxxxxxxxxx xx xxxxx xxxxxxx xx xxx xxxxxxxx xxxx xxx xxxxxxx xxxxx. Yxx xxxx xxxx xxx <literal moreinfo="none">DROP</literal> xxxxxxxxx xxx xxx xxxxxxxx xx xx xxxx xx xxxxxx xx. Hxxx xx xx xxxxxxx xx xxxx xxxxxxxxx’x xxx: -</para> - <programlisting format="linespecific">DROP DATABASE IF EXISTS xxxx; -Qxxxx OK, d xxxx xxxxxxxx (d.dd xxx)</programlisting> - <para>Txx xxxxxx xx xxxxxx xxxxxxx xx xxxxxxxx xx xxx <emphasis>xxxx xxxxxxxx</emphasis> xxxxx. Ix xxx xxxxxxxx xxxxx’x xxxxx xx xx xxxxx xxx xxxxx xxxxx xx xxx xxxxxxxx’x xxxxxxxxxx xxxxxxxxx, xx xxxxx xxxxxxx xxxx xx xxxxxxxxx. Txx xxxxxx xxxx xx xxxxxxx xx xxxxx xxxxx xxxxx, xxx xxx xxxxxxx xxxx xxx xxx xxxxxxxxx xxx xxx xxxxxxxx xxx’x xx xxxxxxx. Txxx xxxx xxxx xx xx xxxxxxx xxxxxxxx xx xxx xxxxxxx xxxx xxxxx x xxxxxxxxxx xxxxxxx xxxx xx <emphasis>xx</emphasis> xx Uxxx xx <emphasis>xxx</emphasis> xx Wxxxxxx. Hxxx’x xx xxxxxxx xx xxxxx x xxxxxxx xxxx xx xxxxx xx xxx xxxxxxxx xxxxxxxxx xxxx xxxxxxxx x xxxxxxxx:</para> - <programlisting format="linespecific">DROP DATABASE IF EXISTS xxxx; - -ERROR dddd (HYddd): -Exxxx xxxxxxxx xxxxxxxx (xxx'x xxxxx './xxxx/', xxxxx: dd) - -SHOW TABLES FROM xxxx; -Exxxx xxx (d.dd xxx) - -SHOW DATABASES LIKE 'xxxx'; - -+-----------------+ -| Dxxxxxxx (xxxx) | -+-----------------+ -| xxxx | -+-----------------+</programlisting> - <para>Ix xxxx xxxxxxx, xx’xx xxxxxxxxx xx xxxx xxx xxxxxxxx, xxx xxxx xxxxxxxxxxxx xxxxxxx xx x xxxxxxx xxxx xxxxxxx xx xxx xxxxxxxx’x xxxxxxxxx xx xxx xxxxxxxxxx xxxxx. Txx xxxxxx xxxx xxx xxxxxxx xx xxxxxxxxx xxxx xxx xxxxxxx xx xxx <literal moreinfo="none">SHOW TABLES</literal> xxxxxxxxx, xxx xxx xxxxxxxx xxxxxxx. Axxxx xxxxxxxx xxxxxxxx xxx xxxxxxx xxxx, xx xxx xxx <literal moreinfo="none">DROP DATABASE</literal> xxxxxxxxx xxxxx:</para> - <programlisting format="linespecific">DROP DATABASE IF EXISTS xxxx; -Qxxxx OK, d xxxx xxxxxxxx (d.dd xxx) - -DROP DATABASE xxxx; - -ERROR dddd (HYddd): Cxx'x xxxx xxxxxxxx 'xxxx'; -xxxxxxxx xxxxx'x xxxxx</programlisting> - <para>Txxx xxxx xxx xxxxxxxxx xxx xxxxxxxxxx, xx xxxxxxxxx xx xxx xxxxx xxxxxxx xxxxxxx xxx <literal moreinfo="none">IF EXISTS</literal> xxxx. Nx xxxxxx xxxx xxxxxxx xx xxx xxxxxx xxxxxxx xxxxxxx xxxx xxxx xxx xxxxxxx xx xxx xxxxx xxxxxxx, xx xxx xxxxxx xx xxxx xxxxxxxx xxx d.</para> - <para>Ix x xxxxxxxx xx xxxxxxx, xxx xxxx xxxxxxxxxx xxxxxxxx xx xxx xxxxxxxx (x.x., xxxxxxxxxx xxxxxx xx xxx <literal moreinfo="none">xx</literal> xxxxx xx xxx <literal moreinfo="none">xxxxx</literal> xxxxxxxx) xxx xxx xxxxxxxxxxxxx xxxxxxx. Txxxxxxxx, xx x xxxxxxxx xx xxxxx xxxxxxx xxxx xxx xxxx xxxx, xxxxx xxxx xxxxxxxxxx xxxx xxxxx xx xxx xxx xxxxxxxx, x xxxxxxxxx xxxxxxxx xxxx.</para> - </refsect1> - </refentry> - <refentry id="ch05-50014"> - <refmeta> - <refentrytitle>DROP INDEX</refentrytitle> - </refmeta> - <refnamediv> - <refname>DROP INDEX</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">DROP INDEX <replaceable>xxxxx</replaceable> ON <replaceable>xxxxx</replaceable></synopsis> - </refsynopsisdiv> - <refsect1 id="ch05-40-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-5-ITERM-2490" significance="normal"><primary>xxxxxxx</primary><secondary>xxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-5-ITERM-2491" significance="normal"><primary>SHOW INDEX xxxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-5-ITERM-2492" significance="normal"><primary>xxxxxx</primary><secondary>xxxxxxxx xxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-5-ITERM-2493" significance="normal"><primary>xxxxxxx</primary><secondary>xxxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-5-ITERM-2494" significance="normal"><primary>DROP INDEX xxxxxxxxx</primary></indexterm> -Txxx xxxxxxxxx xxxxxxx x xxxxx xxxxx xxxx x xxxxx. Ix’x xxxxxxxxxx xxxx <literal moreinfo="none">ALTER TABLE...DROP INDEX...</literal>. Sxx xxx xxxxxxx xx <xref linkend="ch05-15-fm2xml"/> xxxxx <literal moreinfo="none">ALTER TABLE</literal> xxxxxxx xx xxxx xxxxxxx xxx xxxx xxxxxxx xxx xxxxxxx xxx xxxxxxxx xxxxxxx xxxx x xxxxx. -</para> - <para>Tx xxxxxxxxx xxx xxxx xx x xxxxxxxxxx xxxxx, xx’xx xxx xxx <literal moreinfo="none">SHOW INDEXES</literal> xxxxxxxxx:</para> - <programlisting format="linespecific">SHOW INDEXES FROM xxxxxxx \G - -*************************** d. xxx *************************** - Txxxx: xxxxxxx - Nxx_xxxxxx: d - Kxx_xxxx: PRIMARY -Sxx_xx_xxxxx: d - Cxxxxx_xxxx: xxxxxx_xx - Cxxxxxxxx: A - Cxxxxxxxxxx: d - Sxx_xxxx: NULL - Pxxxxx: NULL - Nxxx: - Ixxxx_xxxx: BTREE - Cxxxxxx: -*************************** d. xxx *************************** - Txxxx: xxxxxxx - Nxx_xxxxxx: d - Kxx_xxxx: xxxxxx_xxxxx -Sxx_xx_xxxxx: d - Cxxxxx_xxxx: xxxxxx_xxxx - Cxxxxxxxx: A - Cxxxxxxxxxx: NULL - Sxx_xxxx: dd - Pxxxxx: NULL - Nxxx: YES - Ixxxx_xxxx: BTREE - Cxxxxxx: -*************************** d. xxx *************************** - Txxxx: xxxxxxx - Nxx_xxxxxx: d - Kxx_xxxx: xxxxxx_xxxxx -Sxx_xx_xxxxx: d - Cxxxxx_xxxx: xxxxxx_xxxx - Cxxxxxxxx: A - Cxxxxxxxxxx: NULL - Sxx_xxxx: d - Pxxxxx: NULL - Nxxx: YES - Ixxxx_xxxx: BTREE - Cxxxxxx:</programlisting> - <para>Txx xxxxxxxxx xxxxxxx xxxx xxxxx xxxx, xxx xxxxx xxxxxx xxx xxxx xxx xxxxxxx: xxx xxxxxxx xxx xxxxx xx xxx <replaceable>xxxxxx_xx</replaceable> xxxxxx xxx xxx <replaceable>xxxxxx_xxxxx</replaceable>, xxxxx xx xxxxx xx xxx <replaceable>xxxxxx_xxxx</replaceable> xxx xxx <replaceable>xxxxxx_xxxx</replaceable> xxxxxxx xxxxxxxx. Tx xxxxxx <replaceable>xxxxxx_xxxxx</replaceable>, xxx xxx <literal moreinfo="none">DROP INDEX</literal> xxxxxxxxx:</para> - <programlisting format="linespecific">DROP INDEX xxxxxx_xxxxx ON xxxxxxx; - -Qxxxx OK, d xxxx xxxxxxxx (d.dd xxx) -Rxxxxxx: d Dxxxxxxxxx: d Wxxxxxxx: d</programlisting> - <para>Txx <emphasis>xxxxxx_xxxxx</emphasis> xxxxx xxx xxxxxxxxxxx xxxxxxx xxxx xxx <emphasis>xxxxxxx</emphasis> xxxxx. Ix xxx xxx <literal moreinfo="none">SHOW INDEXES</literal> xxxxx, xxx xxxxxxx xxxx xxxx xxxx xxx xxxxxxx xxx.</para> - </refsect1> - </refentry> - <refentry id="ch05-50015"> - <refmeta> - <refentrytitle>DROP SERVER</refentrytitle> - </refmeta> - <refnamediv> - <refname>DROP SERVER</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">DROP SERVER [IF EXISTS] <replaceable>xxxxxx</replaceable></synopsis> - </refsynopsisdiv> - <refsect1 id="ch05-41-fm2xml"> - <title/> - <para>Txxx xxxxxxxxx xxx xx xxxx xxxx xxx FEDERATED xxxxxxx xxxxxx xx xxxxxx x xxxxx xxxxxx xxxx xxx xxxxxxx xxxx <literal moreinfo="none">CREATE SERVER</literal>. Txx <literal moreinfo="none">IF EXISTS</literal> xxxx xxx xx xxxxx xx xxxxxxx xx xxxxx xxxx xxxxx xxxxxxxxx xx xxx xxxxxx xxxx xxx xxxxx. Axx xxxxxx xxxxxxx xxxx x <literal moreinfo="none">CONNECTION</literal> xx x FEDERATED xxxxxx xxxx xxx xx xxxxxxx xx xxxxxxx xx x xxxxxx xx xxxx xxxxxxxxx. Sxx xxx <literal moreinfo="none">CREATE SERVER</literal> xxxxxxxxx xxxxxxxxxxx xx xxxx xxxxxxx xxx xxxx xxxxxxxxxxx xx xxxx xxxxx. Txxx xxxxxxxxx xxx xxxxxxxxxx xx xxxxxxx d.d.dd xx MxSQL xxx xxxxxxxx <literal moreinfo="none">SUPER</literal> xxxxxxxxxx.</para> - <programlisting format="linespecific">DROP SERVER xxxxxxd;</programlisting> - </refsect1> - </refentry> - <refentry id="ch05-50016"> - <refmeta> - <refentrytitle>DROP TABLE</refentrytitle> - </refmeta> - <refnamediv> - <refname>DROP TABLE</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">DROP [TEMPORARY] TABLE [IF EXISTS] <replaceable>xxxxx</replaceable>[, <replaceable>...</replaceable>] - [RESTRICT|CASCADE]</synopsis> - </refsynopsisdiv> - <refsect1 id="ch05-42-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-5-ITERM-2495" significance="normal"><primary>DROP TABLE xxxxxxxxx</primary></indexterm> -Uxx xxxx xxxxxxxxx xx xxxxxx x xxxxx xxxx x xxxxxxxx, xxxxxxxxx xxx xxxx. Yxx xxx xxxxxx xxxxxxxx xxxxxx xx xxx xxxx xxxxxxxxx xx xxxxxx xxxx xx x xxxxx-xxxxxxxxx xxxx. Ix xxxx xxxxxx xxxxx xxxxx xxx xxxxx xxx’x, xxx xxxx xxxx xxxxx xxxx xx xxxxxxx xxx xx xxxxx xxxxxxx xxxx xx xxxxxxxxx xxx xxx xxx-xxxxxxxx xxxx. Txx xxxxxxxx xx xxx <literal moreinfo="none">IF EXISTS</literal> xxxx xxxxxxxx xxx xxxxx xxxxxxx xxxx xxxxx xxxxxxxxx xx x xxxxx xxxxx’x xxxxx. Ixxxxxx, x <literal moreinfo="none">NOTE</literal> xx xxxxxxxxx xxx xxx xxxxxxxxx, xxx xxx xxxxxxxxx xxxx xxx <literal moreinfo="none">SHOW WARNINGS</literal> xxxxxxxxx. Ix xxx <literal moreinfo="none">TEMPORARY</literal> xxxx xx xxxxx, xxxx xxxxxxxxx xxxxxx xxxxxxxx xxx xxxxx xxxxx xxxxx xxxx xx xxxxxxx. Txxx xxxxxxxxx xxxx xxxxx x xxxxxx xx xxx xxxxxxx xxxxxxxxxxx, xxxxxx xxxx xxx <literal moreinfo="none">TEMPORARY</literal> xxxx xx xxxx.</para> - <para> -Txx <literal moreinfo="none">DROP</literal> xxxxxxxxx xx xxxxxxxx xxx xxxx xxxxxxxxx. Txxx xxxxxxxxx xxx’x xxxxxxx xxxx xxx <literal moreinfo="none">TEMPORARY</literal> xxxx xx xxxx xxxxxxx xxx xxxxxxxxx xxxx xxxx xxxxx xx xxxxxxxxx xxxxxx, xxx xxxx xxx xxxxxxx xxx xxxxxx xxxx xx xxx xxxx xx xxx xxxxxxx xxxxxxx xxx xxxxxxx xxxx.</para> - <para>Txx <literal moreinfo="none">RESTRICT</literal> xxx <literal moreinfo="none">CASCADE</literal> xxxxx xxx xxx xxxxxx xxxxxxxx xxx xxx xxxxxxx xx xxxxxxxxxxxxx xxxx xxxxx xxxxxxx. -<indexterm id="mysqlian-CHP-5-ITERM-2496" significance="normal"><primary>CASCADE xxxx</primary><secondary>DROP TABLE xxxxxxxxx</secondary></indexterm> -<indexterm id="mysqlian-CHP-5-ITERM-2497" significance="normal"><primary>RESTRICT xxxx</primary><secondary>DROP TABLE xxxxxxxxx</secondary></indexterm> -<indexterm id="mysqlian-CHP-5-ITERM-2498" significance="normal"><primary>TEMPORARY xxxx</primary><secondary>DROP TABLE xxxxxxxxx</secondary></indexterm> -<indexterm id="mysqlian-CHP-5-ITERM-2499" significance="normal"><primary>IF EXISTS xxxx</primary><secondary>DROP TABLE xxxxxxxxx</secondary></indexterm> -</para> - <para>Ix x xxxxx xx xxxxxxx, xxx xxxxxxxx xxxx xxxxxxxxxx xx xxx xxxxx (x.x., xxxxxxxxxx xxxxxx xx xxx <literal moreinfo="none">xxxxxx_xxxx</literal> xxxxx xx xxx <literal moreinfo="none">xxxxx</literal> xxxxxxxx) xxx xxx xxxxxxxxxxxxx xxxxxxx. Txxxxxxxx, xx x xxxxx xx xxxxx xxxxxxx xxxx xxx xxxx xxxx, xxxxx xxxx xxxxxxxxxx xxxx xxxxx xx xxx xxx xxxxx, x xxxxxxxxx xxxxxxxx xxxx.</para> - <programlisting format="linespecific">DROP TABLE IF EXISTS xxxxxxx, xxxxxxxx_xxx; -Qxxxx OK, d xxxx xxxxxxxx (d.dd xxx) - -SHOW WARNINGS; - -+-------+------+------------------------------+ -| Lxxxx | Cxxx | Mxxxxxx | -+-------+------+------------------------------+ -| Nxxx | dddd | Uxxxxxx xxxxx 'xxxxxxxx_xxx' | -+-------+------+------------------------------+</programlisting> - <para><indexterm id="mysqlian-CHP-5-ITERM-2500" significance="normal"><primary>SHOW WARNINGS xxxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-5-ITERM-2501" significance="normal"><primary>IF EXISTS xxxx</primary><secondary>DROP TABLE xxxxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-5-ITERM-2502" significance="normal"><primary>DROP TABLE xxxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-5-ITERM-2503" significance="normal"><primary>xxxxxxxx, xxxxxxxxxx</primary></indexterm> -Ix xxxx xxxxxxx, xx xxxxx xx xxxxxx xxxx xxx <emphasis>xxxxxxx</emphasis> xxx xxx <emphasis>xxxxxxx_xxx</emphasis> xxxxxx, xxx xxxxxxxxxx <emphasis>xxxxxxx_xxx</emphasis>. Bxxxxxx xxx <literal moreinfo="none">IF EXISTS</literal> xxxx xxx xxxxxxxx, xxx xxxxxxxxx xxxx’x xxxxxx xx xxxxx xxxxxxx. Sxxxxxxx xxxx xxxxxxx d.d xx MxSQL, x xxxx xx xxxxxxx xxxx xxx xx xxxxxxxxx xxxxx xxx <literal moreinfo="none">SHOW WARNINGS</literal> xxxxxxxxx, xx xxxxx xx xxxx xxxxxxx. Nxxxxx xxxx xxx xxxxxx xx xxxxxx xxxxxxx xx xxx xxxxxxxx, xxxxxxxx xxx <emphasis>xxxxxxx</emphasis> xxxxx xxx xxxxxxx. -</para> - </refsect1> - </refentry> - <refentry id="ch05-50017"> - <refmeta> - <refentrytitle>DROP VIEW</refentrytitle> - </refmeta> - <refnamediv> - <refname>DROP VIEW</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">DROP VIEW [IF EXISTS] <replaceable>xxxx</replaceable>[, ...] [RESTRICT|CASCADE]</synopsis> - </refsynopsisdiv> - <refsect1 id="ch05-43-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-5-ITERM-2511" significance="normal"><primary>CASCADE xxxx</primary><secondary>DROP VIEW xxxxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-5-ITERM-2512" significance="normal"><primary>RESTRICT xxxx</primary><secondary>DROP VIEW xxxxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-5-ITERM-2513" significance="normal"><primary>IF EXISTS xxxx</primary><secondary>DROP VIEW xxxxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-5-ITERM-2514" significance="normal"><primary>DROP VIEW xxxxxxxxx</primary></indexterm> -Txxx xxxxxxxxx xxxxxxx x xxxx. Mxxxxxxx xxxxx xxx xx xxxxx xx x xxxxx-xxxxxxxxx xxxx. Txx <literal moreinfo="none">IF EXISTS</literal> xxxx xxxxxxxx xxxxx xxxxxxxx xx xxx xx xxx xxxxxxxxx xxxxx xxxxx’x xxxxx. Ixxxxxx x xxxx xxxx xx xxxxxxxxx, xxxxx xxx xx xxxxxxxxx xxxxxxxxxx xx xxxxxxxxx xxx <literal moreinfo="none">SHOW WARNINGS</literal> xxxxxxxxx. Axx xxxxx xxxxx xxxxx xxxx xxx xxxxxxxx xxxx xx xxxxx xxxx xx xxxxxxx.</para> - <para>Txx <literal moreinfo="none">RESTRICT</literal> xx <literal moreinfo="none">CASCADE</literal> xxxxxxx xxx xxxxxxxx xxx x xxxxxx xxxxxxx xx MxSQL. Txxx xxxxxxxxx xx xxxxxxxxx xx xx xxxxxxx d.d.d xx MxSQL xxx xxxxxxxx <literal moreinfo="none">DROP</literal> xxxxxxxxx xxx xxx xxxx xxxxx xxxxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch05-50018"> - <refmeta> - <refentrytitle>RENAME DATABASE</refentrytitle> - </refmeta> - <refnamediv> - <refname>RENAME DATABASE</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">RENAME {DATABASE|SCHEMA} <replaceable>xxxxxxxx</replaceable> TO <replaceable>xxxxxxxx</replaceable>[,...]</synopsis> - </refsynopsisdiv> - <refsect1 id="ch05-44-fm2xml"> - <title/> - <para> -Uxx xxxx xxxxxxxxx xx xxxxxx x xxxxx xxxxxxxx xx x xxx xxxx, xxxxx xxxxx xxx <literal moreinfo="none">TO</literal> xxxxxxx. Wxxxx x xxxxxxxx xx xxxxx xxxxxxx, xx xxxxx xxxxxx xxx xxxxxxxx xxxx xxx xxxxxxxx xxxxxxxx. Txxxxx xxxx xxx xxxxxxxxx xxxxxx xx xxxxxx xxxx xxx xxxx xx x xxxxxxxxxxx xx xxxxxxxx xxxxxx xx xxxxxxx. Txxx xxxxxxxxx xxx xxxxx xx xxxxxxx d.d.d xx MxSQL. Ax xx xxxxxxx d.d.d xx MxSQL, xxx xxxxxxx <literal moreinfo="none">DATABASE</literal> xx xxxxxxxxxx xxxx <literal moreinfo="none">SCHEMA</literal>.</para> - <programlisting format="linespecific">RENAME DATABASE xxxxxxxxx TO xxxxx_xxxxxxxxx;</programlisting> - <para><indexterm id="mysqlian-CHP-5-ITERM-2788a" significance="normal"><primary>RENAME TABLE xxxxxxxxx</primary></indexterm> -Ix xxxx xxxxxxx, xxx xxxx xx xxx xxxxxxxx xxxxxx <emphasis>xxxxxxxxx</emphasis> xxx xxxxxxx xx <emphasis>xxxxx_xxxxxxxxx</emphasis> xx xxxxxxxx xxxx x xxxxxxxx xx xxx xxxxxxxxxx xx xxxxx xx xxxxxxx. Axx xx xxx xxxxxx xxx xxxx xxx xxx xxxx xxx xxxxxxxx xx xxxxx xx xxx xxxxxxxxx xxxx xxx xxx xxxxxxxx xxxx.</para> - </refsect1> - </refentry> - <refentry id="ch05-50019"> - <refmeta> - <refentrytitle>RENAME TABLE</refentrytitle> - </refmeta> - <refnamediv> - <refname>RENAME TABLE</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">RENAME TABLE <replaceable>xxxxx</replaceable> TO <replaceable>xxxxx</replaceable>[,...]</synopsis> - </refsynopsisdiv> - <refsect1 id="ch05-45-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-5-ITERM-2784" significance="normal"><primary>RENAME TABLE xxxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-5-ITERM-2785" significance="normal"><primary>xxxxxx</primary><secondary>xxxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-5-ITERM-2786" significance="normal"><primary>TO xxxxxxx</primary><secondary>RENAME TABLE xxxxxxxxx</secondary></indexterm> -Uxx xxxx xxxxxxxxx xx xxxxxx x xxxxx xxxxx xx x xxx xxxx, xxxxx xxxxx xxx <literal moreinfo="none">TO</literal> xxxxxxx. Mxxxxxxx xxxxxx xxx xx xxxxxxxxx xx x xxxxx-xxxxxxxxx xxxx, xxxxxxxxx xxx xxxxxx <literal moreinfo="none"><replaceable>xxx_xxxx</replaceable> TO <replaceable>xxx_xxxx</replaceable></literal>. Mxxxxxxx xxxxxxx xxx xxxxxxxxx xxxx xx xxxxx, xxx xx xxx xxxxxx xxx xxxxxxxxxxx, xxx xx xxx xxxxx xxxx xxxxxxx xxx xxxxxxxx xxxx xxxxx xx xxxx. Wxxxx xxxxxx xxx xxxxx xxxxxxx, xx xxxxx xxxxxx xxx xxxxxxxx xxxx xxx xxxxxx xxxxxxxx. Txxxxx xxxx xxx xxxxxxxxx xxxxxx xx xxxxxx xxxx xxx xxxx xx x xxxxxxxxxxx xx xxxxxxxx xxxxxx xx xxxxxxx.</para> - <para> -Txxxxx xxx xx xxxxxxx xxx xxxxx xx xxxxxxxxx xx xxx xxxx xxxxxxxxxx. Ix x xxxxxxx xx xxxxxxxxxx xxxx x xxxxx xxxx xx xxxxxxx xxx xxxxx xx x xxx xxxxxxxx, xxx xxxxxxx xxxx xxxx xxxx xxxx. Yxx xxx’x xx xxxxxx xx xxxx xxxxxxxxxxx xxxx xxxxxxxx xxx xxxxx.</para> - <para>Yxx xxx xxx xxxx xxxxxxxxx xx xxxxxx x xxxx, xxx xxx xxxxxx xxx xx xx xxxx xxx xxxx xx x xxxxxxxxx xxxxxxxx. -<indexterm id="mysqlian-CHP-5-ITERM-2787" significance="normal"><primary>xxxxxxxxx</primary><secondary>xxxxxx xxxxxx xx</secondary></indexterm> -</para> - <para>Txxx xxxxxxxxx xxxxxxxx <literal moreinfo="none">ALTER</literal> xxx <literal moreinfo="none">DROP</literal> xxxxxxxxxx xxx xxx xxxxx xxxxx xxxxxxx. <literal moreinfo="none">CREATE</literal> xxx <literal moreinfo="none">INSERT</literal> xxx xxxxxx xxx xxx xxx xxxxx xxx xxxxxxxx xx xxx xxxxx xx xxxxx xxxxx.</para> - <para>Ax xx xxxxxxx, xxxxxxx xxxx xxxxx xxx xxxx xx x xxxxxxxxxx xxxxx xxxxxx xxx xxxxxx xx xxx xxx xxx xxxx xxxx xxx xxx xxxxxxxx xx xxx xxxxx xxx xx xx xxxxxxxxx. Sxxxxxx xxxxxxx xxxx xxx xxxx xx xxxxx xxx xxxxx xxxx xx xxxxxxx xx xxxx. Hxxx’x xxx xxx xxx xxxxx xx xxxx:</para> - <programlisting format="linespecific">CREATE TABLE xxxxxx_xxx LIKE xxxxxx_xxx; - -RENAME TABLE xxxxxx TO xxxxxx_xxx, -xxxxxx_xxx TO xxxxxx;</programlisting> - <para><indexterm id="mysqlian-CHP-5-ITERM-2788" significance="normal"><primary>RENAME TABLE xxxxxxxxx</primary></indexterm> -Ix xxxx xxxxxxx, x xxx xxxxx xxxxxx <emphasis>xxxxxx_xxx</emphasis> xx xxxxxxx xxxxx xx xxx xxxxx xxxxxxxxx xx xxx xxx xxxxx xxxxxx <emphasis>xxxxxx</emphasis>, xxx xxxxxxx xxx xxxx. Ix xxx xxxxxx SQL xxxxxxxxx, xxx xxx xxxxx xx xxxxxxx xx <emphasis>xxxxxx_xxx</emphasis> xxx xxx xxxxx xxxxx, <emphasis>xxxxxx_xxx</emphasis>, xx xxxxxxx xx <emphasis>xxxxxx</emphasis>. Ix xxxxxx xxxx x xxxxxxx, xxx xxxx xx xxx xxxxxx xxxx xxxxx xx xxxxxxxxx xxxxx xxxx xxx xxxx (x.x., <emphasis>xxxxxx_ddddxxxdd</emphasis>) xx xxxx xxxx xxx’x xxxx xxxxx xx xxxxxxxxx. Ax xxxxxxxxx xxxxxx, xxx xxx xxxx xxxxxx xxx xxxxxxxx xx x xxxxx xx xxx xxxxxxx: -</para> - <programlisting format="linespecific">CREATE TABLE xxxxxx_xxx LIKE xxxxxx_xxx; - -RENAME TABLE xxxxxx TO xxxxxx.xxxxxx_ddddxxxdd, -xxxxxx_xxx TO xxxxxx;</programlisting> - <para>Ix xxxx xxxxxxx, xxx xxx xxxxx xx xxxxxxx xxx xxxxx xxxx x xxxxxxxx xxxxxx <emphasis>xxxxxx</emphasis>.</para> - </refsect1> - </refentry> - <refentry id="ch05-50020"> - <refmeta> - <refentrytitle>SHOW CHARACTER SET</refentrytitle> - </refmeta> - <refnamediv> - <refname>SHOW CHARACTER SET</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">SHOW CHARACTER SET [LIKE '<replaceable>xxxxxxx</replaceable>'| WHERE <replaceable>xxxxxxxxxx</replaceable>]</synopsis> - </refsynopsisdiv> - <refsect1 id="ch05-46-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-5-ITERM-2976" significance="normal"><primary>xxxxxxxxx xxxx</primary></indexterm><indexterm id="mysqlian-CHP-5-ITERM-2977" significance="normal"><primary>LIKE xxxxxx</primary><secondary>SHOW CHARACTER SET xxxxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-5-ITERM-2978" significance="normal"><primary>SHOW CHARACTER SET xxxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-5-ITERM-2979" significance="normal"><primary>xxxxxxxxx xxxx, xxxxxxxxxx</primary></indexterm> -Txxx xxxxxxxxx xxxx xxxx xxx xx xxx xxxxxxxxx xxxx xxxxxxxxx xx xxx xxxxxx. Tx xx xxxx xxxxxxxxx, xxx x xxxxxxx xxxx xxx <literal moreinfo="none">LIKE</literal> xxxxxx xxx xxx xxxxxxxx xxxxxxxxxx (x.x., <literal moreinfo="none">%</literal> xxx <literal moreinfo="none">_</literal>). Ox xxx xxx xxx xxx <literal moreinfo="none">WHERE</literal> xxxxxx xx xxxxxx xxx xxxxxxx xxx. Fxx xxxxxxxx, xx xxxx xxx xx xxx xxxxxxxxx xxxx xxxxxxxxx xxxx xxx xxxx <emphasis>xxxxx</emphasis>, xxxxx xxx xxxxxxxxx: -</para> - <programlisting format="linespecific">SHOW CHARACTER SET LIKE 'xxxxx%'\G -*************************** d. xxx *************************** - Cxxxxxx: xxxxxd - Dxxxxxxxxxx: ISO dddd-d Wxxx Exxxxxxx -Dxxxxxx xxxxxxxxx: xxxxxd_xxxxxxx_xx - Mxxxxx: d -*************************** d. xxx *************************** - Cxxxxxx: xxxxxd - Dxxxxxxxxxx: ISO dddd-d Cxxxxxx Exxxxxxx -Dxxxxxx xxxxxxxxx: xxxxxd_xxxxxxx_xx - Mxxxxx: d -*************************** d. xxx *************************** - Cxxxxxx: xxxxxd - Dxxxxxxxxxx: ISO dddd-d Txxxxxx -Dxxxxxx xxxxxxxxx: xxxxxd_xxxxxxx_xx - Mxxxxx: d -*************************** d. xxx *************************** - Cxxxxxx: xxxxxd - Dxxxxxxxxxx: ISO dddd-dd Bxxxxx -Dxxxxxx xxxxxxxxx: xxxxxd_xxxxxxx_xx - Mxxxxx: d</programlisting> - <para><indexterm id="mysqlian-CHP-5-ITERM-2980" significance="normal"><primary>SHOW VARIABLES xxxxxxxxx</primary></indexterm> -Tx xxx xxx xxxxxxx xxxxxxxxx xxx, xxx xxx <literal moreinfo="none">SHOW VARIABLES</literal> xxxxxxxxx. Tx xxxxxx xxx xxxxxx’x xxxxxxxxx xxx, xxx xxx <literal moreinfo="none">SET CHARACTER SET</literal> xxxxxxxxx. Txx <literal moreinfo="none">Dxxxxxx xxxxxxxxx</literal> xxxxx xx xxx xxxxxxx xxxxxxxxx xxx xxxxxxx xxxxxxxxx xxx xxx xxxxxxxxx xxx. Txx <literal moreinfo="none">Mxxxxx</literal> xxxxx xxxxx xxx xxxxxxx xxxxxx xx xxxxx xxx xxxxxxx xxx xxxxxxxxx xx xxx xxxxxxxxx xxx. Fxx Exxxxxxx xxxxxxxxx xxxx, xxxx xxxxx xx xxxxxxx d; xxx xxxxx xxxxxxxxx xxxx, xx’x xxxxxxx xxxx xxxx d.</para> - </refsect1> - </refentry> - <refentry id="ch05-50021"> - <refmeta> - <refentrytitle>SHOW COLLATION</refentrytitle> - </refmeta> - <refnamediv> - <refname>SHOW COLLATION</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">SHOW COLLATION [LIKE '<replaceable>xxxxxxx</replaceable>'| WHERE <replaceable>xxxxxxxxxx</replaceable>]</synopsis> - </refsynopsisdiv> - <refsect1 id="ch05-47-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-5-ITERM-2981" significance="normal"><primary>LIKE xxxxxx</primary><secondary>SHOW COLLATION xxxxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-5-ITERM-2982" significance="normal"><primary>SHOW COLLATION xxxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-5-ITERM-2983" significance="normal"><primary>xxxxxxxxx, xxxxxxxxxx</primary></indexterm> -Uxx xxxx xxxxxxxxx xx xxxx xxx xx xxx xxxxxxxxx xxxxxxxxx xxxx. Yxx xxx xxx xxx <literal moreinfo="none">LIKE</literal> xxxxxx xxx xxx xxxxxxxx xxxxxxxxxx (x.x., <literal moreinfo="none">%</literal> xxx <literal moreinfo="none">_</literal>) xx xxxx xxxxxxxxx xxxx xxxxx xx x xxxxxx xxxxxxx. Ox xxx xxx xxx xxx <literal moreinfo="none">WHERE</literal> xxxxxx xx xxxxxx xxx xxxxxxx xxx. Txxx xxxxxxxxx xx xxxxxxxxx xx xx xxxxxxx d.d xx MxSQL. Hxxx xx xx xxxxxxx:</para> - <programlisting format="linespecific">SHOW COLLATION LIKE '%xxxxx%'; - -+------------------+---------+----+---------+----------+---------+ -| Cxxxxxxxx | Cxxxxxx | Ix | Dxxxxxx | Cxxxxxxx | Sxxxxxx | -+------------------+---------+----+---------+----------+---------+ -| xxxxx_xxxxxxx_xx | xxxxx | dd | Yxx | Yxx | d | -| xxxxx_xxx | xxxxx | dd | | Yxx | d | -+------------------+---------+----+---------+----------+---------+</programlisting> - <para><indexterm id="mysqlian-CHP-5-ITERM-2984" significance="normal"><primary>xxxxxxxxx xxxx</primary></indexterm> -Ix xxxx xxxxxxx, xxxxxxxxx xxxx xxxx xxxxxxx xxx xxxxxxx <emphasis>xxxxx</emphasis> xx xxxxx xxxx xxx xxxxxx. Txxxx xxx Gxxxx xxxxxxxxx xxxx. Uxxxx xxx <literal moreinfo="none">Cxxxxxx</literal> xxxxxx xx xxxxx xxx xxxxxxxxx xxx xxx xxxxx xxx xxxxxxxxx xxxxxxx. Bxxx xxx xxx xxx <literal moreinfo="none">xxxxx</literal> xxxxxxxxx xxx. Uxxxx xxx <literal moreinfo="none">SHOW CHARACTER SET</literal> xxxxx xx xxx xxx xxxxxxxxxxx xx xxxx xxxxxxxxx xxx. Lxxxxxx xx xxx <literal moreinfo="none">Dxxxxxx</literal> xxxxx (xxx xxx <literal moreinfo="none">Dxxxxxx xxxxxxxxx</literal> xxxxx), xx xxx xxx xxxx <literal moreinfo="none">xxxxx_xxxxxxx_xx</literal> xx xxx xxxxxxx xxxxxxxxx xxx xxx xxxxxxxxx xxx <literal moreinfo="none">xxxxx</literal>. Txxx xx xxxxxxxxx xxxx xxx <replaceable>Yxx</replaceable> xxxxx xxxxx. Txx xxxxx <literal moreinfo="none">Cxxxxxxx</literal> xx xxx xxxxxxx xxxxx xxxxxxxx xxxx xxx xxxxxxxxx xxx xxx xxxxxxxx xx xxx MxSQL xxxxxx. Txx xxxxx <literal moreinfo="none">Sxxxxxx</literal> xxxxxxxxx xxx xxxxx xxxxxx xxxx xxxxxxxxx xxxx. -</para> - <programlisting format="linespecific">SHOW CHARACTER SET LIKE 'xxxxx'; - -+---------+------------------+-------------------+--------+ -| Cxxxxxx | Dxxxxxxxxxx | Dxxxxxx xxxxxxxxx | Mxxxxx | -+---------+------------------+-------------------+--------+ -| xxxxx | ISO dddd-d Gxxxx | xxxxx_xxxxxxx_xx | d | -+---------+------------------+-------------------+--------+</programlisting> - </refsect1> - </refentry> - <refentry id="ch05-50022"> - <refmeta> - <refentrytitle>SHOW COLUMNS</refentrytitle> - </refmeta> - <refnamediv> - <refname>SHOW COLUMNS</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">SHOW [FULL] COLUMNS FROM <replaceable>xxxxx</replaceable> [FROM <replaceable>xxxxxxxx</replaceable>] [LIKE '<replaceable>xxxxxxx</replaceable>'|WHERE <replaceable>xxxxxxxxxx</replaceable>]</synopsis> - </refsynopsisdiv> - <refsect1 id="ch05-48-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-5-ITERM-2968" significance="normal"><primary>xxxxxxxxx xxxxx (“)</primary><secondary>SHOW COLUMNS xxxxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-5-ITERM-2969" significance="normal"><primary>LIKE xxxxxx</primary><secondary>SHOW COLUMNS xxxxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-5-ITERM-2970" significance="normal"><primary>FROM xxxxxx</primary><secondary>SHOW COLUMNS xxxxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-5-ITERM-2971" significance="normal"><primary>SHOW COLUMNS xxxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-5-ITERM-2972" significance="normal"><primary>xxxxxxx, xxxxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-5-ITERM-2973" significance="normal"><primary>xxxxxxx</primary><secondary>xxxxxxxxxx</secondary></indexterm> -Uxx xxxx xxxxxxxxx xx xxxxxxx xxx xxxxxxx xxx x xxxxx xxxxx. Ix xxx xxxxx xx xxx xx xxx xxxxxxx xxxxxxx xxxxxxxx, xxx <literal moreinfo="none">FROM</literal> <replaceable>xxxxxxxx</replaceable> xxxxxx xxx xx xxxxx xx xxxxxxx xxxxxxx xxxxxxxx. Yxx xxx xxx xxx <literal moreinfo="none">LIKE</literal> xxxxxx xx xxxx xxxx xxxxxxx xxxx xxxxx x xxxxxx xxxxxxx xxxxx xx xxxxxx. Ox xxx xxx xxx xxx <literal moreinfo="none">WHERE</literal> xxxxxx xx xxxxxx xxx xxxxxxx xxx. Txx <literal moreinfo="none">FULL</literal> xxxx xxxx xxxxxx xxxx xx xxx xxxxxxxxx xxx xxxx xxx xxxxxxxxx xxx xxx xxxx xxxxxxxxxx xx xxx xxxxxxx xxxxxxx xxx xxx xxxxxxx xxxxxxxx. -</para> - <programlisting format="linespecific">SHOW COLUMNS FROM xxxxxxx FROM xxxxxxxxxxxx LIKE 'xxxxxx%'; - -+-------------+-------------+------+-----+---------+-------+ -| Fxxxx | Txxx | Nxxx | Kxx | Dxxxxxx | Exxxx | -+-------------+-------------+------+-----+---------+-------+ -| xxxxxx_xx | xxxxxxx(d) | | PRI | | | -| xxxxxx_xxxx | xxxxxxx(dd) | YES | | NULL | | -+-------------+-------------+------+-----+---------+-------+</programlisting> - <para><indexterm id="mysqlian-CHP-5-ITERM-2974" significance="normal"><primary>FULL xxxx</primary><secondary>SHOW COLUMNS xxxxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-5-ITERM-2975" significance="normal"><primary>SHOW COLUMNS xxxxxxxxx</primary></indexterm> -Ix xxxx xxxxxxx, xxxx xxxxxxxxxxx xxx xxxxxxx xxxxxxxxx xxxx xxx xxxx <emphasis>xxxxxx</emphasis> xxx xxxxxxxxx. Txx xxxxxxxxx xxxxxxx xx xxxx xxx xxx <emphasis>xxxxxx_xx</emphasis> xxxxxx xxx xxxx xxx <literal moreinfo="none">FULL</literal> xxxx xxxxx xxxx xxx xxxxxxxxx xxxxxxx xxxxxx (<literal moreinfo="none">\G</literal>):</para> - <programlisting format="linespecific">SHOW FULL COLUMNS FROM xxxxxxx FROM xxxxxxxxxxxx -LIKE 'xxxxxx_xx'\G -*************************** d. xxx *************************** - Fxxxx: xxxxxx_xx - Txxx: xxxxxxx(d) - Cxxxxxxxx: xxxxxd_xxxxxxx_xx - Nxxx: - Kxx: PRI - Dxxxxxx: - Exxxx: -Pxxxxxxxxx: xxxxxx,xxxxxx,xxxxxx,xxxxxxxxxx - Cxxxxxx:</programlisting> - <para>Nxxxxx xxxx xxx xxxx xx xxx xxxxxxxxx xxxx xxx xxx xxxxxx (x.x., <emphasis>xxxxxd_xxxxxxx_xx</emphasis>), xxx xxx xxxx’x xxxxxxxxxx (x.x., <literal moreinfo="none">SELECT</literal>, <literal moreinfo="none">INSERT</literal>, <literal moreinfo="none">UPDATE</literal>, xxx <literal moreinfo="none">REFERENCES</literal>) xxxx xxxxxx xx xxx xxxxxx xxx xxxxxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch05-50023"> - <refmeta> - <refentrytitle>SHOW CREATE DATABASE</refentrytitle> - </refmeta> - <refnamediv> - <refname>SHOW CREATE DATABASE</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">SHOW CREATE {DATABASE|SCHEMA} <replaceable>xxxxxxxx</replaceable></synopsis> - </refsynopsisdiv> - <refsect1 id="ch05-49-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-5-ITERM-2985" significance="normal"><primary>xxxxxxxxx</primary><secondary>xxxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-5-ITERM-2986" significance="normal"><primary>SHOW CREATE DATABASE xxxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-5-ITERM-2987" significance="normal"><primary>xxxxxxxxx xxxx</primary></indexterm> -Txxx xxxxxxxxx xxxxxxxx xx SQL xxxxxxxxx xxxx xxx xx xxxx xx xxxxxx x xxxxxxxx xxxx xxx xxx xxxxx. Txxx xxxxxxxxx xx xxxxxx xxxxxx xxx xxxxxxxxxxx xxx xxxxxxx xxxxxxxxx xxx. Ix’x xxxxxxxxx xx xx xxxxxxx d.d xx MxSQL. Ax xx xxxxxxx d.d.d xx MxSQL, xxx xxxxxxx <literal moreinfo="none">SCHEMA</literal> xxx xx xxxx xxxxxxx xx <literal moreinfo="none">DATABASE</literal>. -</para> - <programlisting format="linespecific">SHOW CREATE DATABASE xxxxx_xxxxxxxxx \G - -*************************** d. xxx *************************** - Dxxxxxxx: xxxxx_xxxxxxxxx -Cxxxxx Dxxxxxxx: CREATE DATABASE `xxxxx_xxxxxxxxx` - /*!ddddd DEFAULT CHARACTER SET xxxxxd */</programlisting> - <para>Ix xxx xxx’x xxxx xxx xxxxxxxx xxxx xx xxx xxxxxxx xx xx xxxxxx xxxx xxxxxxxxx xx xxxxx xxxx, xxx xxx xxx xxx xxxxxx xxxxxxxx <literal moreinfo="none">SQL_QUOTE_SHOW_CREATE</literal> xx d, xxxxxxx xx xxx xxxxxxx xxxxx xx d.</para> - </refsect1> - </refentry> - <refentry id="ch05-50024"> - <refmeta> - <refentrytitle>SHOW CREATE TABLE</refentrytitle> - </refmeta> - <refnamediv> - <refname>SHOW CREATE TABLE</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">SHOW CREATE TABLE <replaceable>xxxxx</replaceable></synopsis> - </refsynopsisdiv> - <refsect1 id="ch05-50-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-5-ITERM-2988" significance="normal"><primary>SHOW CREATE TABLE xxxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-5-ITERM-2989" significance="normal"><primary>xxxxxx</primary><secondary>xxxxxxxx</secondary></indexterm> -Txxx xxxxxxxxx xxxxxxxx xx SQL xxxxxxxxx xxxx xxx xx xxxx xx xxxxxx x xxxxx xxxx xxx xxx xxxxx. Txx xxxxxxx xxx xx xxxxxx xxx xxxx xxxx xxxxxxx xxxxxxxx. Yxx xxx xxxx xxxx xxx xxxxxxx xxx xxxxxx xxx xxxx xx xxx xxxxx xx xxxxx xx xxx xxx <literal moreinfo="none">CREATE</literal> xxxxxxxxx xx xxx xxxx xxxxxxxx. Ix xxx xxxx x xxxxx xxxxxxx xxxx xx xxxxxxxx xxx, xxx xxxxx xx xxxxxx xx xxx <literal moreinfo="none">CREATE TABLE...LIKE...</literal> xxxxxxx.</para> - <programlisting format="linespecific">SHOW CREATE TABLE xxxxxxxxxxx \G - -*************************** d. xxx *************************** -Txxxx: xxxxxxxxxxx -Cxxxxx Txxxx: CREATE TABLE `xxxxxxxxxxx` ( - `xxxx_xx` xxxxxxx(d) NOT NULL xxxxxxx '', - `xxxx_xxxx` xxxxxxx(dd) NOT NULL xxxxxxx '', - PRIMARY KEY (`xxxx_xx`) - ) ENGINE=MxISAM DEFAULT CHARSET=xxxxxd</programlisting> - <para>Nxxxxx xxxx xxx xxxxxxx xxxxxxx xxx xxxxx xxxx xxx xxxxx xxxxxxx xxxxxxx.</para> - <para>Ax xxxx xxx <literal moreinfo="none">SHOW CREATE DATABASE</literal> xxxxxxxxx, xx xxx xxx’x xxxx xxx xxxxx xxxx xx xxx xxxxxxx xx xx xxxxxx xxxx xxxx-xxxxx xx xxxxx xxxx, xxx xxx xxx xxx xxxxxx xxxxxxxx <literal moreinfo="none">SQL_QUOTE_SHOW_CREATE</literal> xx d, xxxxxxx xx xxx xxxxxxx xxxxx xx d.</para> - </refsect1> - </refentry> - <refentry id="ch05-50025"> - <refmeta> - <refentrytitle>SHOW CREATE VIEW</refentrytitle> - </refmeta> - <refnamediv> - <refname>SHOW CREATE VIEW</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">SHOW CREATE VIEW <replaceable>xxxx</replaceable></synopsis> - </refsynopsisdiv> - <refsect1 id="ch05-51-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-5-ITERM-2981a" significance="normal"><primary>SHOW CREATE VIEW xxxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-5-ITERM-2982a" significance="normal"><primary>xxxxx, xxxxxxxx</primary></indexterm> -Uxx xxxx xxxxxxxxx xx xxxxxxx xx SQL xxxxxxxxx xxxx xxx xx xxxx xx xxxxxx x xxxx xxxx xxx xxx xxxxx. Txx xxxxxxx xxx xx xxxxxx xxx xxxx xxxx xxxxxxx xxxxxxxx. Yxx xxx xxxx xxxx xxx xxxxxxx xxx xxxxxx xxx xxxx xx xxx xxxx xx xxxx xxx xxxxxxxxx xxx xx xxxx xx xxxxxx x xxxxxxx xx xxxxxxxxx xxxx xx xxx xxxx xxxxxxxx. Txxx xxxxxxxxx xx xxxxxxxxx xx xx xxxxxxx d.d.d xx MxSQL.</para> - <programlisting format="linespecific">SHOW CREATE VIEW xxxxxxx_xxxxxxxxx \G - -*************************** d. xxx *************************** - Vxxx: xxxxxxx_xxxxxxxxx -Cxxxxx Vxxx: CREATE ALGORITHM=UNDEFINED -DEFINER=`xxxxxxx`@`xxxxxxxxx` SQL SECURITY INVOKER -VIEW `xxxxxxx_xxxxxxxxx` -AS SELECT `xxxxxxxx`.`xxxxxxx_xx` AS `ID`, -CONCAT(`xxxxxxxx`.`xxxx_xxxxx`, -xxxxxxx(xxxxxx(_xxxd' ',d) xxxxx xxxxxd), -`xxxxxxxx`.`xxxx_xxxx`) AS `Nxxx`, -`xxxxxxxx`.`xxxxx_xxxx` AS `Txxxxxxxx` -FROM `xxxxxxxx`</programlisting> - <para><indexterm id="mysqlian-CHP-5-ITERM-2983a" significance="normal"><primary>CREATE VIEW xxxxxxxxx</primary></indexterm> -Txxx xxxx xx xxx xxxx xxx xxxxxxx xx xxx xxxxxxx xxxxx xxx xxx <literal moreinfo="none">CREATE VIEW</literal> xxxxxxxxx xxxxxxx. Nxxxxx xxxx xxx xxxxxxxx xxxx (<emphasis>xxxxxxxxx</emphasis>) xxx xxxx xxxxx xx xxx xxx xx xxx xxxx xxxx (<emphasis>xxxxxxxx_xxxxxxxxx</emphasis>).</para> - </refsect1> - </refentry> - <refentry id="ch05-50026"> - <refmeta> - <refentrytitle>SHOW DATABASES</refentrytitle> - </refmeta> - <refnamediv> - <refname>SHOW DATABASES</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">SHOW {DATABASES|SCHEMAS} [LIKE '<replaceable>xxxxxxx</replaceable>'| WHERE <replaceable>xxxxxxxxxx</replaceable>]</synopsis> - </refsynopsisdiv> - <refsect1 id="ch05-52-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-5-ITERM-2990" significance="normal"><primary>LIKE xxxxxx</primary><secondary>SHOW DATABASES xxxxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-5-ITERM-2991" significance="normal"><primary>xxxxxxxxx</primary><secondary>xxxxxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-5-ITERM-2992" significance="normal"><primary>SHOW DATABASES xxxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-5-ITERM-2993" significance="normal"><primary>xxxxxxxxx</primary><secondary>xxxxxxxxxx</secondary></indexterm> -Txxx xxxxxxxxx xxxxxxxx xxx xxxx xx xxxxxxxxx xx xxx xxxxxx. Txx xxxxxxx <literal moreinfo="none">DATABASE</literal> xx xxxxxxxxxx xxxx <literal moreinfo="none">SCHEMA</literal> xx xx xxxxxxx d.d.d xx MxSQL. Uxxxx xxx <literal moreinfo="none">LIKE</literal> xxxxxx, x xxxxxx xxxxxxx xxx xx xxxxx. Ox xxx xxx xxx xxx <literal moreinfo="none">WHERE</literal> xxxxxx xx xxxxxx xxx xxxxxxx xxx.</para> - <para>Fxx xxxxxxx, xxxxxxx xxxx x xxxxxx xxx x xxxxxxxx xxxxxxxx xxx xxxx xxxxxxxx xx xxx xxxxxxxxxxxx xxx xxxx xxx xxxxxxx xxx xxx xxxxx xx xxx xxxxxxxxx xx <literal moreinfo="none">xxxx_<replaceable>xxxxxx</replaceable></literal>, xxxxx xxx <replaceable>xxxxxx</replaceable> xx xxx xxxxxxxx xxxxxxx xxxxxx. Yxx xxxxx xxxxx xxx xxxxxxxxx SQL xxxxxxxxx xx xxxxxx x xxxx xx xxxxxxxxx xxxxx xx xxxx xxxxxxx:</para> - <programlisting format="linespecific">SHOW DATABASES LIKE 'xxxx%' LIMIT d; - -+------------------+ -| Dxxxxxxx (xxxx%) | -+------------------+ -| xxxx_ddddd | -+------------------+</programlisting> - <para>Txx <literal moreinfo="none">SHOW DATABASES</literal> xxxxxxxxx xx xxxxxxxxx xx xxx xxx xxxxxxxxx. Oxxxxxxxx, xxx xxxx xxxx xxx xxxx xxx xxxxxxxxx xxx xxxxx xx xxx xxxxxxxxxx. Txx <literal moreinfo="none">--xxxx-xxxx-xxxxxxxx</literal> xxxxxx xxxxxx xxxx xxxxxxx xxxx xxxxxxxxxx.</para> - <para>Txx <literal moreinfo="none">xxxxxxxxx</literal> xxxxxxx xxx xx xxxx xx xxx xxxxxxx-xxxx xx xxxx xxx xxxx xxxxxxxxxxx:</para> - <programlisting format="linespecific">xxxxxxxxx --xxxx=<replaceable>xxxx</replaceable> --xxxxxxxx</programlisting> - <para>Txx xxxxxxx xxxx xxxx xxxxxxx xx xxxx xxxxxxx xx xxx xxxx’x xxxxxxxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch05-50027"> - <refmeta> - <refentrytitle>SHOW INDEXES</refentrytitle> - </refmeta> - <refnamediv> - <refname>SHOW INDEXES</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">SHOW {INDEX|INDEXES|KEYS} FROM <replaceable>xxxxx</replaceable> [FROM <replaceable>xxxxxxxx</replaceable>]</synopsis> - </refsynopsisdiv> - <refsect1 id="ch05-53-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-5-ITERM-2994" significance="normal"><primary>FROM xxxxxx</primary><secondary>SHOW INDEX xxxxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-5-ITERM-2995" significance="normal"><primary>SHOW INDEX xxxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-5-ITERM-2996" significance="normal"><primary>xxxxxxx</primary><secondary>xxxxxxxxxx</secondary></indexterm> -Txxx SQL xxxxxxxxx xxxxxxxx xxxxxxxxxxx xxxxx xxx xxxxxxx xxx x xxxxx xxxxx. A xxxxx xxxx x xxxxxxxxx xxxxxxxx xxx xx xxxxxxxxx xx xxxxxx xxxxxxxxx xxx xxxxx xxxx xxxx xxx xxxxxxxx xxxx xxx x xxxxxx (x.x., <emphasis>xxxxxxxx.xxxxx</emphasis>) xx xxxxxx xxx <literal moreinfo="none">FROM</literal> xxxxxx. Txx <literal moreinfo="none">INDEXES</literal> xxxxxxx xxx xx xxxxxxxx xxxx <literal moreinfo="none">INDEX</literal> xx <literal moreinfo="none">KEYS</literal>—xxx xxxxx xxx xxxxxxxxxx.</para> - <programlisting format="linespecific">SHOW INDEXES FROM xxxxxxxx FROM xxxxx_xxxx \G - -*************************** d. xxx *************************** - Txxxx: xxxxxxxx - Nxx_xxxxxx: d - Kxx_xxxx: PRIMARY -Sxx_xx_xxxxx: d - Cxxxxx_xxxx: xxxxxxx_xx - Cxxxxxxxx: A - Cxxxxxxxxxx: ddd - Sxx_xxxx: NULL - Pxxxxx: NULL - Nxxx: - Ixxxx_xxxx: BTREE - Cxxxxxx: -*************************** d. xxx *************************** - Txxxx: xxxxxxxx - Nxx_xxxxxx: d - Kxx_xxxx: xxxxxxx_xxxx -Sxx_xx_xxxxx: d - Cxxxxx_xxxx: xxxx_xxxx - Cxxxxxxxx: A - Cxxxxxxxxxx: NULL - Sxx_xxxx: dd - Pxxxxx: NULL - Nxxx: YES - Ixxxx_xxxx: BTREE - Cxxxxxx: -*************************** d. xxx *************************** - Txxxx: xxxxxxxx - Nxx_xxxxxx: d - Kxx_xxxx: xxxxxxx_xxxx -Sxx_xx_xxxxx: d - Cxxxxx_xxxx: xxxx_xxxxx - Cxxxxxxxx: A - Cxxxxxxxxxx: NULL - Sxx_xxxx: dd - Pxxxxx: NULL - Nxxx: YES - Ixxxx_xxxx: BTREE - Cxxxxxx: </programlisting> - <para><indexterm id="mysqlian-CHP-5-ITERM-2997" significance="normal"><primary>HASH xxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-5-ITERM-2998" significance="normal"><primary>FULLTEXT xxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-5-ITERM-2999" significance="normal"><primary>BTREE xxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-5-ITERM-3000" significance="normal"><primary>SHOW INDEX xxxxxxxxx</primary></indexterm> -Txxx xxxxx xxx xxxx xxx xxxxx, xx xxxx xxx xx xxxxxx xxxx. Lxxxxxx xx xxxxx xxxxxxx, xx xxx xxx xxxx xxx xxxx xxxxx, xxx xxxxx xxxx xx xxxxx. Txxx xx xxxxxxxx xx x xxxxx xxxxxxxxxx xxxxxxx xxx xxxxx xx xxx-xxxxxx. A xxxxxx xxxxx xx xxxxxxxxx xx d, x xxx-xxxxxx xxxxx xx d. Txx xxxx xx xxx xxxxx xx xxx (x.x., <literal moreinfo="none">PRIMARY</literal> xx <literal moreinfo="none">xxxxxxx_xxxx</literal> xx xxx xxxxxxx) xx xxxxx xxxx. Fxx xxxxxxx xxxx xxx xxxx xxx xxxxxx, xxx xxx xxxx xxx xxx xxxxxx xxxx xxx xxxxx xxx xxxx. Fxx xxxxxxx xxxx xxx xxxx xxxx xxx xxxxxx, x xxx xxxx xx xxxxxx xxx xxxx xxxxxx, xxxx xxx xxxxxx xxx xxxx xxxxx xxxx xxx xxx xxxx xxx xxxx (x.x., <literal moreinfo="none">xxxx_xxxx</literal> xxx <literal moreinfo="none">xxxx_xxxxx</literal> xxx <literal moreinfo="none">xxxxxxx_xxxx</literal>).</para> - <para>Txx xxxxxx xxxxx xxx xxxxxxxx xx xxx xxxxxxx xx xxx xxxxx, xxxxx d xx xxx xxxxx xxxxxx. Txx xxxx xx xxx xxxxxx xx xxxxxxx xxxxxxx xx xxxx, xxxxxxxx xx xxx xxxxxxxxx (xxx xxx xxxxxx xx xxxxxx xx xxx xxxxx). A xxxxx xx <literal moreinfo="none">A</literal> xxxxx xxxxxxxxx xxx <literal moreinfo="none">D</literal> xxxxx xxxxxxxxxx. Ix xxx xxxxx xx xxx xxxxxx, xxx <literal moreinfo="none">Cxxxxxxxx</literal> xxxxx xxxxx xx NULL.</para> - <para>Txx <literal moreinfo="none">Cxxxxxxxxxx</literal> xxxxx xx xxxxx xx xxx xxxxxx xx xxxxxx xxxxxxx xxxxxxxxx xx xxx xxxxxx. Txx xxxxxx xxxxxxxx xxxx xxxxxxxxxxx xx xxxxxxxxx xxxxxxx xx xxx xx xxxxx xx x xxxx. Txx xxxxxx xxx xxxxxxxxxxx, xxx xxxx xxxxxx xx xxxx xx xxxx.</para> - <para>Txx <emphasis>Sxx_xxxx</emphasis> xxxxx xxxxxxxxx xxx xxxxxx xx xxxxxxxxxx xx xxx xxxxxx xxxx xxx xxxxxxx xxx xxxxxxxxx xxxxxxx xxxxxxx. Txxx xxxxx xx NULL xx xxx xxxx xxxxxx xx xxxxxxx.</para> - <para>Txx <literal moreinfo="none">Pxxxxx</literal> xxxxx xxxxxxxxx xxx xxx xxx xx xxxxxx. Ix xxx xxx xx xxx xxxxxx, xxx xxxxx xxx x xxxxx xx NULL. Sxx xxx xxxxxxx xxxxxxx “ALTER TABLE: Txxxx xxxxxxx” xxx x xxxxxxxxxxx xx xxxxxx xxxx.</para> - <para>Ix xxx xxxxxx xxx xxxxxxx NULL xxxxx, xxx <literal moreinfo="none">Nxxx</literal> xxxxx xxxxx <literal moreinfo="none">Yxx</literal>; xxxxxxxxx, xx’x xxxxx. <emphasis>Ixxxx_xxxx</emphasis> xx xxx xxxxxxxxx xx xxx xxxxx, xxxxx xxx xx <literal moreinfo="none">BTREE</literal>, <literal moreinfo="none">HASH</literal>, <literal moreinfo="none">FULLTEXT</literal>, <literal moreinfo="none">RTREE</literal> (xx xx xxxxxxx d.d.d xx MxSQL), xx <literal moreinfo="none">SPATIAL</literal>. Txx <emphasis>Cxxxxxxx</emphasis> xxxxx xxxxxxxx xxx xxxxxxxx xxxxxxxxxx xxxx xxx xxxxx.</para> - <para>Fxxx xxx xxxxxxx-xxxx, xxx <literal moreinfo="none">xxxxxxxxx</literal> xxxxxxx xxxx xxx <literal moreinfo="none">--xxxx</literal> xxxxxx xxx xx xxxx xx xxxx xxx xxxx xxxxxxxxxxx:</para> - <programlisting format="linespecific">xxxxxxxxx --xxxx=<replaceable>xxxx</replaceable> --xxxxxxxx --xxxx <replaceable>xxxxxxxx</replaceable> <replaceable>xxxxx</replaceable></programlisting> - </refsect1> - </refentry> - <refentry id="ch05-50028"> - <refmeta> - <refentrytitle>SHOW SCHEMAS</refentrytitle> - </refmeta> - <refnamediv> - <refname>SHOW SCHEMAS</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">SHOW {DATABASES|SCHEMAS} [LIKE '<replaceable>xxxxxxx</replaceable>']</synopsis> - </refsynopsisdiv> - <refsect1 id="ch05-54-fm2xml"> - <title/> - <para>Txxx xxxxxxxxx xx xxxxxxxxxx xxxx <literal moreinfo="none">SHOW DATABASES</literal>. Sxx xxx xxxxxxxxxxx xx xxxx xxxxxxxxx xx xxxx xxxxxxx xxx xxxx xxxxxxxxxxx xxx xxxxxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch05-50029"> - <refmeta> - <refentrytitle>SHOW TABLE STATUS</refentrytitle> - </refmeta> - <refnamediv> - <refname>SHOW TABLE STATUS</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">SHOW TABLE STATUS [FROM <replaceable>xxxxxxxx</replaceable>] [LIKE '<replaceable>xxxxxxx</replaceable>']</synopsis> - </refsynopsisdiv> - <refsect1 id="ch05-55-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-5-ITERM-3001" significance="normal"><primary>xxxxxx</primary><secondary>xxxxxxxxxx xxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-5-ITERM-3002" significance="normal"><primary>SHOW TABLE STATUS xxxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-5-ITERM-3003" significance="normal"><primary>LIKE xxxxxx</primary><secondary>SHOW TABLE STATUS xxxxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-5-ITERM-3004" significance="normal"><primary>FROM xxxxxx</primary><secondary>SHOW TABLE STATUS xxxxxxxxx</secondary></indexterm> -Txxx xxxxxxxxx xxxxxxxx xxxxxx xxxxxxxxxxx xx x xxx xx xxxxxx xxxx x xxxxxxxx. Tx xxxxxx xxx xxxxxx xx xxxxxx xxxx x xxxxxxxx xxxxx xxxx xxx xxxxxxx xxxxxxx xxx, xxx xxx <literal moreinfo="none">FROM</literal> xxxxxx. Txx xxxxxxx xxxxxxx xxxxxxxxxxx xx xxx xx xxx xxxxxx xx xxx xxxxxxxx xxxxxx xxx <literal moreinfo="none">LIKE</literal> xxxxxx xx xxxx xx xxxxx xxx xxxxxx xxxxxxxxx xx x xxxxxx xxxxxxx.</para> - <programlisting format="linespecific">SHOW TABLE STATUS FROM xxxxx_xxxxxxxxx -LIKE 'xxxxxxxxx' \G - -*************************** d. xxx *************************** - Nxxx: xxxxxxxxx - Exxxxx: IxxxDB - Vxxxxxx: dd - Rxx_xxxxxx: Cxxxxxx - Rxxx: ddd - Axx_xxx_xxxxxx: ddddd - Dxxx_xxxxxx: ddddddd -Mxx_xxxx_xxxxxx: ddddddddddddddd - Ixxxx_xxxxxx: dddd - Dxxx_xxxx: d - Axxx_xxxxxxxxx: dddd - Cxxxxx_xxxx: dddd-dd-dd dd:dd:dd - Uxxxxx_xxxx: dddd-dd-dd dd:dd:dd - Cxxxx_xxxx: dddd-dd-dd dd:dd:dd - Cxxxxxxxx: xxxxxd_xxxxxxx_xx - Cxxxxxxx: NULL - Cxxxxx_xxxxxxx: xxx_xxxx=dddd - Cxxxxxx: IxxxDB xxxx: dddd xB</programlisting> - <para><indexterm id="mysqlian-CHP-5-ITERM-3005" significance="normal"><primary>SHOW TABLE STATUS xxxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-5-ITERM-3006" significance="normal"><primary>xxxxxxxxx</primary><secondary>xxxxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-5-ITERM-3007" significance="normal"><primary>ALTER TABLE xxxxxxxxx</primary><secondary>xxxxxxxxx xxxxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-5-ITERM-3008" significance="normal"><primary>SHOW TABLE STATUS xxxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-5-ITERM-3009" significance="normal"><primary>xxxxxxx xxxx (%)</primary></indexterm><indexterm id="mysqlian-CHP-5-ITERM-3010" significance="normal"><primary>xxxxxxxxx</primary><secondary>xxxxxxx xxxx</secondary></indexterm> -Ix xxxx xxxxxxx, xxx xxxxxx xx xxxxxx xx xxxxxxx xx xxx, xxxxxxx x xxxxxxxx xxxxx xxxx xx xxxxx xx xxx <literal moreinfo="none">LIKE</literal> xxxxxx xxxxxxx xxx <literal moreinfo="none">%</literal> xxxxxxxx. Yxx xxx xxxxxx xxxx xx xxxxx xxxxxxxxx xx xxxxx xxxxxxx xxxxx xxx <literal moreinfo="none">ALTER TABLE</literal> xxxxxxxxx. Sxx xxx “Txxxx xxxxxxx” xxxxxxxxxx xxxxx xxx xxxxxxxxxxx xx xxxx xxxxxxxxx, xxxxxxx xxxxxxx xx xxxx xxxxxxx. -</para> - <para>Ix xxx xxxxxxx xx xxxx xxxxxxxxx, xxx xxxx xx xxx xxxxx xx xxxxx xxxxx, xxxxxxxx xx x xxxxxxxxxxx xx xxx xxxxx: Txx <literal moreinfo="none">Exxxxx</literal> xxxxx xxxxx xxx xxxx xx xxxxxxx xxxxxx xxxx. Txx <literal moreinfo="none">Vxxxxxx</literal> xxxxx xxxxx xxx xxxxxxx xxxxxx xxxx xxx xxxxx’x <literal moreinfo="none">.xxx</literal> xxxx. <literal moreinfo="none">Rxx_xxxxxx</literal> xxx xx <literal moreinfo="none">Cxxxxxx</literal>, <literal moreinfo="none">Cxxxxxxxxx</literal>, <literal moreinfo="none">Dxxxxxx</literal>, <literal moreinfo="none">Fxxxx</literal>, xx <literal moreinfo="none">Rxxxxxxxx</literal>, xxxxxx xx’x xx IxxxDB xxxxx. Ix xxxxx xxxx, xxx xxxxxxxxxxxxx xxx <literal moreinfo="none">Cxxxxxx</literal> xx <literal moreinfo="none">Rxxxxxxxx</literal>. Txx xxxxx <literal moreinfo="none">Rxxx</literal> xxxxx xxx xxxxxx xx xxxx xx xxxx xxxxxxxxx xx xxx xxxxx. Exxxxx xxx MxISAM xxxxxx, xxxx xxxxxx xxx’x xxxxxxx xxxxxxxx. Txx <literal moreinfo="none">Axx_xxx_xxxxxx</literal> xxxxx xxxxx xxx xxxxxxx xxxxxx xx xxx xxxx xx xxxxx. Txx <literal moreinfo="none">Dxxx_xxxxxx</literal> xxxxx xxxxx xxx xxxx xx xxx xxxx xxxx xx xxxxx. Txxx xx xxx xxxx xxxx xxxxx xx xxx xxxxxxxxxx xxxxx xxx xxx <literal moreinfo="none">.MYD</literal> xxxx. <literal moreinfo="none">Mxx_xxxx_xxxxxx</literal> xxxxx xxx xxxxxxx xxxx xxxxxxx xxx xxx xxxx xxxx xx xxx xxxxx. <literal moreinfo="none">Ixxxx_xxxxxx</literal> xx xxx xxxx xx xxx xxxxx xxxx, xxx <literal moreinfo="none">.MYI</literal> xxxx. <literal moreinfo="none">Dxxx_xxxx</literal> xx xxx xxxxx xxxx xxxx xxxx xxxxxxxxx xxx xxx xxxx xxxx xxxx xx xxx xx xxx xx xxx xxxxxx. Txxx xx xxxxxxxxx d. Txx xxxxx xx <literal moreinfo="none">Axxx_xxxxxxxxx</literal> xxxxx xx xxx xxxxx xx xxx xxxxxx xxxx xxxx xxx <literal moreinfo="none">AUTO_INCREMENT</literal> xxx xxx xxxx xxx xx xx xxxxxxx. <literal moreinfo="none">Cxxxxx_xxxx</literal> xx xxx xxxx xxx xxxx xxx xxxxx xxx xxxxxxx; <literal moreinfo="none">Uxxxxx_xxxx</literal> xxxxx xxx xxxx xxx xxxxx xxx xxxx xxxxxxx; xxx <literal moreinfo="none">Cxxxx_xxxx</literal> xx xxx xxxx xxxx xxx xxxx xxxx xxx xxxxx xxx xxxxxxx. Txxx xxx’x xxxxxx xxxxxxxx. <literal moreinfo="none">Cxxxxxxxx</literal> xxxxx xxx xxxxxxxxx xxxx xxx xxxxxxx xxx xxxxx’x xxxx. <literal moreinfo="none">Cxxxxxxx</literal> xxxxxxxx xxx xxxxxxxx xxxxx xx xxxxx xx xxx. NULL xx xxx. Txx <literal moreinfo="none">Cxxxxx_xxxxxxx</literal> xxxxx xxxxx xxx xxxxxxx xxx xxx <literal moreinfo="none">Cxxxxxx</literal> xxxxx xxxxx xxx xxxxxxxx xxxx xxxx xxxxx xxxx xxx xxxxx xxx xxxxxxx xx xxxxxxx. Fxx IxxxDB xxxxxx, xxx xxxx xxxxx xx xxxxx xxxxx <literal moreinfo="none">Cxxxxxx</literal>.</para> - <para>Fxxx xxx xxxxxxx-xxxx, xxx xxxxxxx <literal moreinfo="none">xxxxxxxxx</literal> xxxx xxx <literal moreinfo="none">--xxxx</literal> xxxxxx xxx xx xxxx xx xxxx xxx xxxxxxx xx x xxxxx:</para> - <programlisting format="linespecific">xxxxxxxxx --xxxx=<replaceable>xxxx</replaceable> --xxxxxxxx --xxxxxx <replaceable>xxxxxxxx</replaceable> <replaceable>xxxxx</replaceable></programlisting> - </refsect1> - </refentry> - <refentry id="ch05-50030"> - <refmeta> - <refentrytitle>SHOW TABLES</refentrytitle> - </refmeta> - <refnamediv> - <refname>SHOW TABLES</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">SHOW [FULL|OPEN] TABLES [FROM <replaceable>xxxxxxxx</replaceable>] [LIKE '<replaceable>xxxxxxx</replaceable>'| WHERE <replaceable>xxxxxxxxxx</replaceable>]</synopsis> - </refsynopsisdiv> - <refsect1 id="ch05-56-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-5-ITERM-3011" significance="normal"><primary>xxxxxx</primary><secondary>xxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-5-ITERM-3012" significance="normal"><primary>FROM xxxxxx</primary><secondary>SHOW TABLES xxxxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-5-ITERM-3013" significance="normal"><primary>OPEN xxxx (SHOW TABLES)</primary></indexterm><indexterm id="mysqlian-CHP-5-ITERM-3014" significance="normal"><primary>SHOW TABLES xxxxxxxxx</primary></indexterm> -Txxx xxxxxxxxx xxxxxxxx x xxxx xx xxxxxx xxx xxxxx (xx xx xxxxxxx d.d.d xx MxSQL). Tx xxxxxxxxxxx xxxxxxx xxxxxx xxx xxxxx, xxx xxx <literal moreinfo="none">FULL</literal> xxxxxxx. Ix xxx xxxxxxx, xx xxxxx xxxxxx xxxxxx <literal moreinfo="none">Txxxx_xxxx</literal> xxxx xx xxxxxxxxx. A xxxxx xx <literal moreinfo="none">BASE TABLE</literal> xxxxxxxxx x xxxxx, <literal moreinfo="none">VIEW</literal> xxxxxxxxx x xxxx. Txx xxxxxx xxxxx xxxx xxx xxxxxxx xxxxxxxxx xxxxxx xxx xxxx xx xxxx xxx xxxxxxx xxxxxxxx xx xxxxxxx. Tx xxxx xxxxxx xxxx xxxxxxx xxxxxxxx, xxx xxx <literal moreinfo="none">FROM</literal> xxxxxx xxxxx xxxx xxx xxxx xx xxx xxxxxxxx. Yxx xxx xxxxxx xxx xxxx xx xxxxxx xx xxxx xxxx x xxxx xxxxxxx x xxxxx xxxxxx xxxxxxx xxxx xxxxxx xxx <literal moreinfo="none">LIKE</literal> xx xxx <literal moreinfo="none">WHERE</literal> xxxxxx. Fxx x xxxx xx xxx xxxxxx xxx xxx xxxxxxxxx xxxx xxx xxxxxxxxx xxxxx xxxx xx xxxxxxx, xxx xxx <literal moreinfo="none">OPEN</literal> xxxx xxxxxxx. -</para> - <programlisting format="linespecific">SHOW TABLES FROM xxxxxxxxxxxx LIKE 'xxxx%';</programlisting> - <para>Txxx xxxxxxxxx xxxx xxxx xxx xx xxx xxxxxx xxx xxxxx xxxx x xxxx xxxx xxxxxx xxxx xxx xxxx “xxxx” xxx xxx xxxxxxxx <emphasis>xxxxxxxxxxxx</emphasis>. Bx xxxxxxx, xxxx xxxxxx xxx xxxxx xxx xxxx xxx xxxxxxxxxx xxxx xx xxxxxx.</para> - <para>Fxxx xxx xxxxxxx-xxxx, xxx xxxxxxx <literal moreinfo="none">xxxxxxxxx</literal> xxxx xxx <literal moreinfo="none">--xxxx</literal> xxxxxx xxx xx xxxx xx xxxx xxx xxxxxx xxxxxxxxx xx x xxxxxxxx:</para> - <programlisting format="linespecific">xxxxxxxxx --xxxx=<replaceable>xxxx</replaceable> --xxxxxxxx <replaceable>xxxxxxxx</replaceable></programlisting> - </refsect1> - </refentry> - <refentry id="ch05-50031"> - <refmeta> - <refentrytitle>SHOW VIEWS</refentrytitle> - </refmeta> - <refnamediv> - <refname>SHOW VIEWS</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific"/> - </refsynopsisdiv> - <refsect1 id="ch05-57-fm2xml"> - <title/> - <para>Txxxx xx xxx x <literal moreinfo="none">SHOW VIEWS</literal> xxxxxxxxx xx xxxx xxxx. Tx xxx x xxxx xx xxxxxxxx xxxxx xxx xxx xxxxxxx xxxxxxxx, xxx <literal moreinfo="none">SHOW FULL TABLES WHERE Txxxx_xxxx='VIEW';</literal></para> - </refsect1> - </refentry> - </sect1> - </chapter> - <chapter id="mysqlian-CHP-6" xml:base="ch06.xml"> - <title>Dxxx Mxxxxxxxxxxx Sxxxxxxxxx xxx Fxxxxxxxx - Txxx xxxxxxx xxxxxxxx SQL xxxxxxxxxx xx MxSQL xxxxxxx xx xxxx xxxxxxxxxxxx: xxxxxx, xxxxxxxx, xxx xxxxxxxx xxxx, xx xxxx xx xxxxxxxxxx xxxxxxxx xxxx. Sxxxxxxxxx xxxx xxxxxx xxx xxxxx xxxxxxxxx xxx xxxxxx xxx xxxxxxx xx xxx xxxxxxxx xxxxxxx. Ix xxxxxxx, xxxx xxxxxxx xxxxxx SQL xxxxxxxxxx xxxx xxxx xxxxxxxxxxxx xxx xxxx xxxxxx, xxx xxxx xxxxxxxxxx x xxxxxxxx. Txx xxx xxxxx xxxxxxx xxxxxx xxxxxxxx xxxxxxxx xxx xxx xxxxxxxxx xxxxxxxxx xx xxxxxxxxx xxxxxxx. - - NEED TITLE HERE - [PROD: Sxxxxx xxxxx xxx <xxxxd> xxxxxxx <xxxxx> xxxx.—DCPS] - Txx xxxxxxxxx SQL xxxxxxxxxx xxx xxxxxxx xx xxxx xxxxxxx. Ix xxx xxx’x xxx xx SQL xxxxxxxxx xxx xxxxx xxx’xx xxxxxxx, xxxxx xxx xxxx xx SQL xxxxxxxxxx xx xxx xxxxxxxxxxxx xx Pxxx II xx xxxxxxxxx xxx xxxxxxx xx xxxxx xx’x xxxxxxx. - - Dxxx Mxxxxxxxxxxx Sxxxxxxxxx - Txx xxxxxxxxx xx x xxxx xx SQL xxxxxxxxxx xxx xxxxxxx xxxx xx MxSQL xxx xxxx xxxxxxxxxxxx. - DELETE, DO, EXPLAIN, HANDLER, HELP, INSERT, JOIN, LIMIT, LOAD DATA INFILE, REPLACE, SELECT, SET, SHOW ERRORS, SHOW WARNINGS, TRUNCATE, UNION, UPDATE, USE. - - - Txxxxxxxxxx Sxxxxxxxxx - Txxxxxxxxxxx xxx x xxx xx SQL xxxxxxxxxx xxxx xxx xxxxxx xxx xx xxxxxxx xx x xxxx; xxxxxx xxx xxxxxxx xx xxx xxxx. Ix xxx xxxxxx xxxxxxx xxxx xxx xxxx xxxxxxxxx, xx xxxxxxx xxx xxxxxxxxxxx; xx xxx xxxxxxxxx xxxxx, xxx xxxxxx xxxxx xxxx xxx xxxxxxxx xxxxxxxxxx. Txxxxxxxxxxx xxx xxxxxxxxx xx xxx IxxxDB, BDB, xxx NDB Cxxxxxx xxxxxxx xxxxxxx, xx xxxx xx xxxx xxx xxxxxxx xxxxxxx xxx MxSQL xxxx xxx xxxxx xxxxxxxxxxx. Sxxxxxxxxx xxxx xxxxxxxxxx xxxxxxxxxxxx xxx xxxxxxx xx xxxxxxxx xxxxxxx x xxxxxxx xxxxxx xxxx xxxxx’x xxxxxxx xxxxxxxxxxxx, xxxxxxx MxISAM. - Txx xxxxxxxxx xxxx xx SQL xxxxxxxxxx xxx xxxxxxxxxxxx xxxxxxx xx xxxxxxxxxxxx. Txxx xxxx xxxx xxxx xxxxxx xxxx xxx x xxxxxxxxxxxxx xxxxxxx xxxxxx (x.x., IxxxDB, BDB, xxx NDB Cxxxxxx). - BEGIN, COMMIT, RELEASE SAVEPOINT, ROLLBACK, ROLLBACK TO SAVEPOINT, SAVEPOINT, SET TRANSACTION, START TRANSACTION, XA. - - - Rxxxxxx Fxxxxxxxx - Txx xxxxxxxxx xxxxxxxxx xxx xxxx xxxxxxx xx xxxx xxxxxxx xxxxxxx xxxx xxxxxx xx xxxx xxxxxxxxxxxx. Txxx xxx xxxxxxxxx xx xxx xxx xx xxx xxxxxxx. - ANALYSE( ), BENCHMARK( ), DATABASE( ), FOUND_ROWS( ), LAST_INSERT_ID( ), ROW_COUNT( ), SCHEMA( ). - - - - Sxxxxxxxxx xxx Cxxxxxx xx Axxxxxxxxxxx Oxxxx - Txx xxxxxxxxx xx x xxxx xx MxSQL xxxxxxxxxx xxx xxxxxxx xxxxxxx xx xxxx xxxxxxxxxxxx, xx xxxxxxxxxxxx xxxxx. Tx xxxxxxxxxx xxx xxxx xxxx xxxxxxxx SQL xxxxxx xxx xxxxxxxxx SQL xxxxxxxxxx, xx xxxx xx xxx xxxxxxxxxxx xxxxxxx xx xxxxxxxx, xxxxxx xxx xxx xxxxxxxxxxxx xx Pxxx II. Mxxx xx xxx xxxxxxxx xx xxxx xxxxxxx xxxxxxx xxx xxxxxxxxxx xx xxx xxxxxxxxxxx xx x xxxxxxxxxx xxxxxxx: xxxxx xxxxx xxxxxxxxx xxxxxxxxxx xxx xxxxxxxx xxxx, xxxxx xxxxx xxxxxxxxxx xxx xxxxxx xxxxxxx xxxxxxxxxxx, xxx xxxxx xxxxxxxx IT xxxxxxxxxx’x xxxx xxxxxxxx. - - - BEGIN - - - BEGIN - - - - BEGIN [WORK] - - - - <para>Uxx xxxx xxxxxxxxx xx xxxxx x xxxxxxxxxxx. Txxxxxxxxxx xxxxxxxxxx xxx x xxxxxxxxx xxxxxxxxx xx xxx IxxxDB, NDB Cxxxxxx, xxx BDB xxxxxxx xxxxxxx xxx xxx xxxxxxx xx xxxx xxxx MxISAM xxxxxx. Txx <literal moreinfo="none">WORK</literal> xxxxxxx xx xxxxxxxx. Dxx’x xxxxxxx xxx <literal moreinfo="none">BEGIN</literal> xxxxxxxxx xxxx xxx <literal moreinfo="none">BEGIN...END</literal> xxxxxxxx xxxxxxxxx xxxx xx xxxxxx xxxxxxxxxx xxx xxxxxxxx (Sxx <xref linkend="mysqlian-CHP-9"/>). Tx xxxxxxxxx xxxxxxxxx xx xxxx xxxxx, xx’x xxxxxxxxxxx xxx xxx xxx xxxxx <literal moreinfo="none">START TRANSACTION</literal> xxxxxxx xx <literal moreinfo="none">BEGIN</literal>.</para> - <para>A xxxxxxxxxxx xx xxxxxxxxxxx xxxxxxxx xxxx xxx xxxxxxx xxxxx x <literal moreinfo="none">COMMIT</literal> xxxxxxxxx, xxxxxx xxxxxxx xxxxxxxxxxx, xx xxxxxxxxxx xxx xxxxxxxxxx. Yxx xxx xxxxxxx x xxxxxxxxxxx xx xxxxxxx x <literal moreinfo="none">ROLLBACK</literal> xxxxxxxxx xx xxx xxxxxxxxxxx xxx xxx xxx xxxx xxxxxxxxx. Sxx xxx xxxxxxxxxxx xx <literal moreinfo="none">COMMIT</literal> xxx <literal moreinfo="none">ROLLBACK</literal> xxx xxxx xxxxxxxxxxx xx xxxxxxxxxxxx. Txx <literal moreinfo="none">SAVEPOINT</literal> xxxxxxxxx xxx xxx <literal moreinfo="none">ROLLBACK TO SAVEPOINT</literal> xxxxxxxxxx xxx xxxx xx xxxxxx.</para> - <para>Hxxx xx xx xxxxxxx xx xxx <literal moreinfo="none">BEGIN</literal> xxxxxxxxx’x xxx xx xxxxxxx:</para> - <programlisting format="linespecific">BEGIN; - -INSERT DATA INFILE '/xxx/xxxxxxxx_xxxxxx.xxx' -INTO TABLE xxxxxx; - -COMMIT;</programlisting> - <para>Ix xxxx xxxxxxx, xx xxxxx xxx x xxxxxxx xxxxx xxx xxxxx xx xxxxxx xxx xxxxxxxx xxxx xxx <emphasis>xxxxxx</emphasis> xxxxx, xxx <literal moreinfo="none">ROLLBACK</literal> xxxxxxxxx xxxxx xx xxxxxx xxxxxxx xx xxx <literal moreinfo="none">COMMIT</literal> xxxxxxxxx xxxxx xxxx. <literal moreinfo="none">ROLLBACK</literal> xxxxx xxxxxx xxx xxxx xxxxxxxx xx xxx <literal moreinfo="none">INSERT DATA INFILE</literal> xxxxxxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch06-77001"> - <refmeta> - <refentrytitle>COMMIT</refentrytitle> - </refmeta> - <refnamediv> - <refname>COMMIT</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">COMMIT [WORK] [AND [NO] CHAIN] [[NO] RELEASE]</synopsis> - </refsynopsisdiv> - <refsect1 id="ch06-02-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-6-ITERM-2300" significance="normal"><primary>COMMIT xxxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-6-ITERM-2301" significance="normal"><primary>SET xxxxxxxxx</primary><secondary>xxxxxxx AUTOCOMMIT</secondary></indexterm><indexterm id="mysqlian-CHP-6-ITERM-2302" significance="normal"><primary>COMMIT xxxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-6-ITERM-2303" significance="normal"><primary>AUTOCOMMIT xxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-6-ITERM-2304" significance="normal"><primary>START TRANSACTION xxxxxxxxx</primary></indexterm> -Uxx xxxx xxxxxxxxx xx xxxxxx xxxxxxxxxxxx, xxxxx xxx SQL xxxxxxxxxx xxxx xxxx xxxxxxx xxxx xxx xxxx xxxx xxxx xxxxxxx xxxx MxSQL xxx xxx xxx xxxxx. Txxxxxxxxxx xxxxxxxxxx xxx xxxxxxxxx xxxxxxxxx xx xxx IxxxDB, NDB Cxxxxxx, xxx BDB xxxxxxx xxxxxxx xxx xxx xxxxxxx xx xxxx xxxx MxISAM xxxxxx.</para> - <para>Ix <literal moreinfo="none">AUTOCOMMIT</literal> xx xxxxxxx, xx xxxx xx xxxxxxxx xxx xxxx xxxxxxxxx xx xx xxxxxxxxxx. Yxx xxx xxxxxxx xx xxxxxxxxxx xxxx xxx xxxxxxxxx:</para> - <programlisting format="linespecific">SET AUTOCOMMIT = d;</programlisting> - <para>Nxxxxxxx, <literal moreinfo="none">AUTOCOMMIT</literal> xx xxxxxxxx xx x <literal moreinfo="none">START TRANSACTION</literal> xxxxxxxxx xxx xxxxxxxxxx xxxx xxx <literal moreinfo="none">COMMIT</literal> xxxxxxxxx.</para> - <para>Txx <literal moreinfo="none">WORK</literal> xxxxxxx xx xxxxxxxx xxx xxx xx xxxxxx xx xxx xxxxxxx. Ix’x xxxxxxxxx xxx xxxxxxxxxxxxx xxxx xxx xxxxxxxxxxx, <literal moreinfo="none">BEGIN WORK</literal>. Uxx xxx <literal moreinfo="none">AND CHAIN</literal> xxxxxx xx xxxxxxxx xxx xxxxxxxxxxx xxx xxxxx xxxxxxx, xxxx xxxxxx xx xxxxxxxxxxx xx xxx <literal moreinfo="none">START TRANSACTION</literal> xxxxx. Uxx xxx <literal moreinfo="none">AND RELEASE</literal> xxxxxx xx xxx xxx xxxxxxx xxxxxx xxxxxxx xxxxx xxxxxxxxxx xxx xxxxxxxxxxx.</para> - <para>Axx xxx xxxxxxx <literal moreinfo="none">NO</literal> xx xxxxxxxx xxxxxxxxxx xxxx x xxx xxxxxxxxxxx xx xxx xx xxxxx (xxxx xxxx xxxx <literal moreinfo="none">CHAIN</literal>) xx xxxx xxx xxxxxx xxxxxxx xx xxx xx xxx (xxxx xxxx xxxx <literal moreinfo="none">RELEASE</literal>). Txxx xx xxxxxxxxx xxxx xxxx xxx xxxxxx xxxxxxxx <literal moreinfo="none">xxxxxxxxxx_xxxx</literal> xx xxx xx xxxx xxx xxxxxx xxxxxxx xxxx x <literal moreinfo="none">COMMIT</literal> xxxxxxxxx xxxxxxxxx xxx xxxxx xx xxxxxxx xxxxxxxxxxx xx xxxxxxxx x xxxxxxx.</para> - <para>Hxxx xx x xxxxx xxxxxxx xx xxxx xxxxxxxxx:</para> - <programlisting format="linespecific">START TRANSACTION; - -LOCK TABLES xxxxxx WRITE; - -INSERT DATA INFILE '/xxx/xxxxxxxx_xxxxxx.xxx' -INTO TABLE xxxxxx; - -SELECT ...; - -COMMIT; - -UNLOCK TABLES;</programlisting> - <para><indexterm id="mysqlian-CHP-6-ITERM-2305" significance="normal"><primary>INSERT DATA INFILE xxxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-6-ITERM-2306" significance="normal"><primary>ROLLBACK xxxxxxxxx</primary><secondary>COMMIT xxxxxxxxx xxx</secondary></indexterm> -Ix xxxx xxxxxxx, xxxxx xxxxxxxxx x xxxxx xx xxxxxx xxxx xxx <emphasis>xxxxxx</emphasis> xxxxx, xx xxxxxxxxxxxxx xxxxxx x xxxxxx xx <literal moreinfo="none">SELECT</literal> xxxxxxxxxx xx xxxxx xxx xxxxxxxxx xx xxx xxxx. Txxx xxx xxxxxxx xxxx xx xxxx xxxxx. Ix xxxxx xx x xxxxxxx, xxx <literal moreinfo="none">ROLLBACK</literal> xxxxxxxxx xxxxx xx xxxxxx xxxxxx xxxx xxx <literal moreinfo="none">COMMIT</literal> xxxxxxxxx xxxxx xxxx. <literal moreinfo="none">ROLLBACK</literal> xxxxx xxxxxx xxx xxxx xxxxxxxx xx xxx <literal moreinfo="none">INSERT DATA INFILE</literal> xxxxxxxxx.</para> - <para>Txx xxxxxxxxx xxxxxxxxxx xxxx xxxxx x xxxxxxxxxxx xx xx xxxxxxxxx: <literal moreinfo="none">ALTER EVENT</literal>, <literal moreinfo="none">ALTER FUNCTION</literal>, <literal moreinfo="none">ALTER PROCEDURE</literal>, <literal moreinfo="none">ALTER TABLE</literal>, <literal moreinfo="none">BEGIN</literal>, <literal moreinfo="none">CREATE DATABASE</literal>, <literal moreinfo="none">CREATE EVENT</literal>, <literal moreinfo="none">CREATE FUNCTION</literal>, <literal moreinfo="none">CREATE INDEX</literal>, <literal moreinfo="none">CREATE PROCEDURE</literal>, <literal moreinfo="none">CREATE TABLE</literal>, <literal moreinfo="none">DROP DATABASE</literal>, <literal moreinfo="none">DROP EVENT</literal>, <literal moreinfo="none">DROP FUNCTION</literal>, <literal moreinfo="none">DROP INDEX</literal>, <literal moreinfo="none">DROP PROCEDURE</literal>, <literal moreinfo="none">DROP TABLE</literal>, <literal moreinfo="none">LOAD DATA INFILE</literal>, <literal moreinfo="none">LOCK TABLES</literal>, <literal moreinfo="none">RENAME TABLE</literal>, <literal moreinfo="none">SET AUTOCOMMIT=d</literal>, <literal moreinfo="none">START TRANSACTION</literal>, <literal moreinfo="none">TRUNCATE</literal>, xxx <literal moreinfo="none">UNLOCK TABLES</literal>.</para> - </refsect1> - </refentry> - <refentry id="ch06-77002"> - <refmeta> - <refentrytitle>DELETE</refentrytitle> - </refmeta> - <refnamediv> - <refname>DELETE</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">DELETE [LOW_PRIORITY] [QUICK] [IGNORE] FROM <replaceable>xxxxx</replaceable> - [WHERE <replaceable>xxxxxxxxx</replaceable>] - [ORDER BY <replaceable>xxxxxx</replaceable> [ASC|DESC][, . . . ]] - [LIMIT xxx_xxxxx] - -DELETE [LOW_PRIORITY] [QUICK] [IGNORE] <replaceable>xxxxx</replaceable>[, <replaceable>xxxxx</replaceable>] - FROM <replaceable>xxxxx</replaceable>[, . . . ] - [WHERE <replaceable>xxxxxxxxx</replaceable>] - -DELETE [LOW_PRIORITY] [QUICK] [IGNORE] FROM <replaceable>xxxxx</replaceable>[, <replaceable>xxxxx</replaceable>] - USING <replaceable>xxxxx</replaceable>[, . . . ] - [WHERE <replaceable>xxxxxxxxx</replaceable>]</synopsis> - </refsynopsisdiv> - <refsect1 id="ch06-03-fm2xml"> - <title/> - <para><indexterm class="startofrange" id="mysqlian-CHP-6-ITERM-2307" significance="normal"><primary>DELETE xxxxxxxxx</primary><secondary>xxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-6-ITERM-2308" significance="normal"><primary>xxxx</primary><secondary>xxxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-6-ITERM-2309" significance="normal"><primary>IGNORE xxxxxxx</primary><secondary>DELETE xxxxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-6-ITERM-2310" significance="normal"><primary>QUICK xxxxxxx</primary><secondary>DELETE xxxxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-6-ITERM-2311" significance="normal"><primary>LOW_PRIORITY xxxxxxx</primary><secondary>DELETE xxxxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-6-ITERM-2312" significance="normal"><primary>JOIN xxxxxx</primary><secondary>DELETE xxxxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-6-ITERM-2313" significance="normal"><primary>WHERE xxxxxx</primary><secondary>DELETE xxxxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-6-ITERM-2314" significance="normal"><primary>SHOW WARNINGS xxxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-6-ITERM-2315" significance="normal"><primary>xxxxxx</primary><secondary>xxxxxxxxxx xxxxxxxx</secondary></indexterm> -Uxx xxxx xxxxxxxxx xx xxxxxx xxxx xx xxxx xxxx x xxxxx xxxxx. Txxxx xxxxx xxxxxx xxxxxxxxxx xxx xxxxxxx. Txx xxxxx xxx xxxxx xxxx xx xxxxxxxxxx xx x xxxxxx xxxxx, xxxxxxx xxx xxxxx xxx xxx xxxxxx xxxxxxxx xxxxxx. Fxx xxx xxxxx, xxx <literal moreinfo="none">LOW_PRIORITY</literal> xxxxxxx xxxxxxxxx xxx xxxxxx xx xxxx xxxxx xxxxx xxx xx xxxxxxx xx xxx xxxxx xxxxx xxxxxx xxxxxxxx xxxx. Txxx xxxxxxx xxxxx xxxx xxxx xxxxxxx xxxxxxx xxxx xxxxx xxxxx-xxxxx xxxxxxx (x.x., MxISAM, MEMORY, MERGE). Txx <literal moreinfo="none">QUICK</literal> xxxxxxx xxx xx xxxx xxxx MxISAM xxxxxx xx xxxx xxxxxxxxx xxxxxx xx xxx xxxxxxx xxxxxx xx xxx xxxxx’x xxxx. Txx <literal moreinfo="none">IGNORE</literal> xxxxxxx xxxxxxxxx MxSQL xx xxxxxxxx xxxx xx xx xxxxxxxxxx xxxxxx. Yxx xxx xxxxxxxx xxxxx xxxxxxxx xxxxxxxxx xxxx xxx <literal moreinfo="none">SHOW WARNINGS</literal> xxxxxxxxx. -</para> - <para>Uxx xxx <literal moreinfo="none">WHERE</literal> xxxxxx xx xxxxxxx xxxxx xxxx xxx xx xx xxxxxxx xxxxx xx x xxxxx xxxxxxxxx. Yxx xxx xxx xxx <literal moreinfo="none">DELETE</literal> xxxxxxxxx xx xxxxxxxxxxx xxxx xxx <literal moreinfo="none">JOIN</literal> xxxxxx, xxxxx xx xxxxxxxxx xxxxx xx xxxx xxxxxxx.</para> - <para>Hxxx xx x xxxxxx xxxxxxx xx xxxx xxxxxxxxx:</para> - <programlisting format="linespecific">DELETE LOW_PRIORITY FROM xxxxxxx -WHERE xxxxxx_xx = 'dddd' -AND xxxxxx <> 'DONE';</programlisting> - <para>Ix xxxx xxxxxxx, xxx xxxxxx dddd xxx xxxxxx xxx xxxxxxx, xxx xxxxxxxxxx xxx xxxxxxx xxxx xx xxxxxx xxx xx xxx xxxxxxxxxx xxxx xxxxxxxx. Ix x <literal moreinfo="none">WHERE</literal> xxxxxx xx xxx xxxxx, xxx xx xxx xxxx xxx xxx xxxxx xxxxx xx xxxxxxx xxxxxxxxxxx.</para> - <para><indexterm id="mysqlian-CHP-6-ITERM-2316" significance="normal"><primary>TRUNCATE TABLE xxxxxxxxx</primary></indexterm> -Ix xxx xxxx xx xxxxxx xxx xx xxx xxxx xx x xxxxx, xxx xxx xxx xxxx xxxxxxxxx xxxxxxx xxx <literal moreinfo="none">WHERE</literal> xxxxxx, xxx xx’x xxxx xxxxxxx xxxxxxxxx xxx xxxxxxxxx xxx xxx xx x xxxx. Txx xxxx xxxxxx xxx xx xxxxxxxx xxxxxx xxxx xxx <literal moreinfo="none">TRUNCATE</literal> xxxxxxxxx. Hxxxxxx, xxx <literal moreinfo="none">TRUNCATE</literal> xxxxxxxxx xxxxx’x xxxxxx xxx xxxxxx xx xxxx xxxxxxx, xx xxx xxx xxx <literal moreinfo="none">DELETE</literal> xx xxxx’x xxxxxxxxx xx xxx. -</para> - <para><indexterm id="mysqlian-CHP-6-ITERM-2317" significance="normal"><primary>LIMIT xxxxxx</primary><secondary>DELETE xxxxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-6-ITERM-2318" significance="normal"><primary>ORDER BY xxxxxx</primary><secondary>DELETE xxxxxxxxx</secondary></indexterm> -Tx xxxxxx xxxx x xxxxxxx xxxxxx xx xxxx xx x xxxxx, xxx xxx <literal moreinfo="none">LIMIT</literal> xxxxxx xx xxxxxxx xxx xxxxxx xx xxxx xx xxxxxx. Tx xxxxxx x xxxxxxxx xxxxxx xx xxxx xxx x xxxxxxxxxx xxxxx xx xxxxxx xxxxxx, xxx xxx <literal moreinfo="none">ORDER BY</literal> xxxxxx xxxxx xxxx xxx <literal moreinfo="none">LIMIT</literal> xxxxxx. Fxx xxxxxxx, xxxxxxx xx xxxxxxx xxxxxxxxx xxxxxxxx xxx xxxxxxxx xxxxxxxxxxxxx xxxx xxx xxxx xxxx xxxx xxxxxxxx xxx xxxxxxx xxx x xxxxxxxxxx xxxxxx (dddd) xxxx xx xx xxxxxxx. Txx xxxxxxxx xxxxxxxxxxxxx xxxxx xxxxx xxx xxxxxxxxx xx xxxxxx xxxxx xxxx: -</para> - <programlisting format="linespecific">DELETE FROM xxxxxxx -WHERE xxxxxx_xx = 'dddd' -ORDER BY xxxxxxx_xxxx DESC -LIMIT d;</programlisting> - <para><indexterm id="mysqlian-CHP-6-ITERM-2319" significance="normal"><primary>ORDER BY xxxxxx</primary><secondary>DELETE xxxxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-6-ITERM-2320" significance="normal"><primary>WHERE xxxxxx</primary><secondary>DELETE xxxxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-6-ITERM-2321" significance="normal"><primary>LIMIT xxxxxx</primary><secondary>DELETE xxxxxxxxx</secondary></indexterm> -Ix xxxx xxxxxxx, xxx xxxx xxx xxxxx xxxxxxx xx xxx xxxx xx xxx xxxx xxxxxxx, xx xxxxxxxxxx xxxxx (xxxxxx xxxx xxxxx). Axxxxxxxxx xxxxxxx xxx xx xxxxx xx x xxxxx-xxxxxxxxx xxxx xxx xxx xxxxxxxx. Txx <literal moreinfo="none">LIMIT</literal> xxxxxx xx xxxx xx xxxxx xxx xxxxxx xx xxxxxxxxx xx xxx xxxxx xxxx xxxx xx xxx xxxxxxx xx xxx <literal moreinfo="none">WHERE</literal> xxxxxx xxx xxx <literal moreinfo="none">ORDER BY</literal> xxxxxx. -</para> - <para>Txx xxxxxx xxxxxx xxx xxxx xxxxxxxxx xxxxxx xxxxx xxxxxx xx xx xxxxxxxxxx. Ix xxx xxxxx xxxxxxx xxxxx xxxx, xxx xxxxxxxx xxxxxxxxxxxxx xxxxx xx xxxxxx xxxx xxxxxxxxxxxx x xxxxxxxxxx xxxxxx xxxx xxx xxxx xxxxxxx xxxxx, xxx xxxxx’x xxxx xxx xxxxxx xxxxxxx xxxxxx. Hxxxxxx, xxx xxxxxxxx xxxxxxxxxxxxx xxxxx xxx xxxxxx’x xxxx xxxxxx xxxx <emphasis>Cxxx</emphasis>, xx xxx xxxxxxxxx xxxxx xx xxxxxxx xx xxxxxx xxx xxxxxxx:</para> - <programlisting format="linespecific">DELETE xxxxxxx FROM xxxxxxx, xxxxxxx -WHERE xxxxxxx.xxxxxx_xx = xxxxxxx.xxxxxx_xx -AND xxxxxx_xxxx LIKE 'Cxxx%';</programlisting> - <para><indexterm id="mysqlian-CHP-6-ITERM-2322" significance="normal"><primary>WHERE xxxxxx</primary><secondary>DELETE xxxxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-6-ITERM-2323" significance="normal"><primary>FROM xxxxxx</primary><secondary>DELETE xxxxxxxxx</secondary></indexterm> -Ix xxxx xxxxxxx, xxx xxxxx xx xxxxx xxxx xxxx xx xxxxxxx xx xxxxx xxxxx xxx <literal moreinfo="none">DELETE</literal> xxxxxxx. Ix’x xxxx xxxxx xx xxx xxxx xx xxxxxx xx xxx <literal moreinfo="none">FROM</literal> xxxxxx, xxxxx xxxxxxxxx xxx xxxxx xxxx xxxxx xxxxxxxxxxx xxxx xx xxxxxxxx xx xxxxxxxxx xxx xxxx xx xxxxxx. Txx xxx xxxxxx xxx xxxxxx xx xxx <literal moreinfo="none">WHERE</literal> xxxxxx xx xxx xxxxxx xxxxxxxxxxxxxx xxxxxx xxxxxx xx xxxx. Uxxxx xxx <literal moreinfo="none">LIKE</literal> xxxxxxx, xxx xxxxxxxxx xx xxxx xx xxxxxxx xx xxxxxxx xxxx x xxxx xxxxxxxxx xxxx xxx xxxx <emphasis>Cxxx</emphasis>. Ixxxxxxxxxxx, xx xxxx xxxx xxx xxxxxx xxx x xxxx xxxxxxxxx xxxx <emphasis>Cxxx</emphasis>, xxx xxxx xxx xxxx xxxx xx xxxxxxx xxxx xxx xxxx xxxxxxx xxxxx. Yxx xxx xxxxxx xxxx xx xxxx xxxx xxx xxxxx xxxx x xxxxxx xxxxxxxxx xx xxxxxxx xxx xxxxxx xx x xxxxx-xxxxxxxxx xxxx xxxxx xxx <literal moreinfo="none">DELETE</literal> xxxxxxx. Fxx xxxxxxx, xxxxxxx xxxx xx xxx xxxx xxxxxxx xx xxxxxx xxx xxxx xxx xxxx xxxxxxxx xxx xxx xxxxxx, xxx xxxx xxx xxx xxx xxx xxxxxx xx xxx <emphasis>xxxxxxx</emphasis> xxxxx: -</para> - <programlisting format="linespecific">DELETE xxxxxxx, xxxxxxx FROM xxxxxxx, xxxxxxx -WHERE xxxxxxx.xxxxxxxx = xxxxxxx.xxxxxxxx -AND xxxxxx_xxxx LIKE 'Cxxx%';</programlisting> - <para><indexterm id="mysqlian-CHP-6-ITERM-2324" significance="normal"><primary>FROM xxxxxx</primary><secondary>DELETE xxxxxxxxx</secondary></indexterm> -Nxxxxx xxxx xxx xxxx xxxxxxxxxxx xxxxxxxxxx xxxxxxx xxxx xxxxxxxxx xxx xxx xxx xx xxx xxxxxxxx xxxxxxx xx xxxx xxxx xxxxxxxxx xxxxx xxxx xxxxxx xxx xxxxx xxxx xxx xx xx xxxxxxx xxxxx xxx <literal moreinfo="none">DELETE</literal> xxxxxxx xxx xxxxxx xxx <literal moreinfo="none">FROM</literal> xxxxxx. Dxxxxxxxx xxx xxxxxxxxx, xx xxxx xxxxxx xx xxxxx xx xx xxxxx xxxxxx xxx xxxxxx xxx xxxxxxxx. -</para> - <para>Txx xxxxx xxxxxx xxxxxxxx xx xxx xxxx xxx xx xxx xxxxxx xxx, xxx xxxxxx x xxxxxx xx xxxxxxxx xxxx xxx xx xxxxxxxxx xxx xxxxxxx. Ix xxx xxxxxxxx xxxxxxx xxxx xxxxxxx xxxx xxxx xxxxx xxxxxx, xx xxxxx xxxx xxxx xxxx:</para> - <programlisting format="linespecific">DELETE FROM xxxxxxx USING xxxxxxx, xxxxxxx -WHERE xxxxxxx.xxxxxxxx = xxxxxxx.xxxxxxxx -AND xxxxxx_xxxx LIKE 'Cxxx%';</programlisting> - <para><indexterm id="mysqlian-CHP-6-ITERM-2325" significance="normal"><primary>USING xxxxxx</primary><secondary>DELETE xxxxxxxxx</secondary></indexterm> -Nxxxxx xxxx xxx xxxxx xxxx xxxxx xxxx xxxx xx xxxxxxx xx xxxxxx xx xxx <literal moreinfo="none">FROM</literal> xxxxxx. Txx xxxxxx xxxx xxx xxxxxxxxx xxxx xxxxxx xx xxx xxxxxxxxxxx xx xxxxxxxxx xxxxx xxxx xx xxxxxx xxx xxxxxx xx xxx <literal moreinfo="none">USING</literal> xxxxxx. Txx xxxxxxx xx xxxxxxxxxx xxxxx xxxx xxxxxx xxxxxxxxx xxx xxx xxxxxxxx xxx xxx xxx xxxx. Ix’x xxxx x xxxxxx xx xxxxx xxxxxxxxxx xxx xxxxxxxxxxxxx xxxx xxxxx xxxxxxxx xxxxxxx. -<indexterm class="endofrange" startref="mysqlian-CHP-6-ITERM-2326" id="mysqlian-CHP-6-ITERM-2326" significance="normal"/> -</para> - <para>Axxxxxxx MxSQL xxxx xxxxxxxxxx xxxxx xxxxx xxxxxxxxx xxx xxxxxxx xxxx, xxx xxx xxxxxxx x xxxxx xxxxx xxx xxx xxxx xxxx xxxxxxx xx xxxxx xxx <literal moreinfo="none">OPTIMIZE TABLE</literal> xxxxxxxxx xx xxx <literal moreinfo="none">xxxxxxxxx</literal> xxxxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch06-77003"> - <refmeta> - <refentrytitle>DO</refentrytitle> - </refmeta> - <refnamediv> - <refname>DO</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">DO <replaceable>xxxxxxxxxx</replaceable>[, . . . ] | (<replaceable>xxxxxxxxx</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch06-04-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-6-ITERM-2327" significance="normal"><primary>DO xxxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-6-ITERM-2328" significance="normal"><primary>xxxxxxxxxxx</primary><secondary>xxxxxxxxxxx xxxxxxx xx</secondary></indexterm> -Txxx xxxxxxxxx xxxxxxxxxx xxx xxxxxxx xx xx xxxxxxxxxx’x xxxxxxx. Mxxxxxxx xxxxxxxxxxx xxx xx xxxxx xx x xxxxx-xxxxxxxxx xxxx. Ax xx Vxxxxxx d.d xx MxSQL, xxxxxxxxxx xxx xx xxxxx. -</para> - <programlisting format="linespecific">DO (SET @xxxxxxx = 'Vxx xx Lxx Ixxxxxxxxx' );</programlisting> - <para>Txxx xxxxxxxxx xxxxxxx xxx <literal moreinfo="none">@xxxxxxx</literal> xxxxxxxx xxxx xxx xxxxx xxxxx, xxx xxxxxxx xxxxxxxxxx xxx xxxxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch06-77004"> - <refmeta> - <refentrytitle>EXPLAIN</refentrytitle> - </refmeta> - <refnamediv> - <refname>EXPLAIN</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">EXPLAIN <replaceable>xxxxx</replaceable> - -EXPLAIN [EXTENDED|PARTITIONS] SELECT...</synopsis> - </refsynopsisdiv> - <refsect1 id="ch06-05-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-6-ITERM-2329" significance="normal"><primary>xxxxxxx</primary><secondary>xxxxxxxxxxx xxxxx xx xxxx</secondary></indexterm><indexterm id="mysqlian-CHP-6-ITERM-2330" significance="normal"><primary>SELECT xxxxxxxxx</primary><secondary>EXPLAIN xxxxxxxxx xxx</secondary></indexterm><indexterm id="mysqlian-CHP-6-ITERM-2331" significance="normal"><primary>xxxxxxx</primary><secondary>xxxxxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-6-ITERM-2332" significance="normal"><primary>EXPLAIN xxxxxxxxx</primary></indexterm> -Uxx xxxx xxxxxxxxx xx xxxxxxx xxxxxxxxxxx xxxxx xxx xxxxxxx xx x xxxxx xxxxx xx xxx xxxxxxxx xx x <literal moreinfo="none">SELECT</literal> xxxxxxxxx. Fxx xxx xxxxx xxxxx, xxx xxxxxxxxx xx xxxxxxxxxx xxxx xxx <literal moreinfo="none">DESCRIBE</literal> xxx <literal moreinfo="none">SHOW COLUMNS</literal> xxxxxxxxxx. Fxx xxx xxxxxx xxxxx, <literal moreinfo="none">EXPLAIN</literal> xxxxx xxxxx xxxxx xxx xxxxxxxxx xxxx xxx xxx, xxxx xxxxxxxx xxxxxx xxx xxxxxxx, xxx xxxxx xx xxxxx xxx xxxxxx xxx xxxx. Txxx xxx xx xxxxxxx xx xxxxxxxxxxx xxx xxxxx xx x xxxx xxxxx. Ax xxxxxxx xxxxxxx xxxxxxxxx x xxxxxx xxxxxxxx xx xxxxx xx xxx xxxxxxxxxx x xxxx xx xxx xxx xxxxxxx xxx xxxxxxxx xxx xxxxxx xx xxxx xxxxxxx xxxxxxx xxxx’xx xxxxxxxxx, xxx xxxx xxxxxxxx xxxxx xxxxxxx xx xxxxx xxxx xx xxx xxxxxx xxxxxxx. -</para> - <programlisting format="linespecific">EXPLAIN -SELECT * FROM - (SELECT xxxxxx_xxxx, COUNT(*) AS xxxxxxx - FROM xxxx_xxx - JOIN xxxxxxx USING(xxxxxx_xx) - WHERE xxxxxx_xxxx = d - AND DATEDIFF(NOW(), xxxxxxx_xxxx) < dd - GROUP BY xxxxxx_xx) AS xxxxxxxd -ORDER BY xxxxxxx DESC; - -*************************** d. xxx *************************** - xx: d - xxxxxx_xxxx: PRIMARY - xxxxx: <xxxxxxxd> - xxxx: ALL -xxxxxxxx_xxxx: NULL - xxx: NULL - xxx_xxx: NULL - xxx: NULL - xxxx: d - Exxxx: Uxxxx xxxxxxxx -*************************** d. xxx *************************** - xx: d - xxxxxx_xxxx: DERIVED - xxxxx: xxxxxxx - xxxx: ALL -xxxxxxxx_xxxx: PRIMARY - xxx: NULL - xxx_xxx: NULL - xxx: NULL - xxxx: dd - Exxxx: Uxxxx xxxxx; Uxxxx xxxxxxxxx; Uxxxx xxxxxxxx -*************************** d. xxx *************************** - xx: d - xxxxxx_xxxx: DERIVED - xxxxx: xxxx_xxx - xxxx: xxx -xxxxxxxx_xxxx: xxxxxx_xx,xxxxxxx_xxxx_xxx - xxx: xxxxxxx_xxxx_xxx - xxx_xxx: d - xxx: xxxxxxx_xxxxxxxx.xxxxxxx.xxxxxx_xx - xxxx: d - Exxxx: Uxxxx xxxxx; Uxxxx xxxxx</programlisting> - <para>Pxxxxx xxx xx xxxxxxxxx xxxx xxxxx xxxxxxx, xxxx xx xxxxx xxxxxxx xxxx xxxx, xx xxx. Fxx xxxxxxx, xxx <literal moreinfo="none">xxxxxxxx_xxxx</literal> xxxxx xx xxx xxxxx xxx xxxxx xxx xxxxxxx xxxx <emphasis>xxxxx</emphasis> xxxx xxxx xx xxxx xx xxxx xxx xxxx, xxxxxxx xxx <literal moreinfo="none">xxx</literal> xxxxx xxxxxxxxx xxxx xxx xxxxx <replaceable>xxxxxxx_xxxx_xxx</replaceable> xxx xxxxxxxx xxxx. (Txxx xxxxx xxxxxx xxx <replaceable>xxxxxx_xx</replaceable> xxx <replaceable>xxxxxxx_xxxx</replaceable> xxxxxxx.) Ix xxx <literal moreinfo="none">xxxxxxxx_xxxx</literal> xxxxx xxxxxx x xxxxx xx NULL, xxxx xx xxxxx xxx xxxx xx xxxxx xxxx xxxx xxxx. Txxx xxxxx xxxxxxxx xxxx xxx xxxxxx xxxxxxxx xxxxxx xx xxxxx xx xxx xxxxx.</para> - <para>Bxxxxxxxx, xxxx xxxxxxxxx xxxxx xxx xxxx MxSQL xxxx xxxx xx xxxxxxxx xxx xxxxx SQL xxxxxxxxx. Ix xxxxx’x xxxx xxx xxxx xx xx xxxxxxxxxxx xx xxxxxxx xxxxxxxxxxx. Fxx xxxx, xxx xxxx xxxx xx xxx xxxx xxxxxxxxx.</para> - <table id="mysqlian-CHP-06-TABLE-1"> - <title><emphasis role="bold">xxxxxx_xxxx</emphasis> xxx <literal moreinfo="none">EXPLAIN</literal> xxxxxxxxx xxxxxxx - - - - - - - Txxx - - - Gxxxxxx xxxxxxx - - - - - - - - SIMPLE - - - - Ixxxxxxxx x xxxxxx SELECT xxxxxxxxx, xxxxxxx x xxxxxxxx xx x UNION. - - - - - - PRIMARY - - - - Wxxx xxxxx x xxxxxxxx, xxxx xx xxx xxxx SELECT xxxxxxxxx. - - - - - - UNION - - - - Wxxx xxxxx x UNION, xxxx xx xxx xxx xxxxx SELECT xxxxxxxxx. - - - - - - DEPENDENT UNION - - - - Wxxx xxxxx x UNION, xxxx xx xxx xxx xxxxx SELECT xxxxxxxxx xxxxx xx xxxxxxxxx xx xxx xxxx xxxxx - - - - - - UNION RESULT - - - - Txx xxxxxx xx x UNION. - - - - - - SUBQUERY - - - - Txx xxxxx SELECT xxxxxxxxx xx x xxxxxxxx. - - - - - - DEPENDENT SUBQUERY - - - - Txx xxxxx SELECT xxxxxxxxx xx x xxxxxxxx xxxxx xx xxxxxxxxx xx xxx xxxx xxxxx. - - - - - - DERIVED - - - - Txx xxxxx xxxxxxx xxxx xxx xxxxxxxx. - - - - - - UNCACHEABLE SUBQUERY - - - - Ixxxxxxxx x xxxxxxxx xx xxxxx xxx xxxxxxx xxxxxx xx xxxxxx xxx xxxxxxxxx xxxx xx xx-xxxxxxxxx xxx xxxx xxx xx xxx xxxx xxxxx. - - - - - - UNCACHEABLE UNION - - - - Txx UNION xx x xxxxxxxx xx xxxxx xxx xxxxxxx xxxxxx xx xxxxxx xxx xxxxxxxxx xxxx xx xx-xxxxxxxxx xxx xxxx xxx xx xxx xxxx xxxxx. - - - - - - - - - - HANDLER - - - HANDLER - - - - HANDLER xxxxx OPEN [AS xxxxxx] - -HANDLER xxxxxx READ xxxxx { = | >= | <= | < } (xxxxx,...) - [WHERE xxxxxxxxx] [LIMIT . . . ] - -HANDLER xxxxxx READ xxxxx {FIRST|NEXT|PREV|LAST} - [WHERE xxxxxxxxx] [LIMIT . . . ] - -HANDLER xxxxxx READ {FIRST|NEXT} - [WHERE xxxxxxxxx] [LIMIT . . . ] - - -HANDLER xxxxxx CLOSE - - - - <para><indexterm class="startofrange" id="mysqlian-CHP-6-ITERM-2333" significance="normal"><primary>HANDLER xxxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-6-ITERM-2334" significance="normal"><primary>AS xxxxxxx</primary><secondary>HANDLER xxxxxxxxx</secondary></indexterm> -A xxxxxx xxxxxxxx xxxxxx xxxxxx xx x xxxxx, xx xxxxxxx xx xxxxxxx xxxx x xxxxxxx xxx. Hxxxxxx xxx xx xxxxxx xxxx x <literal moreinfo="none">SELECT</literal> xxxxxxxxx xxxx xxxxxxx xxxxx xxxxxxx xx xxxx xxxx x xxxxx. MxISAM xxx IxxxDB xxxxxx xxxxxxxxx xxxxxxx xxxxxxxx.</para> - <para>A xxxxxx xx xxxxxx xxxx xx xxx xxxxxxx (xxxxxxxxxx xxxxxx) xxxx xxxxxxxxxxx xx. Txx xxxxx xx xxxxx xxxxxxxxxx xx xxxxx xxxxxxxx, xxxxxx, xxx xx xxx xxxxxx xx xxxx xxxxxxxxx. Bxxxxxx xx xxxx xxx xxxxxxx xxx xxxxxx xxxxxxxx xxxxxx xxxxx xxxxxx, xxx xxxx xx xxx xxxxx xxx xxxxxx xxx xxxx xx xxxxxxxxxx xx xxx xxxxxxx xxxxxxxx xxxxxxxxxx xxxxx.</para> - <para>Cxxxxx x xxxxxxx xx xxxxxxx x <literal moreinfo="none">HANDLER</literal> xxxxxxxxx xxxx xxx <literal moreinfo="none">OPEN</literal> xxxxxx xx xxxxxxxxx x xxxxxx xxx xxx xxxxx, xxxx xxxx x xxxx xxxxxx xx x xxxxxxxxxxx xxxxxxxx xxxx xx Pxxx. Txx <literal moreinfo="none">AS</literal> xxxxxx xxx xxxxxx xxxx xxx xxxxxxxx. Ix xx xxxxx xx xxx xxxxx, xxx xxxxx xxxx xx xxxx xx xxx xxxxxxx xxxx xxx xxxxxxxxxx <literal moreinfo="none">HANDLER</literal> xxxxxxxxxx. -<indexterm id="mysqlian-CHP-6-ITERM-2335" significance="normal"><primary>xxxxxxx</primary><secondary>HANDLER xxxxxxxxx xxx</secondary></indexterm> -<indexterm id="mysqlian-CHP-6-ITERM-2336" significance="normal"><primary>xxxxxxx</primary></indexterm> -</para> - <para>Yxx xxx xxxx xxx <literal moreinfo="none">HANDLER</literal> xxxxxxxxx xxxxxxx xxxx <literal moreinfo="none">READ</literal> xxxxxxx xx xxxx xxxx xxxx x xxxxx. Fxxxxx xx xxxxxxx <literal moreinfo="none">HANDLER</literal> xxxx x <literal moreinfo="none">CLOSE</literal> xxxxxx.</para> - <para>Hxxx xxx x xxxxxx xx xxxxx xxxxxxxx xx xxx <literal moreinfo="none">HANDLER</literal> xxxxxxxxx:</para> - <programlisting format="linespecific">HANDLER xxxxxxx OPEN AS xxxxxxx_xxxxxx; -HANDLER xxxxxxx_xxxxxx READ FIRST;</programlisting> - <para><indexterm id="mysqlian-CHP-6-ITERM-2337" significance="normal"><primary>xxxxxxx</primary></indexterm> -Txx xxxxx xxxx xxxxxxx xxx xxxxx xxxxxx xxxxxx <emphasis>xxxxxxx_xxxxxx</emphasis>, xxxxx xx xxx <emphasis>xxxxxxx</emphasis> xxxxx. Txx xxxx SQL xxxxxxxxx xxxxxxxxx xxx xxxxx xxx xx xxxx xxxx xxx xxxxx. Txx xxxxxx xx xxxx xxxxxxxxx xx xxx xxxx xx xxxxxxx x <literal moreinfo="none">SELECT</literal> xx xxxxxxxx xxx xxxxxxx xx xxx xxxxx xxx xxxx xxxxxxx xxx xxx xxxxx xxx xx xxx xxxxxx xxx. Tx xxxxxxxx xxxxxxxxxx xxxxxxx xxx xxxx xxx xx x xxxxxx xxx xxxx x <literal moreinfo="none">SELECT</literal>, xxxxx xxx xxxxxxxxx:</para> - <programlisting format="linespecific">HANDLER xxxxxxx_xxxxxx READ NEXT;</programlisting> - <para><indexterm id="mysqlian-CHP-6-ITERM-2338" significance="normal"><primary>LIMIT xxxxxx</primary><secondary>HANDLER xxxxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-6-ITERM-2339" significance="normal"><primary>NEXT xxxxxxx (HANDLER)</primary></indexterm><indexterm id="mysqlian-CHP-6-ITERM-2340" significance="normal"><primary>FIRST xxxxxxx</primary><secondary>HANDLER xxxxxxxxx</secondary></indexterm> -Exxxx xxxx xxx xxxxxxxxx xx xxx xxxx xxx <literal moreinfo="none">NEXT</literal> xxxxxxx, xxx xxxxxxx xx xxxxxxxx xxx xxx xxxx xxx xx xxx xxxxx xx xxxxxxxxx xxxxx xxx xxx xx xxx xxxxx xx xxxxxxx. Tx xxxxxxxx xxxx xxxx xxx xxx, xxx xxx xxx xxx <literal moreinfo="none">LIMIT</literal> xxxxxx xxxx xxxx: -</para> - <programlisting format="linespecific">HANDLER xxxxxxx_xxxxxx READ NEXT LIMIT d;</programlisting> - <para><indexterm id="mysqlian-CHP-6-ITERM-2341" significance="normal"><primary>READ xxxxxxxx (HANDLER)</primary></indexterm><indexterm id="mysqlian-CHP-6-ITERM-2342" significance="normal"><primary>WHERE xxxxxx</primary><secondary>HANDLER xxxxxxxxx</secondary></indexterm> -Txxx xxxxxxxxx xxxxxxxx xxx xxxx xxxxx xxxx xxxx xxx xxxxx.</para> - <para>Txx <literal moreinfo="none">WHERE</literal> xxxxxx xxx xx xxxx xxxx x <literal moreinfo="none">HANDLER...READ</literal> xxxxxxxxx xx xxx xxxx xxx xx xxxx xxx <literal moreinfo="none">SELECT</literal> xxxxxxxxx. Hxxx xx xx xxxxxxx:</para> - <programlisting format="linespecific">HANDLER xxxxxxx_xxxxxx READ FIRST -WHERE xxxxx = 'MA' LIMIT d;</programlisting> - <para><indexterm id="mysqlian-CHP-6-ITERM-2343" significance="normal"><primary>ORDER BY xxxxxx</primary><secondary>HANDLER xxxxxxxxx</secondary></indexterm> -Txxx xxxxxxxxx xxxxxxxx xxx xxxxx xxxx xxxx xx xxxxx xxx xxxxxx xx xxxxxxx xx xxx xxxxx xx Mxxxxxxxxxxxx. Nxxx xxxx xx <literal moreinfo="none">ORDER BY</literal> xxxxxx xx xxxxxxxxx xxx <literal moreinfo="none">HANDLER...READ</literal> xxxxxxxxxx. Txxxxxxxx, xxx xxxxx xxxx xxxx xxx xxxxx xx xxx xxxxx xx xxxxx xxxx xxx xxxxxx xx xxx xxxxx. -</para> - <para>Tx xxxxxxx xxxx xxxxx xx xx xxxxx, xxx xxx xx xxx <literal moreinfo="none">READ</literal> xxxxxxx xxxx xxxxxxx xxxxxxx. Hxxx xx xxxxxxx xxxx xxx xxxxxxxx xxx, xxx xxxx xxx xxxxxxxx xx xx xxxxx:</para> - <programlisting format="linespecific">HANDLER xxxxxxx_xxxxxx READ xxx PREV -WHERE xxxxx = 'MA' LIMIT d;</programlisting> - <para><indexterm id="mysqlian-CHP-6-ITERM-2344" significance="normal"><primary>LAST xxxxxxx (HANDLER)</primary></indexterm><indexterm id="mysqlian-CHP-6-ITERM-2345" significance="normal"><primary>PREV xxxxxxx (HANDLER)</primary></indexterm> -Txxx xxxxxxx xxxxxxxxx xxx xxxx xxxxxxxx xxx xxxxxxxxx xx xxx <literal moreinfo="none">WHERE</literal> xxxxxx; xxx xxxx xxxx xxxx xxx xxxxxxxx xxxxx xx xxxx xxxxxxxxx xxxxxx xx xxx <literal moreinfo="none">PREV</literal> xxxxxxx. Pxxxxxxxxxx xxxxx xxxxxxx xxxx xxx xxx xx xxx <literal moreinfo="none">xxx</literal> xxxxx, xx xx xxx xxxxx xx xxx <literal moreinfo="none">xxxxx</literal> xxxxxx. Tx xxxxxxxx xxx xxxx xxx xx xxxx xxxxx xxxx xxxxxx, xxxxxxx <literal moreinfo="none">PREV</literal> xxxx <literal moreinfo="none">NEXT</literal>.</para> - <para>Txx <literal moreinfo="none">LAST</literal> xxxxxxx xxxxxxxx xxx xxx xxxxxxxxx xxxx xxxxxxxx xxxx xxx xxxx xxx xx xxx xxxxx. Hxxx xx xxxxxxx xxxxxxx xxxxx xx xxxxx: -</para> - <programlisting format="linespecific">HANDLER xxxxxxx_xxxxxx READ xxxx = ('NxxxxxxxGxxx');</programlisting> - <para>Txx <literal moreinfo="none">xxxx</literal> xxxxx xx x xxxxxxxxxxx xx xxx <emphasis>xxxx_xxxx</emphasis> xxx xxx <emphasis>xxxx_xxxxx</emphasis> xxxxxx, xxx xxxx xxx xxxxx xxxx xxxxxxxxxx xx xxx xxxxx xxxx xxx xxxx xx xxx xxxxx. Gxxxx xxx xxxxxx xxxxxxxx xxxx xxx xxxx xxxx, xxxx xxxxxxxxx xxxxxxxx xxx xxx xxx xxx xxxxxx Gxxxxx Nxxxxxxx. Txx xxxxxx xxx xxxx xxxxxx xxx xx xxxxxxxxx xxxx xxxxxx (x.x., '<emphasis>Nxxxxxxx</emphasis>', '<emphasis>Gxxx</emphasis>'), xx xxxxxxx xxxxxxxx xx xxxxx. Txxx xxxxxxx, x xxxxxxxxx xxx x xxxxxxxxxxx xxxxx, xxxxx xx x xxxxxxxxx xxxxxxxxxx xxxx x <literal moreinfo="none">SELECT</literal> xxxxxxxxx. -<indexterm class="endofrange" startref="mysqlian-CHP-6-ITERM-2346" id="mysqlian-CHP-6-ITERM-2346" significance="normal"/> -</para> - </refsect1> - </refentry> - <refentry id="ch06-77006"> - <refmeta> - <refentrytitle>HELP</refentrytitle> - </refmeta> - <refnamediv> - <refname>HELP</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">HELP [{<replaceable>'xxxxxxx | xxxxxxx_xxxx'</replaceable>}]</synopsis> - </refsynopsisdiv> - <refsect1 id="ch06-07-fm2xml"> - <title/> - <para>Yxx xxx xxx xxxx xxxxxxxxx xx xxxxxx xxxxx-xx xxxxxxxxxxxxx. Exxxx <literal moreinfo="none">HELP</literal> xxxxx xx xxxxxxx x xxxx xx MxSQL xxxxxxxx xxx xxxxx xxx xxx xxxxxxx xxxxxxxxxxxxx. Txxxxx <literal moreinfo="none">HELP xxxxxxxx</literal> xxxxxxxx x xxxxx xx xxxxxxxx xxx xxxx xxxxxxxx xxxxxxxxxxxxx. Fxx xxxxx xxxxxxxxx, xxx xxx xxxx xxxx xx SQL xxxxxxxxx xx xxxxxx:</para> - <programlisting format="linespecific">HELP SELECT;</programlisting> - <para>Txxx xxxxxxxx xxx xxxxxx xxx xxx <literal moreinfo="none">SELECT</literal> xxxxxxxxx xxxxx xxxx x xxxxx xxxxxxxxxxx xx xxxx xx xxx xxxxxxx. Sxxxxxxxx, xxxxxxxx <literal moreinfo="none">HELP SHOW</literal> xxxxx xxx x xxxx xx SQL xxxxxxxxxx xxxxxxxx xxxx <literal moreinfo="none">SHOW</literal>.</para> - </refsect1> - </refentry> - <refentry id="ch06-77007"> - <refmeta> - <refentrytitle>INSERT</refentrytitle> - </refmeta> - <refnamediv> - <refname>INSERT</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">INSERT [LOW_PRIORITY|DELAYED|HIGH_PRIORITY] [IGNORE] - [INTO] <replaceable>xxxxx</replaceable> - SET <replaceable>xxxxxx</replaceable>={<replaceable>xxxxxxxxxx</replaceable>|DEFAULT}, ... - [ON DUPLICATE KEY UPDATE <replaceable>xxxxxx</replaceable>=<replaceable>xxxxxxxxxx</replaceable>, ... ] - -INSERT [LOW_PRIORITY|DELAYED|HIGH_PRIORITY] [IGNORE] - [INTO] <replaceable>xxxxx</replaceable> [(<replaceable>xxxxxx</replaceable>, ...)] - VALUES ({xxxxxxxxxx|DEFAULT},...),(...),... - [ON DUPLICATE KEY UPDATE <replaceable>xxxxxx</replaceable>=<replaceable>xxxxxxxxxx</replaceable>, ... ] - -INSERT [LOW_PRIORITY|HIGH_PRIORITY] [IGNORE] - [INTO] <replaceable>xxxxx</replaceable> [(<replaceable>xxxxxx</replaceable>, ...)] - SELECT... - [ON DUPLICATE KEY UPDATE <replaceable>xxxxxx</replaceable>=<replaceable>xxxxxxxxxx</replaceable>, ... ]</synopsis> - </refsynopsisdiv> - <refsect1 id="ch06-08-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-6-ITERM-2347" significance="normal"><primary>xxxxx (,)</primary><secondary>INSERT xxxxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-6-ITERM-2348" significance="normal"><primary>xxxxxxxxxxx ( )</primary></indexterm><indexterm id="mysqlian-CHP-6-ITERM-2349" significance="normal"><primary>( ) xxxxxxxxxxx</primary></indexterm><indexterm class="startofrange" id="mysqlian-CHP-6-ITERM-2350" significance="normal"><primary>INSERT xxxxxxxxx</primary><secondary>xxxxxx</secondary></indexterm><indexterm class="startofrange" id="mysqlian-CHP-6-ITERM-2351" significance="normal"><primary>xxxxxx</primary><secondary>xxxxxx xxxx</secondary></indexterm><indexterm class="startofrange" id="mysqlian-CHP-6-ITERM-2352" significance="normal"><primary>xxxx</primary><secondary>xxxxxx</secondary></indexterm> -Uxx xxxx xxxxxxxxx xx xxx xxxx xx xxxx xx x xxxxx. Txx xxxxx xxxxxx xxxxx xxx xxxxxx xxxx xxx xxx xx xxxx xxx xxxxxxxxx. Txx xxxxxx xxxxxx xxx xxxxxx xxx xx xxxx xxxx xx x xxxxxx xxxxxxxxx. Txx xxxxxxx xxx xxxxx xxxxx xxx xxxxxxxxx xxxx, xxx xxxxxx xxx xxxxxxxx xxxx xxx xx xxxxx. Exxx xxx xx xxxxxx xx xx xx xxxxxxxxx xx xxx xxx xxx xx xxxxxxxxxxx, xxxxxxxxx xx xxxxxx. Txx xxxxx xxxxxx xxxxxxx xxxxxxx xxxxxx xxxx xxxx xx xxxxx xxxxxx. Exxxxxxxxxxx xx xxx xxxxxxxxx xx xxxx xxxx xx xxxxxxxxx, xxxxx xxxxxxx xxxxxxx xxx xxxxxxxx, xxx xxxxxxxx xx xxxxx xxx xxxxxx xx xxx xxxx xxxxx xxxxxxxxxxx xx xxxx SQL xxxxxxxxx. -</para> - <para><indexterm id="mysqlian-CHP-6-ITERM-2360" significance="normal"><primary>LOW_PRIORITY xxxxxxx</primary><secondary>INSERT xxxxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-6-ITERM-2361" significance="normal"><primary>DELAYED xxxxxxx</primary><secondary>INSERT xxxxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-6-ITERM-2363" significance="normal"><primary>HIGH_PRIORITY xxxxxxx</primary><secondary>INSERT xxxxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-6-ITERM-2362" significance="normal"><primary>ON DUPLICATE KEY UPDATE xxxxxx (INSERT)</primary></indexterm> -A xxx xxxxxxxxxx xxx xxxxxx xx xxx xxxxxxx xx xx xxx xxxxxxx.</para> - <para>Yxx xxx xxx xxx <literal moreinfo="none">LOW_PRIORITY</literal> xxxxxxx xx xxxxxxxx xxx xxxxxx xx xxxx xxxxx xxx xxxxx xxxxxxx xxxxxxx xx xxx xxxxx xx xxxxx xxxx xx xx xx xxxxx xxx xxxxxxxx xxxxxx xxxxxxx xxx <literal moreinfo="none">INSERT</literal> xxxxxxxxx. Wxxx xxx xxxxx xx xxxx, xxx xxxxx xx xxxxxx xxx xxx <literal moreinfo="none">INSERT</literal> xxxxxxxxx xxx xxxx xxxxxxx xxxxxxxxxx xxxxxxx.</para> - <para>Txx <literal moreinfo="none">DELAYED</literal> xxxxxxx xx xxxxxxxxx xxx xxx xxxxx xxx xxxxxxxx xxx xxxxxxxxx xxx xxxx xxxxxxxx xxxxxx, xxx xxxxxxxx xxx xxxxxx xx xxxx xxxxx xxxxxxx xxx xx xxx xxx xx xxxx xxx xxxxxxxxxx xxx xx xxxxxxxxxx. A <literal moreinfo="none">DELAYED</literal> xxxxx xxxx xxxxxxx xxxxxxx xx xxxxx xxxxxxx xxxx xxx xxxxxxxxx xxxx xxx xxxxxxx xxxx xxxx xxxxx; xx xxxxxxxx xxxx xxxx xxx xxxxx xx xxxxxxxx xx xxx xxxxxx xx xx xxxxxxxxx. Ix xxx xxxxxx xxxxxxx, xxx xxxx xxxxxxxxx xxx xxx xx xxxxxxxx xxxx xxx xxxxxx xxxxxxxx xxx xxx xxxx xxx’x xx xxxxxxxx xx xxx xxxxxxx. Tx xxxxxxx x <literal moreinfo="none">DELAYED</literal> xxxxxx, xxx xxxx xxxx xxxxx xxx xxxxx xxxxx xxx xxx xxxxxxxx xxxxxxx xxxx x <literal moreinfo="none">SELECT</literal> xxxxxxxxx. Txx <literal moreinfo="none">DELAYED</literal> xxxxxx xxxxx xxxx xxxx MxISAM, IxxxDB, xxx ISAM xxxxxx. Ix’x xxxx xxx xxxxxxxxxx xxxx xxx <literal moreinfo="none">ON DUPLICATE KEY UPDATE</literal> xxxxxx xx xxxx.</para> - <para>Uxx xxx <literal moreinfo="none">HIGH_PRIORITY</literal> xxxxxxx xx xxxxxxxx x <literal moreinfo="none">--xxx-xxxxxxxx-xxxxxxx</literal> xxxxxx xxxxxx xxx xx xxxxxxx xxxxxxxxxx xxxxxxx. -</para> - <para><indexterm id="mysqlian-CHP-6-ITERM-2375" significance="normal"><primary>INTO xxxxxxx</primary><secondary>INSERT xxxxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-6-ITERM-2374" significance="normal"><primary>IGNORE xxxxxxx</primary><secondary>INSERT xxxxxxxxx</secondary></indexterm> -Txx <literal moreinfo="none">IGNORE</literal> xxxxxxx xxxxxxxxx xxx xxxxxx xx xxxxxx xxx xxxxxx xxxxxxxxxxx xxx xxxxxxxx xxx xxxxx xxxxxxxx. Ix xxxxxxxx, xxx xxxxxxxx xxx xxxxxxxxxx, xxx xxxxxxxxx xxxxxxxxx xx xxxxxx xxxx xxxxx xxxxxxxxxxxx xxxxxx xx xxxxxxxx xxxx. Wxxxxxxx xxx xxxxxxxxx xxxx xxx xxxx xxx xxxxxxx xxxx xxx <literal moreinfo="none">SHOW WARNINGS</literal> xxxxxxxxx.</para> - <para>Txx <literal moreinfo="none">INTO</literal> xxxxxxx xx xxxxxxxx xxx xxxx xxx xxxxxxxxxxxxx xxxx xxxxx xxxxxxxx xxxxxxx.</para> - <para>Txx <literal moreinfo="none">DEFAULT</literal> xxxxxxx xxx xx xxxxx xxx x xxxxxx xxx xxx xxxxx xxx xxxxxx xxxxxxx xx xxxxxxxx xxx xxxxxx xx xxx xxx xxxxxxx xxxxx xxx xxx xxxxxx. Yxx xxx xxx xxx xxxxxxx xxxxx xxxxxx xxxx xxx <literal moreinfo="none">CREATE TABLE</literal> xxxxxxxxx xxxx xxx xxxxx xx xxxxxxx xx xxxx xxx <literal moreinfo="none">ALTER TABLE</literal> xxxxxxxxx xxx xxxxxxxx xxxxxx.</para> - <para>Txx <literal moreinfo="none">ON DUPLICATE KEY UPDATE</literal> xxxxxx xxxxx xx <literal moreinfo="none">INSERT</literal> xxxxxxxxx xxx xx xxxxxx xx xxxxxx xxxx xx xxxxx xx xxx xxxxx xxxxxxx xxxxxxxx x xxxxxxxxx xxxxx xx x xxxxxx. Wxxx xxxx xxxxxx, xxx xxxxxxxxx xxxxxxx xxx xxxx xx xxx xxxxxxxx xxx xx xxxxxxx xxx xxx xxxxxx xx xxx xxxxx xxxxxxx. Wxxxxxx xxxx xxxxxx, xxx xxxxxxxxx xxxxxxxxx xx xxxxx. Ax xxxxxxx xxxxxxx xx xxx xxxx xxxxxxx.</para> - </refsect1> - <refsect1 id="ch06-09-fm2xml"> - <title>Sxxxxx-xxx xxxxxxxxx xxxx SET xxxxxx - INSERT [LOW_PRIORITY|DELAYED|HIGH_PRIORITY] [IGNORE] - [INTO] xxxxx - SET xxxxxx={xxxxxxxxxx|DEFAULT}, ... - [ON DUPLICATE KEY UPDATE xxxxxx=xxxxxxxxxx, ... ] - ALTER TABLE xxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxx xxxxxxx xxxxxxCREATE TABLE xxxxxxxxxxxxxxx xxxxxxx xxxxxDEFAULT xxxxxxxINSERT xxxxxxxxxxxxxxxxxxxxINSERT xxxxxxxxx xxxSET xxxxxx (INSERT)xxxxxx-xxxx (=) xxxxxxxx -Txxx xxxxxxx xx xxx INSERT xxxxxxxxx xxxxxx xxxx xxx xxx xx xxxx xx xx xxxxxxxx xxxx x xxxxx xxx SQL xxxxxxxxx. Txx SET xxxxxx xxxxx xxx xx xxxx xxxxxxx xxxxx, xxxx xxxxxxxx xx xxx xxxxx xx xxxxx xx xx xx xx xxx. Txx xxxxx xxxxx xxx xx x xxxxxx xxxxx xx xx xxxxxxxxxx. Hxxx xx xx xxxxxxx: - INSERT INTO xxxxxxx -SET xxxxxx_xxxx = 'Gxxxxxxx & Cxxxxxx', -xxxx = 'Bxxxxx', xxxxx = 'MA'; - AUTO_INCREMENT xxxxxxxINSERT xxxxxxxxx -Txxx xxxxxxx xxxxx xxxxx xxxxxxx xxxxx xxxx xxx xxxxxx xx xx xxx xx x xxx xxxxx xx xxx xxxxxxx xxxxx. Oxxxx xxxxxxx xx xxx xxxxx xxxxxxxx xxx xxxx xx xxxxxxx xx x xxxxxxx xxxxxx. Fxx xxxxxxxx, xx AUTO_INCREMENT xxxxxx xxxx xx xxx xx xxx xxxx xxxxxx xx xxxxxxxx. - - ON DUPLICATE KEY UPDATE xxxxxx (INSERT) -Ax xxxxxxxxx xxxxxxx, xxx ON DUPLICATE KEY UPDATE xxxxxx xxxxxx xx INSERT xxxxxxxxx xx xxxxxx xxxx xxxx xxxxxxx xxxxxxx xxxxxxxxx xxxxxx. Ax xxxxxxx xxxxxxx: - - CREATE UNIQUE INDEX xxxxxx_xxxxx -ON xxxxxxx(xxxxxx_xxxx,xxxxxxxxx); - -ALTER TABLE xxxxxxx -ADD COLUMN xxx_xxxxxxxxx TINYINT(d) -AFTER xxxxxxxxx; - -INSERT INTO xxxxxxx -SET xxxxxx_xxxx = 'Mxxxx & Axxxxxxxxx', -xxx_xxxxxxxxx = d -xxxxxxxxx = 'ddd-ddd-dddd' -ON DUPLICATE KEY UPDATE -xxx_xxxxxx = d; - UPDATE xxxxxx (INSERT)UNIQUE xxxxxxxSET xxxxxx (INSERT)SET xxxxxx (INSERT) -Txxx xxxxxxx xxxxxx xx xxxxxxxx xx xxxxx xx xxx xxxxxx_xxxxx xxxxxx xx xxx xxxxxxx xxxxx. Txx xxxxx xxxx xx UNIQUE, xxxxx xxxxx xxxx xxxxxxxxx xxxxxx xxx xxx xxxxxxxxxxx xx xxxxxx_xxxx xxx xxxxxxxxx xxxxxxx xxx xxx xxxxxxx. Wxxx xxx xxxxxx SQL xxxxxxxxx, xx xxx x xxxxxx xx xxxx xxx xxxxxxxxx xxxxxxx xxx xxxxxxxx xxxxxxx. Txx INSERT xxxxxxxxx xxxxx xx xxxxxx xxx xxxxxxxxx xxxxxx xxxx xxx xxxxxxxxx xxxxxx. Bxx xx xxxxxxxxx xxxx xx xxxxx xx xxxxxxx x xxx xx xxx xxxxx xxx xxx xxxxxx, x xxx xxx xx xxx xx xx xxxxx. Ixxxxxx, xxx xxxxxxxx xxx xx xx xx xxxxxxx xxx xxx UPDATE xxxxxx, xxxxxxx xxx xxxxxxxx xxxxx’x xxxxxxxxx xxxxxx xx xxx xxxxx xxxxx xx xxx SET xxxxxx. Txx xxxxxxxxxx xx xxxx xxx xxx xxxx xxxxx xxxxxxxx xxxxxx xx xxx x xxx xxxxxx xx xx xx xxxxxx xx xxx xxxxxxxx xxxxxx’x xxxxxxxxx xxxxxx. Ixxxxxx xx xxxxx x xxxxxx xxxxx xxxxx xxx xxxxxx xxxx, x xxxxxxx xxxxx xx xx xxxxxxxxxx xxx xx xxxxx. - - - - Mxxxxxxx-xxx xxxxxxxxxx - INSERT [LOW_PRIORITY|DELAYED|HIGH_PRIORITY] [IGNORE] - [INTO] xxxxx [(xxxxxx,...)] - VALUES ({xxxxxxxxxx|DEFAULT},...),(...) - [ON DUPLICATE KEY UPDATE xxxxxx=xxxxxxxxxx,...] - xxxxx (,)INSERT xxxxxxxxxxxxxxxxxxxx ( )( ) xxxxxxxxxxxVALUES xxxxxxINSERT xxxxxxxxx -Txxx xxxxxx xx xxx INSERT xxxxxxxxx xxxxxx xxx SQL xxxxxxxxx xx xxxxxx xxxxxxxx xxxx. Txx xxxxxxx xx xxxxx xxxx xx xx xx xxxxxxxx xxx xx xxxxx xx xxxxxxxxxxx xx x xxxxx-xxxxxxxxx xxxx. Ix xx xxxxxxx xxx xxxxxxxxx, xxx xxxxxxxxx xxxx xxxxxxx x xxxxx xxx xxxx xxxxxx xx xxxx xxx, xx xxx xxxxx xxxx xxxx xxxxxx xx xxx xxxxx. Ix xxx xxxxx xxxxxxxx xxx xx AUTO_INCREMENT xxxxxx, xxxxxxx NULL xxx xxx xxxxxx xxxx xxxxxx xxx xxxxxxx xxxx xxxxx xx xxx xxxxxx. Tx xxxxxxx xxxxxxx xxxxxx xxx xxxxx xxxxxxx, xxx xxx DEFAULT xxxxxxx. NULL xxx xxxx xx xxxxx xxx xxx xxxxx xxxxxx xxxx xxxxxxx NULL xxx xxxx xxx xxxx xx xxxxx NULL. Txx VALUES xxxxxx xxxxx xxx xxxxxx xx xxxx xxx xx xx xxxxxxxx xxxx xxx xxxxx. Txx xxxxxx xxx xxxx xxx xxx xxxxxxxx xx xxxxxxxxxxx; xxxx xxx xx xxxxxxxxx xx x xxxxx. Hxxx xx xx xxxxxxx: - - INSERT INTO xxxxxxx (xxxxxx_xxxx, xxxxxxxxx) -VALUES('Mxxxx & Axxxxxxxxx', 'ddd-ddd-dddd'), -('Gxxxxxxx & Cxxxxxx', 'ddd-ddd-dddd'), -('Kxxxxxx & Pxxxxxxx', 'ddd-ddd-dddd'); - Ix xxxx xxxxxxx, xxxxx xxxx xxx xxxxxxxx xxxx xxx xxxxxxx xxxxx xxxx xxx SQL xxxxxxxxx. Axxxxxxx xxx xxxxx xxx xxxxxxx xxxxxxx, xxxx xxx xxxxxxx xxx xxxxxxxx xxx xxxx xxx xxxx. Txx xxxxx xxxxxxx xxx xxx xx xxxxx xxxxxxx xx xx NULL. Txx xxxxx xx xxx xxxxxx xxx xxxx xxx xxxxxxxxxxx xx xxx xxxxx xxxx xxx xxxxxxx xxx xxxxxx. - Nxxxxxxx, xx x xxxxxxxx INSERT xxxxxxxxx xx xxxxxxx xxx xxx xx xxx xxxx xx xx xxxxxxxx xx x xxxxxxxxx, xx xxxxx xx xxxxxxxxx xxx xx xxxxx xxxxxxx xx xxxxxxxxx. Txx xxxxxxxxx xx xxxxxxxxxx xxx xx xxxx xxx xxxxxxxx. Txx IGNORE xxxxxxx, xxxxxxx, xxxxxxxxx xxx xxxxxx xx xxxxxx xxx xxxxxx xxxxxxxxxxx, xxxxxxxx xxx xxxxx xxxxxxxx, xxx xxxxxx xxxx xxx xxx-xxxxxxxxx xxxx. Txx xxxxxxx xx xxxx xxxxxxxxx xxxxxxx xxxx xx: - Qxxxx OK, ddd xxxx xxxxxxxx (d.dd xxx) -Rxxxxxx: ddd Dxxxxxxxxx: d Wxxxxxxx: d - Txxxx xxxxxxx xxxxxxxx xxxx ddd xxxxxxx xxxx xx xx xxxxxxxx, xxx xxxx ddd xxxx xxxx xxxxxxxx xx xxxxxxxxxxxx xxxxxxxx. Txxxx xxxx xxxx xxxxxxxxxx xx xxx SQL xxxxxxxxx, xxx xxxxx xxxx xx xxxxxxxx xxxxxxx xx xxx IGNORE xxxxxxx. Exxxxxxx xxx SHOW WARNINGS xxxxxxxxx xxxx xxxxxxx xxx xxxxxxxxxx xxxxxxx xxxxxxxx. - - - Ixxxxxxxx xxxx xxxxx xx x SELECT - INSERT [LOW_PRIORITY|HIGH_PRIORITY] [IGNORE] - [INTO] xxxxx [(xxxxxx,...)] - SELECT... - [ON DUPLICATE KEY UPDATE xxxxxx=xxxxxxxxxx,...] - SELECT xxxxxxxxxxxxxxxxxx xxxx xxxxx xx -Txxx xxxxxx xx xxx INSERT xxxxxxxxx xxxxxx xxx xxxxxxxx xxxx xx xx xxxxxxxx xx xxx SQL xxxxxxxxx, xxxxx xx xxxx xxxxxxxxx xxxx xxxxxxx xxxxx xx xxx xx x SELECT xxxxxxxxx. Ix xx xxxxxxx xxx xxxxxx, xxx SELECT xxxx xxxxxx xxx xxxxxx xx xxx xxxxxxx xx xxx xxxxx xx xxxxx xxxx xxx xx xxx xxxxxxxx xxxxx xxx xxxx xx xxxxxx (xx xxxxxxxx xxxxxxx xxxxx) xx xxx xxxx xxxxx xx xxx xxxxx xxxxxxxxxx xxx xxxxxxxxx xxxx xxxx. Ix xxx xxx’x xxxx xx xxxxxxxx xxx xx xxx xxxxxxx xx xxx xxxxxxxx xxxxx, xx xx xxx xxxxxxx xx xxxx xxxxxx xxx xxx xxx xxxx, xxxx xxx xxxx xxxx xxx xxxxxxx xx xxxxxxxx xx xxx SELECT xxxxxxxxx xxx xxxxxxxx x xxxxxxxx xxxxxxx xxxx xx xxx xxxxxxx xx xxx xxxxx xxxx xxxx xx xx xx xxxxxxxxx xxxx. - - Fxx xxx xxxxxxxxx xxxxxxx, xxxxxxx xxxx xxx xxxxxxxxx xxxxx xxxxxxxx x xxxxxx xxxxxx xxxxxxxx xx xxxxxxxx xxxxxxx xx xxxxxxxx xx x xxxxxx xx xxx xxxxxxx’x xxxxxxxx xxxx. Sxxxxxx xxxxxxx xxxx xx xx xxxxxxx xxxx x xxx xxxxx xxxxxx xx xxxxxxx xx xxxxx xxxxxxxxxxx xxxxx xxxxxxx xx xxx xxxxxxxx xxxx xxx xxxx xxx xxxx’x xxxxxxx xxxx xxxx xxxxxxxxxx xx xxxx xxx xxxxx (xxxxxxxx_xxxx), xxx xx xxxxx xxxxxx. Txx xxxxxxxx xxxxx xxx xxxxxxxxx xxxxxxx xxxx xx xx xxxxxx xxxx xxx xxx xxxxx, xxxxxxx xxx xxxx’x xxxxxxx xxxx xxx xx xxxxxxx xx xx x xxxxx xx xxx xxxxxxxxx xxxxx xx xxxxxxx xxxx xxxxxxxxxxx. Hxxx xxx xxx SQL xxxxxxxxxx xx xxx xx xxx xxx xxxxx xxxx xxx xxxxxxx xxxx: - CREATE TABLE xxxxxxxx_xxxx -(xxxxxx_xx INT KEY, xxxxxx_xxxx VARCHAR(dd), - xxxxxxxx VARCHAR(dd), xxxxxxxxx CHAR(d)); - -INSERT INTO xxxxxxxx_xxxx -(xxxxxx_xx, xxxxxx_xxxx, xxxxxxxxx) - SELECT xxx_xx, CONCAT(xxxx_xxxxx, ' ', xxxx_xxxx), - RIGHT(xxxxxxxxx_xxxx, d) - FROM xxxxxxxxx - WHERE xxxxxxxx = 'Y'; - Txx xxxxx SQL xxxxxxxxx xxxxxxx xxx xxx xxxxx. Txx xxxxxxx xxx xxxx xxxxxx: x xxxxxx xx xx xxx xxxxxxxxxx, xxx xxxxxx xxx xxxx xxx xxxxx xxx xxxx xxxx xx xxx xxxxxx, xxxxxxx xxx xxx xxxxxx’x xxxx xxxxxxxxx xxxxxx, xxx xxx xxxxxxx xxx xxx xxxxxx’x xxxxxxxx, xx xx xxxxxx xx xxxxx xx xxx xxxx’x xxxxxxx. Nxxxxxxx xx xxxxxx’x xxx xxxxxxx x xxxxxx xxxx xxx xxx xxx xxx xxxxxx’x xxxx xxxxx xxxx xxxxx xx xxxxxxxxxxx xxxx xx xxx xxxxxx. Hxxxxxx, xxx xxxx xxxxxxx xxxxxxx xx xxxxxx xxxx xx xxx xxxxxx’x xxxxx xx x xxxxxxxx xxxx xxxx (x.x., Sxxxxxx Jxxxxxx). - Ix xxx xxxxxx SQL xxxxxxxxx, xxx INSERT xxxxxxxxx xxxx xx xxxxxxxx SELECT xxxxxxxxx xx xxxxxxxx xxxx xxxx xxx xxxxxxxxx xxxxx xxxxx xxx xxxxxxxx xxxxxx xxx xxx xxx xx xxx xx `Y’. Txx CONCAT() xxxxxxxx xx xxxx xx xxx xxxxxxxx xxx xxxxx xxx xxxx xxxx, xxxxxxxxx xx x xxxxx. Txxx xxxx xx xxxx xxx xxxx xxxxxx xx xxx xxx xxxxx. Txx RIGHT( ) xxxxxxxx xx xxxx xx xxxxxxx xxxx xxx xxxx xxxxx xxxxxxxxxx xx xxx xxxxxxxxx_xxxx xxxxxx, xxxxxxx xxx xx xxx xxxxxxxxx xx xxx xxxxxxxx xxxx xxx xxxx xxx xxxx xxxxxxxxx xxxxxxx xxxx. Sxx xxx xxxx xxxxxxxxxxx xx xxxxx xxxxxxxxx. Nxxxxx xxxx xx’xx xxxxxx xxx xxxxx xxxxxxx xxxx xxxx xx xx xx xxxx, xxxxxxxx xxxxx xxx xxxx xx xxx xxxxx. Axxx xxxxxx xxxx xxx SELECT xxxxxxxxx xxxx xxx xxxxx xxxxxxx xx xxx xxxx xxxx xxxxx, xxx xx xxxxxxxxx xxxxx. -SELECT xxxxxxxxxRIGHT( ) xxxxxxxx -RIGHT( ) xxxxxxxx - - - -SELECT xxxxxxxxxxxxxxxxxx xxxx xxxxx xx - - - - - - JOIN - - - JOIN - - - - SELECT...|UPDATE...|DELETE... -xxxxx [INNER|CROSS] JOIN xxxxx [ON xxxxxxxxx|USING (xxxxxx[,...])] | -xxxxx STRAIGHT_JOIN xxxxx ON xxxxxxxxx | -xxxxx LEFT [OUTER] JOIN xxxxx {ON xxxxxxxxx|USING (xxxxxx[,...])} | -xxxxx NATURAL [LEFT [OUTER]] JOIN xxxxx | -[OJ xxxxx LEFT OUTER JOIN xxxxx ON xxxxxxxxx] | -xxxxx RIGHT [OUTER] JOIN xxxxx {ON xxxxxxxxx|USING (xxxxxx[,...])} | -xxxxx NATURAL [RIGHT [OUTER]] JOIN xxxxx - - - - <para><indexterm class="startofrange" id="mysqlian-CHP-6-ITERM-2383" significance="normal"><primary>xxxxx</primary></indexterm><indexterm class="startofrange" id="mysqlian-CHP-6-ITERM-2384" significance="normal"><primary>JOIN xxxxxx</primary><secondary>xxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-6-ITERM-2385" significance="normal"><primary>ON xxxxxxx (JOIN xxxxxx)</primary></indexterm><indexterm id="mysqlian-CHP-6-ITERM-2390" significance="normal"><primary>USING xxxxxx</primary><secondary>JOIN xxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-6-ITERM-2386" significance="normal"><primary>xxxxxx</primary><secondary>xxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-6-ITERM-2387" significance="normal"><primary>DELETE xxxxxxxxx</primary><secondary>JOIN xxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-6-ITERM-2388" significance="normal"><primary>UPDATE xxxxxxxxx</primary><secondary>JOIN xxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-6-ITERM-2389" significance="normal"><primary>SELECT xxxxxxxxx</primary><secondary>JOIN xxxxxx</secondary></indexterm> -Txx <literal moreinfo="none">JOIN</literal> xxxxxx xx xxxxxx xx xxxxxxx SQL xxxxxxxxxx (<literal moreinfo="none">SELECT</literal>, <literal moreinfo="none">UPDATE</literal>, <literal moreinfo="none">DELETE</literal>) xxx xx xxxxxxx: xxxxxxxxx, xx xx xxxxxx xxxx xx xxx xxx xxxxx xx xxx xxxxxxx. Uxx <literal moreinfo="none">JOIN</literal> xx xxxx xxxxxx xxxxxxxx xxxxx xx xxxxxxx xxxx xxxxxx xxxx xxx xxxxxxxx xx xxxxxxxxx, xxxxxxxx, xx xxxxxxxx xxxx. Txx <literal moreinfo="none">JOIN</literal> xxxxxx xx xxxxxxx xx xxx xxxxx xx xxx xxxxxxxx xxxxxxxxx xxxx xxxxxxxxx xxx xxxxxx xx xx xxxxxxxxxx. Txxx xxxxxxxxx xxx xxxx xx xxxx xxx xxxxxx xxxxx xx xxx xxxxxxx xx xxx <literal moreinfo="none">WHERE</literal> xxxxxx.</para> - <para>Txx <literal moreinfo="none">ON</literal> xxxxxxx xx xxxx xx xxxxxxxx xxx xxxx xx xxxxxxx xx xxxxx xxx xxxxxx xxx xx xx xxxxxx (xxxxxxxxx xxxx xxx xxxxxx-xxxx xxxxxxxx). -Ax xx xxxxxxxxxxx xxxxxx, xxx <literal moreinfo="none">USING</literal> xxxxxxx xxx xx xxxxx xxxxx xxxx x xxxxx-xxxxxxxxx xxxx xx xxxxxxx xxxx xxxxxx xxxx xx xxxxxx, xxxxxxxxx xxxxxx xxxxxxxxxxx. Txx xxxxxxx xxxx xxxxx xx xxxx xxxxx xxxx xx xxxxxx. Tx xxxxxxx xxxxxxxxxxx, xxx xxx xxxx xxxxxxx xxxxx xxxxx xx MxSQL (xxx xxx xxxx xxxxxxxxxx xx xxxx xxxxxx xxxxxxxxxx).</para> - <para>Hxxx xx xx xxxxxxx xx x <literal moreinfo="none">JOIN</literal>:</para> - <programlisting format="linespecific">SELECT CONCAT(xxxx_xxxxx, SPACE(d), xxxx_xxxx) AS Nxxx -FROM xxxxxxxxx -JOIN xxxxxxxx ON xxxxxxxxx.xxxxxx_xx = xxxxxxxx.xxxxxx_xx -WHERE xxxxxxxx = 'Nxx Oxxxxxx';</programlisting> - <para><indexterm id="mysqlian-CHP-6-ITERM-2391" significance="normal"><primary>WHERE xxxxxx</primary><secondary>JOIN xxxxxx xxx</secondary></indexterm> -Txxx xxxxxxxxx xxxxxxxx x xxxx xx xxxxxxxxx xxxx xxx <emphasis>xxxxxxxxx</emphasis> xxxxx xxx xxx xxxxxxx xx xxx Nxx Oxxxxxx xxxxxx xxxxxx. Txx xxxxxxx xxxxx xxxxxx xxxx xxx <literal moreinfo="none">JOIN</literal> xx xxxx xxx <emphasis>xxxxxxxxx</emphasis> xxxxx xxxxx’x xxxxxxxx Nxx Oxxxxxx xx xxxx xx xxx xxxxxx; xxxx xxxxx xxxx xxx x xxxxxxx xxxxxxxxxx. Txx <emphasis>xxxxxxxx</emphasis> xxxxx xx xxxx xx xxxxxxxx xxx xxxxxx xxxx xxx xxx <literal moreinfo="none">WHERE</literal> xxxxxx. Txx <emphasis>xxxxxxxx</emphasis> xxxxxx xx x xxxxxx xx xxx <emphasis>xxxxxxxx</emphasis> xxxxx. Nxxxxxx xx xxxxxxxx xxxxxxxxx xxxx xxx <emphasis>xxxxxxxx</emphasis> xxxxx xxxx. Sxxxx xxx xxxxxx xxxxxxxxxxxxxx xxxxxx xxx <emphasis>xxxxxxxx</emphasis> xx <replaceable>xxxxxx_xx</replaceable> xx xxxx xxxxxx, xxx <literal moreinfo="none">USING</literal> xxxxxxx xxx xx xxxx xxxxxxx xx <literal moreinfo="none">ON</literal> xx xxxxxx xxx xxxx xxxx:</para> - <programlisting format="linespecific">SELECT CONCAT(xxxx_xxxxx, SPACE(d), xxxx_xxxx) AS Nxxx -FROM xxxxxxxxx -JOIN xxxxxxxx USING (xxxxxx_xx) -WHERE xxxxxxxx = 'Nxx Oxxxxxx';</programlisting> - <para><indexterm id="mysqlian-CHP-6-ITERM-2393" significance="normal"><primary>USING xxxxxx</primary><secondary>JOIN xxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-6-ITERM-2392" significance="normal"><primary>NATURAL xxxxxxx (JOIN xxxxxx)</primary></indexterm> -Txxx xxxx xxxx xxx xxx xxxxxx xx xxx <replaceable>xxxxxx_xx</replaceable> xxxxxx xx xxxx xxxxx. Sxxxx xxxxx xxxxxx xxxx xxxx xxx xxxxxx xx xxxxxx, xx xx’x xxx xxxxxxxxx xx xxxxxxx xxxx xxx; xxxxxxx, xxx xxx xxx xxx <literal moreinfo="none">NATURAL</literal> xxxxxxx. Hxxx xx xxx xxxx xxxxxxxxx xxxx xxxx xxxxxx: -</para> - <programlisting format="linespecific">SELECT CONCAT(xxxx_xxxxx, SPACE(d), xxxx_xxxx) AS Nxxx -FROM xxxxxxxxx -NATURAL JOIN xxxxxxxx -WHERE xxxxxxxx = 'Nxx Oxxxxxx';</programlisting> - <para>Nxxxxx xxxx xxx <literal moreinfo="none">USING</literal> xxxxxxx xxx xxx xxxxxx xxx xxxxxxx xxxx xxxxxxx. MxSQL xxxx xxxxxx xxxx <replaceable>xxxxxx_xx</replaceable> xx xxxx xxxxxxx xxx xxx xxxx xxx xxxx xxxxxxxxx xxxx xxx xxxxxx xx xxxx. Txx xxxxxxx xx xxxx SQL xxxxxxxxx xxxx xx xxx xxxx xx xxx xxx xxxxxxxx xxx.</para> - <para><indexterm id="mysqlian-CHP-6-ITERM-2394" significance="normal"><primary>LEFT xxxxxxx (JOIN xxxxxx)</primary></indexterm><indexterm id="mysqlian-CHP-6-ITERM-2395" significance="normal"><primary>xxxxxx</primary><secondary>xxxxxxx</secondary></indexterm> -Wxxx xxxxxxx xxx xxxxxx xx x xxxxxx xxxx, xx xxxxx xx xxx xxxxxxxx xxxxxxxx, xx xx xxxx xx xxx xxxxxx xxxxx xxxxx xxxx xxxx xxx xxxxx xxxxx, xx xxx xxxx xx xxxxxxxxx xxx xxx xxxxxxxxx xxxx. Fxx xxxxxxx, xx xxx <replaceable>xxxxxxxx</replaceable> xxxxx xxxxx x xxxxxx xxxxxx xxx xxxxx xxxxx xxx xx xxxxxxxxx xxxxxx xx xxx <replaceable>xxxxxxxxx</replaceable> xxxxx xxxxxxxxx xx xxxx xxxxxx, xxx xxxxxxx xxx xxxxx xxx xxxx x xxx xxx xxxx xxxxxxxxxx xxxxx xxxxxx xxxxxx. Sxxxxxxxx, xxxxxx, xx xxx xx xxxxxx xx xxxxxxx x xxxxxx xxxxxxxxxx. Ix xxx xxxxxxx, xxxx xxxxx xxxx xx xxxx xxxxxxxxx’x xxxxx xxxx xxx xxxx: xxxxxx xxx xx xxxx xxxxxxxxx xxx xxxxxx xxxx xxx xxxxx <replaceable>xxxxxx_xx</replaceable>, xx xxxx xxxxxxxx xxxxxxx xxx xxxxxxx xxxx xxx <replaceable>xxxxxxxxx</replaceable> xxxxx. Cxxxxxxxxx, xx xx xxxxxxxx xxx x <replaceable>xxxxxx_xx</replaceable> xxxxx xxxx xxxx xxx xxxxx xx xxx <replaceable>xxxxxxxx</replaceable> xxxxx, xx xxxxx xxxx xx xxx xx xx xxx xxxxxxx xx xxxx xx xxx xxxxxxx xxx xxxx.</para> - <para>Tx xxxx x xxx xxx xxxx xxxxxxxx xxxxxxxxx xxxxx xxxx, xxx <literal moreinfo="none">LEFT</literal> xxxxxxx xxx xx xxxxx xx xxxxx xx xxx <literal moreinfo="none">JOIN</literal> xxxxxxx xx xxxxxxxx xxxx xxxxxxx xxxx xxx xxxxx xxxxx xxxxxx xx xxx xxxx xxx xx xx xxxxxxxxx xxxxxxxxxx xx xxxxxxx xxxxx xx x xxxxxxxx xxx xx xxx xxxxx xx xxx xxxxx: -</para> - <programlisting format="linespecific">SELECT CONCAT(xxxx_xxxxx, SPACE(d), xxxx_xxxx) AS Nxxx, -xxxxxxxx AS Bxxxxx -FROM xxxxxxxxx -LEFT JOIN xxxxxxxx USING (xxxxxx_xx) -ORDER BY xxxxxxxx;</programlisting> - <para>Txxx SQL xxxxxxxxx xxxxx x xxx xxx xxxx xxxxxxxx xxxxx xxxx xxx xxxxxxxx’x xxxxxxxx. Ix x xxx xxx xx xxxxxxxx xxx xxxxxx x NULL xxxxx xxx xxx <emphasis>xxxxxx_xx</emphasis>, xx x xxxxxx xxxxxx xxxx xx xxx xx xxx <emphasis>xxxxxxxx</emphasis> xxxxx, xxx xxxxxxxx xxxx xxxx xxxxx xx xxxxxxxxx xxx xxxx xxx xxxxxx xxxx xxxxxxx xx NULL. Axxxx, xxxx xxx xx xxxxxx xxx xxxxxxxx xxxxxx xx xxxxxxxxxxxxxxx xx xxx xxxx xxxxxxx xxxxxxx xxxxxx.</para> - <para><indexterm id="mysqlian-CHP-6-ITERM-2396" significance="normal"><primary>RIGHT JOIN xxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-6-ITERM-2397" significance="normal"><primary>LEFT JOIN xxxxxx</primary></indexterm> -Ix xxxxxxxx xx <literal moreinfo="none">LEFT JOIN</literal>, xxx <literal moreinfo="none">RIGHT JOIN</literal> xxxxxx xxxxxxxx xxx xxxxxxxx xxxxxxx xxxx xxx xxxxx xx xxx xxxxx xxxx xx xxxxx xxx xx xxxxxxx xxxx xxx xxxxx xx xxx xxxx. Hxxx xx xx xxxxxxx xxxxx x <literal moreinfo="none">RIGHT JOIN</literal>: -</para> - <programlisting format="linespecific">SELECT CONCAT(xxxx_xxxxx, SPACE(d), xxxx_xxxx) AS Nxxx, -xxxxxxxx AS Bxxxxx -FROM xxxxxxxxx -RIGHT JOIN xxxxxxxx USING (xxxxxx_xx) -ORDER BY xxxxxxxx;</programlisting> - <para><indexterm id="mysqlian-CHP-6-ITERM-2399" significance="normal"><primary>OUTER xxxxxxx (JOIN xxxxxx)</primary></indexterm> -Txxx xxxxxxx xxxxxxxx xxxxxxxx xxx xxxxx xxxxx xxx xx xxxxxxxx xxxxxxxx xxxxxxx. Fxx xxxx xxx <literal moreinfo="none">LEFT</literal> xxx <literal moreinfo="none">RIGHT JOIN</literal> xxxxxxx, xxx <literal moreinfo="none">OUTER</literal> xxxxxxx xx xxxxxxxx xxx xxx xx xxxxxx xx xxx xxxxxxx. Ix’x xxxx x xxxxxx xx xxxxxxxxxx xxx xxxxxxxxxxxxx xxxx xxxxx xxxxxxxx xxxxxxx. -</para> - <para><indexterm id="mysqlian-CHP-6-ITERM-2400" significance="normal"><primary>OJ xxxxxxx (JOIN xxxxxx)</primary></indexterm><indexterm id="mysqlian-CHP-6-ITERM-2401" significance="normal"><primary>CROSS xxxxxxx (JOIN xxxxxx)</primary></indexterm><indexterm id="mysqlian-CHP-6-ITERM-2402" significance="normal"><primary>INNER xxxxxxx (JOIN xxxxxx)</primary></indexterm><indexterm id="mysqlian-CHP-6-ITERM-2403" significance="normal"><primary>STRAIGHT_JOIN xxxxxxx</primary><secondary>JOIN xxxxxx</secondary></indexterm> -Txx <literal moreinfo="none">JOIN</literal> xxxxxx xxx x xxx xxxxx xxxxxxx. Txx <literal moreinfo="none">STRAIGHT_JOIN</literal> xxxxxxx xxxxxxxxxx xxxxxxxxx MxSQL xx xxxx xxx xxxxxx xx xxxxxx, xxxx xxxx xx xxxxx. Txx xxxxxxxx <literal moreinfo="none">INNER</literal> xxx <literal moreinfo="none">CROSS</literal> xxxx xx xxxxxx xx xxx xxxxxxx, xx xx xxxxxx xxxxxxxx xx MxSQL. Txxx xxxxxx xx xxxx xx xxxxxxxxxxx xxxx xxx xxxxxxxx <literal moreinfo="none">LEFT</literal>, <literal moreinfo="none">RIGHT</literal>, xx <literal moreinfo="none">NATURAL</literal>. Txx xxxxxx xxxxxxxx xxxx xxx <literal moreinfo="none">OJ</literal> xxxxxxx xx xxxxxxxx xxx xxxxxxxxxxxxx xxxx ODBC. -</para> - <para><indexterm id="mysqlian-CHP-6-ITERM-2404" significance="normal"><primary>xxxxxxx</primary><secondary>AS xxxxxxx xxx</secondary></indexterm><indexterm id="mysqlian-CHP-6-ITERM-2405" significance="normal"><primary>AS xxxxxxx</primary><secondary>JOIN xxxxxx</secondary></indexterm> -Yxx xxx xxx xxx <literal moreinfo="none">AS</literal> xxxxxxx xx xxxxxxxxx xxxxxxx xxx xxxxxx. Sxxxxxx xxxxxxxx xx xxxxxxxx xxxx xxxxxxxx xxxxxxx xx xxx xxxxxxxxxxx xx xxxx xxxxxx. -</para> - </refsect1> - <refsect1 id="ch06-13-fm2xml"> - <title>Ixxxx Hxxxx - SELECT...|UPDATE...|DELETE... -xxxxx...JOIN xxxxx -USE {INDEX|KEY} [{FOR {JOIN|ORDER BY|GROUP BY}] ([xxxxx[,...]]) | -FORCE {INDEX|KEY} [{FOR {JOIN|ORDER BY|GROUP BY}] (xxxxx[,...]) | -IGNORE {INDEX|KEY} [{FOR {JOIN|ORDER BY|GROUP BY}] (xxxxx[,...]) - FORCE INDEX xxxxxx (JOIN xxxxxx)IGNORE INDEX xxxxxx (JOIN xxxxxx)USE INDEX xxxxxx (JOIN xxxxxx)xxxxxxxxxxxxx xxxxxx xxx -Wxxx MxSQL xxxxx xxx xxxxxxxx xxxxxx, xxxxxxx xxx xx xxxx xx xxxxxxxx xxx xxxxx xx xxx SQL xxxxxxxxxx. Uxx xxx EXPLAIN xxxxxxxxx xx xxxxxxx x xxxxxx SQL xxxxxxxxx xx xxx xxxxx xxxxxxx xxx xxxxx xxxx xxx xx xxxxx xxxxx, xx xxxx xx xxxxxxx xxxxx xxx xxxxx xxxxx xxxxxxxxx xxxx xxxx’x xxxxx xxxx xx xxx xxxx. MxSQL xxx xxx xxxxxx xxxxx xxx xxxx xxxxx xxxxxxxxx. Tx xxxx xx MxSQL xxxxx xxxxx xx xxxxxx xxxxx xxxxx, xxx xxxxxxx xxxxx xxxxx xx xxxxxx, xx xxxx xx xxxxx xx xx xxx x xxxxxxxxxx xxxxx, xxx xxx xxxxxx xxxxx xxxxx. - Tx xxxx MxSQL xx xxx x xxxxxxxxxx xxxxx, xxx xxx USE INDEX xxxxxx xx xxx JOIN xxxxx xxxx xxx xxxxx xx xxx xxxxxxx xx xxx xx x xxxxx-xxxxxxxxx xxxx, xxxxxx xxxxxxxxxxx. Tx xxxxxxx -xx xxxxxxx xx xxxx xxxxxx, xxx’x xxxxx xxxx x JOIN xxxxxxxxx xxxx xxx xxxxxxx xx x xxxxxxxxxx xxxxxx: - SELECT xxxxxx_xxxx, COUNT(*) AS xxxxxxx -FROM xxxx_xxx -JOIN xxxxxxx USING(xxxxxx_xx) -WHERE xxxxxx_xxxx = d -AND DATEDIFF(NOW(), xxxxxxx_xxxx) < dd -GROUP BY xxxxxx_xx - Txxx xxxxxxxxx xxxxxxxxx x xxxx xx xxxxxxx xxxxxxx xxx x xxxxx xx xxx xxxxxx xx xxxxxxx xxxxxxx xxxx xxxx xxxx xxxxxxx xx xxx xxxx xxxxxx xxxx. Ix xxxx xxx xxxxx xx xxxxxxx xxxx xxxx_xxx xxx xxx xxxxxx xxxx xxxx xxx xxxxxxx xxxxx. Tx xxxxx xxx xxxxxxxxxxx xx xxx xxxxxxxxx, xxx’x xxxxxxx xxx xxxxxxx xxx xxx xxxx_xxx xxxxx: - SHOW INDEXES FROM xxxx_xxx \G - -*************************** d. xxx *************************** - Txxxx: xxxx_xxx - Nxx_xxxxxx: d - Kxx_xxxx: PRIMARY -Sxx_xx_xxxxx: d - Cxxxxx_xxxx: xx_xx - Cxxxxxxxx: A - Cxxxxxxxxxx: ddd - Sxx_xxxx: NULL - Pxxxxx: NULL - Nxxx: - Ixxxx_xxxx: BTREE - Cxxxxxx: -*************************** d. xxx *************************** - Txxxx: xxxx_xxx - Nxx_xxxxxx: d - Kxx_xxxx: xxxxxxx_xxxx_xxx -Sxx_xx_xxxxx: d - Cxxxxx_xxxx: xx_xx - Cxxxxxxxx: A - Cxxxxxxxxxx: dddddd - Sxx_xxxx: NULL - Pxxxxx: NULL - Nxxx: YES - Ixxxx_xxxx: BTREE - Cxxxxxx: -*************************** d. xxx *************************** - Txxxx: xxxx_xxx - Nxx_xxxxxx: d - Kxx_xxxx: xxxxxxx_xxxx_xxx -Sxx_xx_xxxxx: d - Cxxxxx_xxxx: xxxxxxx_xxxx - Cxxxxxxxx: A - Cxxxxxxxxxx: dddddd - Sxx_xxxx: NULL - Pxxxxx: NULL - Nxxx: - Ixxxx_xxxx: BTREE - Cxxxxxx: - Txx xxxxxxx xxxx xx xxxx xxx xxxxx xxxx_xxx xxx xxx xxxxxxx: x xxxxxxx xxx xxxxx xx xxx xx_xx (xxx xxx d) xxx x xxxxxx xxx xxxxxx xxxxxxx_xxxx_xxx (xxx xxx Kxx_xxxx xxxxx xx xxxx d xxx d) xxxxx xx xx_xx xxx xxxxxxx_xxxx xxxxxxxx. Tx xxxxxxx xx MxSQL xx xxx JOIN xxxxxxxxx xxxx xxxx xxxxxx xxxxx xxxxxx xx xxxx, xxxxx xxx xxxxxxxxx xxxx xx: - SELECT xxxxxx_xxxx, COUNT(*) AS xxxxxxx -FROM xxxx_xxx -JOIN xxxxxxx -USE INDEX FOR JOIN (xxxxxxx_xxxx_xxx) -USING(xxxxxx_xx) -WHERE xxxxxx_xxxx = d -AND DATEDIFF(NOW(), xxxxxxx_xxxx) < dd -GROUP BY xxxxxx_xx; - Txx FORCE INDEX xxxxxx xxxxxxxxx MxSQL xx xxxxxxx xx xxxxx xxx xxxxxx xx xxx xxxxxxxxx xxxxx; xxxxxx, xxxxxxx, xxxx xx xxxx xx xxx xxxxxxxxx xxxxxxx xxxx xx xxxxxxxxx. - SELECT xxxxxx_xxxx, COUNT(*) AS xxxxxxx -FROM xxxx_xxx -JOIN xxxxxxx -FORCE INDEX FOR JOIN (xxxxxxx_xxxx_xxx) -USING(xxxxxx_xx) -WHERE xxxxxx_xxxx = d -AND DATEDIFF(NOW(), xxxxxxx_xxxx) < dd -GROUP BY xxxxxx_xx; - Tx xxxxxxxx MxSQL xxx xx xxx xxxxxxx xxxxxxx, xxxx xxxx xxxx xxx IGNORE INDEX xxxxxx xx xxx xxxx xxxxxx: - SELECT xxxxxx_xxxx, COUNT(*) AS xxxxxxx -FROM xxxx_xxx -JOIN xxxxxxx -IGNORE INDEX FOR JOIN (xxxxxxx_xxxx_xxx) -USING(xxxxxx_xx) -WHERE xxxxxx_xxxx = d -AND DATEDIFF(NOW(), xxxxxxx_xxxx) < dd -GROUP BY xxxxxx_xx; - Ix’x xxxx xxxxxxxxx xx xxx xxxxxxxxxxxx xx xxxxx xxxxx xxxxx xxxx xxxxxxx, xxxxxxxxx xxxx xx x xxxxx. - - - - - - - - LIMIT - - - LIMIT - - - - ... -LIMIT xxxxx | -LIMIT [xxxxxx,] xxxxx | -LIMIT xxxxx OFFSET xxxxxx - - - - <para><indexterm id="mysqlian-CHP-6-ITERM-2543" significance="normal"><primary>xxxx</primary><secondary>xxxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-6-ITERM-2544" significance="normal"><primary>LIMIT xxxxxx</primary><secondary>SELECT xxxxxxxxx</secondary></indexterm> -Uxx xxx <literal moreinfo="none">LIMIT</literal> xxxxxx xx xxxxx xxx xxxxxx xx xxxx xxx xxxxxx xxxx xxxxxxx xx xxxxxxx xxx xxxxx SQL xxxxxxxxx. Fxx xxx <literal moreinfo="none">SELECT</literal> xxxxxxxxx, xx xxxxxx xxx xxxxxx xx xxxx xxxxxxxx xx xxx xxxxxxx xxx. Ix xx <literal moreinfo="none">UPDATE</literal> xxxxxxxxx, xx xxxxxx xxx xxxxxx xx xxxx xxxxxxx. Wxxx xxx <literal moreinfo="none">DELETE</literal> xxxxxxxxx, xx xxxxxx xxx xxxxxx xx xxxx xxxxxxx. Txx <literal moreinfo="none">DELETE</literal> xxxxxxxxx xxxxxxx xxxx xxx xxxxx xxxxxx xxxxx, xxxxx xxx xxxxx xxxxxxxxxx xxxxx xxx xxxxx. -</para> - <para>Txx <literal moreinfo="none">LIMIT</literal> xxxxxx xxxxxxx xxxx xxxxxxx xxxxxx, xxx xxxxxxxxxxx xx xxxxxxxxx. Nxx xxxx xx xxxxxx x xxxxxxxx xxxxx. Txx xxxx xxxxxxxxxxxxxxx xxxxxx xx xxxxxxxx xxx xxxxxx xx xxxx xx xx xxxxxxx xxx xxxxxxx xxx xxxxx xx xx xxxxxxxxx, xxxx xxxx:</para> - <programlisting format="linespecific">SELECT * FROM xxxxxxxxx -LIMIT d;</programlisting> - <para> -Tx xxxxx xxxxxxx xxxx xxxxx x xxxxxxxx xxxxxx xx xxxxxxx, xx xxxxxx xxx xx xxxxx, xxxxx xxx xxxxxx xxx xxx xxxxx xxx xx d. Txx xxxxxxxx xxxxxxxxxx xxxx. Oxx xxxxx xxx xxxxxx xx xxx xxxxxx, xxxxxxxx xx x xxxxx xxx xxxx xxx xxxxxxx xxxxx xx xxxx xx xxxxxxx. Txx xxxxx xxxxxxxxx xxx xxxxx xxxxxxxx xx xxx <literal moreinfo="none">OFFSET</literal> xxxxxxx, xxxxxxxx xx xxx xxxxxx xx xxx xxxxxx. Hxxx xx xx xxxxxxx xx xxx xxxxx xxxxxxxxx, xxxxx xx xxxxxxxxx: -<indexterm id="mysqlian-CHP-6-ITERM-2545" significance="normal"><primary>OFFSET xxxxxxx (SELECT)</primary></indexterm> -</para> - <programlisting format="linespecific">SELECT * FROM xxxxxxxxx -LIMIT dd, d;</programlisting> - <para>Ix xxxx xxxxxxx, xxxxx xxx ddxx xxxxxx xx xxxxxxx, xxx xxxx d xxxxxxx xxxx xx xxxxxxxx—xx xxxxx xxxxx, xxxxxxx dd xxxxxxx dd xxx xxxxxxxx. Txx xxxxxx xxx xxxxx xxx xxx <literal moreinfo="none">LIMIT</literal> xxxxxx xxx xxxxx xx xxx xxxx xx xxx xxxxxxx xxx, xxx xxxxxxxxxxx xx xxx xxxx xx xxx xxxxxx. Sx xxx xxxxxx xx xxx xxxxxx xx xxxxxxx xx xxx xxxxx xx xxx xxxx xxxxxxxxx xxxx xxx xxxxxx xxxxx xx xxxxxxx, xxxx xx xxx <literal moreinfo="none">WHERE</literal> xxxxxx xxx xxx <literal moreinfo="none">ORDER BY</literal> xxxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch06-77010"> - <refmeta> - <refentrytitle>LOAD DATA INFILE</refentrytitle> - </refmeta> - <refnamediv> - <refname>LOAD DATA INFILE</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">LOAD DATA [LOW_PRIORITY|CONCURRENT] [LOCAL] INFILE '<replaceable>/xxxx/xxxx</replaceable>' - - [REPLACE|IGNORE] INTO TABLE <replaceable>xxxxx</replaceable> - - [CHARACTER SET <replaceable>xxxxxxxxx_xxx</replaceable>] - - [FIELDS [TERMINATED BY '<replaceable>xxxxxxxxx</replaceable>'] [[OPTIONALLY] ENCLOSED BY '<replaceable>xxxxxxxxx</replaceable>'] [ESCAPED BY '<replaceable>xxxxxxxxx</replaceable>']] - - [LINES [STARTING BY '<replaceable>xxxxxx</replaceable>'] [TERMINATED BY '<replaceable>xxxxxx</replaceable>']] - - [IGNORE <replaceable>xxxxx</replaceable> LINES] - - [(<replaceable>xxxxxx</replaceable>, . . . )] - - [SET <replaceable>xxxxxx</replaceable> = <replaceable>xxxxxxxxxx</replaceable>,...]</synopsis> - </refsynopsisdiv> - <refsect1 id="ch06-15-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-6-ITERM-2412" significance="normal"><primary>LOAD DATA INFILE xxxxxxxxx</primary><secondary>xxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-6-ITERM-2413" significance="normal"><primary>LOCAL xxxxxxx</primary><secondary>LOAD DATA INFILE xxxxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-6-ITERM-2414" significance="normal"><primary>xxxx</primary><secondary>xxxxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-6-ITERM-2415" significance="normal"><primary>xxxxxxxxx</primary><secondary>xxxx</secondary></indexterm> -Yxx xxx xxx xxxx xxxxxxxxx xx xxxxxx xxxxxxxxx xxxx xxxx x xxxx xxxx xxxx x xxxxx xx MxSQL. Txx xxxx xxx xx xxxxxx xx xxx xxxxxx xx xx xxx xxxxxx. -</para> - <para>Fxx x xxxx xx xxx xxxxxx, xx xxx xxx x xxxx xxxxxxxx (xxxx xx <filename moreinfo="none">xxxxx.xxx</filename>) xx x xxxxxxxx xxxx (xxxx xx <filename moreinfo="none">../</filename>), xxx xxxx xx xxxxx xxxxxxxx xx xxx xxxxxxxxx xx xxx xxxxxxxx xxxx xxxxx xxx xxxx xx xx xx xxxxxxxx. Ix xxx xxxx xx xxx xxxxxxx xx xxx xxxxxxxxx’x xxxxxxxx, xxx xxxx xxxxxxxxxxx xxxx xx xxx xx xx xxx xx xxxx xxx xxx xxxxxxxxxx xxxxx.</para> - <para>Fxx x xxxx xx xxx xxxxxx, xxx <literal moreinfo="none">LOCAL</literal> xxxxxxx xxxx xx xxxxx. Txxx xxxxxxx xxxx xx xxxxxxx xx xxxx xxx xxxxxx xxx xxx xxxxxx xx xxxxx xxx xxxxx-xx xxxxxx xx <literal moreinfo="none">--xxxxx-xxxxxx=d</literal>. Sxx <xref linkend="mysqlian-CHP-16"/> xxx xxxx xxxxxxxxxxx xx xxxxxx xxx xxxxxx xxxxxxxx.</para> - <para><indexterm id="mysqlian-CHP-6-ITERM-2422a" significance="normal"><primary>REPLACE xxxxxxx</primary><secondary>LOAD DATA INFILE xxxxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-6-ITERM-2423" significance="normal"><primary>xxxxxx</primary><secondary>LOAD DATA INFILE xxxxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-6-ITERM-2424" significance="normal"><primary>IGNORE xxxxxxx</primary><secondary>LOAD DATA INFILE xxxxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-6-ITERM-2425" significance="normal"><primary>SHOW WARNINGS xxxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-6-ITERM-2426" significance="normal"><primary>xxxxxxxx, xxxxxxxxxx</primary></indexterm> -Ix x xxxx xxxx xxxx xxxxxxxx xxxx xx xxxx xxxxxxxxxxx xxxx xx xxx xxxx xx xxx xxxxx xxxx xxxxx xx’x xxxxx xxxxxxxx, xx xxxxx xxxx xxxxx xxx xxx xxxxxx xxx xxx xxxxxxx xxxxxxxxx xxx xxxxxxxxx xxxx. Dxxxxxxxx xxxx xxx xxxxx xxxx xxxx xxx xxxx xxxxxx xxx xxx xxxxxxx xx xxxxx xxxxxx xxxxxxx. Tx xxxxxxxx xxx xxxxxx xx xxxxxx xxx xxxxxx xxxxxxxxxxx xxx xx xxxxxxxx xxxxxxx xxxxx xxxx, xxx xxx <literal moreinfo="none">IGNORE</literal> xxxxxxx. Uxx xxx <literal moreinfo="none">SHOW WARNINGS</literal> xxxxxxxxx xx xxxxxxxx xxx xxxxx xxxxxxxx xxxx xxxxx xxxx xxxx xxxxxxxxx. Tx xxxxxxxx xxx xxxxxx xx xxxxxxx xxx xxxxxxxxx xxxx xxxx xxx xxxx xxxxx xxxxxxxx, xxx xxx <literal moreinfo="none">REPLACE</literal> xxxxxxx. Txxx xxxx xxxxxxxxxx xxxxxxx xxx xxxxxx xx xxx xxxxxxx xx xxx xxx, xxxx xxxx xxx xxx xxxxxx xxxxxxxx xx xxxx xxx x xxxxxx xxx xxx xxxxxxxx xxx xxxx. -</para> - <para>Hxxx xx x xxxxx xxxxxxx xx <literal moreinfo="none">LOAD DATA INFILE</literal>:</para> - <programlisting format="linespecific">LOAD DATA INFILE '/xxx/xxxxxxx.xxx' -INTO TABLE xxxxxxx -FIELDS TERMINATED BY '|' -LINES TERMINATED BY '\x';</programlisting> - <para><indexterm id="mysqlian-CHP-6-ITERM-2416" significance="normal"><primary>xxxxxxxx xxxxxx (\\\\x)</primary></indexterm><indexterm id="mysqlian-CHP-6-ITERM-2417" significance="normal"><primary>Wxxxxxx xxxxxxxxxxx</primary><secondary>xxxxxxx/xxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-6-ITERM-2418" significance="normal"><primary>xxxxxxxx xxx (|)</primary></indexterm><indexterm id="mysqlian-CHP-6-ITERM-2419" significance="normal"><primary>xxxxxxx xxxxxxxxx (\\\\x)</primary></indexterm><indexterm id="mysqlian-CHP-6-ITERM-2420" significance="normal"><primary>Uxxx xxxxxxxxxxx</primary><secondary>xxx-xxxx xxxx</secondary></indexterm><indexterm id="mysqlian-CHP-6-ITERM-2421" significance="normal"><primary>LINES STARTED BY xxxxxx (LOAD DATA INFILE)</primary></indexterm> -Ix xxxx xxxxxxx, xxx xxxx xx xx xxxxxx xx xx xxx <emphasis>/xxx</emphasis> xxxxxxxxx xxx xx xxxxxx <emphasis>xxxxxxx.xxx</emphasis>. Txx xxxx xxxxxxxxx xx xxx xxxx xx xx xx xxxxxxxx xxxx xxx <emphasis>xxxxxxx</emphasis> xxxxx xx xxx xxxxxxx xxxxxxxx xx xxx. Exxx xxxxx xx xxx xxxx xxxx xx xxxxxxxxxx xxxx x xxxxxxxx xxx xxxxxxxxx. Txx xxxx xx xxxx xx xxx xxxx xxxx xxx xx xxxxxxxx xxxxx. Txxx xxx xxxxxxxxx xx x xxxxxxx xxxxxxxxx (<literal moreinfo="none">\x</literal>). Txxx xx xxx xxxxxxx xxx x Uxxx xxxx xxxx. Fxx DOS xx Wxxxxxx xxxxxxx, xxxxx xxx xxxxxxx xxxxxxxxxx xxxx <literal moreinfo="none">\x\x</literal>, xxxxxxxxxx x xxxxxxx xxx x xxxxxx xxxxxxxxx. Ix xxx xxxx xxxxx xxxx x xxxxxxx xxxxxxxxx, xxx xxx xxxxxxxx xxxx xxxxxxxxx xxxx xxx <literal moreinfo="none">LINES STARTED BY</literal> xxxxxx. -</para> - <para><indexterm id="mysqlian-CHP-6-ITERM-2422" significance="normal"><primary>REPLACE xxxx</primary><secondary>LOAD DATA INFILE xxxxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-6-ITERM-2427" significance="normal"><primary>ESCAPED BY xxxxxx</primary><secondary>LOAD DATA INFILE xxxxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-6-ITERM-2428" significance="normal"><primary>OPTIONALLY xxxxxxx (LOAD DATA INFILE)</primary></indexterm><indexterm id="mysqlian-CHP-6-ITERM-2429" significance="normal"><primary>ENCLOSED BY xxxxxx (LOAD DATA INFILE)</primary></indexterm> -Txxx xxxxxxxxx xxxx xxxxxx xxx <literal moreinfo="none">ENCLOSED BY</literal> xxxxxx xx xxxxxxx x xxxxxxxxx xxxx xxx xxxxx xxx xxxxxxxxx x xxxxx, xxxx xx x xxxxxxxxx xxxx. Yxx xxx xxx xxx <literal moreinfo="none">OPTIONALLY</literal> xxxxxxx xx xxxxxxxx xxxx xxx xxxxxxxxx xx xxxx xxx xxxxxxxxx xxxxxxx xxxxxxxxxx xxxxxx xxxx, xxx xxxxxxxx xxx xxxxxxx xxxx. Nxxxxxx xxxxxx xxx xxxx xxxxxxx xx xxxx xxx xxxxx xxxxxxxxx. Fxx xxxxxxx, xx xxx xxxxxxxx xxxxxxxxx xx xx xxxxxxxxxx (xxxxxx xxxxx), x xxxxxxx xxxxx xxx x xxxxx xxx xx xxxxx xx <literal moreinfo="none">'dddd'</literal> xx <literal moreinfo="none">dddd</literal>, xx MxSQL xxxxxx xxxxxx xxx xxxxxx xxxx. -</para> - <para>Txx <literal moreinfo="none">ESCAPED BY</literal> xxxxxx xxxxxxxxx xxx xxxxxxxxx xxxx xx xxx xxxxx xxxx xx xxxxxx xxxxxxx xxxxxxxxxx. Txx xxxxxxxxx (<literal moreinfo="none">\</literal>) xx xxx xxxxxxx xxxxx.</para> - <para><indexterm id="mysqlian-CHP-6-ITERM-2430" significance="normal"><primary>IGNORE...LINES xxxxxx (LOAD DATA INFILE)</primary></indexterm> -Sxxx xxxx xxxx xxxxx xxxxxxx xxx xx xxxx xxxxx xx xxxxxx xxxxxxxx xxxx xxxxxx xxx xx xxxxxxxx. Tx xxxx xxxxx xxxxxxx xxxxx xxxx xxx xxxxxx, xxx xxx <literal moreinfo="none">IGNORE</literal> <replaceable>xxxxx</replaceable> <literal moreinfo="none">LINES</literal> xxxxxx, xxxxx <replaceable>xxxxx</replaceable> xx xxx xxxxxx xx xxxxx xx xxxxxx. -</para> - <para><indexterm id="mysqlian-CHP-6-ITERM-2431" significance="normal"><primary>xxxxxxx</primary><secondary>xxxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-6-ITERM-2432" significance="normal"><primary>xxxxxxxx</primary><secondary>xxxxxxx</secondary></indexterm> -Fxx xxxx xxxx xxxx xxxxx, xxx xxxxxx xx xxxx xxx xxx xx xxx xxxx xxxxx xx xxx xxxxxxx xx xxx xxxxxxxxx xxxxx. Sxxxxxxxx xxxxx xxx xxxxx xxxxxx xx xxx xxxx xxxx xxxx xx xxx xxxxx. Fxx xxxx xx xxxxx xxxxxxxxxx, xx xxxxxx xxx xxxxx xxx xxxxxx xx xxxxxxx, xxx x xxxx xx xxxxxxx xxx xxxxx xxxxx xx xxx xxxx xxxx xx xxx xxx xx xxx xxxxxxxxx xxxxxx xxxxxxxxxxx. Hxxx xx xx xxxxxxx xx xxxx x xxxxxxxx: -</para> - <programlisting format="linespecific">LOAD DATA LOW_PRIORITY INFILE '/xxx/xxxxxxx.xxx' IGNORE -INTO TABLE xxxxxxx -FIELDS TERMINATED BY '|' -LINES TERMINATED BY '\x' -IGNORE d LINES -(xxx_xx, xxxxxxxxxxx, xxxxx);</programlisting> - <para><indexterm id="mysqlian-CHP-6-ITERM-2433" significance="normal"><primary>IGNORE...LINES xxxxxx (LOAD DATA INFILE)</primary></indexterm><indexterm id="mysqlian-CHP-6-ITERM-2434" significance="normal"><primary>LOAD DATA INFILE xxxxxxxxx</primary><secondary>xxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-6-ITERM-2435" significance="normal"><primary>CONCURRENT xxxxxxx (LOAD DATA INFILE)</primary></indexterm><indexterm id="mysqlian-CHP-6-ITERM-2436" significance="normal"><primary>LOW_PRIORITY xxxxxxx</primary><secondary>LOAD DATA INFILE xxxxxxxxx</secondary></indexterm> -Txx xxxxx xxxx xx xxx xxxx xxxx xxxxxxxx xxxxxx xxxxxxxx xxxxxxxxxx xxx xxxx, xxx xxxx xxxx xxxx xxx xx xxxxxxxx xxxxxxx xx xxx <literal moreinfo="none">IGNORE d LINES</literal> xxxxxx xxxx. Txx <emphasis>xxxxxxx</emphasis> xxxxx xxx xxxxxxx xxxx xxxxxxx xxxx xxx xxxxx xxxx xxx xxxxx xxxxxxxx xxx xxxx xxx xx x xxxxxxxxx xxxxx. Fxxxxxx, xxxxxxx xxxx xxxxxx xx xxx xxxxxxxx, xxx <literal moreinfo="none">LOW_PRIORITY</literal> xxxxxxx xxxx xxx xxxxxxxxx xx xxx xxxxxxxxx xxxxxxxxx xxx xxxxxx xx xxxxxx xxxxx xxxxxxx xx xxx <emphasis>xxxxxxx</emphasis> xxxxx xxxxxx xxxxxxx xxxx xxxxxxxxx. Ix xxxx xxx xxxxxxxx xxxx <literal moreinfo="none">CONCURRENT</literal>, xxx xxxxxx xxxxx xx xxxxxxxxx xxxx xx xxxxx xxxxxxx xxx xxxxxxxx xxx xxxx xxxxx.</para> - <para>Ax xx xxxxxxx d.d.d, xxx xxxx xx xxxxxx xxx xxxxxxx xxxxxx xxxxx xxx xxxx xxxxxxxxx. Axxx, <literal moreinfo="none">SET</literal> xxx xx xxxxx xx xxx xx xxxxxx xxx xxxxx xx xx xxxxxxxx. Ax xxxxxxx xxxxxxx:</para> - <programlisting format="linespecific">LOAD DATA LOW_PRIORITY INFILE '/xxx/xxxxxxx.xxx' IGNORE -INTO TABLE xxxxxxx -FIELDS TERMINATED BY '|' -LINES TERMINATED BY '\x' -IGNORE d LINES -(xxx_xx, @xxxxxxx, xxxxxxxxxxx, @xxx_xxxxx) -SET xxxxx = @xxx_xxxxx * .d;</programlisting> - <para>Ix xxxx xxxxxxx, xxx xxxxx xxxxxxxxx xxx xxxx xxx xxxx xxxxxxx. Txx xxxxxx xxx xx xx xx xxxxxxx xxx xxxxxx xx x <emphasis>xxxxxxxxx</emphasis> xxxx xxxxxxxx. Txx xxxxx xxxxxx xx xxx <replaceable>xxxxx</replaceable>. Sxxxx xxx xxxxxxx xxxxx xxx xxxxxxxxxxxx’x xxxxxxxx xx xxx xxxxxxx xxxx xxxx xxx xxxxxxxxxxxx’x xxxxxxxxx xxxxxx xxxxx, xxx xxxxxxxxx xxxxxxxx xxx xxx xxxxx xx xxx xxxx xxxxxxxx <replaceable>@xxx_xxxxx</replaceable> xxx xxxx xx xxx <literal moreinfo="none">SET</literal> xx xxxxxx xxxx xxxxx xxx xxx xxxxxx xxxx xxxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch06-77011"> - <refmeta> - <refentrytitle>RELEASE SAVEPOINT</refentrytitle> - </refmeta> - <refnamediv> - <refname>RELEASE SAVEPOINT</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">RELEASE SAVEPOINT <replaceable>xxxxxxxxxx</replaceable></synopsis> - </refsynopsisdiv> - <refsect1 id="ch06-16-fm2xml"> - <title/> - <para>Txxx xxxxxxxxx xxxxxxxxx xxx xxxxxx xx xxxxxxx x xxxxxxxxx xxxxx xxxxxxx xxxx xxx <literal moreinfo="none">SAVEPOINT</literal> xxxxxxxxx xxx xxx xxxxxxx xxxxxxxxxxx. Txx xxxxxxxxx xxxx xxx xxxxxx xxx xxxxxxxxxxx, xxx xxxx xx xxxxxxxx xxx xxxxxxxxxxx xx xxx xxxxxxxxx. Ixxxxxx, xx xxxxxx xxxxxxxxxx xxx xxxxxxxxx xx x xxxxxxxx xxxxxxxx xxxxx. Sxx xxx <literal moreinfo="none">SAVEPOINT</literal> xxxxxxxxx xxx xxxx xxxxxxxxxxx.</para> - <programlisting format="linespecific">START TRANSACTION; - -LOCK TABLES xxxxxx WRITE; - -INSERT DATA INFILE '/xxx/xxxxxxxx_xxxx.xxx' -INTO TABLE xxxxxx; - -SAVEPOINT xxxxxx_xxxxxx; - -INSERT DATA INFILE '/xxx/xxxxxxxx_xxxxxx.xxx' -INTO TABLE xxxxxx; - -SAVEPOINT xxxxxx_xxxxxxd; - -INSERT DATA INFILE '/xxx/xxxxxxxx_xxxxxxd.xxx' -INTO TABLE xxxxxx; - -SELECT... - -RELEASE SAVEPOINT xxxxxx_xxxxxxd;</programlisting> - <para>Ix xxxx xxxxxxx, xxx xxxxxxxx xxxxxxxxxxxxx xxx xxxxxxxx x xxxxxxxx xxxxxxxxxxx xxxx xxx xxx xxxxx xxxxxxxxxx xxxxxxxx xxxxxx xxx xxx xxx xx xxx xxxxxxxxxx. Axxxx xxxxxxx x xxx <literal moreinfo="none">SELECT</literal> xxxxxxxxxx (xxx xxxxx xxxxx xxxx), xx xxxxxxx xxxx xxx xxxxxxx xx xxx xxxxxx xxxxx xx xxxxxx xxxxx xxxxxxx xxx xx xxxxxxxx xxx xxxxxxxxx xxx xx. Hx xxxx’x xxx xxxxxxx xxxx xxx xxxxx xxxxx xxx xxxxxxxx xxxxxxxx. Ix xx xxxxxxx xxxx xxxxx xxx x xxxxxxx, xx xxx xxxxx xxxxxxxx xxx xx xxx xxxxxx xxxxxxxx, xxx xx xxxxxx xxxx xxx xxxxxx xxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch06-77012"> - <refmeta> - <refentrytitle>REPLACE</refentrytitle> - </refmeta> - <refnamediv> - <refname>REPLACE</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific"> -REPLACE [LOW_PRIORITY|DELAYED] [INTO] <replaceable>xxxxx</replaceable> [(<replaceable>xxxxxx</replaceable>,...)] - VALUES ({<replaceable>xxxxxxxxxx</replaceable>|DEFAULT},...)[, (...)] - -REPLACE [LOW_PRIORITY|DELAYED] [INTO] <replaceable>xxxxx</replaceable> - SET <replaceable>xxxxxx</replaceable>={<replaceable>xxxxxxxxxx</replaceable>|DEFAULT}[, ...] - -REPLACE [LOW_PRIORITY|DELAYED] [INTO] <replaceable>xxxxx</replaceable> [(<replaceable>xxxxxx</replaceable>,...)] - SELECT...</synopsis> - </refsynopsisdiv> - <refsect1 id="ch06-17-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-6-ITERM-2437" significance="normal"><primary>DELETE xxxxxxxxx (GRANT/REVOKE)</primary></indexterm><indexterm id="mysqlian-CHP-6-ITERM-2438" significance="normal"><primary>INSERT xxxxxxxxx (GRANT/REVOKE)</primary></indexterm><indexterm id="mysqlian-CHP-6-ITERM-2439" significance="normal"><primary>INTO xxxxxxx</primary><secondary>REPLACE xxxxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-6-ITERM-2440" significance="normal"><primary>DELAYED xxxxxxx</primary><secondary>REPLACE xxxxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-6-ITERM-2441" significance="normal"><primary>UNIQUE xxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-6-ITERM-2442" significance="normal"><primary>KEY xxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-6-ITERM-2443" significance="normal"><primary>PRIMARY KEY xxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-6-ITERM-2444" significance="normal"><primary>xxxx</primary><secondary>xxxxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-6-ITERM-2445" significance="normal"><primary>xxxx</primary><secondary>xxxxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-6-ITERM-2446" significance="normal"><primary>REPLACE xxxxxxxxx</primary><secondary>xxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-6-ITERM-2447" significance="normal"><primary>LOW_PRIORITY xxxxxxx</primary><secondary>REPLACE xxxxxxxxx</secondary></indexterm> -Uxx xxxx xxxxxxxxx xx xxxxxx xxx xxxx xx xxxx xxx xx xxxxxxx xxxxxxxx xxxx xxxxx xxx <literal moreinfo="none">PRIMARY KEY</literal> xx <literal moreinfo="none">UNIQUE</literal> xxxxx xxx xx xxx xxxx xx xxx xxx xxxxxx xxxxx xxxxxxxx. Txxx xxxxxxxxx xxxxxxxx <literal moreinfo="none">INSERT</literal> xxx <literal moreinfo="none">DELETE</literal> xxxxxxxxxx, xxxxxxx xx xx xxxxxxxxxxx x xxxxxxxxxxx xx xxxx.</para> - <para>Txx <literal moreinfo="none">LOW_PRIORITY</literal> xxxxxxx xxxxxxxxx xxx xxxxxx xx xxxx xxxxx xxxxx xxx xx xxxxxxx xx xxx xxxxx xxxxx, xxxxxxxxx xxxxx, xxx xxxx xx xxxx xxx xxxxx xxx xxxxxxxxx xxx xx xxx xxxxxx xx xxxx xxxx xxx xx xxxxxxxx xxx xxxxxxxx. Wxxx xxx xxxxxxxxx xx xxxxxxxx, xxx xxxx xx xxxxxxxx, xxxxxxxxxxxxx. Fxx xxxx xxxxxxx, x xxxxxx xxx xx xxxxxxx xxx xxxxx x xxxxx. Txx <literal moreinfo="none">DELAYED</literal> xxxxxxx xxxx xxxx xxx xxxxxx xx xxxxxxx xxx xxxxxxxxx xx x xxxxxx xxx xxxxxxxxxx xxxx xxx xxxxx xx xxx xxxx. Txx xxxxxx xxx’x xx xxxxx xxxxxx xx xxx xxxxxxx xx xxx xxxxxxxxx, xxxx xxxx xx’x xxxxxxxx. Ix xxx xxxxxx xxxxxxx xxxxxx xxx xxxxxxx xx xxx xxxx xxx xxxxxxxxx, xxx xxxxxx xxxx xxx xx xxxxxxxx xxx xxx xxxxxx xxxxxxxx xxxx xx xxxx. Txx <literal moreinfo="none">INTO</literal> xxxxxxx xx xxxxxxxx, xxx xx x xxxxxx xx xxxxx xxxxxxxxxx xxx xxxxxxxxxxxxx xxxx xxxxx xxxxxxxx xxxxxxx. -</para> - <para><indexterm id="mysqlian-CHP-6-ITERM-2448" significance="normal"><primary>VALUES xxxxxx</primary><secondary>REPLACE xxxxxxxxx</secondary></indexterm> -Txx <literal moreinfo="none">REPLACE</literal> xxxxxxxxx xxx xxxxx xxxxx xxxxxxx. Txx xxxxx xxxxxxxx xxx xxxxxx xxx xxxx xxx xx xxxxxxxxxxx xxxxx xxx <literal moreinfo="none">VALUES</literal> xxxxxxx. Ix xxx xxxxxx xx xxxxxx xxx xxxxx xxxxx xx xxx xxxxx xxx xxxxxxx xx xxx xxxxx xxxxx, xxx xxxxxxx xxxx xx xx xxxxxx xx xxxxxxxxxxx xxxxx xxx xxxxx xxxx xx xxx xxxxx xx xxxxx xxx xxxxxx xxx xxxxxxxx. Hxxx xx xx xxxxxxx xx xxx <literal moreinfo="none">REPLACE</literal> xxxxxxxxx xxxxx xxxx xxxxxx: -</para> - <programlisting format="linespecific">REPLACE INTO xxxxxxx (xx_xx, xxxxxx_xx, xxxxxxxxxxx) -VALUES('dddd','dddd','Nxxxxxx Axxxxx Pxxxxxx'), -('dddd','dddd','Nxxxxxx Axxxxx Pxxxxxx');</programlisting> - <para>Nxxxxx xxxx xxxx xxxxxxxxx xx xxxx xx xxxxxx xxx xxxx xxxxxxx xxx xxxxxx xxxxx xxxxx xxxxxx xxxxx. Ix xxxx xxxxxxx, xxx xxxxx xxx xxxxxxx xxxxxxx xxxxxx xxxx xxxxxxxxx xxx xx xx xxxxxxxx. Oxxx xx’x xxx, xxx xxx xxxxxxxxxxx xx xxxx xxxxxxx xxxxxxxxxx dddd xx xxxxxxxxxx xxxxxxxx xxxx xxxx xxxx. Cxxxxxx xxxx xxx xxx xxxxxxxx xx xxx xxxx xx xxxxxxx xxxx xxx xxxxx xx xxxxx xxxxxxx xxxxxx xx xx NULL, xxxxxxxxx xx xxx xxxxxx.</para> - <para>Txx xxxxxx xxxxxx xxxx xxx xxxxx xxxxxxxx xxxx. Ixxxxxx xx xxxxxxxx xxx xxxxxx xxxxx xx xxx xxxx xx xxx xxxxxxxxx xxx xxx xxxxxx xx xxxxxxx xxxx, xxxxxx xxxxx xxx xxxxxx xxx xxxxx xx x <replaceable>xxxxxx=xxxxx</replaceable> xxxx. Tx xxxxx xxx <literal moreinfo="none">REPLACE</literal> xxxxxxxxx xxxx xxx xxxxxxxxx xxxxxxx xx xxxx xxxxxx, xxx xxxxx xxxx xx xxxxx xxx xxxxxxxxx xxx xxxxxxxxxx:</para> - <programlisting format="linespecific">REPLACE INTO xxxxxxx -SET xx_xx = 'dddd', xxxxxx_xx = 'dddd', -xxxxxxxxxxx = 'Nxxxxxx Axxxxx Pxxxxxx'; - -REPLACE INTO xxxxxxx -SET xx_xx = 'dddd', xxxxxx_xx = 'dddd', -xxxxxxxxxxx = 'Nxxxxxx Axxxxx Pxxxxxx';</programlisting> - <para>Txx xxxxx xxxxxx xxxxxxxx x xxxxxxxx, xxxxx xx xxxxxxxxx xx xx xxxxxxx d.d xx MxSQL. Wxxx x xxxxxxxx, xxxx xxx xx xxxxxxxxx xxxx xxxxxxx xxxxx xxx xxxxxxxx xxxx xxx xxxxx xxxxxxxxxx xx xxx xxxx xxxxx xxx xxx xxxxxxxxx. Hxxx xx xx xxxxxxx:</para> - <programlisting format="linespecific">REPLACE INTO xxxxxxx (xx_xx, xxxxxx_xx, xxxxxx) -SELECT xx_xx, xxxxxx_xx, 'HOLD' -FROM xx_xxxxxxxx -WHERE xxxxxxxxxx_xx = 'dddd';</programlisting> - <para><indexterm id="mysqlian-CHP-6-ITERM-2449" significance="normal"><primary>REPLACE xxxxxxxxx</primary><secondary>xxxxxx</secondary></indexterm> -Ix xxxx xxxxxxx, xxxx xxxxxxxx xxxxxxxx xx x xxxxxxxxxx xxxxxxxxxx xxx xxxxx xxxxxxx xx x xxxxxxxxxxx xx-xxxx xxxxxx. Txx xxxxxx xxx xxx xx xxx xxxxxxx xxx xxxxx xxxx xxx xxxx xxxxxxxx xxxxx xxx xxx xxxxx xxxxxx xx <literal moreinfo="none">HOLD</literal> xx xxxxxxxx xx xxx xxxxx xx xxx xxxxx xxxxxx. Cxxxxxxxx, xxx xxxxx xxx xxxxx xxxxxxxxxxx xxxx xx xxxxx xxxxxxxx xxxxxx xx xxxx xx xxx xxxxxxxx. -</para> - </refsect1> - </refentry> - <refentry id="ch06-77013"> - <refmeta> - <refentrytitle>ROLLBACK</refentrytitle> - </refmeta> - <refnamediv> - <refname>ROLLBACK</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">ROLLBACK [WORK] [AND [NO] CHAIN] [[NO] RELEASE]</synopsis> - </refsynopsisdiv> - <refsect1 id="ch06-18-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-6-ITERM-2450" significance="normal"><primary>START TRANSACTION xxxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-6-ITERM-2451" significance="normal"><primary>SET xxxxxxxxx</primary><secondary>AUTOCOMMIT xxxxx xxx</secondary></indexterm><indexterm id="mysqlian-CHP-6-ITERM-2452" significance="normal"><primary>AUTOCOMMIT xxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-6-ITERM-2453" significance="normal"><primary>ROLLBACK xxxxxxxxx</primary><secondary>xxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-6-ITERM-2454" significance="normal"><primary>COMMIT xxxxxxxxx</primary></indexterm> -Uxx xxxx xxxxxxxxx xxxx xxxxxxxxxxxxx xxxxxx xx xxxxxxx xxxxxxxxxxxx xxxx xxxx xxx xxx xxxx xxxxxxxxx. Txxxxxxxxxx xxxxxxxxxx xxx xxxxxxxxx xxxxxxxxx xx xxx IxxxDB, NDB Cxxxxxx, xxx BDB xxxxxxx xxxxxxx xxx xxx xxxxxxx xx xxxx xxxx MxISAM xxxxxx. -</para> - <para>Ix <literal moreinfo="none">AUTOCOMMIT</literal> xx xxxxxxx, xx xxxx xx xxxxxxxx xxx xxxx xxxxxxxxx xx xx xxxxxxxxxx, xxxxx xxx xx xxxx xx xxxxxxx:</para> - <programlisting format="linespecific">SET AUTOCOMMIT = d;</programlisting> - <para><literal moreinfo="none">AUTOCOMMIT</literal> xx xxxx xxxxxxxx xxxx x xxxxxxxxxxx xx xxxxxxx xxxx xxx <literal moreinfo="none">START TRANSACTION</literal> xxxxxxxxx. Ix xx xxxxxxxxxx xx xxxx xxx xxxxxxxxx xx xxx <literal moreinfo="none">COMMIT</literal> xxxxxxxxx, xxx xxxxxx xx xxxxxxx xxxxxxx, xxx xxxxxxx xxxxx xxxxxxxxxx xxxx xxxxx xxxx x xxxxxx xx xxxxxxx. Sxx xxx xxxxxxxxxxx xx <literal moreinfo="none">COMMIT</literal> xxxxxxx xx xxxx xxxxxxx xxx x xxxx xx xxxxxxxxxx xxxx xxxxx x xxxxxx.</para> - <para>Txx <literal moreinfo="none">WORK</literal> xxxxxxx xx xxxxxxxx xxx xxx xx xxxxxx xx xxx xxxxxxx. Ix’x xxxxxxxxx xxx xxxxxxxxxxxxx xxxx xxx xxxxxxxxxxxx, <literal moreinfo="none">BEGIN WORK</literal> xxx <literal moreinfo="none">COMMIT WORK</literal>. Uxx xxx <literal moreinfo="none">AND CHAIN</literal> xxxxxx xx xxxxxxxx xxxx xxx xxxxxxxxxxx xx xx xx xxxxxx xxxx xxx xxxxxxx xx xxxxxxxx, xxxx xxxxxx xxxxxxxxxxx xx xxxxxxx xxx <literal moreinfo="none">START TRANSACTION</literal> xxxxxxxxx xxxxx. Uxx xxx <literal moreinfo="none">AND RELEASE</literal> xxxxxx xx xxx xxx xxxxxxx xxxxxx xxxxxxx xxxxx xxxxxxx xxxx xxx xxxxxxxxxxx. Axx xxx xxxxxxx <literal moreinfo="none">NO</literal> xx xxxxxxxx xxxxxxxxxx xxxx x xxx xxxxxxxxxxx xx xxx xx xxxxx (xxxx xxxx xxxx <literal moreinfo="none">CHAIN</literal>) xx xxx xxxxxx xxxxxxx xx xxx xx xxx (xxxx xxxx xxxx <literal moreinfo="none">RELEASE</literal>)—xxxxx xxx xxx xxxxxxx xxxxxxxx, xxxxxx. Ix’x xxxxxxxxx xx xxxxxxx <literal moreinfo="none">NO</literal> xxxx xxxx xxx xxxxxx xxxxxxxx <literal moreinfo="none">xxxxxxxxxx_xxxx</literal> xx xxx xx xxxxxxxxx xxxxx xxxx xxx xxxxxxx xxxxxxx.</para> - <para>Hxxx xx xx xxxxxxx xx xxxx xxxxxxxxx’x xxx xx xxxxxxx:</para> - <programlisting format="linespecific">START TRANSACTION; - -LOCK TABLES xxxxxx WRITE; - -INSERT DATA INFILE '/xxx/xxxxxxxx_xxxxxx.xxx' -INTO TABLE xxxxxx; - -SELECT ...; - -ROLLBACK; - -UNLOCK TABLES;</programlisting> - <para><indexterm id="mysqlian-CHP-6-ITERM-2455" significance="normal"><primary>SELECT xxxxxxxxx</primary><secondary>ROLLBACK xxxxxxxxx xxx</secondary></indexterm><indexterm id="mysqlian-CHP-6-ITERM-2456" significance="normal"><primary>INSERT DATA INFILE xxxxxxxxx</primary></indexterm> -Ix xxxx xxxxxxx, xxxxx xxx xxxxx xx xxxxxx xxx xxxxxxxx xxxx xxx <emphasis>xxxxxx</emphasis> xxxxx, xxx xxxxxxxxxxxxx xxxxxxxx xxxxxx x xxxxxx xx <literal moreinfo="none">SELECT</literal> xxxxxxxxxx (xxx xxxxx) xx xxxxx xxx xxxxxxxxx xx xxx xxxx. Ix xxxxxxxxxx xxxxx xxxxxxx, xxx <literal moreinfo="none">COMMIT</literal> xxxxxxxxx xxxxx xx xxxxxx xx xxxxxx xxx xxxxxxxxxxxx, xxxxxxx xx xxx <literal moreinfo="none">ROLLBACK</literal> xxxxxxxxx xxxxx xxxx. Ix xxxx xxxx, x xxxxxxx xxx xxx xxxxxxxxxxxxx xx xxxxx <literal moreinfo="none">ROLLBACK</literal> xx xxxxxx xxx xxxx xxxxxxxx xx xxx <literal moreinfo="none">INSERT DATA INFILE</literal> xxxxxxxxx. -</para> - <para><indexterm id="mysqlian-CHP-6-ITERM-2457" significance="normal"><primary>DROP TABLE xxxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-6-ITERM-2458" significance="normal"><primary>CREATE TABLE xxxxxxxxx</primary><secondary>ROLLBACK xxxxxxxxx xxx</secondary></indexterm><indexterm id="mysqlian-CHP-6-ITERM-2459" significance="normal"><primary>ALTER TABLE xxxxxxxxx</primary><secondary>ROLLBACK xxxxxxxxx xxx</secondary></indexterm><indexterm id="mysqlian-CHP-6-ITERM-2460" significance="normal"><primary>xxxxxx</primary><secondary>ROLLBACK xxxxxxxxx xxx</secondary></indexterm><indexterm id="mysqlian-CHP-6-ITERM-2461" significance="normal"><primary>xxxxxxxxx</primary><secondary>ROLLBACK xxxxxxxxx xxx</secondary></indexterm> -A xxxxxxxx xxxx xxx xxxx xxx xxxxxxxx xx xxxxxxxx xx xxxxxxxxx. Ix xxxx xxxxxx xx xxxxxxxxx xx xxxxxxx xx xxxxx xxxxxx (x.x., <literal moreinfo="none">ALTER TABLE</literal>, <literal moreinfo="none">CREATE TABLE</literal>, xx <literal moreinfo="none">DROP TABLE</literal> xxxxxxxxxx). -<indexterm id="mysqlian-CHP-6-ITERM-2462" significance="normal"><primary>DROP INDEX xxxxxxxxx</primary></indexterm> -<indexterm id="mysqlian-CHP-6-ITERM-2463" significance="normal"><primary>DROP DATABASE xxxxxxxxx</primary><secondary>xxxxxxx xxx</secondary></indexterm> -<indexterm id="mysqlian-CHP-6-ITERM-2464" significance="normal"><primary>CREATE INDEX xxxxxxxxx</primary><secondary>xxxxxxx xxx</secondary></indexterm> -<indexterm id="mysqlian-CHP-6-ITERM-2465" significance="normal"><primary>BEGIN xxxxxxxxx</primary></indexterm> -<indexterm id="mysqlian-CHP-6-ITERM-2466" significance="normal"><primary>ALTER TABLE xxxxxxxxx</primary><secondary>xxxxxxx xxx</secondary></indexterm> -<indexterm id="mysqlian-CHP-6-ITERM-2467" significance="normal"><primary>COMMIT xxxxxxxxx</primary></indexterm> -<indexterm id="mysqlian-CHP-6-ITERM-2468" significance="normal"><primary>START TRANSACTION xxxxxxxxx</primary></indexterm> -<indexterm id="mysqlian-CHP-6-ITERM-2469" significance="normal"><primary>SET AUTOCOMMIT xxxxxxxxx</primary></indexterm> -<indexterm id="mysqlian-CHP-6-ITERM-2470" significance="normal"><primary>RENAME TABLE xxxxxxxxx</primary></indexterm> -<indexterm id="mysqlian-CHP-6-ITERM-2471" significance="normal"><primary>LOCK TABLES xxxxxxxxx</primary></indexterm> -<indexterm id="mysqlian-CHP-6-ITERM-2472" significance="normal"><primary>LOAD MASTER DATA xxxxxxxxx</primary></indexterm> -<indexterm id="mysqlian-CHP-6-ITERM-2473" significance="normal"><primary>DROP TABLE xxxxxxxxx</primary></indexterm> -<indexterm id="mysqlian-CHP-6-ITERM-2474" significance="normal"><primary>UNLOCK TABLES xxxxxxxxx</primary></indexterm> -<indexterm id="mysqlian-CHP-6-ITERM-2475" significance="normal"><primary>TRUNCATE xxxxxxxxx</primary></indexterm> -Txxxxxxxxxxx xxxxxx xx xxxxxxxx xxxx xxx <literal moreinfo="none">ROLLBACK</literal> xxxxxxxxx xx xxxx xxxx xxxx xxxxxxxxx. Cxxxxxx xxx xxxxxx xx xxx <literal moreinfo="none">COMMIT</literal> xxxxxxxxx, xx xxxx xx xxxx xxxxxxx xxxxx xxxxxxxx xxxxxx xxxxxxxxxx. Sxx xxx xxxxxxxxxxx xx <literal moreinfo="none">COMMIT</literal> xxx x xxxx xx xxxxxxxxxx xxxx xxxxx x xxxxxx. -</para> - </refsect1> - </refentry> - <refentry id="ch06-77014"> - <refmeta> - <refentrytitle>ROLLBACK TO SAVEPOINT</refentrytitle> - </refmeta> - <refnamediv> - <refname>ROLLBACK TO SAVEPOINT</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">ROLLBACK TO SAVEPOINT <replaceable>xxxxxxxxxx</replaceable></synopsis> - </refsynopsisdiv> - <refsect1 id="ch06-19-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-6-ITERM-2476" significance="normal"><primary>ROLLBACK TO SAVEPOINT xxxxxxxxx</primary></indexterm> -Txxx xxxxxxxxx xxxxxxxxx xxx xxxxxx xx xxxxxxx SQL xxxxxxxxxx xxx xxx xxxxxxx xxxxxxxxxxx xxxx xx x xxxxx xxxxxx xx xxx xxxxxxxxxxx xx xxx <literal moreinfo="none">SAVEPOINT</literal> xxxxxxxxx. Axx xxxxxxxxxxxx xxx xxx xxxxxxx xxxx xxxxx xxx xxxxxxxxx xxx xxxxxx. Txxx xx xx xxxxxxxx xx <literal moreinfo="none">ROLLBACK</literal> xx xxxxxx, xxxxx xxxxxx xxx xxxxxxx xxxxx xxx xxxxx xx xxx xxxxxxxxxxx. Txxxxxxxxxx xxxxxxxxxx xxx xxxxxxxxx xxxxxxxxx xx xxx IxxxDB, NDB Cxxxxxx, xxx BDB xxxxxxx xxxxxxx xxx xxx xxxxxxx xx xxxx xxxx MxISAM xxxxxx. Mxxxxxx xxxxxxxxxx xxx xx xxx xx xxxxxx x xxxxxxxxxxx. Exxxxxx: -</para> - <programlisting format="linespecific">START TRANSACTION; - -LOCK TABLES xxxxxx WRITE; - -INSERT DATA INFILE '/xxx/xxxxxxxx_xxxx.xxx' -INTO TABLE xxxxxx; - -SAVEPOINT xxxxxx_xxxxxx; - -INSERT DATA INFILE '/xxx/xxxxxxxx_xxxxxx.xxx' -INTO TABLE xxxxxx; - -SELECT... - -SAVEPOINT xxxxxx_xxxxxxd; - -INSERT DATA INFILE '/xxx/xxxxxxxx_xxxxxxd.xxx' -INTO TABLE xxxxxx; - -SELECT... - -ROLLBACK TO SAVEPOINT xxxxxx_xxxxxxd;</programlisting> - <para>Ix xxxx xxxxxxx, xxx xxxxxxxx xxxxxxxxxxxxx xxx xxxxxxxx x xxxxxxxx xxxxxxxxxxx xxxx xxx xxx xxxxx xxxxxxxxxx xxxxxxxx xxxxxx xxx xxx xxx xx xxx xxxxxxxxxx. Axxxx xxxxxxx x xxx <literal moreinfo="none">SELECT</literal> xxxxxxxxxx (xxx xxxxx xxxxx xxxx), xx xxxxxxx xxxx xxxxx xxx x xxxxxxx xxxxxxx xxx xxxxxx xxxxx xx xxxxxx, xx xx xxxxxxxxx xxx xxxxxxxxxxx xx xxx xxxxxxxxx, xxxxxxxxxxx xxx xxxx xxxx xxx xxxxxxxx xxxx xxx <replaceable>xxxxxxxx_xxxxxxd.xxx</replaceable> xxxx. Ix xx xxxxx, xx xxx xxxxx xxxxxxxx xxx xx xxx xxxxxx xxxxxxxx, xx xxxx xx xxx xxxxx xxxxxxxxxxx. Wxxx xx’x xxxxxxxx, xx xxx xxxxxx xxx xxxxxxxxxxxx xx xxxxxxxxx xxx <literal moreinfo="none">COMMIT</literal> xxxxxxxxx. Sxx xxxx xxxxxxxxx xxx xxxx xxxxxxxxxxx xx xxxxxxxxxx xxxxxxxxxxxx xxxxxxxxxx xxx xxxxxxxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch06-77015"> - <refmeta> - <refentrytitle>SAVEPOINT</refentrytitle> - </refmeta> - <refnamediv> - <refname>SAVEPOINT</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">SAVEPOINT <replaceable>xxxxxxxxxx</replaceable></synopsis> - </refsynopsisdiv> - <refsect1 id="ch06-20-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-6-ITERM-2477" significance="normal"><primary>SAVEPOINT xxxxxxxxx</primary></indexterm> -Uxx xxxx xxxxxxxxx xx xxxxxxxx x xxxxx xx x xxxxxxxxxxx xx xxxxx SQL xxxxxxxxxx xxx xxxxxxxxxxx xx xxxxxx xxxxx. Ix’x xxxx xx xxxxxxxxxxx xxxx xxx <literal moreinfo="none">ROLLBACK TO SAVEPOINT</literal> xxxxxxxxx. Ix xxx xx xxxxxxxx xxxx xxx <literal moreinfo="none">RELEASE SAVEPOINT</literal> xxxxxxxxx. Yxx xxx xxx xxx xxxxxxxxxx xxxx xx xxxxxxxx x xxxxxxxxx xxx xxx xxxxxx xxxxxxx xxxxxxxxxx xxxxxx x xxxxxxxxxxx. Ix xx xxxxxxxxxx <literal moreinfo="none">SAVEPOINT</literal> xxxxxxxxx xx xxxxxx xxxx xxx xxxx xxxx, xxx xxxxxxxx xxxxx xxxx xx xxxxxxxx xxxx xxx xxx xxxxx xxx xxx xxxx xxxxx. -</para> - <programlisting format="linespecific">START TRANSACTION; -LOCK TABLES xxxxxx WRITE; -INSERT DATA INFILE '/xxx/xxxxxxxx_xxxx.xxx' -INTO TABLE xxxxxx; -SAVEPOINT xxxxxx_xxxxxx; -INSERT DATA INFILE '/xxx/xxxxxxxx_xxxxxx.xxx' -INTO TABLE xxxxxx;</programlisting> - <para><indexterm id="mysqlian-CHP-6-ITERM-2478" significance="normal"><primary>SAVEPOINT xxxxxxxxx</primary></indexterm> -Ax xxxx xxxxx xx xxxx xxxxxxx, xxx xxxxxxxxxxxxx xxx xxxxx xxx xxxxxxx xx xxx xxxxxx xxxxxxxx xxxxxx xxxxxxxxxx xxx xxxxxxxxxxxx. Ix xxx xxxxxxxxxxxxx xxxxxxx xxxx xxx xxxxxx xxxxxxxx xxxx xxxxxxxx (xxx <filename moreinfo="none">/xxx/xxxxxxxx_xxxxxx.xxx</filename> xxxx), xxx xxx xxx xxxxxx xxxxxxxxxxx xxxx xxx xxxxx xxxxxxxx (xxx <filename moreinfo="none">/xxx/xxxxxxxx_xxxx.xxx</filename> xxxx), xxx xxxxxxxxx xxxxxxxxx xxxxx xx xxxxxxx: -</para> - <programlisting format="linespecific">ROLLBACK TO SAVEPOINT xxxxxx_xxxxxx;</programlisting> - <para><indexterm id="mysqlian-CHP-6-ITERM-2479" significance="normal"><primary>ROLLBACK xxxxxxxxx</primary><secondary>xxxxxx</secondary></indexterm> -Ix xxx xxxxxxxxxxxxx xxxxxxx xxxx xxx xxxxxxxx xxxxxxxxxxx xxxx xxx xxxxxxxx xxxx xxx xxxxxxxx, xxx <literal moreinfo="none">ROLLBACK</literal> xxxxxxxxx xxx xx xxxxxx xx xxxx xxx xxxxxx xxxxxxxxxxx. -</para> - <para>Ax xx xxxxxxx d.d.dd xx MxSQL, xx x xxxxxx xxxxxxxx xx xxxxxxx xx xxxx, x xxx xxxxxxxxx xxxxx xx xxx xx xxx xxx xxxxxxxx xxxxxxxxxx xxx xxxxxxxxx. Wxxx xxx xxxxxx xxxxxxxx xx xxxxxxx xx xxxxxxxx, xxx xxxxxxxxxx xx xxxxxxx xxx xxxxxxxx xxx xxx xxxxxxxx xxxxxxxxx xxxxx xxxxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch06-77016"> - <refmeta> - <refentrytitle>SELECT</refentrytitle> - </refmeta> - <refnamediv> - <refname>SELECT</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">SELECT [<replaceable>xxxxx</replaceable>] {<replaceable>*</replaceable>|<replaceable>xxxxxx</replaceable>|<replaceable>xxxxxxxxxx</replaceable>}[, ...] - FROM <replaceable>xxxxx</replaceable>[, . . . ] - [WHERE <replaceable>xxxxxxxxx</replaceable>] - [GROUP BY {<replaceable>xxxxxx</replaceable>|<replaceable>xxxxxxxxxx</replaceable>|<replaceable>xxxxxxxx</replaceable>}[ASC|DESC], . . . - [WITH ROLLUP]] - [HAVING <replaceable>xxxxxxxxx</replaceable>] - [ORDER BY {<replaceable>xxxxxx</replaceable>|<replaceable>xxxxxxxxxx</replaceable>|<replaceable>xxxxxxxx</replaceable>}[ASC|DESC] , . . . ] - [LIMIT {[<replaceable>xxxxxx</replaceable>,] <replaceable>xxxxx</replaceable>|<replaceable>xxxxx</replaceable> OFFSET <replaceable>xxxxxx</replaceable>}] - [PROCEDURE <replaceable>xxxxxxxxx</replaceable>(<replaceable>xxxxxxxxx</replaceable>)] - <replaceable>xxxxxxx</replaceable></synopsis> - </refsynopsisdiv> - <refsect1 id="ch06-21-fm2xml"> - <title/> - <para><indexterm class="startofrange" id="mysqlian-CHP-6-ITERM-2480" significance="normal"><primary>SELECT xxxxxxxxx</primary><secondary>xxxxxx</secondary></indexterm> -Uxx xxxx xxxxxxxxx xx xxxxxxxx xxx xxxxxxx xxxx xxxx xxxxxx xxxxxx x xxxxxxxx. Ix xxx xxxx xxxxxxx xxx xxxxxxx, xxx xxx xxxxxx xxxx xxxxxxxxx xxxx xx xxxx xxx xx xxxxxxx. Txx xxxxx xxxxxx xxx xxx xxxxxxxxx xx xxxxx. Axxxx xxx <literal moreinfo="none">SELECT</literal> xxxxxxx, xxxx xxxxxxxx xx xxxxxxx xxx xxxxx xxxxxxxxx xxx xx xxxxx. Nxxx xxxxx xx xxxxxxxx xx xxxxxxxx xxx xxxxxxx, x xxxx xx xxxxxxx xx xxxxxxxx, xx xxxxxxxxxxx xxxxxxxxx xxxxxx xx xxxxxxx, xxxxxxxxx xx xxxxxx.</para> - <para>Dxxx xxx xx xxxxxxxxx xxxx xxx xx xxxx xxxxxx, xxxxx xx x xxxxx-xxxxxxxxx xxxx. Ix xxxxxxxx xxxxxx xxx xxxxxxxxx, xxxxx xxxxxxx xxxx xxxxxx xxx xxx xxxxxx xxx xxxxxx. Txx xxxxxxxxx xxxxxxx xxx xx xxxxxx xx xx xxxxxx xxx xxxx xx xx xxxxxxxxx, xx xxxxx xx, xxx xx xxxxx. Txxxx xxxxxxx xxxxxxxx, xxxxxxx, xxx xxxxxxx xxx xxxxxxxx xx xxxxxxxxxxx xx xxxx xxxxxxxxx xxxxxxxxxxx. Tx xxxxx, xxxx xx x xxxxxx xxxxxxx xx xxx xxx xxx xxx xxx <literal moreinfo="none">SELECT</literal> xxxxxxxxx: -</para> - <programlisting format="linespecific">SELECT xxxx_xxxxx, xxxx_xxxx, xxxxxxxxx_xxxx, -DATEDIFF(xxx( ), xxxx_xxxxxx) -AS 'Dxxx Sxxxx Lxxx Rxxxxx' -FROM xxxxxxxxx;</programlisting> - <para><indexterm id="mysqlian-CHP-6-ITERM-2481" significance="normal"><primary>xxxxxxx</primary><secondary>AS xxxxxxx xxx</secondary></indexterm><indexterm id="mysqlian-CHP-6-ITERM-2482" significance="normal"><primary>AS xxxxxxx</primary><secondary>SELECT xxxxxxxxx</secondary></indexterm> -Ix xxxx xxxxxxx, xxxxx xxxxxxx xxx xxx xxxxxxx xx xx xxxxxxxxxx xxxxx xx x xxxxxx xxxxxx xxx xx xx xxxxxxxxx. Txx xxxxx xxx xxxx xxxx xx xxxx xxxxxxxx, xxxx xxxxxxxx’x xxxx xxxxxxxxx xxxxxx, xxx xxx xxxxxxxxxx xxxxxxx xxx xxxx xx xxx xxxxxxxx’x xxxx xxxxxxxxxx xxxxxx xxx xxx xxxx xxx xxx xxxxxx. Txxx xxxx xxxxx xxx xxx xxxxxxxx xx xxx <literal moreinfo="none">AS</literal> xxxxxxx xx xxx xxx xxxxxx xxxxxxx xx xxx xxxxxxx xxx, xxx xx xxxx xx xxxxx xxx xxx xxxxx. Ax xxxxx xxx xx xxxxxxxxxx xx xxxxxxxxxx xxxxxxx xx xxx xxxx xxxxxxxxx (x.x., xxx <literal moreinfo="none">ORDER BY</literal> xxxxxx). Tx xxxxxx xxx xxxxxxx xx xxx xxxxx, xxx xxxxxxxx <literal moreinfo="none">*</literal> xxx xx xxxxx xxxxxxx xx xxx xxxxxx xxxxx. -<indexterm id="mysqlian-CHP-6-ITERM-2483" significance="normal"><primary>ORDER BY xxxxxx</primary><secondary>SELECT xxxxxxxxx</secondary></indexterm> -<indexterm id="mysqlian-CHP-6-ITERM-2484" significance="normal"><primary>xxxxxxxx (*)</primary></indexterm> -<indexterm id="mysqlian-CHP-6-ITERM-2785" significance="normal"><primary>xxxxxxxxx</primary><secondary>xxxxxxxx</secondary></indexterm> -</para> - </refsect1> - <refsect1 id="ch06-22-fm2xml"> - <title>SELECT xxxxxxxxx xxxxxxxx - SELECT -[ALL|DISTINCT|DISTINCTROW] -[HIGH_PRIORITY] [STRAIGHT_JOIN] -[SQL_SMALL_RESULT] [SQL_BIG_RESULT] [SQL_BUFFER_RESULT] -[SQL_CACHE|SQL_NO_CACHE] [SQL_CALC_FOUND_ROWS] -{*|xxxxxx|xxxxxxxxxx}[, ...] -FROM xxxxx[, ...] -[WHERE xxxxxxxxx] [xxxxx xxxxxxx] [xxxxxxx] - Bxxxxxx xxx xxxxxxx SELECT xxxxxxx xxx xxxx xx xxxxxxx xxx xxxxxxxxxxx, xxxxxxx xxxxxxxx xxx xx xxxxx. Txxx xxx xxxxx xx xxx xxxxxxxxx xxxxxx, xxxx xxx xxxxx xxxxxxxxxx xx xxx xxxxxxxxx xxxxxxxxxxx. - DISTINCTROW xxxxxxx (SELECT)DISTINCT xxxxxxxSELECT xxxxxxxxxALL xxxxxxxSELECT xxxxxxxxxWHERE xxxxxxSELECT xxxxxxxxx -Wxxx x WHERE xxxxxx xx xxxx xxxx xxx SELECT xxxxxxxxx, xxxx xx xxx xxxxxxx xxx xxxxxxx xxxxxxxxx xxxx. Ix xxx xxxx xxx xxxx xxxx xxxx xxx xxxxxxxxx xxxxxxxxxx xx xx xxxxxxxxx, xxx xxx xxxxxxx xxx ALL xxxxxxx. Txxx xx xxx xxxxxxx, xx xx’x xxx xxxxxxxxx xx xxxx xxxx xxxxxxx. Ix xxx xxxx xx xxxxxxx xxxx xxx xxxxx xxxxxxxxxx xx x xxx, xxxxxxx xxx DISTINCT xxxxxxx xx xxx xxxxxxx DISTINCTROW. Hxxx xx xx xxxxxxx: - - SELECT DISTINCT xxxx -FROM xxxxxxxxx; - Txxx xxxxxxxxx xxxx xxxx xxx xxxxx xx xxx xxxxxxxxxxx xxx xxxxx xx xxxx xxxxxxxxx xxxxxx xx xxx xxxxxxxxx xxxxx. Exxx xxxxxx xxxxx xxx xxxxxxx xxxxxxxxx xx xxx xxxx xxxxxxxxxx, xx xxxx xxxx xxxx xxx xxx xxx xxxx xxxxxxxxxx. - HIGH_PRIORITY xxxxxxxSELECT xxxxxxxxx -Bx xxxxxxx, xxx UPDATE xxxxxxxxxx xxxx xxx xxxxxx xxxx xxxxxxxx xxxx SELECT xxxxxxxxxx xxxxxxxxx xx xxxxx xxxxxx xxxxxxxx xx xxx xxxx xxxx; xxx xxxxxxx xxx xxx xxxxx. Tx xxxx x xxxxxxxxxx SELECT xxxxxxxxx xxxxxx xxxxxxxx xxxx xxx UPDATE xxxxxxxxxx, xxx xxx HIGH_PRIORITY xxxxxxx. - - STRAIGHT_JOIN xxxxxxxSELECT xxxxxxxxxJOIN xxxxxxSELECT xxxxxxxxxWHERE xxxxxxSELECT xxxxxxxxx -Mxxxxxxx xxxxxx xxx xx xxxxxxxx xxxx xxx SELECT xxxxxxxxx. Txx xxxxxx xx xxxxx xxxx xxxxxx xx xxxxxx xx xxxxx xxxx xxx WHERE xxxxxx xx xxx JOIN xxxxxx. Txx JOIN xxxxxx xx xxxxxxxxx xxxxxxxxxx xx xxxx xxxxxxx. Fxx xxx xxxxxxxx xx xxxx xxxxxxx, xxx xxxx xxxx xx xxxx xxxx xx xxxxx xx xxxxxxxx xxxxxxxxx, MxSQL xxxxx xxx xxxx xxxxxx xx xxx xxxxx xxxx xxxx xxx xxxxxx xx xxx SQL xxxxxxxxx. Tx xxxxxx xx xxxxxxx xx xxx xxxxx xxxxx, xxx xxxx xxx xxx STRAIGHT_JOIN xxxxxxx. - - SQL_BUFFER_RESULT xxxxxxx (SELECT)SQL_BIG_RESULT xxxxxxx (SELECT)SQL_SMALL_RESULT xxxxxxx (SELECT)GROUP BY xxxxxxDISTINCT xxxxxxxSELECT xxxxxxxxx -Wxxx xxx xxxx xxxx xxx xxxxxxx xx x SELECT xxxxxxxxx xxxxx xxx DISTINCT xxxxxxx xx xxx GROUP BY xxxxxx (xxxxxxxxx xxxxx) xxxx xx xxxxx, xxx xxx xxx xxx SQL_SMALL_RESULT xxxxxxx. Txxx xxxx xxxxx MxSQL xx xxx xxxxxxxxx xxxxxx, xxxx x xxx xxxxx xx xxx GROUP BY xxxxxx xxxxxxxx, xx xxxx xxx xxxxxxx xxx xxxxxxxx xxxx xxx xxxxxx xxxx xxxxxxxxx. Ix xxx xxxxxx xxx xxxxxxx xx xx xxxxx, xxx xxx xxx xxx SQL_BIG_RESULT xxxxxxx. Txxx xxxx xxxxx MxSQL xx xxx xxxxxxxxx xxxxxx xx xxx xxxxxxxxxx. Rxxxxxxxxx xx xxxxxxx xxx xxx DISTINCT xx GROUP BY, xxx SQL_BUFFER_RESULT xxxxxxx xxx xx xxxxx xxx xxx SELECT xxxxxxxxx xx xxxx MxSQL xxx x xxxxxxxxx xxxxx xx xxxxxx xxx xxxxxxx. Yxx xxx xxx xxxx xxx xx xxx SQL_*_RESULT xxxxxxxx xx xxxx xxxxxxxxx. - - xxxxx_xxxxx_xxxx xxxxxxxxSHOW VARIABLES xxxxxxxxxSQL_NO_CACHE xxxxxxx (SELECT) -Ix xxx MxSQL xxxxxx xx xxx xxxxx xxx xxxxx xxxxx xx xxxxxxx, xxx xxx xxxxx xxx xxx xx xxxxxxxxx xxx SQL_CACHE xxxxxxx. Ix xxx xxxxxx xxxx xxx xxx xxxxx xxxxx xx xxxxxxx, xxx xxx xxx xxx SQL_NO_CACHE xx xxxxxxxx MxSQL xxx xx xxx xxx xxxxx xxx xxxx xxxxxxxxxx SELECT xxxxxxxxx. Tx xxxxxxxxx xxxxxxx xxx xxxxxx xxxx xxxxx xxxxx xx xxxxxxx, xxxxx SHOW VARIABLES LIKE 'xxxxx_xxxxx_xxxx';. A xxxxx xx ON xxxxxxxxx xxxx xx xx xx xxx. - - SQL_CACHE_FOUND_ROWS xxxxxxx (SELECT) -Txx xxxx xxxxxxx xxxxxxxxx xx SQL_CALC_FOUND_ROWS, xxxxx xxxxxx xxx xxxxxx xx xxxx xxxx xxxx xxx xxxxxxxxxx xx xxx xxxxxxxxx. Txxx xx xxx xxxxxxxx xx x LIMIT xxxxxx. Txx xxxxxxx xx xxxx xxxxx xxxx xx xxxxxxxxx xx x xxxxxxxx SELECT xxxxxxxxx xxxx xxx FOUND_ROWS( ) xxxxxxxx. Sxx xxx xxx xx xxxx xxxxxxx xxx xxxxxxxxxxx xx xxxx xxxxxxxx. -FOUND_ROWS( ) xxxxxxxx -LIMIT xxxxxxSELECT xxxxxxxxx - - SELECT SQL_CALC_FOUND_ROWS -xxxx_xxxxx, xxxx_xxxx, xxxxxxxxx_xxxx, -DATEDIFF(xxx( ), xxxx_xxxxxx) -AS 'Dxxx Sxxxx Lxxx Rxxxxx' -FROM xxxxxxxxx -WHERE xxxx = 'xxxxx' -ORDER BY xxxx_xxxxxx DESC -LIMIT dd; - -SELECT FOUND_ROWS(); - Txx xxxxx xxxxxxxxx xxxxxxxxx x xxxx xx xxxxx xxxxxx xx xxxxxx, xxxxxxx xx xxx xxx xx xxxx xxxx xxx xxxxxxx xxxxxxx x xxxxxxxxxxx xxxxxx. Txx xxxxxx xxxx x xxxxx xx xxx xxxx xxxxxxxxx xxxxx xxx xx xxxxxx xx xxx xxxxx xxxxxxxxxx. - - - Exxxxxxxx SELECT xxxxxxx - SELECT [xxxxx] {*|xxxxxxx|xxxxxxxxxx}[, ...] -[INTO OUTFILE '/xxxx/xxxxxxxx' - [FIELDS TERMINATED BY 'xxxxxxxxx'] - [FIELDS ENCLOSED BY 'xxxxxxxxx'] - [ESCAPED BY 'xxxxxxxxx' ] - [LINES [STARTING BY 'xxxxxxxxx'] [TERMINATED BY 'xxxxxxxxx']] -|INTO DUMPFILE '/xxxx/xxxxxxxx' -|INTO 'xxxxxxxx'[, ...] -[FOR UPDATE|LOCK IN SHARE MODE]] -FROM xxxxx[, ...] -[WHERE xxxxxxxxx] -[xxxxx xxxxxxx] [xxxxxxx] - LINES STARTING BY xxxxxx (SELECT)LINES TERMINATED BY xxxxxx (SELECT)ESCAPED BY xxxxxxSELECT xxxxxxxxxFIELDS ENCLOSED BY xxxxxx (SELECT)FIELDS TERMINATED BY xxxxxx (SELECT)INTO xxxxxxxSELECT xxxxxxxxx -Txx INTO xxxxxx xx xxxx xx xxxxxx xxxx xxxx x SELECT xxxxxxxxx xx xx xxxxxxxx xxxx xxxx xx x xxxxxxxx. Oxxx xxx xxxxxxx xxxx xx xxxxxxxx, xxx xxx xxxxxx xxxxx xx xxxxx xxxxxxxxxxx. - -Vxxxxxx xxxxxxx xxx xxxxxxxxx xxx xxxxxxx xxxxxxxxxx xx xxx xxxxxx: - - - - - ESCAPED BY - - - -Cxxxxxxxx xxxx xx xxxxxx xxxxxxx xxxxxxxxxx xx xxx xxxxxx. Txx xxxxxxx xx x xxxxxxxxx. - - - - - - FIELDS ENCLOSED BY - - - -Cxxxxxxxx xx xxx xxxxxx xxx xxxxx xxxx xxxxx. Bx xxxxxxx, xx xxxxxxxxx xx xxxx. - - - - - - FIELDS TERMINATED BY - - - -Cxxxxxxxx xxxx xxxxx xx xxxxxxxx xxxxxx. Txx xxxxxxx xx x xxx. - - - - - - LINES STARTING BY - - - -Cxxxxxxxx xxxx xx xxxxx xxxx xxxxx. Bx xxxxxxx, xx xxxxxxxxx xx xxxx. - - - - - - LINES TERMINATED BY - - - -Cxxxxxxxx xxxx xx xxx xxxx xxxx. Txx xxxxxxx xx x xxxxxxx xxxxxxxxx. - - - - - FILE xxxxxxxxx xx xxxxxxxxx xx xxx xxx INTO xxxxxx xx xxx SELECT xxxxxxxxx. Txxx xxxxxxxxx xxx xxxxxx xxxxxxxxxxx xx xx xxxxxxx xxx xxxxxxxxxxx xx xxx LOAD DATA INFILE xxxxxxxxx. Sxx xxx xxxxxxxxxxx xx xxxx xxxxxxxxx xx xxxx xxxxxxx xxx xxxx xxxxxxx xx xxx xxxxxxx xxx xxxx xxxxxx. Hxxx xx xx xxxxxxx xx xxxx xxxxxx xxx xxxxx xxxxxxx: - SELECT * FROM xxxxxxxxx -INTO OUTFILE '/xxx/xxxxxxxxx.xxx' -FIELDS TERMINATED BY '|' -LINES TERMINATED BY '\x' -ESCAPED BY '\\'; - ESCAPED BY xxxxxxSELECT xxxxxxxxxxxxxxxxxx (\\\\)\\\\ (xxxxxxxxx) -Txx xxxx xxxx xxxxxxx xx xxxx SQL xxxxxxxxx xxxx xxxxxxx x xxxxxxxx xxxx xxx xxxx xxx xxxxxxxx. Exxx xxxxx xxxx xxx xxxx x xxxxxxxx xxx. Axx xxxxxxx xxxxxxxxxx (x.x., xx xxxxxxxxxx) xxxx xx xxxxxxxx xx x xxxxxxxxx. Bxxxxxx x xxxxxxxxx xx xx xxxxxx xxxxxxxxx xxxxxx xx SQL xxxxxxxxx, xxx xxxxxxxxxxx xxx xxxxxx xx xxx ESCAPE BY xxxxxx, xxxxxxx xxx xxxxx xxxxxxx xxx xxxxxx. Tx xxxxxx xxx xxxxxxxxx xxxx xxxx xxxx, xxx xxx LOAD DATA INFILE xxxxxxxxx. - - INTO OUTFILE xxxxxx (SELECT)INTO DUMPFILE xxxxxx (SELECT) -Txx xxxxxx xxxxxx xxxx xxx xxxxxx INTO DUMPFILE xxx xxxxxxx xxxx xxx xxx xxxx xx xxxxxxxx xxxx xxxx. Ix xxxx xxx xxxxx xxx xxxxx xx xxxx xxxxxxxxxxx xxxx xxx INTO OUTFILE xxxxxx. Hxxx xx xx xxxxxxx xx xxx xxx: - - SELECT xxxxxxxxxx -INTO DUMPFILE '/xxx/xxxx_xxxxxxx.xxxx' -FROM xxxxxxxxx -WHERE xxx_xx = 'dddd'; - BLOB xxxxxxxx -Txxx xxxxxxxxx xxxxxxx xxx xxxxxxxx xx xxx xxxxxxxxxx xxxxxx xxx xx xxxxxxxx’x xxxxxx. Ix’x x BLOB xxxx xxxxxx xxx xxxxxxxx xx xxxxx xxxx. Txx xxxxxx xx xxx xxxxxxxx xxxx xx x xxxxxxxx xxx xxxxxx xxxxx xxxx. - - Yxx xxx xxxx xxx xxx INTO xxxxxx xx xxxxx x xxxxx xx x xxxx xxxxxxxx xx x xxxxxx xxxxxxxx xxx xxxxx. Hxxx’x xx xxxxxxx: - SET @xxxxx = d; - -SELECT SUM(xxxxx_xxxxx) AS Sxxxx -INTO @xxxxx -FROM xxxxxx -WHERE YEAR(xxxxx_xxxx) = YEAR(CURDATE()); - Txxx xxxxxxx xxxxxxx xxx xxxx xxxxxxxx @xxxxx. Txxx xx xxxxxxxxx xxx xxxxx xxxxx xxx xxx xxxxxxx xxxx xxx xxxxxx xx xxxx xxxx xxxxxxxx xxx xxxxx xx xxxxxxxxxx xxxxxxxxxx xx xxx xxxxxxx. - - - Gxxxxxxx SELECT xxxxxxx - SELECT [xxxxx] {*|xxxxxx|xxxxxxxxxx}[, ...] -FROM xxxxx[, ...] -[WHERE xxxxxxxxx] -[GROUP BY {xxxxxx|xxxxxxxxxx|xxxxxxxx}[ASC|DESC], ... - [WITH ROLLUP]] -[xxxxx xxxxxxx] [xxxxxxx] - GROUP BY xxxxxxxxxxxxxxxxxx -A SELECT xxxxxxxxx xxxxxxxxx xxxxxxxx xxxx xxxxxxxxxx xxxxxxx xx xxx xxxxx xxxxxxxx xxxx xxxxxxxxxx xxx xxxx xxxxx xxx x xxxxxxxxxx xxxxxx. Txx GROUP BY xxxxxx xxxxxxxxx xxx xx xxxx xxxxxxx xx xxxxx MxSQL xx xx xxxxx xxx xxxx xxxxxxxxx. Txxx xx xxxx xxxx xxxxxxxxx xxxxxxxxx xx xxxx xxx xxxxxx xx xxxxxxx xxxxxxx xxx xxx xxxx xxxxxxx xxxx xx xxxxxxxxxx. - Fxx xxxxxxxx, xxxxxxx xxxx x SELECT xxxxxxxxx xx xx xxxx xxx xxxxx xxxxxxxxxxxxxxx xxx x xxxxxxxx xxx xxxxx xxxxxx xxx xxx xxxxx. Wxxxxxx x GROUP BY xxxxxx, xxx xxxx xxxxx xx xxxxxxxxx xxx xxxx xxxxx xxxxxxxxxxxxxx xxx xxxx xxxxx. Hxxx’x xx xxxxxxx xx xxx xxxx xxxxx xx xxxxxxxx: - - SELECT CONCAT(xxxx_xxxxx, ' ', xxxx_xxxx) AS 'Sxxxx Rxx.', -SUM(xxxxx_xxxxx) AS 'Sxxxx xxx Mxxxx' -FROM xxxxxx, xxxxxxxxx -WHERE xxxxxxxxx.xxx_xx = xxxxx_xxx -AND MONTH(xxxxx_xxxx) = MONTH(CURDATE( )) -GROUP BY xxxxx_xxx; - SUM( ) xxxxxxxxGROUP BY xxxxxx -Txxx xxxxxxxxx xxxxxxxxxxxx xxx xxxxx xxx xxxx xxxx xx xxxx xxxxx xxxxxxxxxxxxxx xxx xxxxxx xx xxxxx xxx x xxxxxxxx xxxxxx xxx xxxxxxx xxxxx. Txx GROUP BY xxxxxx xxxxxx xxxxxxxx xxx xxxx xxxxx xxx xxxx xxxxx xxxxxxxxxxxxxx. Txx SUM( ) xxxxxxxx xxxx xxx xxxxxx xx xxx xxxxx_xxxxx xxxxxx xxx xxxx xxx xxxxxx xxxx xxxxx. Sxx xxx xxxx xxxxxxxxxxx xx xxx SUM( ) xxxxxxxx xxx xxxxx xxxxxxxxx xxxxxxxxx. - - Yxx xxx xxxxxxx xxxxxxxx xxxxxxx xx xxx GROUP BY xxxxxx. Ixxxxxx xx xxxxxxx x xxxxxx’x xxxx, xxx xxx xxxxx xxx xxxxxxxx xx xxx xxxxx, xxxxx x xxxxx xx d xxxxxxxxxx xxx xxxxx xxxxxx xx xxx xxxxx. Exxxxxxxxxx xxx xx xxxxx, xx xxxx. - xxxxxxxxxxxxxxDESC xxxxxxxSELECT xxxxxxxxxASC xxxxxxxSELECT xxxxxxxxxORDER BY xxxxxxSELECT xxxxxxxxxGROUP BY xxxxxx -Txx GROUP BY xxxxxx xxxx xxx xxx xxxxxxx xxx xxxxxx xx xxxx xxxx xxx ORDER BY xxxxxx. Tx xxx xxx xxxxxxx xx xxxxxxxxx xxxxx xxxxxxxxxx xxx x xxxxxx, xxxxx xxx ASC xxxxxxx xxxxx xxx xxxxxx xx xxx xxxxxx xxxxx xx xx xx xxx. Txxx xx xxx xxxxxxxxx, xxxxxx, xxxxx xx xx xxx xxxxxxx xxxxxxx. Tx xxxx xx xxxxxxxxxx xxxxx, xxx DESC xxxxx xxxx xxxxxx xxxx xx xx xx xxxxxx xx xxxxxxx. - - WITH ROLLUP xxxxxxx (SELECT) -Wxxx xxxxxxxx xxxx xx xxx xxxxxx, xx xxx xx xxxxxxxxx xxx xxxx xx xxxx x xxxxx xx xxx xxxxxx xxx xxxxxxx xxxxxxx, xxx xxxx xx xxxxxxx x xxxxx xxx xxx xx xxx xxxxxxx xxxx xx xxx xxx xx xxx xxxxxxx xxx. Tx xx xxxx, xxx xxx WITH ROLLUP xxxxxxx. Hxxx xx xx xxxxxxx: - - SELECT xxxxxxxx AS Bxxxxx, -CONCAT(xxxx_xxxxx, ' ', xxxx_xxxx) AS 'Sxxxx Rxx.', -SUM(xxxxx_xxxxx) AS 'Sxxxx xxx Mxxxx' -FROM xxxxxx, xxxxxxxxx, xxxxxxxx -WHERE xxxxx_xxx = xxxxxxxxx.xxx_xx -AND MONTH(xxxxx_xxxx) = MONTH(CURDATE( )) -AND xxxxxxxxx.xxxxxx_xx = xxxxxxxx.xxxxxx_xx -GROUP BY Bxxxxx, xxxxx_xxx WITH ROLLUP; - -+---------------+---------------+-----------------+ -| Bxxxxx | Sxxxx Rxx. | Sxxxx xxx Mxxxx | -+---------------+---------------+-----------------+ -| Bxxxxx | Sxxx Wxxxxx | dddd | -| Bxxxxx | Mxxxxx Mxxxxx | dddd | -| Bxxxxx | Mxxxxx Mxxxxx | dddd | -| Nxx Oxxxxxx | Mxxxx Dxxx | dddd | -| Nxx Oxxxxxx | Txx Sxxxx | dddd | -| Nxx Oxxxxxx | Sxxx Jxxxxxx | dddd | -| Nxx Oxxxxxx | Sxxx Jxxxxxx | ddddd | -| Sxx Fxxxxxxxx | Gxxxxxxx Dxxx | ddd | -| Sxx Fxxxxxxxx | Kxxxxxx Dxxx | ddd | -| Sxx Fxxxxxxxx | Kxxxxxx Dxxx | dddd | -| NULL | Kxxxxxx Dxxx | ddddd | -+---------------+---------------+-----------------+ - Txxx xxxxxxxxx xxxxxx xxx xxxx xx xxx xxxxx xxx xxxx xxxxx xxxxxxxxxxxxxx. Wxxx xxxxx xxxx’x xxx xxxx xxxxx xxxxxxxxxxxxxxx xxx x xxxxxx, x xxx xx xxx xxxxxxx xxx xxx xxxxxxxx xx xxxxxxxxx. Ix xxxxxxxx xxx xxxxxx xxxx xxx xxx xxxx xx xxx xxxx xxxxxxxxxxxxxx. Wxxx xxxxx xxx xx xxxx xxxxxxxx, x xxx xxx xxx xxxxx xxxxx xx xxxxx xx xxxxxxxxx. Txx xxxxxx xxxxx NULL. Fxx xxxxxxx, I’xx xxxxxxxxx xxx xxxxxxxxx xxx xxx xxxxx xxxxx xx xxx xxxxxxx xxx. - - - Hxxxxx SELECT xxxxxxx - SELECT [xxxxx] {*|xxxxxx|xxxxxxxxxx}[, ...] -FROM xxxxx[, ...] -[WHERE xxxxxxxxx] -[GROUP BY xxxxxxxxx] -[HAVING xxxxxxxxx] -[xxxxx xxxxxxx] [xxxxxxx] - MAX( ) xxxxxxxxMIN( ) xxxxxxxxAVG( ) xxxxxxxxWHERE xxxxxxHAVING xxxxxx xxxHAVING xxxxxx (SELECT) -Txx HAVING xxxxxx xx xxxxxxx xx xxx WHERE xxxxxx, xxx xx xx xxxx xxx xxxxxxxxxx xxxxxxxx xx xxxxxxxxx xxxxxxxxx (x.x., AVG(), MIN( ), xxx MAX( )). Fxx xxxxx xxxxxxxx xx MxSQL, xxx xxxx xxx xxxxxxx xxx xxxxxxxxx xxxxxxxxx xx xxx xxxx xxxxxx xx xxx SELECT xxxxxxxxx. Hxxx xx xx xxxxxxx xx xxx xxx xxx xxx xxxx xxxxxx: - - SELECT CONCAT(xxxx_xxxxx, ' ', xxxx_xxxx) AS 'Nxxx', xxxxx_xxxxx -FROM xxxxxx -JOIN xxxxxxxxx ON xxxxx_xxx = xxx_xx -JOIN xxxxxxxx USING (xxxxxx_xx) -WHERE xxxxxxxx = 'Nxx Oxxxxxx' -GROUP BY xxxxx_xxx -HAVING MAX(xxxxx_xxxxx); - MAX( ) xxxxxxxx -Txxx SQL xxxxxxxxx xxxxxxxxx xxxx xxx xxxxxxxxx xxxxx x xxxx xx xxxxxxxx xxxxx xxx xxx xxxxxxxxx xxxxxxx xx xxx Nxx Oxxxxxx xxxxxx xxxxxx. Fxxx xxxx xxxx, xxx xxxxxxxxx xxxxxxx xxx xxxxxxx xx xxxxxxxx xxx xxxx xxx xxxx xxxxxxxxxxxxxx xxxxxxxx xxx xxxxxxxxxx xxx xxx xx xxxx xxx’x xxxxx_xxxxx xxxxxx. Bxxxxxx xx xxx MAX() xxxxxxxx, xx xxxxxxxx xxxx xxxx xxx xxx xxx xxxx xxx xxxxxxx xxxxxx. Txx JOIN xxxxxx xx xxxxxxxxx xx xxx xxx xxxxxxx xxxxxxx xx xxxx xxxxxxx. - - - - Oxxxxxxx SELECT xxxxxxx - SELECT [xxxxx] {*|xxxxxx|xxxxxxxxxx}[, ...] -FROM xxxxx[, ...] -[WHERE xxxxxxxxx] -[ORDER BY {xxxxxx|xxxxxxxxxx|xxxxxxxx}[ASC|DESC], ...] -[xxxxx xxxxxxx] [xxxxxxx] - ORDER BY xxxxxxSELECT xxxxxxxxxxxxxxxxxxxxx -Txx xxxxxxx xx x SELECT xxxxxxxxx, xx xxxxxxx, xx xxxxxxxxx xx xxx xxxxx xx xxxxx xxx xxxx xx xxxx xxx xxxxx xx xxx xxxxx, xxxxx xxx xx xxx xxxxx xx xxxxx xxxx xxxx xxxxxxx xxxx xxx xxxxx. Tx xxxxxx xxx xxxxx xx x xxxxxxx xxx, xxx xxx ORDER BY xxxxxx. Ax x xxxxx xxx xxxxxxxx xxx xxxxxxx, xxxx xxx xx xxxx xxxxxxx xxxxxxxxx xx xxxxxx. Txx xxxxx xx xxxxx xxxxxxx xxx xxxxxx xx xxx xxxxx xx xxxxx xxxxx xxxx xx xxxxxxxxx. Yxx xxx xxxx xxx xxxxxxx xxx xxxxxxx, xxxxxx xxxxxxxxxxxx, xx xxxxxxxxxxx xxxx xxxx xxxxxxxxxxx xxxxxxx xx xxx xxxx SELECT xxxxxxxxx. Ixxxxxx xx xxxxxxx x xxxxxx’x xxxx, xxx xxx xxxx xxxxx xxx xxxxxxxx, xxxxx x xxxxx xx d xxxxxxxxxx xxx xxxxx xxxxxx xx xxx xxxxx. Hxxx xx xx xxxxxxx xx x SELECT xxxxxxxxx xxxxx xxx ORDER BY xxxxxx: - - SELECT CONCAT(xxxx_xxxxx, ' ', xxxx_xxxx) AS Nxxx, -MONTH(xxxxx_xxxx) AS 'Bxxxx Mxxxx', xxxxx_xxxxxxx -FROM xxxxxxxxx -ORDER BY 'Bxxxx Mxxxx' ASC, Nxxx ASC; - DESC xxxxxxxSELECT xxxxxxxxxASC xxxxxxxSELECT xxxxxxxxxMONTH( ) xxxxxxxxORDER BY xxxxxxSELECT xxxxxxxxx -Hxxx x xxxx xx xxxxxxxxx, xxx xxxxx xx xxxxx xxxx xxxx xxxx, xxx xxxxx xxxxx xxxxxxxxx xxx xxxxxxxxx. Fxx xxx xxxx, xxx CONCAT( ) xxxxxxxx xx xxxx xx xxx xxx xxxxx xxx xxxx xxxx xxxxxxxx, xxxxxxxxx xx x xxxxx. Txx AS xxxxxx xxxxxxxxxxx xx xxxxx xx Nxxx. Txx MONTH( ) xxxxxxxx xx xxxx xx xxxxxxx xxx xxxxx xxxx xxx xxxxx_xxxx xxxxxx xxx xxx AS xxxxxx xxxx xx xxx xxxxx Bxxxx Mxxxx. Ix xxx ORDER BY xxxxxx, xxx xxxxx xxx xxx xxxxx xxxx xx xxxx xxx xxx xxxxxxx xxxx xxx xxx xxxx xx xxxx xxx xxx xxxxxxxxx xxxx. Txx xxxxxx xxxx xx xxxx xxx xx xxx xxxxxxxxx xxx xxxx x xxxxx xxxx xx xxx xxxx xxxxx xxxx xx xxxxxx xxxxxxxx xxx xx xxxxxxxxxxxx xxxxx xx xxxx. Bxxx xxxxxxx xxx xxxxxxxx xx xxx ASC xxxxxxx xx xxxxxxxx xxxx xxx xxxxxxx xxxxxx xx xxxxxx xx xxxxxxxxx xxxxx. Txxx xx xxxxxxxxxxx, xx xxxxxxxxx xxxxx xx xxx xxxxxxx. Hxxxxxx, xx xxxxxx xx xxxxxxxx xxxxxx xx xxxxxxxxxx, xxx xxx DESC xxxxxxx. - - xxxxxxxxxxxxxxxxxxx xxxxxxx -Yxx xxx xxxx xxxxx xxx xxxxxxx xxxxx xxxxxxxxxxx, xxxxx xxx xx xxxxx xx xxxxxxx xx xxxxxxx. Hxxx xx xx xxxxxxx xx x SELECT xxxxxxxxx xxxxx xx xxxxxxxxxx xxx xxxxxxxx: - - SELECT CONCAT(xxxx_xxxxx, ' ', xxxx_xxxx) AS xxxx, -xxx_xxxx, xxxxx -FROM xxxxxxxxx -ORDER BY xxx_xxxx * xxxxx DESC; - DESC xxxxxxxSELECT xxxxxxxxxORDER BY xxxxxxSELECT xxxxxxxxx -Ix xxxx xxxxxxx, xxx xxxxx xxx xxxx xxxxx xxx xxxxxxxx xxx xxxxxxxxxxxx xxxxxxxx xxxxx xxx xxxx xxxxxx xxxxxxx xx xxx xxxxxxx xxx. Txx xxx_xxxx xxxxxx xxxxx xxx xxxxxx xxxxxx xxxx xx xxxxxxxx xx xxxx xxx xxx xxxxx xxxxxx xxxxxxxx xxx xxxxxxx xxxxxx xx xxxxx x xxxx xxxx xx xxxxxxxx xxxxx. Ix xxx ORDER BY xxxxxx, xxx xxxxxxx xx xxx xxxxxx xxx xxxx xxxxxxxxxx xx xxx xxxxxx xx xxxxx xx xxxxxxxxxx xxx xxx xxxxxxxx xx xxx xxxxxxx xxx. Txx xxxx xxx xx xx xxxxxx xx xxxxxxxxxx xxxxx xxx xxx DESC xxxxxxx xxxxx xx xxx xxxxxxxxxx. - - - - Lxxxxxxx SELECT xxxxxxx - SELECT [xxxxx] {*|xxxxxx|xxxxxxxxxx}[, ...] -FROM xxxxx[, ...] -[WHERE xxxxxxxxx] -[xxxxx xxxxxxx] -[LIMIT {[xxxxxx,] xxxxx|xxxxx OFFSET xxxxxx}] -[PROCEDURE xxxxxxxxx(xxxxxxxxx)] -[FOR UPDATE|LOCK IN SHARE MODE]] -[xxxxx xxxxxxx] [xxxxxxx] - xxxxxxxxxxxxLIMIT xxxxxxSELECT xxxxxxxxx -Txx LIMIT xxxxxx xx xxxx xx xxxxx xxx xxxxxx xx xxxx xxxxxxxxx xx xxx SELECT xxxxxxxxx. Txx xxxx xxxxxxxxxxxxxxx xxxxxx xx xxxxxxxx xxx xxxxxx xx xxxx xx xx xxxxxxx xxx xxxxxxx xxx xxxxx xx xx xxxxxxxxx, xxxx xxxx: - - SELECT * FROM xxxxxxxxx -LIMIT d; - -Tx xxxxx xxxxxxx xxxx xxxxx x xxxxxxxx xxxxxx xx xxxxxxx, xx xxxxxx xxx xx xxxxx. Txx xxxxxx xxx xxx xxxxx xxx xx d. Txx xxxxxxx xxxxxxxxxx xxxx. Oxx xxxxx xxx xxxxxx xx xxx xxxxxx, xxxxxxxx xx x xxxxx xxx xxxx xxx xxxxxxx xxxxx xx xxxx xx xxxxxxx. Txx xxxxx xxxxxx xxxxxxxxx xxxxxxxxx xxx xxxxx xxxxxxxx xx xxx OFFSET xxxxxxx, xxxxxxxx xx xxx xxxxxx xx xxx xxxxxx. Hxxx xx xx xxxxxxx xx xxx xxxxx xxxxxxxxx, xxxxx xx xxxxxxxxx: -OFFSET xxxxxxx (SELECT) - - SELECT * FROM xxxxxxxxx -LIMIT dd, d; - WHERE xxxxxxSELECT xxxxxxxxxORDER BY xxxxxxSELECT xxxxxxxxxLIMIT xxxxxxSELECT xxxxxxxxx -Ix xxxx xxxxxxx, xxxxx xxx ddxx xxxxxx xx xxxxxxx, xxx xxxx d xxxxxxx xxxx xx xxxxxxxxx—xx xxxxx xxxxx, xxxxxxx dd xxxxxxx dd xxx xxxxxxxx. Txx xxxxxx xxx xxxxx xxx xxx LIMIT xxxxxx xxx xxxxx xx xxx xxxx xx xxx xxxxxxx xxx, xxx xxxxxxxxxxx xx xxx xxxx xx xxx xxxxxx. Sx xxx xxxxxx xx xxx xxxxxx xx xxxxxxx xx xxx xxxxx xx xxx xxxx xxxxxxxxx xxxx xxx xxxxxx xxxxx xx xxxxxxx, xxxx xx xxx WHERE xxxxxx xxx xxx ORDER BY xxxxxx. Sxx xxx xxxxxxxxxxx xx xxx LIMIT xxxxxx xxxxxxx xx xxxx xxxxxxx xxx xxxx xxxxxxx. - - - - Oxxxx SELECT xxxxxxx xxx xxxxxxx - SELECT [xxxxx] {*|xxxxxx|xxxxxxxxxx}[, ...] -FROM xxxxx[, ...] -[WHERE xxxxxxxxx] -[xxxxx xxxxxxx] -[PROCEDURE xxxxxxxxx(xxxxxxxxx)] -[LOCK IN SHARE MODE|FOR UPDATE] - PROCEDURE xxxxxxSELECT xxxxxxxxx -Tx xxxx xxx xxxxxxx xx x SELECT xxxxxxxxx xx xxxxxxxx xxxxx xx x xxxxxxxxx, xxx xxx PROCEDURE xxxxxx. Txx PROCEDURE xxxxxxx xx xxxxxxxx xx xxx xxxx xx xxx xxxxxxxxx, xxxxx xxx xx xxxxxxxx xx xxxxxxxxxx xxxxxxxxxx xxxxxxxxxx xx xx xxxxxx xx xxx xxxxxxxxx. Hxxx xx xx xxxxxxx: - - SELECT * FROM xxxxxxxxx -PROCEDURE ANALYSE(dd, ddd); - Ix xxxx xxxxxxxxx, xxx xxxxxxx xx xxx SELECT xxxxxxxxx xxx xxxx xx xxx xxxxx xx xxxxxxxx ANALYSE( ) xxxxx xxxx xxx xxxxxxx xxxxxxxxxx. Sxx ANALYSE( ) xxxx xxx xxx xx xxxx xxxxxxx xxx xxxx xxxxxxxxxxx xx xxx xxxxxxxx. - FOR UPDATE xxxxxx (SELECT)LOCK IN SHARE MODE xxxxxxx (SELECT) -Tx xxxx xxx xxxx xxxx xxx xxxxx xxxxxxxx xxxx x xxxxx, xxx LOCK IN SHARE MODE xxxxxxx xxx xx xxxxx xx xxx xxx xx xxx SELECT xxxxxxxxx. Txxx xxxxxxxx xxxxx xxxxxxx xxxx xxxxxxxx xxx xxxx xxxxx xxx SELECT xxxxxxxxx xx xxxxxxx. Txx FOR UPDATE xxxxxx xxxxxxxxx MxSQL xx xxxxxx x xxxxxxxxx xxxxx xxxx xx xxx xxxx xxxxx xxxxxxxx. Bxxx xx xxxxx xxxxx xxxx xx xxxxxxxxxx xxxx xxx xxxxxxxxx xx xxxxxxxx xxxxxxx. - - - - - - - SET - - - SET - - - - SET [GLOBAL|@@xxxxxx.|SESSION|@@xxxxxxx.] xxxxxxxx = xxxxxxxxxx - - - - <para><indexterm id="mysqlian-CHP-6-ITERM-2377a" significance="normal"><primary>xx xxxx (@)</primary></indexterm><indexterm id="mysqlian-CHP-6-ITERM-2378a" significance="normal"><primary>LOCAL xxxxxxx</primary><secondary>SET xxxxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-6-ITERM-2379a" significance="normal"><primary>SESSION xxxxxxx</primary><secondary>SET xxxxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-6-ITERM-2380a" significance="normal"><primary>GLOBAL xxxxxxx</primary><secondary>SET xxxxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-6-ITERM-2381a" significance="normal"><primary>xxxxxxxxx</primary><secondary>xxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-6-ITERM-2382a" significance="normal"><primary>SET xxxxxxxxx</primary><secondary>xxxxxx</secondary></indexterm> -Uxx xxxx xxxxxxxxx xx xxx x xxxxxx xx xxxx xxxxxxxx xxx xxxxxx xx xxxxxxx xxx. Sxxxxx xxxxxxxxx xxx xx xxxxxx <firstterm>xxxxxx xxxxxxxxx</firstterm>), xxxxx xxxxx xxxx xxxxxxx xx xxx xxxxx, xx <firstterm>xxxxxxx xxxxxxxxx</firstterm> (xxxx xxxxxx <firstterm>xxxxx xxxxxxxxx</firstterm>), xxxxx xxx xxxxxxxxx xxxx xx xxx xxxxxxxxxx xxxxxx xxxx xxxxxxx xxx xxxxxxxx. Tx xxxx x xxxxxx xxxxxxxx xxxxxx, xxx xxx <literal moreinfo="none">GLOBAL</literal> xxxxxxx xx xxxxxxx xxx xxxxxxxx xxxx xx <literal moreinfo="none">@@xxxxxx</literal>. Sxxxxx xxxxxxxxx xxx xxxxxxx xx xxx xxxxxxx xxxxxxx xx xxxxxxx, xxx xxx xxx xxxxxxxx xxxx xxxxxxxx xx xxxxx xxx <literal moreinfo="none">SESSION</literal> xxxxxxx xx xxxxxxxxx xxx xxxxxxxx xxxx xxxx <literal moreinfo="none">@@xxxxxxx</literal> xx xxxx <literal moreinfo="none">@@</literal> (xx xxx xxx xxxxxxxx <literal moreinfo="none">LOCAL</literal> xxx <literal moreinfo="none">@@xxxxx</literal>). Tx xxxx x xxxx xxxxxxxx, xxxxx x xxxxxx <literal moreinfo="none">@</literal> xx xxxxx xx xxx xxxxxxxx xxxx. Hxxx xx xx xxxxxxx xx xxxxxxxx x xxxx xxxxxxxx:</para> - <programlisting format="linespecific">SET @xxxxxxx_xxxxxxx = QUARTER(CURDATE( ));</programlisting> - <para><indexterm id="mysqlian-CHP-6-ITERM-2383a" significance="normal"><primary>QUARTER( ) xxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-6-ITERM-2384a" significance="normal"><primary>CURDATE( ) xxxxxxxx</primary></indexterm> -Txxx xxxxxxxxx xxxx xxx <literal moreinfo="none">CURDATE( )</literal> xxxxxxxx xx xxxxxxxxx xxx xxxxxxx xxxx. Ix’x xxxxxxx xx xxx <literal moreinfo="none">QUARTER( )</literal> xxxxxxxx, xxxxx xxxxxxxxxx xxx xxxxxxx xxx xxx xxxx xxxxx. Txx xxxxxx xx x xxxxxx xxxx xxx xx xxxx xxxxxxxxx xx xxx xxxx. Txx xxxxxx xx xxxxxx xx xxx xxxx xxxxxxxx, <literal moreinfo="none">@xxxxxxx_xxxxxxx</literal>. Fxx xxxxxxxx xxxxxxxxx xxxxxx xxxxxxxxx, xxx xxx xxxxxxxxxxx xx xxx <literal moreinfo="none">SET</literal> xxxxxxxxx xx <xref linkend="mysqlian-CHP-7"/>. -</para> - <para>Hxxx’x x xxxx xxxxxxxx xxxxxxx xx xxx xxxx xxxxxxxxx xxx x xxxx xxxxxxxx xxx xx xxxx:</para> - <programlisting format="linespecific">SET @xxx = d; - -SELECT @xxx := @xxx + d AS Rxx, -xxxxxx_xxxx AS Cxxxxx -FROM xxxxxxx -ORDER BY xxxxxx_xx LIMIT d; - -+------+--------------------+ -| Rxx | Cxxxxx | -+------+--------------------+ -| d | Gxxxxxxx & Cxxxxxx | -| d | Kxxxxxx & Pxxxxxxx | -| d | Mxxxx & Axxxxxxxxx | -+------+--------------------+</programlisting> - <para>Ix xxxx xxxxxxx, xxx xxxx xxxxxxxx <replaceable>@xxx</replaceable> xx xxx xx d xxx xxxx xxxx xx x <literal moreinfo="none">SELECT</literal> xxxxxxxxx xxxx xxx <literal moreinfo="none">:=</literal> xxxxxxxx xx xxxxxxxxx xxx xxxxx xx d xxxx xxxx xxx xxxxxxxxx. Txxx xxxxx xx x xxxx xxx xxxxxxxxx xx xxx xxxxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch06-77018"> - <refmeta> - <refentrytitle>SET TRANSACTION</refentrytitle> - </refmeta> - <refnamediv> - <refname>SET TRANSACTION</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">SET [GLOBAL|SESSION] TRANSACTION ISOLATION LEVEL -{READ UNCOMMITTED|READ COMMITTED|REPEATABLE READ|SERIALIZABLE}</synopsis> - </refsynopsisdiv> - <refsect1 id="ch06-30-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-6-ITERM-2553" significance="normal"><primary>SET TRANSACTION xxxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-6-ITERM-2554" significance="normal"><primary>SESSION xxxxxxx</primary><secondary>SET TRANSACTION xxxxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-6-ITERM-2555" significance="normal"><primary>GLOBAL xxxxxxx</primary><secondary>SET TRANSACTION xxxxxxxxx</secondary></indexterm> -Uxx xxxx xxxxxxxxx xx xxx xx xxxxxxxxx xxxxx xxx xxx xxxxxxx xxxxxxxxxxx, xxx x xxxxxxxxxxx xxxx’x xxxxx xx xx xxxxxxx, xx xxxxxxxx. Uxx xxx xxxxxxx <literal moreinfo="none">SESSION</literal> xx xxx xxx xxxxx xxx xxx xxxxxxx xxxxxxx. Uxx <literal moreinfo="none">GLOBAL</literal> xx xxx xx xxx xxx xxxxxxxxxx xxxxxxxxxxxx (xxxxx xxxx xxx xxxxxx xxxxxxxx xxxx). Ix xxxxxxx xx xxxxx xxx xxxxxxxx xx xxxxxxxx, xxx xxxxx xx xxx xxx xxx xxxx xxxxxxxxxxx xx xxx xxxxxxx xxxxxxx. Txxx xxxxxxxxx xxxxxxx xxxx xx IxxxDB xxxxxx. -</para> - <para><indexterm id="mysqlian-CHP-6-ITERM-2556" significance="normal"><primary>READ COMMITTED xxxxxx (SET TRANSACTION)</primary></indexterm><indexterm id="mysqlian-CHP-6-ITERM-2557" significance="normal"><primary>SERIALIZABLE xxxxxx (SET TRANSACTION)</primary></indexterm><indexterm id="mysqlian-CHP-6-ITERM-2558" significance="normal"><primary>REPEATABLE READ xxxxxx (SET TRANSACTION)</primary></indexterm><indexterm id="mysqlian-CHP-6-ITERM-2559" significance="normal"><primary>READ UNCOMMITTED xxxxxx (SET TRANSACTION)</primary></indexterm> -Txx xxxxx <literal moreinfo="none">READ UNCOMMITTED</literal> xx xxxxx xx x xxxxx xxxx xxxxxxx <literal moreinfo="none">SELECT</literal> xxxxxxxxxx xxx xxxxxxxx xx x xxx-xxxxxxx xxxxxx. Txxx, xxxxxxx xx xxx xxxxxxxxxxx xxx xx xxxxxxxx xx xxxxxxx, xxxxxxxxxxx xxxxxxx xx xxxxxxx xxxxxxxxxxx, xx xxx xxxx xxx xx xxxx, xxxx xxxxxx xxx xxxxxxx xxxxxxxxxxxx. <literal moreinfo="none">READ COMMITTED</literal> xx x xxxx xxxxxxxxxx xxxx, xxxxxxx xx Oxxxxx’x xxxxxxxxx xxxxx. Hxxxxxx, xxxxxxx xxxx xxx xxxxxxxxx xx xxx xxxxxxxxxxx xxxx xx xxxxxxx xx xxxxxxx. Txx xxxxxx xx xxxx xxx xxxx xxxxx xx xxx xxxx xxxxxxxxxxx xxxxx xxxxxx xxxxxxxxx xxxxxxx.</para> - <para><literal moreinfo="none">REPEATABLE READ</literal> xx xxx xxxxxxx. Ix xxxxx xxx xxxxx xxxxxxxxxx xxx x xxxxxxxxxxx.</para> - <para>Ix xxx xxxxxx xxxxx, <literal moreinfo="none">SERIALIZABLE</literal>, xxxxxxx xxx xxx xxxxxxx xx xxxxx xxxxxxxxxxxx xx x xxxxxxxxxxx xxx xxxxxxxx x xxxxxx <literal moreinfo="none">SELECT</literal> xxxxxxxxx. Bxxxxxxxx, xxxxxxx xxx xxxxxxxxx xxxx <literal moreinfo="none">LOCK IN SHARE MODE</literal>. -</para> - <para>Hxxx xx xx xxxxxxx xx xxx xxx xxx xxx xxxx xxxxxxxxx:</para> - <programlisting format="linespecific">SET SESSION TRANSACTION ISOLATION LEVEL READ COMMITTED; -START TRANSACTION; -...</programlisting> - </refsect1> - </refentry> - <refentry id="ch06-77019"> - <refmeta> - <refentrytitle>SHOW ERRORS</refentrytitle> - </refmeta> - <refnamediv> - <refname>SHOW ERRORS</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">SHOW ERRORS [LIMIT [<replaceable>xxxxxx</replaceable>,] <replaceable>xxxxx</replaceable>] - -SHOW COUNT(*) ERRORS</synopsis> - </refsynopsisdiv> - <refsect1 id="ch06-31-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-6-ITERM-2560" significance="normal"><primary>xxxxxx</primary><secondary>xxxxxxxxxx xxxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-6-ITERM-2561" significance="normal"><primary>LIMIT xxxxxx</primary><secondary>SHOW ERRORS xxxxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-6-ITERM-2562" significance="normal"><primary>COUNT xxxxxx</primary><secondary>SHOW ERRORS xxxxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-6-ITERM-2563" significance="normal"><primary>SHOW ERRORS xxxxxxxxx</primary></indexterm> -Uxx xxxx xxxxxxxxx xx xxxxxxx xxxxx xxxxxxxx xxx xxx xxxxxxxx SQL xxxxxxxxx. Tx xxx xxx xxxxxx xx xxxxx xxxxxxxx xxxxxxxxx xx xxx xxxxxxxx SQL xxxxxxxxx, xxx xxx <literal moreinfo="none">COUNT(*)</literal> xxxxxx. Tx xxxxx xxx xxxxxx xx xxxxx xxxxxxxx xxxxxxxxx, xxx xxx <literal moreinfo="none">LIMIT</literal> xxxxxx. Ax xxxxxx xxx xx xxxxx xxxxx xxxx xxx xxxxx xx xxxxxxx x xxxxxxxx xxxxx xxx xxxxxxxxxx xxxxx xxxxxxxx. -<indexterm id="mysqlian-CHP-6-ITERM-2564" significance="normal"><primary>SHOW WARNINGS xxxxxxxxx</primary></indexterm> -</para> - <para><indexterm id="mysqlian-CHP-6-ITERM-2565" significance="normal"><primary>xxxxxxxx, xxxxxxxxxx</primary></indexterm> -Txxx xxxxxxxxx xx xxxxxxxxx xx xx Vxxxxxx d.d xx MxSQL. Ix xxxx xxx xxxxxxx xxxxxxxx xx xxxxx—xxxx xxxxx xxxxxxxx. Uxx xxx <literal moreinfo="none">SHOW WARNINGS</literal> xxxxxxxxx xx xxx xxx xxxxx xxxxx xx xxxxxxxx.</para> - <para>Hxxx xxx x xxxxxx xx xxxxxxxx xx xxxx xxxxxxxxx, xxxxx xxxx xxxxxxx xxxxx xx <literal moreinfo="none">INSERT</literal> xxxxxxxxx xxx xxxxxxx xxx xxxxxxxxxxx x xxxxxxx:</para> - <programlisting format="linespecific">SHOW COUNT(*) ERRORS; - -+-----------------------+ -| @@xxxxxxx.xxxxx_xxxxx | -+-----------------------+ -| d | -+-----------------------+ - -SHOW ERRORS; - -+-------+------+-------------------------------------------------+ -| Lxxxx | Cxxx | Mxxxxxx | -+-------+------+-------------------------------------------------+ -| Exxxx | dddd | Cxxxxx xxxxx xxxxx'x xxxxx xxxxx xxxxx xx xxx d | -+-------+------+-------------------------------------------------+</programlisting> - <para>Txx xxxxx xxxxxxxxx xxxxxxx xxx xxxxxx xx xxxxx xxxxxxxx xxxxxxxxx xx xxx <literal moreinfo="none">INSERT</literal> xxxxxxxxx. Nxxxxx xxxx xxx xxxxxxx xxx xxxxxx xx xxx xxxxxxx xxxxxxxx <replaceable>xxxxx_xxxxx</replaceable>, xxxxx xx xxxxxxx xx xxxx xxxxxxxxx xxxxxx xx xxx xxxxxxx. Txx xxxxxx xxxxxxxxx xxxxxxxx xxx xxxxx xxxxxxxx. Txxx xxxxxxxxx xx xxxxxxx xxxx xxxxxxxxxx xxxx xxxx xxxx xx API xxxxxxx xx xxxxx xxx xxxxx xxxx xx xxxxxxx xxx xxxxx xxxxxxxx xxx x xxxxxxxx xxxxxxx xx xxxxxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch06-77020"> - <refmeta> - <refentrytitle>SHOW WARNINGS</refentrytitle> - </refmeta> - <refnamediv> - <refname>SHOW WARNINGS</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">SHOW WARNINGS [LIMIT [<replaceable>xxxxxx</replaceable>,] <replaceable>xxxxx</replaceable>] - -SHOW COUNT(*) WARNINGS</synopsis> - </refsynopsisdiv> - <refsect1 id="ch06-32-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-6-ITERM-3059" significance="normal"><primary>xxxxxxxx, xxxxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-6-ITERM-3060" significance="normal"><primary>LIMIT xxxxxx</primary><secondary>SHOW WARNINGS xxxxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-6-ITERM-3061" significance="normal"><primary>COUNT xxxxxx</primary><secondary>SHOW WARNINGS xxxxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-6-ITERM-3062" significance="normal"><primary>SHOW WARNINGS xxxxxxxxx</primary></indexterm> -Uxx xxxx xxxxxxxxx xx xxxxxxx xxxxxxx xxxxxxxx, xxxxx xxxxxxxx, xxx xxxxx xxx xxxxxxxx SQL xxxxxxxxxx xxx xxx xxxxxxx xxxxxxx. Txxx xxxxxxxxx xx xxxxxxxxx xx xx Vxxxxxx d.d xx MxSQL. Tx xxxxxxx xxx xxxxxx xx xxxx xxxxxxxx xxxxxxxxx xx xxx xxxxxxxx xxxxxxxxx xx xxx xxxxxxx, xxx xxx <literal moreinfo="none">COUNT(*)</literal> xxxxxx. Uxx xxx <literal moreinfo="none">LIMIT</literal> xxxxxx xx xxxxx xxx xxxxxx xx xxxxxxxx xxxxxxxxx. Ax xxxxxx xxx xx xxxxx xxxxx xxxx xxx xxxxx xx xxxxxxx x xxxxxxxx xxxxx xxx xxxxxxxxxx xxxxxxxx. Hxxx xxx x xxxxxx xx xxxxxxxx xx xxx xxx xxx xxx xxxx xxxxxxxxx:</para> - <programlisting format="linespecific">INSERT INTO xxxxxxx (xxxxxx_xxxx, xxxxxxxxx) -VALUES('Mxxxx & Axxxxxxxxx', 'ddd-ddd-dddd'); -Qxxxx OK, d xxx xxxxxxxx, d xxxxxxx (d.dd xxx) - -SHOW COUNT(*) WARNINGS; - -+-------------------------+ -| @@xxxxxxx.xxxxxxx_xxxxx | -+-------------------------+ -| d | -+-------------------------+ - -SHOW WARNINGS; - -+---------+------+--------------------------------------------------+ -| Lxxxx | Cxxx | Mxxxxxx | -+---------+------+--------------------------------------------------+ -| Wxxxxxx | dddd | Dxxx xxxxxxxxx xxx xxxxxx 'xxxxxx_xxxx' xx xxx d | -+---------+------+--------------------------------------------------+</programlisting> - <para>Ix xxxx xxxxxxx, xx’xx xxxxxxx xxx xxxx xx x xxxxxx xxx xxxxx xxxxxxxxx xxxxxx xx xxx xxxxx <replaceable>xxxxxxx</replaceable>, xxx xx xxx xxxxxxx xx xxx xxxx xxx xxxxxxx xxx xxxxxx. Txx xxxxxx xxxxxxxxx xxxxxxx xxx xxxxxx xx xxxxxxxx; xx xxxxxx, xxx xxxx xxxx xx xxx xxxxxxx xxxx xxx <literal moreinfo="none">INSERT</literal> xxxxxxx xxxx xx xxxx. Nxxxxx xxxx xxx xxxxxxx xxx xxxxxx xx xxx xxxxxxx xxxxxxxx <replaceable>xxxxxxx_xxxxx</replaceable>. Txx xxxxx SQL xxxxxxxxx xxxxxxxx xxx xxxxxxx xxxxxxx. Txxxx xxxxxxxxx xxx xxxxxxx xxxx xxxxxxxxxx xxxx xxxx xxxx xx API xxxxxxx xx xxxxx xxx xxxxx xxxx xx xxxxxxx xxxxxx xx xxxxxx xxxxxxxxx xx xxx xxxxx xxxxxxxx xxx x xxxxxxxx xxxxxxx xx xxxxxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch06-77021"> - <refmeta> - <refentrytitle>START TRANSACTION</refentrytitle> - </refmeta> - <refnamediv> - <refname>START TRANSACTION</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">START TRANSACTION [WITH CONSISTENT SNAPSHOT]</synopsis> - </refsynopsisdiv> - <refsect1 id="ch06-33-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-6-ITERM-3068" significance="normal"><primary>START TRANSACTION xxxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-6-ITERM-3069" significance="normal"><primary>COMMIT xxxxxxxxx</primary></indexterm> -Uxx xxxx xxxxxxxxx xx xxxxx x xxxxxxxxxxx. Txxxxxxxxxx xxxxxxxxxx xxx xxxxxxxxx xxxxxxxxx xx xxx IxxxDB, NDB Cxxxxxx, xxx BDB xxxxxxx xxxxxxx xxx xxx xxxxxxx xx xxxx xxxx MxISAM xxxxxx. Txx xxxxxxx xx x xxxxxxxxxxx xx xx xx xxxx xx xxxx SQL xxxxxxxxxx xx xxxx xx. Yxx xxx xxxxxxx x xxxxxxxxxxx xx xxx xxxxxxxxxxx xxx xxx xxx xxxx xxxxxxxxx xxxx x <literal moreinfo="none">COMMIT</literal> xxxxxxxxx, xxxxxxxxxx xx xxxxxxxx xxxxxxx xxxxxxxxxxx, xx xx xxxxxxxxxxx xxx xxxxxxxxxx. Ix xxxxxxx xxxxxxxx xx MxSQL, <literal moreinfo="none">BEGIN</literal> xx <literal moreinfo="none">BEGIN WORK</literal> xxxx xxxx xxxxxxx xx <literal moreinfo="none">START TRANSACTION</literal>. Sxx xxx xxxxxxxxxxx xx xxx <literal moreinfo="none">COMMIT</literal> xxxxxxxxx xxx xxx <literal moreinfo="none">ROLLBACK</literal> xxxxxxxxx xxx xxxx xxxxxxxxxxx xx xxxxxxxxxxxx. Txx <literal moreinfo="none">SAVEPOINT</literal> xxxxxxxxx xxx xxx <literal moreinfo="none">ROLLBACK TO SAVEPOINT</literal> xxxxxxxxxx xxx xxxx xx xxxxxx. -<indexterm id="mysqlian-CHP-6-ITERM-3070" significance="normal"><primary>COMMIT xxxxxxxxx</primary></indexterm> -<indexterm id="mysqlian-CHP-6-ITERM-3071" significance="normal"><primary>ROLLBACK xxxxxxxxx</primary><secondary>xxxxxxxxxxxx xxx</secondary></indexterm> -<indexterm id="mysqlian-CHP-6-ITERM-3072" significance="normal"><primary>BEGIN WORK xxxxxxxxx</primary></indexterm> -<indexterm id="mysqlian-CHP-6-ITERM-3073" significance="normal"><primary>BEGIN xxxxxxxxx</primary></indexterm> -<indexterm id="mysqlian-CHP-6-ITERM-3074" significance="normal"><primary>SAVEPOINT xxxxxxxxx</primary></indexterm> -</para> - <para>Hxxx xx xx xxxxxxx xx xxxx xxxxxxxxx’x xxx xx xxxxxxx:</para> - <programlisting format="linespecific">START TRANSACTION; -INSERT DATA INFILE '/xxx/xxxxxxxx_xxxxxx.xxx' -INTO TABLE xxxxxx; -COMMIT;</programlisting> - <para><indexterm id="mysqlian-CHP-6-ITERM-3075" significance="normal"><primary>START TRANSACTION xxxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-6-ITERM-3076" significance="normal"><primary>INSERT DATA INFILE xxxxxxxxx</primary></indexterm> -Ix xxxx xxxxxxx, xxxxx xxx xxxxx xx xxxxxx xxx xxxxxxxx xxxx xxx <emphasis>xxxxxx</emphasis> xxxxx, xxx xxxx xxxxxxx xxxxxxxxxx xxxx xxxxxxxx xxx xxxxxx xxx <literal moreinfo="none">COMMIT</literal> xxxxxxxxx xx xxxxxxxx xxxxx xxx xxxx xx xxx xxxxxxxx xxx xx xxx xxx xxxxxxxxxxx xxxxxxx xxxx xxx <literal moreinfo="none">START TRANSACTION</literal> xxxxxxxxx. Ix xxxxx xxx xxxx x xxxxxxx, xxx <literal moreinfo="none">ROLLBACK</literal> xxxxxxxxx xxxxx xx xxxxxx xxxxxxx xx <literal moreinfo="none">COMMIT</literal>. <literal moreinfo="none">ROLLBACK</literal> xxxxx xxxxxx xxx xxxx xxxxxxxx xx xxx <literal moreinfo="none">INSERT DATA INFILE</literal> xxxxxxxxx. -</para> - <para>Txx <literal moreinfo="none">WITH CONSISTENT SNAPSHOT</literal> xxxxxx xxxxxxxxx x xxxxxxxxxx xxxx. Ix xxxx xxx xxxxxx xxx xxxxxxx xxxxxxxxxxx xxxxxxxxx xxxxx. Txxxxxxxx, xx xxxxxxxx xxxxxxxxxx xxxx xxxx xx xxx xxxxxxx xxxxxxxxx xxxxx xxxxxx xxxxxxxxxx xxxxxxx (x.x., <literal moreinfo="none">REPEATABLE READ</literal> xx <literal moreinfo="none">SERIALIZABLE</literal>). Ax xxxx xxxx, xx xxxx xxxxx xxxx IxxxDB xxxxxx. Sxx xxx <literal moreinfo="none">SET TRANSACTION</literal> xxxxxxxxx xxx xxxx xxxxxxxxxxx xx xxxxxxxxx xxxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch06-77022"> - <refmeta> - <refentrytitle>TRUNCATE</refentrytitle> - </refmeta> - <refnamediv> - <refname>TRUNCATE</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">TRUNCATE [TABLE] <replaceable>xxxxx</replaceable></synopsis> - </refsynopsisdiv> - <refsect1 id="ch06-34-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-6-ITERM-3079" significance="normal"><primary>AUTO_INCREMENT xxxxxxx</primary><secondary>TRUNCATE TABLE xxxxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-6-ITERM-3080" significance="normal"><primary>DELETE xxxxxxxxx</primary><secondary>TRUNCATE TABLE xxxxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-6-ITERM-3081" significance="normal"><primary>xxxxxx</primary><secondary>xxxxxxxx xxxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-6-ITERM-3082" significance="normal"><primary>TRUNCATE TABLE xxxxxxxxx</primary></indexterm> -Uxx xxxx xxxxxxxxx xx xxxxxx xxx xxxxxxxx xx x xxxxx xxxxxxx. Ix’x xxxxxxx xx xxx <literal moreinfo="none">DELETE</literal> xxxxxxxxx xx xxxx xx xxxx xxxxxx xxx xx xxx xxxx xxxxxxxxx xx x xxxxx xxxxx. Txx <literal moreinfo="none">TRUNCATE</literal> xxxxxxxxx xxxx xxx xxx xx xxxxxxxx xxx xxxxx xxx xxxx xxxxxxxxxx xx xxxxxxx xxxx. Ax x xxxxxx, xx xxxx xxx xxxxxx xxx xxxxxx xx xxxx xxxxxxx. Axxxxxx xxxxxxxx xx xxxx xxx xxxxx xxx xx <literal moreinfo="none">AUTO_INCREMENT</literal> xxxxxx xxxx xx xxxx xxxxx xxxx xxx xxxx. Txx xxxxxxxxx xxxx xxxxxxxx xxxx xxxxxxxxxx xxx xxxxxxxxx xxxxxxxxxx xx xxx xxxxx xxx xxxxxxxxxx xxxxxxxxxxx. -</para> - <para>Txxx xxxxxxxxx xx xxx xxxxxxxxxxx-xxxx. Ax xx xxxxxxx d.d.dd xx MxSQL, <literal moreinfo="none">DROP</literal> xxxxxxxxxx xxx xxxxxxxx xxx xxxx xxxxxxxxx. Pxxxxxxxxx, <literal moreinfo="none">DELETE</literal> xxxxxxxxxx xxxx xxxxxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch06-77023"> - <refmeta> - <refentrytitle>UNION</refentrytitle> - </refmeta> - <refnamediv> - <refname>UNION</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">SELECT... UNION [ALL|DISTINCT] SELECT...[, UNION...]</synopsis> - </refsynopsisdiv> - <refsect1 id="ch06-35-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-6-ITERM-3083" significance="normal"><primary>SELECT...UNION xxxxxx (SELECT)</primary></indexterm><indexterm id="mysqlian-CHP-6-ITERM-3084" significance="normal"><primary>SELECT xxxxxxxxx</primary><secondary>UNION xxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-6-ITERM-3085" significance="normal"><primary>UNION xxxxxxx</primary></indexterm> -Txx <literal moreinfo="none">UNION</literal> xxxxxxx xxxxxx xxx xxxxxxx xx xxxxxxxx <literal moreinfo="none">SELECT</literal> xxxxxxxxxx xxxx xxx xxxxxxx xxx. Txx <literal moreinfo="none">SELECT</literal> xxxxxxxxxx xxx xxxxxxxx xxxx xxxx xxx xxxx xxxxx xx xxxx xxxxxxxxx xxxxxx. Ix xxxxxxxxx xxxxxx xxx xxxx, xxx xxxxxxx xxx xxxxxxxxx xx xxxx SQL xxxxxxxxx xxxxxx xxxxx xx xxxxxx xxxxx xxx xxx xxxxx xx xxxxxx xxxxx. Txx xxxxxx xxxxx xx xxx xxxx xx xx xxx xxxx, xxx xxx xxxx xxxx xx xxx xxxxxxxxxx xxxxxx xx xxx xxxxxxx xxx xxxxx xx xxxxx. -</para> - <para>Dxx’x xxxxxxx xxxx xxxxxxxxx xxxx xxx <literal moreinfo="none">JOIN</literal> xxxxxx xx x xxxxxxxx, xxxxx xxx xxxx xx xxxxx xxxxxxx xx xxxx xxxx xxxxxxxx xxxxxx xxxx xxxx xx xxx xxxxxxx xx x <literal moreinfo="none">SELECT</literal> xxxxxxxxx. Ix xxxxxxxx, xxx <literal moreinfo="none">UNION</literal> xxxxxx xx xxxx xx xxxxx xxxxxxxx xxx xxxxxxx xxxxxx xx xxxxxxxx xxx xxxxxxxx <literal moreinfo="none">SELECT</literal> xxxxxxxxxx xxxx xxx xxxxxxx xxxxx.</para> - <para>Hxxx xx xx xxxxxxx xx x <literal moreinfo="none">UNION</literal> xxxx xx xxxxx xxx xxxxxxx xx xxx <literal moreinfo="none">SELECT</literal> xxxxxxxxxx:</para> - <programlisting format="linespecific">SELECT CONCAT(xxxx_xxxxx, SPACE(d), xxxx_xxxx) AS Nxxx, -xxxxxxxxx_xxxx AS Txxxxxxxx -FROM xxxxxxxxx -UNION -SELECT xxxxxxxx, xxxxxxxxx FROM xxxxxxxx -ORDER BY Nxxx;</programlisting> - <para><indexterm id="mysqlian-CHP-6-ITERM-3086" significance="normal"><primary>UNION xxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-6-ITERM-3087" significance="normal"><primary>ORDER BY xxxxxx</primary><secondary>SELECT xxxxxxxxx</secondary></indexterm> -Txxx xxxxxxxxx xxxxxxxx x xxxx xx xxxxxxxxx xxx xxxxxx xxxxxx xxxxxxxxx xx xxx xxxxxx, xxxx xxx xxxxxxxxx xxxxxx xxx xxxx xx xxx xxxxxx. Txx xxxxxx xxxxxxxx xxxx xxx xxx xxxxxxx xxx xxxx xx xxx xxxx xxxx xxx xxx xxxxx <literal moreinfo="none">SELECT</literal> xxxxxxxxx. Bxxxxxx xx xxx <literal moreinfo="none">ORDER BY</literal> xxxxxx, xxx xxxxxxx xxxx xx xxxxxx xx xxx xxxxxx xxx xxx xxxxx <emphasis>Nxxx</emphasis>. Oxxxxxxxx, xxx xxxxx xx xxxxxxxxx xxxxx xx xxxxxx xxxxxx xxx xxxxx xx xxxxxxx. Txx xxxxxxx xxxxx xxxxxx xxx xxxxxxx xx xxxx xxx <literal moreinfo="none">SELECT</literal> xxxxxxxxxx. Yxx xxx xxxxx xxxxxxx <literal moreinfo="none">SELECT</literal> xxxxxxxxxx, xxxxxxxx xxx <literal moreinfo="none">UNION</literal> xxxxxxx xxxxxx xxxx xxxxxxxxxx <literal moreinfo="none">SELECT</literal> xxxxxxxxx. -</para> - <para>Ix x xxx xxxxxxx xxx xx xx xx xxxxxx xxxxx xx x xxxxxx, xxx xxxxx xxxx xxxx xxx xx xxxxxxxxx xx xxx <literal moreinfo="none">ORDER BY</literal> xxxxxx (x.x., <replaceable>xxxxx.xxxxxx</replaceable> xx xx xxxxxx xxxxxxxx). Tx xxxxxxx xxxxxxxxx, xxx xx xxxxx xxx xxx xxxxxxx xx xxxxx xx. Ix xx xxxxx xxx xxxx xxxxx xxx x xxxxxx xxxx xx xx xx xxxx xx xxx <literal moreinfo="none">ORDER BY</literal> xxxxxx, xxxx xxxxx xxxx xx xxxx xxxxxxx xx xxx xxxxxx xxxx. Txx xxx xx xxxxxx xxxxxxxx xxx xxxx xxxxxxxxxx.</para> - <para>Txx xxxxxxx <literal moreinfo="none">DISTINCT</literal> xxxxxxxxx xxxx xxx xxxxxxxxxx xxxx (xxxx xxxxx xxx xx xxx xxxx xx xxx xxxxxxx xxx xxx xxxx xx x xxxxxxxx xxx) xxx xxx xxxxxxxx xx xxx xxxxxxx. Txxx xx xxx xxxxxxx, xx xx’x xxx xxxxxxxxx xx xxxxxxx xxx xxxxxxx <literal moreinfo="none">DISTINCT</literal>. Ixxxxxxxx xxx xxxxxxx <literal moreinfo="none">ALL</literal>, xxxxxx, xxxx xxxxxxxx MxSQL xx xxxxxxx xxx xxxx, xxxxxxxxx xxxxxxxxxx.</para> - <para>Tx xxxxx xxx xxxxxxx xx x xxxxx, xxx xxx <literal moreinfo="none">LIMIT</literal> xxxxxx xx xxx xxx xx xxx SQL xxxxxxxxx:</para> - <programlisting format="linespecific">SELECT CONCAT(xxxx_xxxxx, SPACE(d), xxxx_xxxx) AS Nxxx, -xxxxxxxxx_xxxx AS Txxxxxxxx -FROM xxxxxxxxx -UNION -SELECT xxxxxxxx, xxxxxxxxx FROM xxxxxxxx -ORDER BY Nxxx -LIMIT dd;</programlisting> - <para>Tx xxxxx xxx xxxxxxx xx xxx xxxxx xx x xxxxx xxx xxx xxx xxxxx xxxxxxx xxx, xxx xxxxxxxxxxx xxxxxx xxx xxxxxxxxxx <literal moreinfo="none">SELECT</literal> xxxxxxxxxx xxx xxx xxx <literal moreinfo="none">LIMIT</literal> xxxxxx xx xxx xxx xx xxx <literal moreinfo="none">SELECT</literal> xxxxxxxxx xx xxxxxxxxxx xxxx xxx xxxx xx xxxxx:</para> - <programlisting format="linespecific">( SELECT CONCAT(xxxx_xxxxx, SPACE(d), xxxx_xxxx) AS Nxxx, -xxxxxxxxx_xxxx AS Txxxxxxxx FROM xxxxxxxxx LIMIT dd) -UNION -( SELECT xxxxxxxx, xxxxxxxxx FROM xxxxxxxx ) -ORDER BY Nxxx;</programlisting> - <para>Txxx xxxxxxxxx xxxxxx xxx xxxxxxx xx xxxx xxx xxxxxxxxx, xxx xxxxxx xxx xx xxx xxxxxxxx xx xx xxxxxxxxx. Yxx xxx xxx xxxxxx xx xxxx <literal moreinfo="none">SELECT</literal> xxxxxxxxx xx xxx xxxx, xxx xxxxx xxx xxxxx xxxxxxx xx xxxxxx xxx <literal moreinfo="none">LIMIT</literal> xxxxxx xx xxx xxx xx xxx xxxx SQL xxxxxxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch06-77024"> - <refmeta> - <refentrytitle>UPDATE</refentrytitle> - </refmeta> - <refnamediv> - <refname>UPDATE</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">UPDATE [LOW_PRIORITY] [IGNORE] <replaceable>xxxxx</replaceable> -SET <replaceable>xxxxxx</replaceable>=<replaceable>xxxxxxxxxx</replaceable>[, ...] -[WHERE <replaceable>xxxxxxxxx</replaceable>] -[ORDER BY {<replaceable>xxxxxx</replaceable>|<replaceable>xxxxxxxxxx</replaceable>|<replaceable>xxxxxxxx</replaceable>}[ASC|DESC], ...] -[LIMIT {[<replaceable>xxxxxx</replaceable>,] <replaceable>xxxxx</replaceable>|<replaceable>xxxxx</replaceable> OFFSET <replaceable>xxxxxx</replaceable>}] - -UPDATE [LOW_PRIORITY] [IGNORE] <replaceable>xxxxx_xxxxxxxxx</replaceable> - SET <replaceable>xxxxxx</replaceable>=<replaceable>xxxxxxxxxx</replaceable>[, ...] - [WHERE <replaceable>xxxxxxxxx</replaceable>]</synopsis> - </refsynopsisdiv> - <refsect1 id="ch06-36-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-6-ITERM-3092" significance="normal"><primary>UPDATE xxxxxxxxx</primary></indexterm> -Txxx xxxxxxxxx xxxxxxx xxxxxxxx xxxx xx xxxx xx x xxxxx. Txx xxxxx xxxxxx xxxxx xxxxxxx xxxx xxx xxxxx xxx xxxxxxxxx. Txx xxxxxx xxxxxx xxx xx xxxx xx xxxxxx xx xxxxxxxxx xxxx xx xxxxxxxx xxxxxx xxxx xxx xxxxxxxxx. Exxxxxxxxxxx xx xxxx xxxxx xx xxxxxxxxxx xxx xxxxxxxx xx xxxxx xxx xxxxxx. -</para> - </refsect1> - <refsect1 id="ch06-37-fm2xml"> - <title>Sxxxxx Txxxx UPDATE - UPDATE [LOW_PRIORITY] [IGNORE] xxxxx -SET xxxxxx=xxxxxxxxxx[, ...] -[WHERE xxxxxxxxx] -[ORDER BY {xxxxxx|xxxxxxxxxx|xxxxxxxx}[ASC|DESC], ...] -[LIMIT {[xxxxxx,] xxxxx|xxxxx OFFSET xxxxxx}] - Txxx xxxxxx xxxxxxx x xxxxxx xxxxx. Txx SET xxxxxx xxxxxxxxx xxxx xxxxxx xxxx xxxxxx xxxxxx xxx xxx xxxxx xx xxxxx xx xx xx xx xxx, xxxxxxxxx xx xx xxxxx xxxx. Txx xxxxx xxx xx x xxxxxx xxxxx xx xx xxxxxxxxxx. Ix x xxxxxx xx x xxxxx xx xxxxxxx xx NOT NULL, xxx xx xx UPDATE xxxxxxxxx xxxx xxxx xxx xxxxx xx NULL, xxx xxxxxxx xxxxx xxx xxx xxxxxx xxxx xx xxxx xx xx xx xxxxxxxxx; xxxxxxxxx xx xxxxx xx xxxxxxxxx. - Txx LOW_PRIORITY xxxxxxx xxx xx xxxx xx xxxxxxxx xxx xxxxxx xx xxxx xxxxx xxx xxxxx xxxxxxx xxxxxxx xx xxx xxxxx xx xxxxx xxxx xx xx xx xxxxx xxx xxxxxxxxx xxxxxx xxxxxxx xxx UPDATE xxxxxxxxx. Wxxx xxx xxxxx xx xxxx, xx xxxx xx xxxxxx xxx xxx UPDATE xxxxxxxxx xxx xxxxxxx xxxxxxx xxxxxxxxxx xxxx xxxxxxx xx xxxxxxx. - Nxxxxxxx, xx xxx xx xxx xxxxxxx xxxxx xxxxxx x xxxxxxxxx xxx (x xxx xxxx xxxxxx xxx xxxx xxxxx xx xx xxxxxxxx xxx xx x xxxxxx xxxxxxxx xx xx xxxxxx), xxx xxxxxxxxx xxxxxxx xx xxxxx. Txx xxxxxxxxx xx xxxx xxxxxxxxxx xxx xx xxxx xxxx xxx xxxxxxx. Ix xxx xxxxx xx IxxxDB, BDB, xx NDB, xxx xxxxxx xxxxxxxxxxx xx xxxxxxxx xx xxxxxx xxxx; xxxxxxxxx, xxx xxxx xxxx xxxx xxxxxxx xxxxxx xxx xxxxx xxxx xxxxxx xxxxxxx. Hxxxxxx, xx xxx IGNORE xxxxxxx xx xxxx, xxx xxxxxx xxxxxxx xxx xxxxxx xxxxxxxxxxx, xxxxxxxxxx xxxxx xxxxxxxx, xxx xxxxxxxxx xxxxxxxx xxx-xxxxxxxxx xxxx. Txx xxxxxxx xx xxxx x xxxxxxxxx xxxx xxxxxxx xxxx xxxx: - Qxxxx OK, ddd xxxx xxxxxxxx (d.dd xxx) -Rxxxxxx: ddd Dxxxxxxxxx: d Wxxxxxxx: d - Nxxxxx xxxx xxxx ddd xxxx xxxx xxxxxxx, xxxxxxxx ddd xxxxx xxxx xxxx xxxxxxx xxxx xx xxx xxx xxx xxxxxxxxxxx xxxxxxx. - Ax xxxxxxx xxxxxxx xx xxx UPDATE xxxxxxxxx xxxxx xxxx xxxxxx: - UPDATE xxxxxxx -SET xxxxxx_xxxx = 'Gxxxxxxx & Cxxxxxx', -xxxx = 'Bxxxxx', xxxxx = 'MA' -WHERE xxxxxx_xxxx LIKE 'Gxxxxxxx%'; - Txxx xxxxxxx xxxx xxx xxxxxx xx xxx xxxxxxx xxx xxx xxxx (xxxxxxxx xxxx xxx xx xxxx xxxx) xxxx xxxx xxx xxxxxxxxx xx xxx WHERE xxxxxx xxxxx xxx LIKE xxxxxxxx. Oxxx xxxxx xxx xxxxxxx xxxx xx xxxxxxx xx xxx xxxxxxxx xxxx. Ix xxxxx xxx xxxxxxx xxxx xxxx xxx xxxxxx xxxxxx_xxxx xxxxxxxxxx x xxxxxxxx xxxxx xx Gxxxxxxx, xxx xx xxxx xxxx xx xxxxxxx. - Txx xxxxxx xx xxxx xxxx xxx xxxxxxx xxx xx xxxxxxx xx xxxxx xxx LIMIT xxxxxx. Ax xx xxxxxxx d.d.dd xx MxSQL, xxx LIMIT xxxxxx xx xxxxx xx xxx xxxxxx xx xxxx xxxxxxx, xxx xxxxxxxxxxx xxx xxxxxx xxxxxxx. Sxxxxxxx xxxx xxxxxxx d.d.d xx MxSQL, xxx xxx xxxx xxxxxx xx UPDATE xxxx xxx xxxxx xxx xxxx xxxxx xx x xxxxxxx xxxxx xx xxxxx xxx ORDER BY xxxxxx. Sxx xxx SELECT xxxxxxxxx xxxxxxx xx xxxx xxxxxxx xxx xxxxxxx xxxxx xxx ORDER BY xxx xxx LIMIT xxxxxxx. Ax xxxxxxx xxxxxxx xx xx UPDATE xxxxxxxxx xxxxx xxxx xx xxxxx xxxxxxx: - UPDATE xxxxxxx -SET xxxxxx_xxxxx = xxxxxx_xxxxx + dd -WHERE xxxxxx_xxxx = 'Bxxxxx' -AND YEAR(xxxx_xxxxxx) < dddd -ORDER BY xxxx_xxxxxx -LIMIT dd; - Txxx xxxxxxx xxxxxxxxx xxxx xx’xx xxxxxxx xx xxxxxxxx xxxxxxxxxxx xxxxxxx xxx xxxxxx xxxxx (x.x., xxxxx dd xxxxxxxxxx xxxx xx xxx xxxxx xxxxxxxx) xxx xxx xxxxxxx xxxxxxx xx Bxxxxx xxx xxxxxx xx xxxxxxx xxxxxx xxx xxxx dddd, xxx xxxx xxx xxx xxxxx dd xxxxxxx xxxxx xx xxx xxxx xxxxx xx xxxxx xxxxx xxxxxxx xxx xxxxxx. Nxxxxx xxxx xxx xxxxx xx xxx xxxxxx xxxxxx_xxxxx xx xxx xxxx xx xxxxxxxxxx xxxx xxxxxx xx xxx xxxxx xx xxx xxxxxx xxxxxx xxx UPDATE xxxxxxxxx xx xxxxxxxx. Exxxxxxxxxx xxx xxxxxxxxxx xxxx xxxx xx xxxxx, xx xxx xxxxxxx xx xxx xxxxxxxxxx xxxxx xxxxxx xxx xxxxxxx xx xxxxx xxxx xxxxxx xxxxxx xxx xxxx xxxxxxxxx. - - - Mxxxxxxx Txxxx UPDATE - UPDATE [LOW_PRIORITY] [IGNORE] xxxxx_xxxxxxxxx -SET xxxxxx=xxxxxxxxxx[, ...] -[WHERE xxxxxxxxx] - Txxx xxxxxx xx xxx UPDATE xxxxxxxxx, xxxxxxxxx xx xx xxxxxxx d.d.d xx MxSQL, xxxxxx xxx xxxxxxxx xxxxxx xx xx xxxxxxx xx xxxxxxxxxx xx xxx SQL xxxxxxxxx. A SET xxxxxx xxxxxxxxx xxxx xxxxxx xxxx xxxxxx xxxxxx xxx xxx xxxxx xx xxxxx xx xx xx xx xxx, xxxxxxxxx xx xx xxxxx xxxx. Txx xxxxx xxx xx x xxxxxx xxxxx xx xx xxxxxxxxxx. Txx xxxxxxxx LOW_PRIORITY xxx IGNORE xxx xxxxxxx xxx xxxx xxx xx xx xxx xxxxx xxxxxx xxx xxx UPDATE xxxxxxxxx. Txx ORDER BY xxx xxx LIMIT xxxxxxx xxx xxx xxxxxxxxx xxxx xxx xxxxxxxx-xxxxx xxxxxx. - Txx xxxxxxx xx xxxxx xxxxxx xxx xxxxxx xxx xx xxxxx xx xxx WHERE xxxxxx (x.x., WHERE xxxxxxx.xxxxxx_xx=xxxxxxxx.xxxxxx_xx), xx xxxx xxx JOIN xxxxxx. Ax xxxxxxx xxxxxxx xxxxx xxx JOIN xxxxxx: - UPDATE xxxxxxx JOIN xxxxxxxx USING (xxxxxx_xx) -SET xxxxxx_xxxxx = xxxxxx_xxxxx + dd -WHERE xxxxxxxx = 'Nxx Oxxxxxx'; - Ix xxxx xxxxxxx, xxxx xxx xxxxx xx xxxxx xxxxxxx, xxx xxx xxx xxxxxx xx xxxxxxxxx xxxxx xxxxxxx xxxxxx xx xxx Nxx Oxxxxxx xxxxxx xx xxxxx xx xx xxxx xx xxxx xxxx dd xxxxxxxxxx xxxx xx xxx xxxxx xxxx xxx xx x xxxxxx xxxxxxxxx. Sxx xxx JOIN xxxxxx xxxxxxx xx xxxx xxxxxxx xxx xxxxxxx xx xxxxxxx xxxxxx. - - - - - USE - - - USE - - - - USE xxxxxxxx - - - - <para><indexterm id="mysqlian-CHP-6-ITERM-3091" significance="normal"><primary>USE xxxxxxxxx</primary></indexterm> -Txxx xxxxxxxxx xxxx xxx xxxxxxx xxxxxxxx MxSQL xx xx xxx xxx xxx xxxxxxx xxxxxxx. Txxx xxxxxx xxx xxxx xx xxx xxxxxxx xxxxxxxx xx xx xxxxxxx xxxx xxxxxxxxxx. Fxx xxxxxxxx, <emphasis>xxd.xxxxxd</emphasis> xxx xx xxxxxxx xx xxxx <emphasis>xxxxxd</emphasis>, xxx <emphasis>xxd</emphasis> xx xxxxxxx. -</para> - <programlisting format="linespecific">USE xxxxxxx_xxxxxxxx;</programlisting> - <para> -Txx xxxxxxxxx xxx xx xxxxxxx xxxx xxx xxxxxxxxx. Txx <emphasis>xxxxx</emphasis> xxxxxx xxx xxxxxxx x xxxxxxxx xx xxxxx-xx xxxxxxx xxx <option>--xxxxxxxx</option> xx <option>--D</option> xxxxxx. -</para> - </refsect1> - </refentry> - <refentry id="ch26-77024"> - <refmeta> - <refentrytitle>XA</refentrytitle> - </refmeta> - <refnamediv> - <refname>XA</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">XA {START|BEGIN} '<replaceable>xxxxxxxxxx</replaceable>' [JOIN|RESUME] - -XA PREPARE '<replaceable>xxxxxxxxxx</replaceable>' - -XA COMMIT '<replaceable>xxxxxxxxxx</replaceable>' [ONE PHASE] - -XA ROLLBACK '<replaceable>xxxxxxxxxx</replaceable>' - -XA RECOVER - -XA END '<replaceable>xxxxxxxxxx</replaceable>' [SUSPEND [FOR MIGRATE]]</synopsis> - </refsynopsisdiv> - <refsect1 id="ch06-40-fm2xml"> - <title/> - <para>Txxx xxxxxxxxx xx xxxx xxx XA xxxxxxxxxxx xxxxxxxxxxxx. Txxxx xxx xxxxxxxxxxxx xx xxxxx xxxxxxxx, xxxxxxxx xxxxxxxxxxxxx xxxxxxxxx xxx xx xxxxxxxx xx x xxxxxx xxxxxxxxxxx. Ix MxSQL, xxxx xx xxxxxxxxx xxxxxxxxx xxxx xxxx IxxxDB xxxxxx.</para> - <para>Txx <literal moreinfo="none">XA START</literal> xxxxxxxxx xxxxxx xx XA xxxxxxxxxxx, xxxxxxxxx xx xxxxxxxxxx xx xx xxxx xx xxxxxxxxxx xxxxxxxxxx, xxx xxxx xxx xxxxxxxxxxx xxxx xx <literal moreinfo="none">ACTIVE</literal> xxxxx. Ixxxxxxx xxxxxxx xxxxxx xx xxxx xxxxx xxx xxxxxxxxxxx xx xx <literal moreinfo="none">ACTIVE</literal> xxxxx. Txxx xxxxxxxxx xx xxxxxxxxxx xxxx <literal moreinfo="none">XA BEGIN</literal>. Txx <literal moreinfo="none">JOIN</literal> xxx <literal moreinfo="none">RESUME</literal> xxxxxxxx xxx xxx xxxxxxxxx.</para> - <para>Oxxx xxx’xx xxxxxxx xxx xx xxx SQL xxxxxxxxxx xxx x xxxxxxxxxx xxxxxxx, xxxx xxx xxxxxxxxxxx xx <literal moreinfo="none">PREPARED</literal> xx xxxxxxxxx xx <literal moreinfo="none">XA PREPARE</literal>. <literal moreinfo="none">XA RECOVER</literal> xxxxx xxx xxxxxxxxxxxx xx x xxxxxxxx xxxxx. Uxx xxx <literal moreinfo="none">XA COMMIT ONE PHASE</literal> xxxxxxxxx xx xxxx xxx XA xxxxxxxxxxx xxxx xxxxx xx xxxxxxxx xxx xxxxxxxxx. <literal moreinfo="none">XA COMMIT</literal> xxxxxxx xxx <literal moreinfo="none">ONE PHASE</literal> xxxxxxx xxxx xxxxxx xxx xxx xxx xxxxxx xxxxxxxxxxx. Uxx <literal moreinfo="none">XA ROLLBACK</literal> xx xxxx xxx xxxxxxxxx XA xxxxxxxxxxx xxx xxxxxxxxx xx. <literal moreinfo="none">XA END</literal> xxxx xxx xxxxxxxxx xxxxxxxxxxx xxx xxxx xx xxxx xx <literal moreinfo="none">IDLE</literal> xxxxx.</para> - </refsect1> - </refentry> - </sect1> - <sect1 id="mysqlian-CHP-6-SECT-3"> - <title>Fxxxxxxxx xx Axxxxxxxxxxx Oxxxx - Txxx xxxxxxx xxxxxxxxx xxxxxxx xxxxxxxxx xxxx xxx xxxxxxx xxxxxxx xx xxx xxxx xxxxxxxxxxxx SQL xxxxxxxxxx xx xxxx xxxxxxx. Fxxxxxxxx xxx xxx xxxxxxxxxx xxx xxxxxxxxx xx xxxxxx xxxx xxx xxxxxxx xx xxxxx xxxxxxxx. - - - ANALYSE( ) - - - ANALYSE( ) - - - - ANALYSE([xxxxxxx_xxxxxxxx[, xxxxxxx_xxxxxx]]) - - - - <para><indexterm id="mysqlian-CHP-26-ITERM-3484" significance="normal"><primary>ANALYSE( ) xxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-26-ITERM-3485" significance="normal"><primary>PROCEDURE xxxxxx</primary><secondary>ANALYZE( ) xxxxxxxx</secondary></indexterm> -Txxx xxxxxxxx xxxxxxx xx xxxxxxxx xx x xxxxxxx xxxxx xxxx x <literal moreinfo="none">SELECT</literal> xxxxxxxxx. Uxx xxxx xxxxxxxx xxxx xx xxxx xx x <literal moreinfo="none">PROCEDURE</literal> xxxxxx. Txx xxxxx xxxxxxxxx xx xxx xxxxxxx xxxxxx xx xxxxxx xxxxxx xxxx xxx xx xxxxxxxx xxx xxxx xxxxxx; xxx xxxxxxx xx ddd. Txx xxxxxx xxxxxxxxx xx xxx xxxxxxx xxxxxx xxxx xxxxxx xx xxxxxxxxx xxx xxxx xxxxxx xxxxxx xxxxxxxx; xxx xxxxxxx xx d,ddd xxxxx (d MB). Exxxxxx:</para> - <programlisting format="linespecific">SELECT xxxd -FROM xxxxxd -PROCEDURE ANALYSE( ) \G -*************************** d. xxx *************************** - Fxxxx_xxxx: xxxxxd.xxxd - Mxx_xxxxx: d - Mxx_xxxxx: dd - Mxx_xxxxxx: d - Mxx_xxxxxx: d - Exxxxxx_xx_xxxxx: d - Nxxxx: d -Axx_xxxxx_xx_xxx_xxxxxx: dd.dddd - Sxx: dd.dddd - Oxxxxxx_xxxxxxxxx: TINYINT(d) UNSIGNED NOT NULL</programlisting> - </refsect1> - </refentry> - <refentry id="ch26-77026"> - <refmeta> - <refentrytitle>BENCHMARK( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>BENCHMARK( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">BENCHMARK(<replaceable>xxxxxx</replaceable>, <replaceable>xxxxxxxxxx</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch06-42-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-26-ITERM-3487" significance="normal"><primary>BENCHMARK( ) xxxxxxxx</primary></indexterm> -Uxx xxxx xxxxxxxx xx xxxxxxxx xxx xxxxxxxxxxx xx x MxSQL xxxxxx. Txx xxxxxxxxxx xxxxx xx xxx xxxxxx xxxxxxxx xx xxx xxxxxxxx xx xxxxxxxx xxx xxx xxxxxx xx xxxxx xxxxx xx xxx xxxxx xxxxxxxx. Txx xxxxxxx xxx xxxxxx d. Ix’x xxx xxxxxxxxxx xxxx xxxxxxxx xxxx xx xxxxxxxxxx. Txxx xxxxxxxx xx xxxxx xx xx xxxx xxxx xxxxxx xxx <emphasis>xxxxx</emphasis> xxxxxx.</para> - <programlisting format="linespecific">SELECT BENCHMARK(ddddddd,PI( )); - -+--------------------------+ -| BENCHMARK(ddddddd,PI( )) | -+--------------------------+ -| d | -+--------------------------+ -d xxx xx xxx (d.dd xxx) - -SELECT BENCHMARK(ddddddd,PI( )); - -+--------------------------+ -| BENCHMARK(ddddddd,PI( )) | -+--------------------------+ -| d | -+--------------------------+ -d xxx xx xxx (d.dd xxx)</programlisting> - <para>Txxx xxxxxxxx xxxxxxx xx xxxxxxxx xx x xxxxxxx xxxxx xxxx x <literal moreinfo="none">SELECT</literal> xxxxxxxxx. Uxx xxxx xxxxxxxx xxxx xx xxxx xx x <literal moreinfo="none">PROCEDURE</literal> xxxxxx. Txx xxxxx xxxxxxxxx xx xxx xxxxxxx xxxxxx xx xxxxxx xxxxxx xxxx xxx xx xxxxxxxx xxx xxxx xxxxxx; xxx xxxxxxx xx ddd. Txx xxxxxx xxxxxxxxx xx xxx xxxxxxx xxxxxx xxxx xxxxxx xx xxxxxxxxx xxx xxxx xxxxxx xxxxxx xxxxxxxx; xxx xxxxxxx xx d,ddd xxxxx (d MB). Exxxxxx:</para> - </refsect1> - </refentry> - <refentry id="ch26-77027"> - <refmeta> - <refentrytitle>DATABASE( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>DATABASE( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">DATABASE( )</synopsis> - </refsynopsisdiv> - <refsect1 id="ch06-43-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-26-ITERM-3515" significance="normal"><primary>DATABASE( ) xxxxxxxx</primary></indexterm> -Txxx xxxxxxxx xxxxxxx xxx xxxx xx xxx xxxxxxxx xxxxxxxxx xx xxx xxx xxx xxxxxxx. Txxxx xxx xx xxxxxxxxx. Ix xx xxxxxxxx xxx xxxx xxx xx xxxxxxx xxx, xx xxxxxxx NULL; xxxxx xx Vxxxxxx d.d.d xx MxSQL, xx xxxxxxx xx xxxxx xxxxxx.</para> - <programlisting format="linespecific">SELECT DATABASE( ); - -+--------------------+ -| DATABASE( ) | -+--------------------+ -| xxxxxxx_xxxxxxxx | -+--------------------+</programlisting> - <para>Ax xx xxxxxxx d.d.d xx MxSQL, <literal moreinfo="none">SCHEMA( )</literal> xxx xxxx xxxxxxxxxx xx x xxxxxxx xxx <literal moreinfo="none">DATABASE( )</literal>.</para> - </refsect1> - </refentry> - <refentry id="ch26-77028"> - <refmeta> - <refentrytitle>FOUND_ROWS( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>FOUND_ROWS( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">FOUND_ROWS( )</synopsis> - </refsynopsisdiv> - <refsect1 id="ch06-44-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-26-ITERM-3516" significance="normal"><primary>FOUND_ROWS( ) xxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-26-ITERM-3517" significance="normal"><primary>SELECT xxxxxxxxx</primary><secondary>SQL_CALC_FOUND_ROWS xxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-26-ITERM-3518" significance="normal"><primary>SQL_CALC_FOUND_ROWS xxxxxxx (SELECT)</primary></indexterm> -Uxx xxxx xxxxxxxx xx xxxxxxxxxxx xxxx xxx <literal moreinfo="none">SQL_CALC_FOUND_ROWS</literal> xxxxxx xx x <literal moreinfo="none">SELECT</literal> xxxxxxxxx xx xxxxxxxxx xxx xxxxxx xx xxxx xx SQL xxxxxxxxx xxxxx x <literal moreinfo="none">LIMIT</literal> xxxxxx xxxxx xxxx xxxxxxxxx xxxxxxx xxx xxxxxxxxxx. Txxxx xxx xx xxxxxxxxx xxx xxx xxxxxxxx. Ix’x xxxxxxxxx xx xx Vxxxxxx d xx MxSQL. -</para> - <programlisting format="linespecific">SELECT SQL_CALC_FOUND_ROWS -xxxx_xxxxx, xxxx_xxxx, xxxxxxxxx_xxxx, -DATEDIFF(xxx( ), xxxx_xxxxxx) -AS 'Dxxx Sxxxx Lxxx Rxxxxx' -FROM xxxxxxxxx -WHERE xxxx = 'xxxxx' -ORDER BY xxxx_xxxxxx DESC -LIMIT dd; - -SELECT FOUND_ROWS();</programlisting> - <para>Ix xxx xxxxx xxxxxxxxx xx xxxxxxxx x xxxx xx xxxxx xxxxxx xx xxxxxx, xxxxxxx xx xxx xxx xxx xxxx xxxx xxx xxxxxxx xxxxxxx x xxxxxxxxxxx xxxxxx. Ix xxx xxxxxx SQL xxxxxxxxx, xx’xx xxxxxxx x xxxxx xxxxx xx xxx xxxx xxxxxxxxx xxxxx xxx xx xxxxxx xx xxx xxxxx xxxxxxxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch26-77029"> - <refmeta> - <refentrytitle>LAST_INSERT_ID( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>LAST_INSERT_ID( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">LAST_INSERT_ID([<replaceable>xx</replaceable>])</synopsis> - </refsynopsisdiv> - <refsect1 id="ch06-45-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-26-ITERM-3527" significance="normal"><primary>LAST_INSERT_ID( ) xxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-26-ITERM-3528" significance="normal"><primary>AUTO_INCREMENT xxxxxxx</primary><secondary>LAST_INSERT_ID( ) xxxxxxxx</secondary></indexterm> -Txxx xxxxxxxx xxxxxxx xxx xxxxxxxxxxxxxx xxxxxx xx xxx xxxx xxx xxxxxxxx xxxxx xxx MxSQL xxxxxxxxxx. Txx xxxxxxxxxxxxxx xxxxxx xxx xxxx xxxxxxxx xx xxxxx xxxxxxx xxxx xxx xx xxxxxxxx. Ixxxxxxxxxxxxx xxxxxxx xxxx xxxx xxx xxxxxxxx xxxx xxxx xxx xxxxxxxx, xxxxxxx xxx xxx xx <literal moreinfo="none">AUTO_INCREMENT</literal>, xxx’x xxxxxxxx xxx xxxxxxxxx xxx’x xx xxxxxxxx xx <literal moreinfo="none">LAST_INSERT_ID( )</literal>. Ix xxxxxxxx xxxx xxx xxxxxxxx xx xxx SQL xxxxxxxxx, <literal moreinfo="none">LAST_INSERT_ID( )</literal> xxxxxxx xxx xxxxxxxxxxxxxx xxxxxx xxx xxx xxxxx xxx xxxxxxxx.</para> - <programlisting format="linespecific">SELECT LAST_INSERT_ID( ); - -+-------------------+ -| LAST_INSERT_ID( ) | -+-------------------+ -| dddd | -+-------------------+</programlisting> - </refsect1> - </refentry> - <refentry id="ch26-77030"> - <refmeta> - <refentrytitle>ROW_COUNT( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>ROW_COUNT( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">ROW_COUNT( )</synopsis> - </refsynopsisdiv> - <refsect1 id="ch06-46-fm2xml"> - <title/> - <para>Txxx xxxxxxxx xxxxxxx xxx xxxxxx xx xxxx xxxxxxx xx xxx xxxxxxxx SQL xxxxxxxxx. Ix xxx xxxxxxxx xxxxxxxxx xxx xxx xxx xxxx xxxxx xxxxxxxxxxx xxxxxx xxxx xxxx—xx xxxxx xxxxx, xx xxxx’x xx <literal moreinfo="none">INSERT</literal>, <literal moreinfo="none">UPDATE</literal>, <literal moreinfo="none">DELETE</literal>, xx xxxxx xxxx xxxxxxxxx— xxxx xxxxxxxx xxxx xxxxxx -d.</para> - <programlisting format="linespecific">SELECT ROW_COUNT(); - -+-------------+ -| ROW_COUNT() | -+-------------+ -| d | -+-------------+</programlisting> - <para>Txx xxxxxxx xxxx xxxx xxxx xxxx xxxx xxxx xxxxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch26-77031"> - <refmeta> - <refentrytitle>SCHEMA( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>SCHEMA( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">SCHEMA( )</synopsis> - </refsynopsisdiv> - <refsect1 id="ch06-47-fm2xml"> - <title/> - <para>Txxx xxxxxxxx xxxxxxx xxx xxxx xx xxx xxxxxxxx xxxxxxxxx xx xxx xxx xxx xxxxxxx. Txxxx xxx xx xxxxxxxxx. Ix xx xxxxxxxx xxx xxxx xxx xx xx xxx xxxxxxx, xx xxxxxxx NULL.</para> - <programlisting format="linespecific">SELECT DATABASE( ); - -+--------------------+ -| DATABASE( ) | -+--------------------+ -| xxxxxxx_xxxxxxxx | -+--------------------+</programlisting> - <para>Ixxxxxxxxx xx xxxxxxx d.d.d xx MxSQL, <literal moreinfo="none">SCHEMA( )</literal> xx x xxxxxxx xxx <literal moreinfo="none">DATABASE( )</literal>.</para> - </refsect1> - </refentry> - </sect1> - </chapter> - <chapter id="mysqlian-CHP-7" xml:base="ch07.xml"> - <title>Txxxx xxx Sxxxxx Axxxxxxxxxxxxx Sxxxxxxxxx xxx Fxxxxxxxx - Txx xxxxxxxxx SQL xxxxxxxxxx xxx xxxxxxx xx xxxx xxxxxxx: - xxxxxxSQL xxxxxxxxxxxxxxxxxxxSQL xxxxxxxxxxALTER SERVER, ANALYZE TABLE, BACKUP TABLE, CACHE INDEX, CHECK TABLE, CHECKSUM TABLE, CREATE SERVER, FLUSH, KILL, LOAD DATA INFILE, LOAD INDEX INTO CACHE, LOCK TABLES, OPTIMIZE TABLE, REPAIR TABLE, RESET, RESTORE TABLE, SET, SHOW ENGINE, SHOW ENGINES, SHOW OPEN TABLES, SHOW PLUGINS, SHOW PROCESSLIST, SHOW STATUS, SHOW TABLE STATUS, SHOW VARIABLES, UNLOCK TABLES. - - Txx xxxxxxxxx xxxxxxxxx xxx xxxx xxxxxxx xx xxxx xxxxxxx xx xxxx xxxxxx xx xxxx xxxxxxxxxxxx: - CONNECTION_ID( ), GET_LOCK( ), IS_FREE_LOCK( ), IS_USED_LOCK( ), RELEASE_LOCK( ), UUID ( ), VERSION( ). - - - Sxxxxxxxxx xxx Cxxxxxx xx Axxxxxxxxxxx Oxxxx - Txx xxxxxxxxx xx x xxxx xx MxSQL xxxxxxxxxx xxx xxxxxxx xx xxxxxxxxxxxx xxxxx. Exxx xxxxxxxxx xx xxxxx xxxx xxx xxxxxx xxx xx xxxxxxxxxxx. Oxxxxxxx xxxxxxx xxx xxxxxxxx xxx xxxxx xx xxxxxx xxxxxxxx. Pxxxxxxxxx xxxxxxxxxx, xxxx xx x xxxxxxxx xx xxxxx xxxx, xxx xxxxx xx xxxxxx. Txx xxxxxxxx xxx xx xxxx xx xxxxxxxx xxxxxxxxxxx xxxxxxx xxx xx xxx xxxx xx xxx xxxxxxxxx xxxxxx. - Sxxx xxxxxxxxxx xxxxx xxxxxxxxxxx xxxxx xx xxxxxx, xxxxx xxx xxxxxxx xxxxx xx xxxx xx xxxxxxxx xxxxxxxxxx. Txx xxxxx xxxxxx xxxxxxxx xxxx xxx xx xxx xxxxxxx xx xxxxxxxx. Exxxxxxx xxx xxxxxxxx xx xxxx xxx x xxxxxxxxx xxx xxx xxxxxxx xxxxxxx xxx xx xxxx xxx xxxxxx xxx xxxxxxxxxx. Txx xxxxxxxx xxxxxxx x xxxxxxxxxx xxxxxxxx xxx x xxxxxxxx xxxxxxxxxx xxxx xxxx xxxxxxxxx xxxx xxxxxxxx xxx xxxxxxxx xxxxxxxxxxx. Sxxx xxxxxxxx xxxxxxx x xxxxxxxxxx xxxxxxxx xx x xxxxxx. - Tx xxxx xxxxx, xxxxxx xxx xx xxx xxxxxxxx xxx xxxxx xxxxxxx xxxxx xxxxxxx. Tx xx xxxx xx xxxxx xx xxx xxxxxxxxxxx xx xxx xxxxxxxxxx xxx xxxxxxx, xxx xxxxxxxxxx xxx xxxxxx xxxxxxxxxxxxxxx xxx xx xxx xxxx xxxx xxx xx xxx xxxx xxxxx-xx xxxxxxxxx xxxxxxxxx xxxx MxSQL. Exxxxxxxxxxx xx xxx xxxxxxxxx xxxx, xxxxxx, xxx xx xxxxx xx xxxxx xxxxxxxx. - - - ALTER SERVER - - - ALTER SERVER - - - - ALTER SERVER xxxxxx - OPTIONS - ({ HOST xxxx - | DATABASE xxxxxxxx - | USER xxxx - | PASSWORD xxxxxxxx - | SOCKET xxxxxx - | OWNER xxxxx - | PORT xxxx_xxxxxx }, ...) - - - - <para>Uxx xxxx xxxxxxxxx xx xxxxxx xxx xxxxxxxx xxx x xxxxxx xxxxxxx xxx x FEDERATE xxxxxxx xxxxxx. Sxxxxxx xxx xxxxxxx xxxx xxx <literal moreinfo="none">CREATE SERVER</literal> xxxxxxxxx. Sxx xxx xxxxxxxxxxx xx xxxx xxxxxxxxx xx xxxx xxxxxxx xxx xxxx xxxxxxxxxxx xx xxx xxxxxxx. <literal moreinfo="none">SUPER</literal> xxxxxxxxx xx xxxxxxxx xx xx xxxx xx xxx xxxx xxxxxxxxx. Ax xxxxxxx xx xxx xxx xxxxxxx:</para> - <programlisting format="linespecific">ALTER SERVER xxxxxxx -OPTIONS(USER 'xxxx_xxxxd');</programlisting> - </refsect1> - </refentry> - <refentry id="ch07-77004"> - <refmeta> - <refentrytitle>ANALYZE TABLE</refentrytitle> - </refmeta> - <refnamediv> - <refname>ANALYZE TABLE</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">ANALYZE [LOCAL|NO_WRITE_TO_BINLOG] TABLE <replaceable>xxxxx</replaceable>[, <replaceable>...</replaceable>]</synopsis> - </refsynopsisdiv> - <refsect1> - <title/> - <para><indexterm id="mysqlian-CHP-7-ITERM-2292" significance="normal"><primary>NO_WRITE_TO_BINLOG xxxxxxx</primary><secondary>ANALYZE TABLE xxxxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-7-ITERM-2293" significance="normal"><primary>xxxxxx</primary><secondary>xxxxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-7-ITERM-2294" significance="normal"><primary>ANALYZE TABLE xxxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-7-ITERM-2295" significance="normal"><primary>LOCAL xxxxxxx</primary><secondary>ANALYZE TABLE xxxxxxxxx</secondary></indexterm> -Uxx xxxx xxxxxxxxx xx xxxxx xxxxxxxxxxx xxxx xxx xx xxxxxx xxxxx xxxx xxx MxSQL xxxxxxxxx xxxxxxx xxx xxxxx xxx xxxxxxxxxx xxxxxxx xxxxxx x xxxxx. Mxxxxxxx xxxxxx xxx xx xxxxxxxxx xx x xxxxx-xxxxxxxxx xxxx. Txx xxxxxxxxx xxxxx xx MxISAM xxx IxxxDB xxxxxx. Uxxxxx xxx <literal moreinfo="none">NO_WRITE_TO_BINLOG</literal> xxxxxx xx xxxxx, xxx xxxxxxxxx xx xxxxxxx xx xxx xxxxxx xxx xxxx xxx xxxx xx xxxxxxxx xx xxxxxx xx xxxxx xxxxxxxxxxx. Txx <literal moreinfo="none">LOCAL</literal> xxxxxx xx xxxxxxxxxx xxxx xxxx xxxxxx. Fxx MxISAM xxxxxx, xxxx xxxxxxxxx xxxxxx x xxxx xxxx xx xxx xxxxxx; xxx IxxxDB, x xxxxx xxxx. Txxx xxxxxxxxx xxxxxxxx <literal moreinfo="none">SELECT</literal> xxx <literal moreinfo="none">INSERT</literal> xxxxxxxxxx. -</para> - <programlisting format="linespecific">ANALYZE TABLE xxxxxxx; - -+----------------------+---------+----------+----------+ -| Txxxx | Ox | Mxx_xxxx | Mxx_xxxx | -+----------------------+---------+----------+----------+ -| xxxxxxxxxxxx.xxxxxxx | xxxxxxx | xxxxxx | OK | -+----------------------+---------+----------+----------+</programlisting> - <para>Txx xxxxxxx xxxx xx xxx xxxxxxx xxx xx <literal moreinfo="none">xxxxxx</literal>, <literal moreinfo="none">xxxxx</literal>, <literal moreinfo="none">xxxx</literal>, xx <literal moreinfo="none">xxxxxxx</literal>. Ix xxx xxxxx xxxx’x xxxxxxx xxxxx xx xxx xxxx xxxxxxxx, xxx xxxxxxx xxxx xxxx xxxx “Txxxx xx xxxxxxx xx xx xxxx” xxx xxx xxxxx xxx’x xx xxxxxxxx.</para> - <para>Txxx xxxxxxxxx xx xxxxxxxxxx xx xxxxx <literal moreinfo="none">xxxxxxxxx --xxxxxxx</literal> xx xxx xxxxxxx-xxxx xxx MxISAM xxxxxx. Tx xxxxxxx xxx xxxxxx (MxISAM xxx IxxxDB), xxx xxx xxx xxx <literal moreinfo="none">xxxxxxxxxx</literal> xxxxxxx xxxx xxx xxxxxxx-xxxx xxxx xx:</para> - <programlisting format="linespecific">xxxxxxxxxx --xxxx=<replaceable>xxxxxxx</replaceable> -x --xxxxxxx --xxx-xxxxxxxxx</programlisting> - <para>Ix xxx xxxx xx xxx xxx xxxxxx xxx xxxxxxxxxxxx xxxx xxx <literal moreinfo="none">ANALYZE TABLE</literal> xxxxxxxxx xxxxxxx, xxxxxxx xxx <literal moreinfo="none">SHOW INDEX</literal> xxxxxxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch07-77005"> - <refmeta> - <refentrytitle>BACKUP TABLE</refentrytitle> - </refmeta> - <refnamediv> - <refname>BACKUP TABLE</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">BACKUP TABLE <replaceable>xxxxx</replaceable>[, <replaceable>...</replaceable>] TO '/<replaceable>xxxx</replaceable>'</synopsis> - </refsynopsisdiv> - <refsect1> - <title/> - <para><indexterm id="mysqlian-CHP-7-ITERM-2296" significance="normal"><primary>TO xxxxxxx</primary><secondary>BACKUP TABLE xxxxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-7-ITERM-2297" significance="normal"><primary>BACKUP TABLE xxxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-7-ITERM-2298" significance="normal"><primary>xxxxxx</primary><secondary>xxxxxxx xx</secondary></indexterm> -Txxx xxxxxxxxx xxxxx x xxxxxx xxxx xx x MxISAM xxxxx. Hxxxxxx, xx xxx xxxx xxxxxxxxxx xxxxxxx xx xxxx xxx xxxx xxxxxxxx.. Ix’x xxxxxxxxxxx xxxx <emphasis>xxxxxxxxxxxx</emphasis> (xxx <xref linkend="mysqlian-CHP-16"/>) xx xxxx xxxxx xxxx xxxxxxxxx xx xxxxxxxx. -</para> - <para> Yxx xxx xxxxxxx xxxxxxxxxx xxxxxx xx x xxxxx-xxxxxxxxx xxxx. Txx xxxxxxxx xxxx xx xxx xxxxxxxxx xx xxxxx MxSQL xx xx xxxx xxxxx xxxxxxx xxxxxx xxxxxx xxxxx xxx <literal moreinfo="none">TO</literal> xxxxxxx. -</para> - <para><indexterm id="mysqlian-CHP-7-ITERM-2300" significance="normal"><primary>xxxxxx</primary><secondary>xxxxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-7-ITERM-2301" significance="normal"><primary>RESTORE TABLE xxxxxxxxx</primary></indexterm> -Txx xxxxxxxxx xxxxxx xxxx xxxxx’x <emphasis>.xxx</emphasis> xxxx xxx <emphasis>.MYD</emphasis> xxxx, xxxxx xxxxxxx xxx xxxxx xxxxxxxxx xxx xxx xxxxx xxxx, xxxxxxxxxxxx. Txx <emphasis>.MYI</emphasis> xxxx xxxxxxxxxx xxx xxxxx xx xxx xxxxxx, xxx xxxx xx xxxxxxx xxxx xxx <literal moreinfo="none">RESTORE TABLE</literal> xxxxxxxxx xxxx xxxxxxxxx xxx xxxxx.</para> - <programlisting format="linespecific">BACKUP TABLE xxxxxxx TO '/xxx/xxxxxx'; - -+----------------------+--------+----------+----------+ -| Txxxx | Ox | Mxx_xxxx | Mxx_xxxx | -+----------------------+--------+----------+----------+ -| xxxxxxxxxxxx.xxxxxxx | xxxxxx | xxxxxx | OK | -+----------------------+--------+----------+----------+</programlisting> - <para>Ix xxx xxxxxx xxxxxxxx, xxx xxxxxxx xxxx xxxx xxxx xxx xxxxxxxxx xxxxxx xxx xxx xxxxx xxxx xx xxxxxxx xxx xxxx xxxxx xxxxxx xx: x <emphasis>.xxx</emphasis> xxxx xxx x <emphasis>.MYD</emphasis> xxxx. Ix MxSQL xxxx xxx xxxx xxx xxxxxxxxxx xxxxxxxxxx xxxxxxxxx xx xxxxx xx xxx xxxxxx xxxxxxxxx, xx xx x xxxx xxxx xxx xxxx xxxx xx xxxxxxx xx xxx xxxxxxxxx, xxx xxxxxx xxxx xxxx. Ix xxxx xxxx, xxx xxxxxxx xxx xxxx xxxxxxx xxx xxx xxxx xx xxxxx xxxxxxx xxxx xxx xxxxxxx xxxx x xxxxxx xxxx xxx xxx xxxxxxx xxxx xxxxxxx “Oxxxxxxxx xxxxxx.”</para> - </refsect1> - </refentry> - <refentry id="ch07-77006"> - <refmeta> - <refentrytitle>CACHE INDEX</refentrytitle> - </refmeta> - <refnamediv> - <refname>CACHE INDEX</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">CACHE INDEX <replaceable>xxxxx</replaceable>[[INDEX|KEY] (xxxxx, . . . ), <replaceable>...</replaceable>] IN <replaceable>xxxxx</replaceable></synopsis> - </refsynopsisdiv> - <refsect1> - <title/> - <para><indexterm id="mysqlian-CHP-7-ITERM-2302" significance="normal"><primary>xxxxxxx</primary><secondary>xxxxxxxxxx xxxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-7-ITERM-2303" significance="normal"><primary>CACHE INDEX xxxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-7-ITERM-2304" significance="normal"><primary>SET GLOBAL xxxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-7-ITERM-2305" significance="normal"><primary>INDEX xxxxxxx</primary><secondary>CACHE INDEX xxxxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-7-ITERM-2306" significance="normal"><primary>KEY xxxxxxx</primary><secondary>CACHE INDEX xxxxxxxxx</secondary></indexterm> -Txxx xxxxxxxxx xxxxx MxSQL xx xxxxx xxx xxxxx xxxxxxx xx x xxxxxxxx xxxxx xxxxx, xxxxx xxx xx xxxxxxx xxxx xxx <literal moreinfo="none">SET GLOBAL</literal> xxxxxxxxx. Txxx xxxxxxxxx xx xxxx xxxx xx MxISAM xxxxxx. Mxxxxxxx xxxxxx xxx xx xxxxxx xx x xxxxx-xxxxxxxxx xxxx. Tx xxxxxxx xxxx xxxxxxx xxxxxxx xx x xxxxx, xxxx xxxx xx x xxxxx-xxxxxxxxx xxxx xx xxxxxxxxxxx xxxxx xxx xxxxx xxxx. Txx <literal moreinfo="none">INDEX</literal> xx <literal moreinfo="none">KEY</literal> xxxxxxx xxx xx xxxxx xxx xxxxxxx xxx xxxxxxxxxxxxx xxxx xxxxx xxxxxxxx xxxxxxxx. Nxxx xxxx xxx xxxxxx xx xxxxxxxx xxxxxxx xxx x xxxxx xx xxxxxxx xx xxx xxxxxxx xxxxxxxx xx MxSQL; xxx xxxxxx xx xxx x xxxxxx xxxxxxx. Fxx xxx, xxx xxxxxxx xxx xxxxxxxx xx xxx xxxxx xxxxx, xxxxx xx xxx xxxx xx xxxxxxxxxx xx xxxxxxx. -</para> - <para>Tx xxxxxx xx xxxxxxxxxx xxxxx, xxxxx x <literal moreinfo="none">SET GLOBAL</literal> xxxxxxxxx xxxx xxx <literal moreinfo="none">xxx_xxxxxx_xxxx</literal> xxxxxxxx xxxx xxxx:</para> - <programlisting format="linespecific">SET GLOBAL xx_xxxxx.xxx_xxxxxx_xxxx = ddd*dddd; - -CACHE INDEX xxxxxxx, xxxxxxx IN xx_xxxxx \G - -*************************** d. xxx *************************** - Txxxx: xxxxxxxxxxxx.xxxxxxx - Ox: xxxxxx_xx_xxxxxxxx -Mxx_xxxx: xxxxxx -Mxx_xxxx: OK -*************************** d. xxx *************************** - Txxxx: xxxxxxxxxxxx.xxxxxxx - Ox: xxxxxx_xx_xxxxxxxx -Mxx_xxxx: xxxxxx -Mxx_xxxx: OK</programlisting> - <para>Ix xxxx xxxxxxx, xxx xxxxx xxxx xxxxxxx x xxxxx xxxxxx <emphasis>xx_xxxxx</emphasis> xxxx x xxxxxx xxxx xx ddd xxxxxxxxx. Txx xxxxxx xxxx xxxxxxx xxx xxxxxxx xxx xxx xxx xxxxxx xxxxx xx <emphasis>xx_xxxxx</emphasis>. Ax xxxx xx xxxx xxxxx xxxxxx, xxx xxxxxxx xx xxx xxxxx xxxx xxx xxxx xxxxx. Ix xxx xxxxxxx xx xxxxxx x xxxxx xxxxx xxxxxxx xxxxxxx xxx xxxxxx xxxxxxxx xxxxx, xxx xxxx xxxxxxx xx xxxxx xxxxxxx xxxx xx’x xx <emphasis>xxxxxxx xxx xxxxx</emphasis>. Ix xxx xxx xxxxx xx xxxxxxxxxx xxx xxx xxxxxx, xxx xxxxxxx xxxx xx xxxxxxxx xxxx xx xxx xxxxxxx xxx xxxxx xxx xxx xxxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch07-77007"> - <refmeta> - <refentrytitle>CHECK TABLE</refentrytitle> - </refmeta> - <refnamediv> - <refname>CHECK TABLE</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">CHECK TABLE <replaceable>xxxxx</replaceable>[, . . . ] [CHANGED|QUICK|FAST|MEDIUM|EXTENDED|FOR UPGRADE]</synopsis> - </refsynopsisdiv> - <refsect1> - <title/> - <para><indexterm id="mysqlian-CHP-7-ITERM-2307" significance="normal"><primary>CHECK TABLE xxxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-7-ITERM-2308" significance="normal"><primary>xxxxxx</primary><secondary>CHECK TABLE xxxxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-7-ITERM-2309" significance="normal"><primary>EXTENDED xxxxxxx</primary><secondary>CHECK TABLE xxxxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-7-ITERM-2310" significance="normal"><primary>CHANGED xxxxxxxx (CHECK TABLE)</primary></indexterm><indexterm id="mysqlian-CHP-7-ITERM-2311" significance="normal"><primary>REPAIR TABLE xxxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-7-ITERM-2312" significance="normal"><primary>MEDIUM xxxxxx (CHECK TABLE)</primary></indexterm><indexterm id="mysqlian-CHP-7-ITERM-2313" significance="normal"><primary>FAST xxxxxx (CHECK TABLE)</primary></indexterm><indexterm id="mysqlian-CHP-7-ITERM-2314" significance="normal"><primary>QUICK xxxxxxx</primary><secondary>CHECK TABLE xxxxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-7-ITERM-2315" significance="normal"><primary>FOR UPGRADE xxxxxxx</primary><secondary>CHECK TABLE xxxxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-7-ITERM-2316a" significance="normal"><primary>xxxxxx</primary><secondary>CHECK TABLE xxxxxxxxx</secondary></indexterm> -Uxx xxxx xxxxxxxxx xx xxxxx xxxxxx xxx xxxxxx; xx xx xxxxxxx d.d.d xx MxSQL, xx xxxxx xxxx xxx MxISAM, IxxxDB, ARCHIVE, xxx CSV xxxxxxx xxxxxxx. Ix xxxxxx xxx xxxxxxxxxx, xxx xxxxxx xxx xxx <literal moreinfo="none">REPAIR TABLE</literal> xxxxxxxxx xx xxxxxx xxx xxxxx. Mxxxxxxx xxxxxx xxx xx xxxxx xx x xxxxx-xxxxxxxxx xxxx. Txxx xxxxxxxxx xxxxxxxx <literal moreinfo="none">SELECT</literal> xxxxxxxxxx.</para> - <para>Txxxx xxx xxxxxxx xxxx xx xxxxxxx xxxxxxxx, xxxxxxxxx xxxxx xxx xxxx xx xxxxxx:</para> - <variablelist> - <varlistentry> - <term> - <literal moreinfo="none">CHANGED</literal> - </term> - <listitem> - <para> - Cxxxxx xxxx xxxxxx xxxx xxxx xxxx xxxxxxx xxxxx xxx xxxx xxxxx. - </para> - </listitem> - </varlistentry> - <varlistentry> - <term> - <literal moreinfo="none">QUICK</literal> - </term> - <listitem> - <para> - Cxxxxx xxxxxx xxx xxxxxx, xxx xxx’x xxxx xxxxxxxxxx xxxx xxx xxxxxxx xxxxxxxx. - </para> - </listitem> - </varlistentry> - <varlistentry> - <term> - <literal moreinfo="none">FAST</literal> - </term> - <listitem> - <para> - Cxxxxx xxxx xxxxxx xxxx xxxx xxx xxxx xxxxxx xxxxxxxx. - </para> - </listitem> - </varlistentry> - <varlistentry> - <term> - <literal moreinfo="none">MEDIUM</literal> - </term> - <listitem> - <para> - Dxxxxxxxxx xxx xxx xxxxxxxx xxx xxx xxxx xxx xxxxxxxx xxx xxxxxxx xxxxxxx xxx xxxxxxxx xxx xxx xxxx. Txxx xxxxxx xxxx xxxxxx xxxx xx xxxxxx xxxx xxxxx xxxx xxxxxxx xxxxxxxx. - </para> - </listitem> - </varlistentry> - <varlistentry> - <term> - <literal moreinfo="none">EXTENDED</literal> - </term> - <listitem> - <para> - Txxxxxxxxx xxxxxx xxxx xxx xxx xxxxxx. Ix xxxxx x xxxx xxxx xx xxxxxxxx. - </para> - </listitem> - </varlistentry> - <varlistentry> - <term> - <literal moreinfo="none">FOR UPGRADE</literal> - </term> - <listitem> - <para> - Cxxxxx x xxxxx xxxxxxx xxx xxxxxxx xx MxSQL xx xxx. Ix xxx xxxxx xxx xxxxxxx xxxx xx xxxxxxx xxxxxxx xxx xxxxx xxxx xxxx xxxxxxx xx xxx xxx xxxxxxx xxxxx xxxx xxx xxxxx xxxxxxxxxxxx, xxx xxxxxxxxx xxxx xxxx xxxxx xxx <literal moreinfo="none">EXTENDED</literal> xxxxxx xx xxxxx xxxxxxxxxx xxx xxxxx. Ix xx’x xxxxxxxxxx, xx xxxx xxxx xxxx xxx xxxxx xxx xxxxxxx xxxx xxxxxxx xx xxxx xxxxxx xxxxxx xxx xxxxx xxx xxxx-xxxxxxxxx xxxxx. Txxx xxxxxx xx xxxxxxxxx xxxxxxxx xxxx xxxxxxx d.d.d xx MxSQL. - </para> - </listitem> - </varlistentry> - </variablelist> - <para>Hxxx xx xx xxxxxxx xx xxx xxx xxx xxx xxxx xxxxxxxxx:</para> - <programlisting format="linespecific">CHECK TABLE xxxxxxx MEDIUM; - -+----------------------+-------+----------+----------+ -| Txxxx | Ox | Mxx_xxxx | Mxx_xxxx | -+----------------------+-------+----------+----------+ -| xxxxxxxxxxxx.xxxxxxx | xxxxx | xxxxxx | OK | -+----------------------+-------+----------+----------+</programlisting> - <para>Ix xx xxxxx xx xxxxx xxxx xx IxxxDB xxxxx, xxx xxxxxx xx xxxx xxxx xx xxxxxxx xxxx xxxxxxxx. Cxxxx xxx xxxxx xxx xxx xxxxxxx xx xxxxxxx xxx xxxxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch07-77008"> - <refmeta> - <refentrytitle>CHECKSUM TABLE</refentrytitle> - </refmeta> - <refnamediv> - <refname>CHECKSUM TABLE</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">CHECKSUM TABLE <replaceable>xxxxx</replaceable>[, . . . ] [QUICK|EXTENDED]</synopsis> - </refsynopsisdiv> - <refsect1> - <title/> - <para><indexterm id="mysqlian-CHP-7-ITERM-2316" significance="normal"><primary>EXTENDED xxxxxxx</primary><secondary>ALTER TABLE xxxxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-7-ITERM-2317" significance="normal"><primary>ALTER TABLE xxxxxxxxx</primary><secondary>xxxxxxxxx xxx</secondary></indexterm><indexterm id="mysqlian-CHP-7-ITERM-2318" significance="normal"><primary>CHECKSUM TABLE xxxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-7-ITERM-2319" significance="normal"><primary>QUICK xxxxxxx</primary><secondary>CHECKSUM TABLE xxxxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-7-ITERM-2320" significance="normal"><primary>xxxxxx</primary><secondary>xxxxxxxx xxxxxx xxx</secondary></indexterm> -Txxx xxxxxxxxx xxxxxxx x MxISAM xxxxx’x xxxx xxxxxxxx xxxxx, x xxxxx xxxx xxx xx xxxxxxxxxx xxxxxxxxxx xx xxxxxxx x xxxxx’x xxxxxxxxxxxxx. Tx xxxxxx xxxx xxxxxxxx xxx x xxxxx, xxx xxx <literal moreinfo="none">CREATE TABLE</literal> xx <literal moreinfo="none">ALTER TABLE</literal> xxxxxxxxx xxxx x xxxxx xxxxxx xx <literal moreinfo="none">CHECKSUM=d</literal>.</para> - <para> Mxxxxxxx xxxxxx xxx xx xxxxx xx x xxxxx-xxxxxxxxx xxxx. Ix xxx <literal moreinfo="none">QUICK</literal> xxxxxx xx xxxxxxxx, xxx xxxx xxxxx xxxxxxxx xxxx xx xxxxxxxx, xx xxxxxxxxx. Ix xxx, NULL xxxx xx xxxxxxxx. Nxxxxxxx xxx xxxxx xxx xxx <literal moreinfo="none">QUICK</literal> xxxxxx xxxx xxx xxxxx xx xxxxxxxx xxxx. Txx <literal moreinfo="none">EXTENDED</literal> xxxxxx xxxxxxxxx xxx xxxxxx xx xxxxx xxxx xxx. Yxx xxxxxx xxx xxxx xxxxxx xxxx xx x xxxx xxxxxx. Ix xx xxxxxx xx xxxxxxxxx, xxx <literal moreinfo="none">QUICK</literal> xxxxxx xx xxx xxxxxxx, xx xxxxxxxxx. Oxxxxxxxx, xxx <literal moreinfo="none">EXTENDED</literal> xxxxxx xx xxx xxxxxxx. Txx xxxxxxxx xxxxx xxx xx xxxxxxxxx xx xxx xxx xxxxxx xxxxxxx, xxxxx xxx xxxxxx xxxxxxx xxxxxxxx xx MxSQL. Hxxx xx xx xxxxxxx xx xxxx xxxxxxxxx’x xxx xxx xxx xxxxxxx: -</para> - <programlisting format="linespecific">CHECKSUM TABLE xxxxxxx; - -+----------------------+-----------+ -| Txxxx | Cxxxxxxx | -+----------------------+-----------+ -| xxxxxxxxxxxx.xxxxxxx | ddddddddd | -+----------------------+-----------+</programlisting> - </refsect1> - </refentry> - <refentry id="ch07-77009"> - <refmeta> - <refentrytitle>CREATE SERVER</refentrytitle> - </refmeta> - <refnamediv> - <refname>CREATE SERVER</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">CREATE SERVER '<replaceable>xxxxxx</replaceable>' - FOREIGN DATA WRAPPER <replaceable>xxxxx</replaceable> - OPTIONS - ({ HOST <replaceable>xxxx</replaceable> - | DATABASE <replaceable>xxxxxxxx</replaceable> - | USER <replaceable>xxxx</replaceable> - | PASSWORD <replaceable>xxxxxxxx</replaceable> - | SOCKET <replaceable>xxxxxx</replaceable> - | OWNER <replaceable>xxxxx</replaceable> - | PORT <replaceable>xxxx_xxxxxx</replaceable> }, ...)</synopsis> - </refsynopsisdiv> - <refsect1> - <title/> - <para>Txxx xxxxxxxxx xxxxxxx x xxxxxx xxx xxx xx xxx FEDERATED xxxxxxx xxxxxx. Txx xxxxxx xxxxxxx xx xxxxxxxxxx xx xxx <literal moreinfo="none">xxxxxx</literal> xxxxx xx xxx <literal moreinfo="none">xxxxx</literal> xxxxxxxx. Txx xxxxxx xxxx xxxxx xxxxxx xxxxxx dd xxxxxxxxxx xxx xx xxxx xxxxxxxxxxx. Txx xxxx xxxxxxxxxx xxxxxxx xxxx xx <literal moreinfo="none">xxxxx</literal>. Mxxxxxxx xxxxxxx xxx xx xxxxx, xxxxxxxxx xx xxxxxx. Txx <literal moreinfo="none">PORT</literal> xxxxxx xxxxxxxx x xxxxxxx xxxxxxx, xxxxxxx xxx xxxxx xxxxxxx xxxxxxx xxxxxxxxx xxxxxxxx. Sx xxx’x xxx xxx xxxx xxxxxx xxxxxx xxxxxx. <literal moreinfo="none">SUPER</literal> xxxxxxxxx xx xxxxxxxx xx xx xxxx xx xxx xxxx xxxxxxxxx. Ax xxxxxxx xx xxxx xxxxxxxxx xxxxxxx:</para> - <programlisting format="linespecific">CREATE SERVER xxxxxxx -FOREIGN DATA WRAPPER xxxxx -OPTIONS (USER 'xxxx_xxxx', HOST 'dd.d.d.ddd', -DATABASE 'xxxx', PORT dddd); - -SELECT * FROM xxxxx.xxxxxxx -WHERE Sxxxxx_xxxx = 'xxxxxxx' \G - -*************************** d. xxx *************************** -Sxxxxx_xxxx: xxxxxxx - Hxxx: dd.d.d.ddd - Dx: xxxx - Uxxxxxxx: xxxx_xxxx - Pxxxxxxx: - Pxxx: dddd - Sxxxxx: - Wxxxxxx: xxxxx - Oxxxx: - -CREATE TABLE xxxxxd (xxx_xx INT, xxx_d VARCHAR(dd)) -ENGINE=FEDERATED CONNECTION='xxxxxxx';</programlisting> - <para>A xxxxxx xxxxxxx xxxx xxxx xxxxxxxxx xxx xx xxxxxxx xxxx xxx <literal moreinfo="none">ALTER SERVER</literal> xxxxxxxxx. Oxxx xxxxxxx, xxxxxxx xxx xx xxxxxxxx xx xxxxxxx xxx <literal moreinfo="none">ENGINE</literal> xxxxxx xx xxxxxx xxx <literal moreinfo="none">CREATE TABLE</literal> xxxxxxxxx xx xxx xxxx xxxxxx xx xxx <literal moreinfo="none">ALTER TABLE</literal> xxxxxxxxx xxx xxxxxxxx xxxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch07-77010"> - <refmeta> - <refentrytitle>FLUSH</refentrytitle> - </refmeta> - <refnamediv> - <refname>FLUSH</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">FLUSH [LOCAL|NO_WRITE_TO_BINLOG] <replaceable>xxxxxx</replaceable>[, . . . ]</synopsis> - </refsynopsisdiv> - <refsect1> - <title/> - <para>Oxxxxxx:</para> - <programlisting format="linespecific">DES_KEY_FILE, HOSTS, LOGS, PRIVILEGES, QUERY_CACHE, -STATUS, TABLE, TABLES, TABLES WITH READ LOCK, USER_RESOURCES</programlisting> - <para><indexterm id="mysqlian-CHP-7-ITERM-2519" significance="normal"><primary>LOCAL xxxxxxx</primary><secondary>FLUSH xxxxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-7-ITERM-2520" significance="normal"><primary>NO_WRITE_TO_BINLOG xxxxxxx</primary><secondary>FLUSH xxxxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-7-ITERM-2521" significance="normal"><primary>xxxxxxxxxx</primary><secondary>FLUSH xxxxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-7-ITERM-2522" significance="normal"><primary>RELOAD xxxxxxxxx (GRANT/REVOKE)</primary><secondary>FLUSH xxxxxxxxx xxx</secondary></indexterm><indexterm id="mysqlian-CHP-7-ITERM-2523" significance="normal"><primary>FLUSH xxxxxxxxx</primary></indexterm> -Uxx xxxx xxxxxxxxx xx xxxxx xxxxxxxxx xxxxxx xx MxSQL. Ix xxxxxxxx <literal moreinfo="none">RELOAD</literal> xxxxxxxxxx. Mxxxxxxx xxxxxxx xxx xx xxxxx xx x xxxxx-xxxxxxxxx xxxx.</para> - <para>Tx xxxxxxx xxxx xxxxxxxxx xxxx xxxxxxx xx xxx xxxxxx xxx xxxx, xxxxxxx xxx <literal moreinfo="none">NO_WRITE_TO_BINLOG</literal> xxxxxxx xx xxx xxxxx, <literal moreinfo="none">LOCAL</literal>. Txx <literal moreinfo="none">DES_KEY_FILE</literal> xxxxxx xxxxxxx xxx DES xxxxxxxxxx xxxx. <literal moreinfo="none">HOSTS</literal> xxxxxx xxx xxxxx xxxxx, xxxxx xx xxxx xx xxxxxxxx xxxx/IP xxxxxxx xxxxxxx. Txx xxxxx xxxxx xxx xxxx xx xx xxxxxxx xx x xxxx xxx xxxx xxxxxxx xxxx xxxxxxxxx xxx xxxxxx. <literal moreinfo="none">LOGS</literal> xx xxxx xx xxxxx xxx xx xxx xxxxxxxx xxx xxxxxx xxxx. Txx <literal moreinfo="none">PRIVILEGES</literal> xxxxxx xxxxxxx xxx xxxxx xxxxx xxx xxxxx. Txxx xx xxxxxxxxx xx xxx <emphasis>xxxx</emphasis> xxxxx xx xxx <emphasis>xxxxx</emphasis> xxxxxxxx xx xxxxxxxx xxxxxxxx, xxxxxxx x <literal moreinfo="none">GRANT</literal> xxxxxxxxx. <literal moreinfo="none">QUERY CACHE</literal> xxxxxxxxx xxx xxxxxx xx xxxxxxxxxx xxx xxxxx xxxxx. Txx <literal moreinfo="none">STATUS</literal> xxxxxx xxxxxx xxx xxxxxx xxxxxxxxx xxxx xxxxxx xxxxxxxxxxx xxxxx xxx xxxxxx.</para> - <para>Txx <literal moreinfo="none">TABLE</literal> xxxxxx, xxxxxxxx xx xxx xx xxxx xxxxx xxxxx, xxxxxx xxx xxxxx xxxxxx xx xx xxxxxx. Txxx xxxx xxxxxxxxx xxx xxxxxx xxxxxxx xx xxx xxxxx xxxxxx. Txx <literal moreinfo="none">TABLES</literal> xxxxxx xxxxxxx xxxxxxx xxx xxxxx xxxxx, xxxxxx xxx xxxxxx xx xx xxxxxx, xxx xxxxxxx xx xx xxxxxxxxxx, xxx xxx xxxxx xxxxx xx xx xxxxxxx xx xxxx. Axxxxxxx, xxxx xxxxxx xx xxx xxxx xx <literal moreinfo="none">TABLE</literal> xxxx xx xxxxx xxxx.</para> - <para>Uxx xxx <literal moreinfo="none">TABLES WITH READ LOCK</literal> xxxxxx xx xxxxx xxx xxxxxx xxx xxxx xxxx xxxx x xxxxxx xxxx xxxx. Txxx xxxxxx xx xxxxxxxxxx xxxx xxxxxxx xxxx xxxxxxxxxxxxx xxxxxx xxx xxxxxxxx xxxxxxx xx xxxxxxx. Txxx xxxxxx xxxx xxxxx xxxxx xx xxxx xxx xxxx, xxx xxx xx xxxxxx xx xx xx xxxxxx xxxxxxx. Txx xxxx xxxx xxxxxx xx xxxxx xxxxx xxx <literal moreinfo="none">UNLOCK TABLES</literal> xxxxxxxxx xx xxxxxxxx.</para> - <para><literal moreinfo="none">USER_RESOURCES</literal> xxxxx xxx xxxx xxxxxxxxx. Yxx xxx xxx xxxx xxxx xxxxx xxxx xxxx xxxxxx xxx xxx xx xxxxxxxxx xxxxx xxxxxx.</para> - <para>Txx <literal moreinfo="none">xxxxxxxxxx</literal> xxxxxxx xxx xx xxxx xx xxxxxxx xxxx xxxxxxxxx xxxx xxxxxxx xx xxx xxxxxxx. Sxx <xref linkend="mysqlian-CHP-16"/> xxx xxxxxxxxxxx xx xxxx xxxxxxx.</para> - <para>Txx xxxxxxx xxx xxxx xxxxxxxxx xxxx xxxx xxxxxxxxxx: <literal moreinfo="none">MASTER</literal> xxx <literal moreinfo="none">SLAVE</literal>. <literal moreinfo="none">RESET MASTER</literal> xxx <literal moreinfo="none">RESET SLAVE</literal> xxxxxx xx xxxx xxxxxxx.</para> - <para>Ax xx xxxxxxx d.d xx MxSQL, xxx <literal moreinfo="none">FLUSH</literal> xxxxxxxxx xxxxxx xx xxxxxx xx x xxxxxx xxxxxxxx xx x xxxxxxx. Ix xxx xx xxxxxxxx xx x xxxxxx xxxxxxxxx, xxxx xxx xxxxxx xx x xxxxxx xxxxxxxx xx xxxxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch07-77011"> - <refmeta> - <refentrytitle>KILL</refentrytitle> - </refmeta> - <refnamediv> - <refname>KILL</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">KILL [CONNECTION|QUERY] <replaceable>xxxxxx</replaceable></synopsis> - </refsynopsisdiv> - <refsect1> - <title/> - <para><indexterm id="mysqlian-CHP-7-ITERM-2321" significance="normal"><primary>REPAIR TABLE xxxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-7-ITERM-2322" significance="normal"><primary>xxxxxxx</primary><secondary>xxxxxxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-7-ITERM-2323" significance="normal"><primary>QUERY xxxxxxx (KILL)</primary></indexterm><indexterm id="mysqlian-CHP-7-ITERM-2324" significance="normal"><primary>CONNECTION xxxxxxx (KILL)</primary></indexterm><indexterm id="mysqlian-CHP-7-ITERM-2325" significance="normal"><primary>SHOW PROCESSLIST xxxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-7-ITERM-2326" significance="normal"><primary>KILL xxxxxxxxx</primary></indexterm> -Uxx xxxx xxxxxxxxx xx xxxxxxxxx x xxxxxx xxxxxxxxxx xx MxSQL. Yxx xxx xxx xxx <literal moreinfo="none">SHOW PROCESSLIST</literal> xxxxxxxxx xx xxxxxx x xxxxxxxxxx xxxxxx xxxxxxxxxx xxx xxx xx xxxx xxxxxxxxx. Ax xx xxxxxxx d, xxx xxx xxx <literal moreinfo="none">CONNECTION</literal> xx <literal moreinfo="none">QUERY</literal> xxxxxxxx xx xxxxxxxxxxx xxxxxxx xxxxxxxxxxx x xxxxxxxxxx xx xxxxxxxxxxx xxxx xxx xxxxxxx xxxxx xxxxxxxxxx xxxx xxx xxxxx xxxxxxxxxx.</para> - <para>Sxxx xxxxxxxxx xxxxxx xx xxxxxxxxxx xxxxxxxxxxx. Ixxxxxx, xxxx xxxxxxxxx xxxxx xxx xxxxxxx xxx xxxxxxxxxxx. Txx xxxxxx xxx xxx xxxxx xxx xxxx xxxxx xxx xxxxxxx xx xxxxxxxxx. Txxx xxxx xxxxx xxxx xxxxxxxxxx xxxx xx <literal moreinfo="none">REPAIR TABLE</literal>. Bxxxxxx, xxx xxxxxxx’x xxxxxxx xx xxxxxxxxx xxx xxxxxxxxx xx xxx <literal moreinfo="none">REPAIR TABLE</literal> xx xxx <literal moreinfo="none">OPTIMIZE TABLE</literal> xxxxxxxxxx. Ix xxxx xxxxxxx x MxISAM xxxxx. Txx xxxxxxx <literal moreinfo="none">xxxxxxxxxx</literal> xxxx xxx xxxxxxx <literal moreinfo="none">xxxxxxxxxxx</literal> xxx <literal moreinfo="none">KILL</literal> xxx xx xxxx xxxx xxx xxxxxxx-xxxx xx xxxxxxx xxxxx xxxxxxx xxxxxxxxxx.</para> - <para>Hxxx xx xx xxxxxxx xx xxx <literal moreinfo="none">SHOW PROCESSLIST</literal> xxx xxx <literal moreinfo="none">KILL</literal> xxxxxxxxxx xxxx xxxxxxxx:</para> - <programlisting format="linespecific">SHOW PROCESSLIST \G -... - Ix: ddddd - Uxxx: xxxxxx - Hxxx: xxxxxxxxx - xx: xxxxxxx_xxxx -Cxxxxxx: Qxxxx - Txxx: d - Sxxxx: Sxxxxxx xxxx - Ixxx: SELECT COUNT(*) AS xxxx - FROM xxxxxx_xxx - WHERE SUBDATE(NOW(), INT.... - -KILL QUERY ddddd;</programlisting> - <para>Txx xxxxxxx xx xxx <literal moreinfo="none">SHOW PROCESSLIST</literal> xxx xxxxxxxxx. Uxxxx xxx xxxxxx xxxxxxxxxx ddddd xxxx xxx xxxxxxx, xxx <literal moreinfo="none">KILL</literal> xxxxxxxxx xx xxxx xxxx xxx <literal moreinfo="none">QUERY</literal> xxxxxxx xx xxxxxxxxx xxx SQL xxxxxxxxx xxxx’x xxxxxxx, xxxxxxx xxxxxxxxxxx xxx xxxxxx xxxxxxxxxx. Ix xxx <literal moreinfo="none">CONNECTION</literal> xxxxxxx xx xx xxxxxxx xx xxxxx, xxx xxxxxx xxxxxxxxxx xx xxxxxxxxxx. Ix xxxx xxxx, xx xxx xxxxxx xxxxxxxx xx xxxxx xxxxxxx SQL xxxxxxxxx, xx xxxxxxxx x dddd xxxxx xxxxxxx xxxxxxx xxxx xxx MxSQL xxxxxx xxx xxxx xxxx. Txxx xx xxxxxxxxx xxxx xxx xx xxxxxxxxx xx xxx xxxxxx, xxxxxxxxx x xxx xxxxxx, xxx xxx xxx xxxxxxxxx xxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch07-77012"> - <refmeta> - <refentrytitle>LOAD INDEX INTO CACHE</refentrytitle> - </refmeta> - <refnamediv> - <refname>LOAD INDEX INTO CACHE</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">LOAD INDEX INTO CACHE - - <replaceable>xxxxx</replaceable> [[INDEX|KEY] (<replaceable>xxxxx</replaceable>[, . . . )] [IGNORE LEAVES] - - [, . . . ]</synopsis> - </refsynopsisdiv> - <refsect1> - <title/> - <para><indexterm id="mysqlian-CHP-7-ITERM-2327" significance="normal"><primary>IGNORE LEAVES xxxxxx (LOAD INDEX INTO CACHE)</primary></indexterm><indexterm id="mysqlian-CHP-7-ITERM-2328" significance="normal"><primary>INDEX xxxxxxx</primary><secondary>LOAD INDEX INTO CACHE xxxxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-7-ITERM-2329" significance="normal"><primary>KEY xxxxxxx</primary><secondary>LOAD INDEX INTO CACHE xxxxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-7-ITERM-2330" significance="normal"><primary>LOAD INDEX INTO CACHE xxxxxxxxx</primary></indexterm> -Uxx xxxx xxxxxxxxx xx xxxxxxx x xxxxx’x xxxxx xxxx x xxxxx xxx xxxxx xxx x MxISAM xxxxx. Txx xxxxxx xxxxxx xxx xx xxxx xxxxxxx xx xx xxxxxxxxx xx x xxxxx-xxxxxxxxx xxxx xx xxxxxxxxxxx, xx xxxxx xx xxxxxxx xxxx xxx xxxxxxxxx xxxxxxx, xxx xxxxxxxxx MxSQL xxxxxx xxxxx xxx xxx xxxxxxx xxx xxx xxxxx xxxx xxx xxxxx. Txx xxxxxxxx <literal moreinfo="none">INDEX</literal> xxx <literal moreinfo="none">KEY</literal> xxx xxxxxxxxxxxxxxx xxx xxxxxxxx; xxxx xx xxx xxxxxx xxx xxxxxxx. Txx <literal moreinfo="none">IGNORE LEAVES</literal> xxxxxx xxxxxxxxx MxSQL xxx xx xxxxxxx xxxx xxxxx xx xxx xxxxx. Hxxx xx xx xxxxxxx xx xxx xxx xxx xxx xxxx xxxxxxxxx:</para> - <programlisting format="linespecific">LOAD INDEX INTO CACHE xxxxxxx; - -+----------------------+--------------+----------+----------+ -| Txxxx | Ox | Mxx_xxxx | Mxx_xxxx | -+----------------------+--------------+----------+----------+ -| xxxxxxxxxxxx.xxxxxxx | xxxxxxx_xxxx | xxxxxx | OK | -+----------------------+--------------+----------+----------+</programlisting> - </refsect1> - </refentry> - <refentry id="ch07-77013"> - <refmeta> - <refentrytitle>LOCK TABLES</refentrytitle> - </refmeta> - <refnamediv> - <refname>LOCK TABLES</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">LOCK TABLES <replaceable>xxxxx</replaceable> [AS <replaceable>xxxxx</replaceable>] - {READ [LOCAL]|[LOW_PRIORITY] WRITE]} [, . . . ]</synopsis> - </refsynopsisdiv> - <refsect1> - <title/> - <para><indexterm id="mysqlian-CHP-7-ITERM-2331" significance="normal"><primary>LOW_PRIORITY xxxxxxx</primary><secondary>LOCK TABLES xxxxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-7-ITERM-2332" significance="normal"><primary>INSERT xxxxxxxxx</primary><secondary>READ LOCAL xxxxxxx xxx</secondary></indexterm><indexterm id="mysqlian-CHP-7-ITERM-2333" significance="normal"><primary>xxxxxx</primary><secondary>xxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-7-ITERM-2334" significance="normal"><primary>WRITE xxxxxxx (LOCK TABLES)</primary></indexterm><indexterm id="mysqlian-CHP-7-ITERM-2335" significance="normal"><primary>READ LOCAL xxxxxxx (LOCK TABLES)</primary></indexterm><indexterm id="mysqlian-CHP-7-ITERM-2336" significance="normal"><primary>READ xxxxxxx (LOCK TABLES)</primary></indexterm><indexterm id="mysqlian-CHP-7-ITERM-2337" significance="normal"><primary>LOCK TABLES xxxxxxxxx</primary></indexterm> -Uxx xxxx xxxxxxxxx xx xxxx xxx xxxxx xxxxxx xxx xxxxxxxxx xxx xx xxx xxxxxxx xxxxxxxxxx xxxxxx. A <literal moreinfo="none">READ</literal> xxxx xxxxxx xxx xxxxxx xxxxxx xx xx xxxx xx xxx xxxxxxx, xxx xxxx xxx xxxxx xxxxxx xx xxx xxxxxx xxxx xx xxx xxxxxx xxxxx xxxxxx xxxx. A <literal moreinfo="none">READ LOCAL</literal> xxxx xxxxxx xxx xxxxxxx xx xxxx xxx xxxxxx xxxx xxx xxxxxx xxxxx xxx xxxxxxx xxxxxxxxxx xxx xxxxxxx <literal moreinfo="none">INSERT</literal> xxxxxxxxxx. Uxxxx xxx xxxx xx xxxxxxxx, xxxxxx, xxxxxx xxxx xxxxxxxxxxxx xx xxxxxxx-xxxx xxxxxxxxx xxxxxx xx xxxxxxx. A <literal moreinfo="none">WRITE</literal> xxxx xxxxxxxxx xxxxx xxxxxxx xxxx xxxxxxx xxxx xx xxxxxxx xx xxxxxx xxxxxx, xxx xxxxxxx xxxxx xxx xxxxxx xx xxx xxxxxxx xxxxxx. SQL xxxxxxxxxx xxx xxxxxx xxxx xxx xxxxxx xxxx xxx <literal moreinfo="none">WRITE</literal> xxxxxx xxxx xxxxxxxx xxxx xxxxxxxxxx xxxxxxxxx xxxxxx xxxx x <literal moreinfo="none">READ</literal> xxxx. Hxxxxxx, xxx <literal moreinfo="none">LOW_PRIORITY</literal> xxxxxxx xxx xx xxxxx xxxxxx xxx <literal moreinfo="none">WRITE</literal> xx xxxxxxxx xxx xxxxxx xx xxxx xxxxx xxxxx xxx xx xxxxxxx xx xxx xxxxxx xxxxx xxxxxx.</para> - <para>Oxxx xxxxxx xxxxxx xxx xx xxxxxxxx xx x xxxxxxx xxxxxx. Txxxxxxxx, xxx xxxxxx xx xx xxxx xxxx xx xxxxxx. Tx xxxxxxxxxx xxxx, xxxxxx x xxx xxxxxxxxxx xxx xxxx xxxxx. Txx xxxxxxxxxx’x xxxxxxxxxxx xxxx xx xxxxx xx xxx <emphasis>xxxxxxxxxxx</emphasis> xxxxx. Txx <emphasis>xx_xxxxxxxx</emphasis> xxxxx xxxx xxxxxxxx xxx xxxxxxx xxx xxxxxxxxxx xxxx xxxx xxxxx xx xx xxxxxxxx xx xxxxxx xxxx xx xxx xxx xxxxxxxxxx xxx xxxx xxxx xxxxxx. Hxxx xx xxx xxx xxxxx xxxx xxx xxxxxxxx xxxxxx:</para> - <programlisting format="linespecific">LOCK TABLES xxxxxxx READ, xxxxxxxxxxx READ LOCAL, - xx_xxxxxxxx AS xxxx LOW_PRIORITY WRITE;</programlisting> - <para>Ix xxxx xxxxxxx, xxx <emphasis>xxxxxxx</emphasis> xxxxx xx xxxxxx xxxx x <literal moreinfo="none">READ</literal> xxxxxxx xx xxxx xx xxx xxxx xxxxxxxx xxx xx xxxxx xxxxx xxx xxxxx xxx xxx xxxxxxxxxxx’ xxxx xxxxxxxxx xx xxxxx xxxxxxx, xxx xxx xxxx xxxxxxxx xxx xxxxx xx xxxxxx xx xxxxx xxxxx. Txx <emphasis>xxxxxxxxxxx</emphasis> xxxxx xx xxxxxx xxx xxxxxxx xxxx xxx <literal moreinfo="none">READ LOCAL</literal> xxxxxxx, xxxxxxx xxx xxxxxx xxxxx xx xx xxxxxxxx xxx xxx xxx xxxxxxxxxx’x xxxxxxxx xxxxxxxxxxx. Txx <emphasis>xx_xxxxxxxx</emphasis> xxxxx xx xxxxxx xxx xxxxxxxxx xxx xx xxx xxxxxxx xxxxxx.</para> - <para><indexterm id="mysqlian-CHP-7-ITERM-2338" significance="normal"><primary>xxxxxxx</primary><secondary>AS xxxxxxx xxx</secondary></indexterm><indexterm id="mysqlian-CHP-7-ITERM-2339" significance="normal"><primary>AS xxxxxxx</primary><secondary>LOCK TABLES xxxxxxxxx</secondary></indexterm> -Fxx xxxxxxxxxxx, xxx xxx xxxx x xxxxx xx xxxxx xxxx xxx <literal moreinfo="none">AS</literal> xxxxxxx. Ix xxx xxxxxxxx xxxxxxx, xxx <emphasis>xx_xxxxxxxx</emphasis> xxxxx xx xxxxxxxx xx xx <emphasis>xxxx</emphasis> xxx xxxxxxxxxx SQL xxxxxxxxxx xxxxx xxx xxxxxx xxx xxxxxxxx. Dxxxxx xxxx xxxx, xxx xxxxxx xxx xxxxx xx xxx xxxxx xxxx xx xxxx xxxx xx xxx xxxxx SQL xxxxxxxxxx.</para> - <para><indexterm id="mysqlian-CHP-7-ITERM-2340" significance="normal"><primary>START TRANSACTION xxxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-7-ITERM-2341" significance="normal"><primary>UNLOCK TABLES xxxxxxxxx</primary></indexterm> -Yxx xxx xxxxxxx xxxxx xxxx xxx <literal moreinfo="none">UNLOCK TABLES</literal> xxxxxxxxxx. A <literal moreinfo="none">START TRANSACTION</literal> xxxxxxxxx xxxx xxxxxxx xxxxxx, xx xxxx xxx xxxxxxx xx xxxxxxx <literal moreinfo="none">TABLE LOCKS</literal> xxxxxxxxx. Txxxxxxxx, xxx xxxxxx xx xx xxxxxx xxxxxx xx xxxxx xx xxx xxxxxxxxx. Axxxxxxxxx xxxxxx xxx xx xxxxx xx xxx xxx xx xxx <literal moreinfo="none">TABLE LOCKS</literal> xxxxxxxxx xx x xxxxx-xxxxxxxxx xxxx.</para> - <para><indexterm id="mysqlian-CHP-7-ITERM-2342" significance="normal"><primary>UNLOCK TABLES xxxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-7-ITERM-2343" significance="normal"><primary>RELEASE_LOCK( ) xxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-7-ITERM-2344" significance="normal"><primary>GET_LOCK( ) xxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-7-ITERM-2345" significance="normal"><primary>FLUSH TABLES WITH READ LOCK xxxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-7-ITERM-2346" significance="normal"><primary>xxxxxx</primary><secondary>xxxxxxxxx</secondary></indexterm> -Yxx xxx xxxx xxx xxxxxx xxxx x <literal moreinfo="none">FLUSH TABLES WITH READ LOCK</literal> xxxxxxxxx. Yxx xxx xxx xxx <literal moreinfo="none">GET_LOCK( )</literal> xxx <literal moreinfo="none">RELEASE_LOCK( )</literal> xxxxxxxxx xx xxxxxxxxxxxx xx xxx <literal moreinfo="none">LOCK TABLES</literal> xxx <literal moreinfo="none">UNLOCK TABLES</literal> xxxxxxx xx xxxx xxxxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch07-77014"> - <refmeta> - <refentrytitle>OPTIMIZE TABLE</refentrytitle> - </refmeta> - <refnamediv> - <refname>OPTIMIZE TABLE</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">OPTIMIZE [LOCAL|NO_WRITE_TO_BINLOG] TABLE <replaceable>xxxxx</replaceable>[, . . . ]</synopsis> - </refsynopsisdiv> - <refsect1> - <title/> - <para><indexterm id="mysqlian-CHP-7-ITERM-2347" significance="normal"><primary>TEXT xxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-7-ITERM-2348" significance="normal"><primary>BLOB xxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-7-ITERM-2349" significance="normal"><primary>VARCHAR xxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-7-ITERM-2350" significance="normal"><primary>xxxx</primary><secondary>xxxxxxxxxx xx xxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-7-ITERM-2351" significance="normal"><primary>xxxxxx</primary><secondary>xxxxxxxxxx xxxx xx</secondary></indexterm><indexterm id="mysqlian-CHP-7-ITERM-2352" significance="normal"><primary>OPTIMIZE TABLE xxxxxxxxx</primary></indexterm> -Uxx xxxx xxxxxxxxx xx xxxxxxxx xxx xxxx xxxxxxxxx xx x xxxxx. Oxxxxxxxxxxx xx xxxxxx xxxx xxxx xxxx xxxx xxxx xxxxxxx xxxx x xxxxx. Ix’x xxxx xxxxxx xx xxx xxxx xxxxxxxxx xxxxxxxxxxxx xxxx x xxxxx xxxx xxxxxxxx xxxxxxx xxxxxxxx-xxxxxxxxx-xxxxx xxxxxxx (x.x., <literal moreinfo="none">VARCHAR</literal>, <literal moreinfo="none">BLOB</literal>, xxx <literal moreinfo="none">TEXT</literal> xxxxxxx). Txxx xxxxxxxxx xxxxxxxxx xxxxx xxxx xxxx MxISAM, BDB, xxx IxxxDB xxxxxx. Ix xxx xxxx xx xxxxx xxxxxx, xxxxxxx, xx xxx <emphasis>xxxxxx</emphasis> xxxxxx xx xxxxxxx xxxx xxx <literal moreinfo="none">--xxxx-xxx</literal> xxxxxx xx xxx <literal moreinfo="none">--xxxx-xxxx</literal> xxxxxx. Sxx <xref linkend="mysqlian-CHP-7"/> xxx xxxx xxxxxxxxxxx xx xxxxxxx xxxxxx xxxxxxx xxxxxxx. -<indexterm id="mysqlian-CHP-7-ITERM-2353" significance="normal"><primary>xxxxxx xxxxxx</primary><secondary>OPTIMIZE TABLES xxxxxxxxx</secondary></indexterm></para> - <para><indexterm id="mysqlian-CHP-7-ITERM-2354" significance="normal"><primary>xxxxxxx</primary><secondary>xxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-7-ITERM-2355" significance="normal"><primary>xxxx</primary><secondary>xxxxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-7-ITERM-2356" significance="normal"><primary>OPTIMIZE TABLE xxxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-7-ITERM-2357" significance="normal"><primary>LOCAL xxxxxxx</primary><secondary>OPTIMIZE TABLE xxxxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-7-ITERM-2358" significance="normal"><primary>NO_WRITE_TO_BINLOG xxxxxxx</primary><secondary>OPTIMIZE TABLE xxxxxxxxx</secondary></indexterm> -Txxx xxxxxxxxx xxxx xxxxxxx xxxx xxx xxxxxxxx xxx xxxx xxxxxxx. Ix xxxxxxxxxxx xxxxx xxx xxxxxx xxxxxxxx xxxxx xxxxxxxxxx. Mxxxxxxx xxxxxx xxx xx xxxxxx xxx xxxxxxxxxxxx xx x xxxxx-xxxxxxxxx xxxx. Tx xxxxxxx xxx xxxxxxxxxx xx xxxx xxxxxxxxx xxxx xxxxx xxxxxxxx xx xxx xxxxxx xxx xxxx, xxx xxx <literal moreinfo="none">NO_WRITE_TO_BINLOG</literal> xxxxxxx xx xxx xxxxx, <literal moreinfo="none">LOCAL</literal>. Hxxx xx xx xxxxxxx xx xxx xxxxxxxxx’x xxx:</para> - <programlisting format="linespecific">OPTIMIZE LOCAL TABLE xxxxxxx, xxxxxxx; - -+----------------------+----------+----------+----------+ -| Txxxx | Ox | Mxx_xxxx | Mxx_xxxx | -+----------------------+----------+----------+----------+ -| xxxxxxxxxxxx.xxxxxxx | xxxxxxxx | xxxxxx | OK | -| xxxxxxxxxxxx.xxxxxxx | xxxxxxxx | xxxxxx | OK | -+----------------------+----------+----------+----------+</programlisting> - <para>Hxxx xxx xxxxxx xxxx xxxxxxxxx xxxxxxxxxxxx xxx xxx xxxxxxxx xxx xxx xxxxxxx xx xxx xxxxxx xxx xxxx.</para> - </refsect1> - </refentry> - <refentry id="ch07-77015"> - <refmeta> - <refentrytitle>REPAIR TABLE</refentrytitle> - </refmeta> - <refnamediv> - <refname>REPAIR TABLE</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">REPAIR [LOCAL|NO_WRITE_TO_BINLOG] TABLE - <replaceable>xxxxx</replaceable>[, <replaceable>...</replaceable>] [QUICK] [EXTENDED] [USE_FRM]</synopsis> - </refsynopsisdiv> - <refsect1> - <title/> - <para><indexterm id="mysqlian-CHP-7-ITERM-2359" significance="normal"><primary>LOCAL xxxxxxx</primary><secondary>REPAIR TABLE xxxxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-7-ITERM-2360" significance="normal"><primary>NO_WRITE_TO_BINLOG xxxxxxx</primary><secondary>REPAIR TABLE xxxxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-7-ITERM-2361" significance="normal"><primary>xxxxxx</primary><secondary>xxxxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-7-ITERM-2362" significance="normal"><primary>REPAIR TABLE xxxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-7-ITERM-2363" significance="normal"><primary>EXTENDED xxxx</primary><secondary>REPAIR TABLE xxxxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-7-ITERM-2364" significance="normal"><primary>QUICK xxxx</primary><secondary>REPAIR TABLE xxxxxxxxx</secondary></indexterm> -Uxx xxxx xxxxxxxxx xx xxxxxx xxxxxxxxx MxISAM xxxxxx. Mxxxxxxx xxxxxx xxx xx xxxxx xx x xxxxx-xxxxxxxxx xxxx. Tx xxxxxxx xxxx xxxxxxxxx xxxx xxxxxxxxx xxx xxxxxxxxxx xx xxx xxxxxx xxx xxxx, xxxx xxx <literal moreinfo="none">NO_WRITE_TO_BINLOG</literal> xxxxxxx xx xxx <literal moreinfo="none">LOCAL</literal> xxxxx. Txx <literal moreinfo="none">QUICK</literal> xxxxxxx xxxxxxxxx MxSQL xx xxxxxx xxx xxxxx xxxxxxx xxxx. Txx <literal moreinfo="none">EXTENDED</literal> xxxxxxx xxxxxxxx xxx xxxxxxx xxx xxx xx x xxxx. Txxx xxxxxx xxxxx xxxxxx, xxx xxx xx xxxx xxxxxxxxx, xxxxxxxxxx xxxx xxxx xxxxxxxxxx xxxxxxxxx xxxx.</para> - <para>Bxxxxx xxxxxxx xxxx xxxxxxxxx, xxxx x xxxxxx xx xxx xxxxx. Ix x xxxxx xxxxxxxxx xx xxxx xxxxxxxx, xxxxx xxx xx xxxxx xxxxxxxx (x.x., xxxxxxxxxx xxxxxxxx) xxxx xxx xxxxxx xxxxxxxx. Hxxx xx xx xxxxxxx xx xxxx xxxxxxxxx:</para> - <programlisting format="linespecific">REPAIR TABLE xxxxxxx QUICK EXTENDED; - -+----------------------+--------+----------+----------+ -| Txxxx | Ox | Mxx_xxxx | Mxx_xxxx | -+----------------------+--------+----------+----------+ -| xxxxxxxxxxxx.xxxxxxx | xxxxxx | xxxxxx | OK | -+----------------------+--------+----------+----------+</programlisting> - <para><indexterm id="mysqlian-CHP-7-ITERM-2365" significance="normal"><primary>AUTO_INCREMENT xxxxxxx</primary><secondary>xxxxxxxxxxx xxxxxxx xxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-7-ITERM-2366" significance="normal"><primary>USE_FRM xxxxxxx (REPAIR TABLE)</primary></indexterm> -Ix xxxx xxxxxxx, xxx xxxxxx xxx xxxxxxxxxx. Txxx xx xxxxxxxxx xx xxx <literal moreinfo="none">OK</literal> xx xxx <emphasis>Mxx_xxxx</emphasis> xxxxx. Ix xx xxxx xxxxxxxxxxxx, xxx xxxxx xxx xxx <literal moreinfo="none">USE_FRM</literal> xxxxxx xxxx xxxx xxxxxxxxx. Txxx xxxxxx xxxx xxxxxx x xxx xxxxx xxxx (<emphasis>.MYI</emphasis>) xxxxx xxx xxxxx xxxxxx xxxx (<emphasis>.xxx</emphasis>). Ix xxx’x xx xxxx xx xxxxxxxxx xxx xxxxxxx xxxxx xxx <literal moreinfo="none">AUTO_INCREMENT</literal> xxxxxxx xx xxx <literal moreinfo="none">DELETE LINK</literal>, xx xx xxxxxxx’x xx xxxx xxxxxx xxx xxxxxxxx <emphasis>.MYI</emphasis> xxxx xx xxxx. Ixxxxxxxxxxx, xx xxx MxSQL xxxxxx xxxx xxxxx xxx <literal moreinfo="none">REPAIR TABLE</literal> xxxxxxxxx xx xxxxxxx, xxx xxxxxx xxx xxx xxxxxxxxx xxxxx xx xxxx xx xxx xxxxxx xx xxxx xx, xxxxxx xxxxxxx xxx xxxxx SQL xxxxxxxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch07-77016"> - <refmeta> - <refentrytitle>RESET</refentrytitle> - </refmeta> - <refnamediv> - <refname>RESET</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">RESET {MASTER|SLAVE|QUERY CACHE}[, . . . ]</synopsis> - </refsynopsisdiv> - <refsect1> - <title/> - <para><indexterm id="mysqlian-CHP-7-ITERM-2367" significance="normal"><primary>SLAVE xxxxxx (RESET)</primary></indexterm><indexterm id="mysqlian-CHP-7-ITERM-2368" significance="normal"><primary>MASTER xxxxxxx</primary><secondary>RESET xxxxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-7-ITERM-2369" significance="normal"><primary>QUERY CACHE xxxxxx (RESET)</primary></indexterm><indexterm id="mysqlian-CHP-7-ITERM-2370" significance="normal"><primary>RESET SLAVE xxxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-7-ITERM-2371" significance="normal"><primary>RESET MASTER xxxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-7-ITERM-2372" significance="normal"><primary>RESET xxxxxxxxx</primary></indexterm> -Uxx xxxx xxxxxxxxx xx xxxxx xxxxxxx xxxxxx xxxxxxxx xxx xxxxx. Ix’x xxxxxxx xx xxx <literal moreinfo="none">FLUSH</literal> xxxxxxxxx, xxx xxxx xxxxxxxx xxx xxx xxxxxxxx xxxx. Txx <literal moreinfo="none">RELOAD</literal> xxxxxxxxx xx xxxxxxxx xx xxx xx. Mxxxxxxx xxxxxxx xxx xx xxxxx xx x x xxxxx-xxxxxxxxx xxxx. Cxxxxxxxx, xxx xxx xxxxx xxx <literal moreinfo="none">MASTER</literal>, <literal moreinfo="none">QUERY CACHE</literal>, xxx <literal moreinfo="none">SLAVE</literal> xxxxxxx. Sxx xxx <literal moreinfo="none">RESET MASTER</literal> xxxxxxxxx xxx xxx <literal moreinfo="none">RESET SLAVE</literal> xxxxxxxxx xxx xxxxxxxx xxxxxxxxxxxx xx xxxx xxxxxx. Txx <literal moreinfo="none">QUERY CACHE</literal> xxxxxx xxxxxx xxx xxxxx xxxxxxxxxx SQL xxxxx xxxxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch07-77017"> - <refmeta> - <refentrytitle>RESTORE TABLE</refentrytitle> - </refmeta> - <refnamediv> - <refname>RESTORE TABLE</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">RESTORE TABLE <replaceable>xxxxx</replaceable>[, . . . ] FROM '/<replaceable>xxxx</replaceable>'</synopsis> - </refsynopsisdiv> - <refsect1> - <title/> - <para><indexterm id="mysqlian-CHP-7-ITERM-2373" significance="normal"><primary>xxxxxxxxx xxxxx (“)</primary><secondary>RESTORE TABLE xxxxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-7-ITERM-2374" significance="normal"><primary>xxxxxx</primary><secondary>xxxxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-7-ITERM-2375" significance="normal"><primary>BACKUP TABLE xxxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-7-ITERM-2376" significance="normal"><primary>RESTORE TABLE xxxxxxxxx</primary></indexterm> -Txxx xxxxxxxxx xxxxxxxx x xxxxx xxxx xxx xxxxx xx xxx xxxxxxxxxx xx xxx <literal moreinfo="none">BACKUP TABLE</literal> xxxxxxxxx. Mxxxxxxx xxxxxx xxx xx xxxxx xx x xxxxx-xxxxxxxxx xxxx. Txx xxxxxxxx xxxx xx xxx xxxxxxxxx xxxxxxxxxx xxx xxxxxx xxxxx xxxx xxxxxx xxxxxx xxxxxx. Ix xxx xxxxxx xxxxxxx xxxxx xx xxx xxxxxxxx, xx xxxxx xxxxxxx xxxx xx xxxxxxxxx xxx xxx xxxxxxx xxxx xxxx. Ix xx’x xxxxxxxxxx, xxx xxxxx xxxxxxx xxxx xx xxxxx xxxxxxxxxxxxx. Txxx xx xxxxxxxxx xxxxxxx xxx <literal moreinfo="none">BACKUP TABLE</literal> xxxxxxxxx xxxxx’x xxxx xx xxx xxxxx xxxxx.</para> - <programlisting format="linespecific">RESTORE TABLE xxxxxxx, xxxxxxxxxxx FROM '/xxx/xxxxxx'; - -+--------------------------+---------+----------+----------+ -| Txxxx | Ox | Mxx_xxxx | Mxx_xxxx | -+--------------------------+---------+----------+----------+ -| xxxxxxxxxxxx.xxxxxxx | xxxxxxx | xxxxxx | OK | -+--------------------------+---------+----------+----------+ -| xxxxxxxxxxxx.xxxxxxxxxxx | xxxxxxx | xxxxxx | OK | -+--------------------------+---------+----------+----------+</programlisting> - <para>Ix xxxx xxxxxxx, xxx xxxxxxxxx xxx xxxxxxxxxx xx xxxxxxxxx xxx <emphasis>.xxx</emphasis> xxx <emphasis>.MYD</emphasis> xxxxx xxxxxxx xx xxx xxxxxx xxxxxxxxx xxx xxxxxxxxxxxx xxx <emphasis>.MYI</emphasis> xxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch07-77018"> - <refmeta> - <refentrytitle>SET</refentrytitle> - </refmeta> - <refnamediv> - <refname>SET</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">SET [GLOBAL|@@xxxxxx.|SESSION|@@xxxxxxx.] <replaceable>xxxxxxxx</replaceable> = <replaceable>xxxxxxxxxx</replaceable></synopsis> - </refsynopsisdiv> - <refsect1> - <title/> - <para><indexterm id="mysqlian-CHP-7-ITERM-2377" significance="normal"><primary>xx xxxx (@)</primary></indexterm><indexterm id="mysqlian-CHP-7-ITERM-2378" significance="normal"><primary>LOCAL xxxxxxx</primary><secondary>SET xxxxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-7-ITERM-2379" significance="normal"><primary>SESSION xxxxxxx</primary><secondary>SET xxxxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-7-ITERM-2380" significance="normal"><primary>GLOBAL xxxxxxx</primary><secondary>SET xxxxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-7-ITERM-2381" significance="normal"><primary>xxxxxxxxx</primary><secondary>xxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-7-ITERM-2382" significance="normal"><primary>SET xxxxxxxxx</primary><secondary>xxxxxx</secondary></indexterm> -Txxx xxxxxxxxx xxxx x xxxxxx xx xxxx xxxxxxxx xxx xxxxxx xx xxxxxxx xxx. Gxxxxx xxxxxxxxx xxxxxx xx xxx xxxxx. Sxxxxxx xxxxxxxxx xxx xxxxxxxxx xxxx xx xxx xxxxxxxxxx xxxxxx xxxx xxxxxxx xxx xxxxxxxx. Fxx xxxxxx xxxxxxxxx xx xx xxxxxxxxxx xx xxxxxx, xxx <literal moreinfo="none">GLOBAL</literal> xxxxxxx xx xxxx. Axxxxxxxxxxxx, xxx xxxxxxxx xxx xx xxxxxxxx xx <literal moreinfo="none">@@xxxxxx</literal>. xx xxxxxxx xxxx xx xx xxxxxx. Fxx xxxxxx xxxxxxxxx xxxx xxx xxxxxxx xx xxx xxxxxxx xxxxxxx, xxx xxx <literal moreinfo="none">SESSION</literal> xxxxxxx, xx xxxxx <literal moreinfo="none">@@xxxxxxx</literal> xx xxxx <literal moreinfo="none">@@</literal> xxxxxxxxxxx xx xxxxx xx xxx xxxxxxxx xxxx. Txx xxxxxxx xxx xxxxxxxxx xx xx xxxxx xxxx xx xxx xxxxxxx, xxxxxx xxxx xxxxx. <literal moreinfo="none">LOCAL</literal> xxx <literal moreinfo="none">@@xxxxx</literal> xxx xxxxxxx xxx <literal moreinfo="none">SESSION</literal> xxx <literal moreinfo="none">@@xxxxxxx</literal>, xxxxxxxxxxxx. Hxxx xxx x xxxxxx xx xxxxxxxx xxxxxxxxx xxxxxx xxxxxxxxx, xxx xxxxx xxx xxxxxxx xxxxxx xxx xxx xxxxx xxxxx xxx xxxxxxxx xxxxxx xxxxxx:</para> - <programlisting format="linespecific">SET GLOBAL xxxxxxxxxx_xxxxxx = d; -SET @@xxxxxxx.xxxxxxxxxxx_xxxxxxx=ddddd;</programlisting> - <para><indexterm id="mysqlian-CHP-7-ITERM-2385" significance="normal"><primary>SHOW VARIABLES xxxxxxxxx</primary></indexterm> -Txx xxxxx xxxxxxxxx xxxxxxxx xxxxxxxxxx xxxxxxx xxxxxxx xxxxxx xx xxxxxxx xxx xxxxxx. Txx xxxxxx xxxxxxxxx xxxxxxx xxx xxxxxxxxxxx xxxxxxx xx x xxxxxx xxxxx xxxx xxxxxx. Txxx xxxxxxx xx xxx xxx xxxxxxx xxxxxx xxxxxxxxxx xxxx. Fxx xxxxx xxxxxxx, xxxx xxxxxxxx xxxx xxxxx xxxxxxx xxx xxxxxxx xxxxx.</para> - <para>Tx xxx x xxxx xx xxxxxx xxxxxxxxx xxx xxxxx xxxxxx, xxx xxx <literal moreinfo="none">SHOW VARIABLES</literal> xxxxxxxxx. Fxx x xxxxxxxxxxx xx xxxxx xxxxxxxxx, xxx <xref linkend="mysqlian-APP-C"/>. Fxx xxxxxxxx xxxxxxxxx xxxx xxxxxxxxx, xxx <xref linkend="mysqlian-CHP-7"/>.</para> - </refsect1> - </refentry> - <refentry id="ch07-77019"> - <refmeta> - <refentrytitle>SHOW ENGINE</refentrytitle> - </refmeta> - <refnamediv> - <refname>SHOW ENGINE</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">SHOW ENGINE <replaceable>xxxxxx</replaceable> {STATUS|MUTEX}</synopsis> - </refsynopsisdiv> - <refsect1> - <title/> - <para><indexterm id="mysqlian-CHP-7-ITERM-3011" significance="normal"><primary>xxxxxxx xxxxxxx</primary><secondary>xxxxxxxxxx xxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-7-ITERM-3012" significance="normal"><primary>SHOW INNODB STATUS xxxxxxxxx</primary></indexterm> -Uxx xxxx xxxxxxxxx xx xxxxxxx xxxxxxx xx xxx xxxxxx xx x xxxxx xxxxxxx xxxxxx. Txxx xxxxxxxxx xxxxxxxx xxxxxxxxxxx xx xxxxx xxx xxxxxx xxxxx xxx xxxxxxxxxxxx, xxxxxxx xxxxx, xxxxxxx xxxxxxxx, xxxxxx xxxxxxxxxx xxx xxxxxxxx, xxx xxxx xxxxxxx xx xxx xxxxxx.</para> - <para>Cxxxxxxxx, xxx xxxxxxx xxxx xxx xx xxxxx xxx <literal moreinfo="none">INNODB</literal>, <literal moreinfo="none">NDB</literal>, xxx <literal moreinfo="none">NDBCLUSTER</literal>. Txxxx xxxx xxx xxxxxxxx xxx xxxxxxxxxxxxxx. Pxxxx xx xxxxxxx d.d.dd xx MxSQL, xxx xxxxxx xx <literal moreinfo="none">DBD</literal> xxx xxxxxxxxx. Ix xxxxx xxxxxxxx, xxx BDB xxxxxx xx xxx xxxxxxxxx xxx x xxxxxxx xxxxxxx xx xxxxxxxxx xxxx xx xx xxxx xxxx xxxx xxxxxxxxx. Txx <literal moreinfo="none">MUTEX</literal> xxxxxx xx xxxxxxxxx xxxx xxx xxx IxxxDB xxxxxx. Fxx xxx NDB xxxxxx, xx xxxxx xxxxxxx xxx xx xxxxxxxx xx xxxxx xxx xx xxxxxxxxxx xx xxx xxxx.</para> - </refsect1> - </refentry> - <refentry id="ch07-77020"> - <refmeta> - <refentrytitle>SHOW ENGINES</refentrytitle> - </refmeta> - <refnamediv> - <refname>SHOW ENGINES</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">SHOW [STORAGE] ENGINES</synopsis> - </refsynopsisdiv> - <refsect1> - <title/> - <para><indexterm id="mysqlian-CHP-7-ITERM-2395" significance="normal"><primary>SHOW TABLE TYPES xxxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-7-ITERM-2396" significance="normal"><primary>STORAGE xxxxxxx (SHOW ENGINES)</primary></indexterm><indexterm id="mysqlian-CHP-7-ITERM-2397" significance="normal"><primary>xxxxxxx xxxxxxx</primary><secondary>xxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-7-ITERM-2398" significance="normal"><primary>SHOW ENGINES xxxxxxxxx</primary></indexterm> -Txxx xxxxxxxxx xxxxx xxx xxxxx xxxxx xx xxxxxxx xxxxxxx xxxxxxxxx xxx xxx xxxxxxx xx MxSQL xxxxxxx xx xxx xxxxxx. Ix xxxxxx xxxxx xxx xxxxxxxx xx xxx xxxxxx xxx xxxxx xxx xxxxxxx, xx xxxx xx xxxxx xx xxx xxxxxxx xxxx. Ix xxxx xxxxxxxx xxxxxxxx xx xxxx xxxx. Txx <literal moreinfo="none">STORAGE</literal> xxxxxxx xx xxxxxxxx xxx xxx xx xxxxxx xx xxx xxxxxxx. Txxx SQL xxxxxxxxx xxxxxxxx <literal moreinfo="none">SHOW TABLE TYPES</literal>, xxxxx xxxxxxxx xxx xxxx xxxxxxx, xxx xx xxxxxxxxxx. -</para> - <programlisting format="linespecific">SHOW ENGINES \G - -*************************** d. xxx *************************** - Exxxxx: xxxxxxxxxx - Sxxxxxx: DISABLED - Cxxxxxx: Cxxxxxxxx, xxxxx-xxxxxxxx xxxxxx -Txxxxxxxxxxx: YES - XA: NO - Sxxxxxxxxx: NO -*************************** d. xxx *************************** - Exxxxx: MRG_MYISAM - Sxxxxxx: YES - Cxxxxxx: Cxxxxxxxxx xx xxxxxxxxx MxISAM xxxxxx -Txxxxxxxxxxx: NO - XA: NO - Sxxxxxxxxx: NO -*************************** d. xxx *************************** - Exxxxx: BLACKHOLE - Sxxxxxx: YES - Cxxxxxx: /xxx/xxxx xxxxxxx xxxxxx (xxxxxxxx xxx xxxxx xx xx xxxxxxxxxx) -Txxxxxxxxxxx: NO - XA: NO - Sxxxxxxxxx: NO -*************************** d. xxx *************************** - Exxxxx: CSV - Sxxxxxx: YES - Cxxxxxx: CSV xxxxxxx xxxxxx -Txxxxxxxxxxx: NO - XA: NO - Sxxxxxxxxx: NO -*************************** d. xxx *************************** - Exxxxx: MEMORY - Sxxxxxx: YES - Cxxxxxx: Hxxx xxxxx, xxxxxx xx xxxxxx, xxxxxx xxx xxxxxxxxx xxxxxx -Txxxxxxxxxxx: NO - XA: NO - Sxxxxxxxxx: NO -*************************** d. xxx *************************** - Exxxxx: FEDERATED - Sxxxxxx: YES - Cxxxxxx: Fxxxxxxxx MxSQL xxxxxxx xxxxxx -Txxxxxxxxxxx: YES - XA: NO - Sxxxxxxxxx: NO -*************************** d. xxx *************************** - Exxxxx: ARCHIVE - Sxxxxxx: YES - Cxxxxxx: Axxxxxx xxxxxxx xxxxxx -Txxxxxxxxxxx: NO - XA: NO - Sxxxxxxxxx: NO -*************************** d. xxx *************************** - Exxxxx: IxxxDB - Sxxxxxx: YES - Cxxxxxx: Sxxxxxxx xxxxxxxxxxxx, xxx-xxxxx xxxxxxx, xxx xxxxxxx xxxx -Txxxxxxxxxxx: YES - XA: YES - Sxxxxxxxxx: YES -*************************** d. xxx *************************** - Exxxxx: MxISAM - Sxxxxxx: DEFAULT - Cxxxxxx: Dxxxxxx xxxxxx xx xx MxSQL d.dd xxxx xxxxx xxxxxxxxxxx -Txxxxxxxxxxx: NO - XA: NO - Sxxxxxxxxx: NO -d xxxx xx xxx (d.dd xxx)</programlisting> - </refsect1> - </refentry> - <refentry id="ch07-77021"> - <refmeta> - <refentrytitle>SHOW OPEN TABLES</refentrytitle> - </refmeta> - <refnamediv> - <refname>SHOW OPEN TABLES</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">SHOW OPEN TABLES [FROM <replaceable>xxxxxxxx</replaceable>] [LIKE '<replaceable>xxxxxxx</replaceable>'|WHERE <replaceable>xxxxxxxxxx</replaceable>]</synopsis> - </refsynopsisdiv> - <refsect1> - <title/> - <para>Uxx xxxx xxxxxxxxx xx xxxxxxx x xxxx xx xxxxxx xxxx xxx xxxx; xxxx xx xx xxx, xx xxx xxxxx xxxxx. Txx xxxx xxxx xxx xxxxxxx xxx xxxxxxxxx xxxxxx. Txx <literal moreinfo="none">LIKE</literal> xxxxxx xxx xx xxxx xx xxxxx xxx xxxxxx xxxxxxxxx xx x xxxxxx xxxxxxx. Sxxxxxxxx, xxx <literal moreinfo="none">WHERE</literal> xxxxxx xxx xx xxxx xx xxxxxx xxx xxxxxxx xxx.</para> - <programlisting format="linespecific">SHOW OPEN TABLES -FROM xxxxxxx LIKE '%xxxxxxx%'; - -+----------+--------------------+--------+-------------+ -| Dxxxxxxx | Txxxx | Ix_xxx | Nxxx_xxxxxx | -+----------+--------------------+--------+-------------+ -| xxxxxxx | xxxxxxx_xxxxxxx | d | d | -| xxxxxxx | xxxxxxxx | d | d | -| xxxxxxx | xxxxxxx_xxxxx | d | d | -| xxxxxxx | xxxxxxx_xxxxx_xxxx | d | d | -+----------+--------------------+--------+-------------+</programlisting> - </refsect1> - </refentry> - <refentry id="ch07-77022"> - <refmeta> - <refentrytitle>SHOW PLUGINS</refentrytitle> - </refmeta> - <refnamediv> - <refname>SHOW PLUGINS</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">SHOW PLUGINS</synopsis> - </refsynopsisdiv> - <refsect1> - <title/> - <para>Uxx xxxx xxxxxxxxx xx xxxxxxx x xxxx xx xxxxxxx xx xxx xxxxxx. Txxx xxxxxxxxx xx xxxxxxxxx xx xx xxxxxxx d.d.d xx MxSQL, xxx xxxx xxx xxxx <literal moreinfo="none">SHOW PLUGIN</literal>. Ix xxx xxxxxxx xx <literal moreinfo="none">SHOW PLUGINS</literal> xx xx xxxxxxx d.d.d.</para> - <programlisting format="linespecific">SHOW PLUGINS; - -+------------+--------+----------------+---------+---------+ -| Nxxx | Sxxxxx | Txxx | Lxxxxxx | Lxxxxxx | -+------------+--------+----------------+---------+---------+ -| xxxxxx | ACTIVE | STORAGE ENGINE | NULL | GPL | -| xxxxxxxxx | ACTIVE | STORAGE ENGINE | NULL | GPL | -| ARCHIVE | ACTIVE | STORAGE ENGINE | NULL | GPL | -| BLACKHOLE | ACTIVE | STORAGE ENGINE | NULL | GPL | -| CSV | ACTIVE | STORAGE ENGINE | NULL | GPL | -| FEDERATED | ACTIVE | STORAGE ENGINE | NULL | GPL | -| MEMORY | ACTIVE | STORAGE ENGINE | NULL | GPL | -| IxxxDB | ACTIVE | STORAGE ENGINE | NULL | GPL | -| MxISAM | ACTIVE | STORAGE ENGINE | NULL | GPL | -| MRG_MYISAM | ACTIVE | STORAGE ENGINE | NULL | GPL | -| xxxxxxxxxx | ACTIVE | STORAGE ENGINE | NULL | GPL | -+------------+--------+----------------+---------+---------+</programlisting> - </refsect1> - </refentry> - <refentry id="ch07-77023"> - <refmeta> - <refentrytitle>SHOW PROCESSLIST</refentrytitle> - </refmeta> - <refnamediv> - <refname>SHOW PROCESSLIST</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">SHOW [FULL] PROCESSLIST</synopsis> - </refsynopsisdiv> - <refsect1> - <title/> - <para><indexterm id="mysqlian-CHP-7-ITERM-3021" significance="normal"><primary>FULL xxxxxxx</primary><secondary>SHOW PROCESSLIST xxxxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-7-ITERM-3022" significance="normal"><primary>SHOW PROCESSLIST xxxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-7-ITERM-3023" significance="normal"><primary>SUPER xxxxxxxxx (GRANT/REVOKE)</primary></indexterm><indexterm id="mysqlian-CHP-7-ITERM-3024" significance="normal"><primary>xxxxxxxxx, xxxxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-7-ITERM-3025" significance="normal"><primary>xxxxxxx, xxxxxxxxxx</primary></indexterm> -Txxx xxxxxxxxx xxxxxxxx x xxxx xx xxxxxxxxxx xxxxxxx xxxxxxx xx xxx MxSQL xxxxxx. Txx xxxxxxxxx xxxxxxxx <literal moreinfo="none">SUPER</literal> xxxxxxxxxx xx xx xxxx xx xxx xxx xxxxxxx. Oxxxxxxxx, xxxx xxxxxxx xxxxxxx xx xxx xxxxxxx xxxxxxxxxx xxx xxxxx. Txx <literal moreinfo="none">FULL</literal> xxxxxxx xxxxx xxx xxxx xxxx xx xxx xxxxxxxxxxx xxxxx.</para> - <programlisting format="linespecific">SHOW PROCESSLIST\G -*************************** d. xxx *************************** - Ix: d - Uxxx: xxxx - Hxxx: xxxxxxxxx - xx: xxxxxxxxxxxx -Cxxxxxx: Qxxxx - Txxx: d - Sxxxx: NULL - Ixxx: SHOW PROCESSLIST</programlisting> - <para><indexterm id="mysqlian-CHP-7-ITERM-3026" significance="normal"><primary>KILL xxxxxxxxx</primary></indexterm> -Yxx xxx xxx xxxx xxxxxxxxx xx xxxxxxxxx x xxxxxx xxxxxxxxxxxxxx xxxxxx xx xx xxxx xxxx xxx <literal moreinfo="none">KILL</literal> xxxxxxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch07-77024"> - <refmeta> - <refentrytitle>SHOW STATUS</refentrytitle> - </refmeta> - <refnamediv> - <refname>SHOW STATUS</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">SHOW [GLOBAL|LOCAL|SESSION] STATUS [LIKE '<replaceable>xxxxxxx</replaceable>'|WHERE <replaceable>xxxxxxxxxx</replaceable>]</synopsis> - </refsynopsisdiv> - <refsect1> - <title/> - <para><indexterm id="mysqlian-CHP-7-ITERM-3036" significance="normal"><primary>LIKE xxxxxx</primary><secondary>SHOW STATUS xxxxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-7-ITERM-3037" significance="normal"><primary>SHOW STATUS xxxxxxxxx</primary></indexterm> -Txxx xxxxxxxxx xxxxxxxx xxxxxx xxxxxxxxxxx xxx xxxxxxxxx xxxx xxx xxxxxx. Yxx xxx xxxxxx xxx xxxxxx xx xxxxxxxxx xxxxx xxxx xxx <literal moreinfo="none">LIKE</literal> xxxxxx, xxxxx xx x xxxxxx xxxxxxx xxx xxx xxxxxxxx xxxx. Sxxxxxxxx, xxx <literal moreinfo="none">WHERE</literal> xxxxxx xxx xx xxxx xx xxxxxx xxx xxxxxxx xxx. Hxxx xx xx xxxxxxx xx xxx xxx xxx xxx xxxx xxxxxxxxx xxxx xxx <literal moreinfo="none">LIKE</literal> xxxxxx:</para> - <programlisting format="linespecific">SHOW STATUS LIKE '%xxx%'; - -+------------------------------+-------+ -| Vxxxxxxx_xxxx | Vxxxx | -+------------------------------+-------+ -| Bxxxxx_xxxxx_xxxx_xxx | d | -| Bxxxxx_xxxxx_xxx | d | -| Cxx_xxxx_xxxxxx_xxxxxx | d | -| Cxx_xxxx_xxxxxxx | d | -| Cxx_xxxx_xxxxxx_xxxx | d | -| Ixxxxx_xxx_xxxxx | d | -| Ixxxxx_xxx_xxxxx_xxxxxxxx | d | -| Ixxxxx_xxx_xxxxxx | d | -| Ixxxxx_xx_xxx_xxxxxx | d | -| Ixxxxx_xx_xxx_xxxxxxx_xxxxxx | d | -| Ixxxxx_xx_xxx_xxxxxxx_xxxxxx | d | -| Ixxxxx_xx_xxx_xxxxxxx | ddd | -| Tx_xxx_xxx_xxxxx_xxxx | d | -| Tx_xxx_xxxx_xxxx | d | -| Tx_xxx_xxxx_xxxxx | d | -+------------------------------+-------+</programlisting> - <para>Txx xxxxxxx xxxx xxx xxxxxx xxxxxxxx xx xxxxx xxx xxxxxxxx xxxx xxx xxx xxxx <literal moreinfo="none">xxx</literal> xx xx. Txxx xx x xxx xxxxxx xxxxxxxxxxxx, xx xxx xxxxxxx xxxx xxxxx xx xxxx xxxxxx. Ix xx xxxxxx xx xxxxxxxxx xxx IxxxDB xxxx xxxx xxx xxxxxxx, xx xxxxx xxx xxx <literal moreinfo="none">WHERE</literal> xxxxxx xxxx xx:</para> - <programlisting format="linespecific">SHOW STATUS -WHERE Vxxxxxxx_xxxx LIKE '%xxx%' -AND Vxxxxxxx_xxxx NOT LIKE '%Ixxxxx%'; - -+------------------------+-------+ -| Vxxxxxxx_xxxx | Vxxxx | -+------------------------+-------+ -| Bxxxxx_xxxxx_xxxx_xxx | d | -| Bxxxxx_xxxxx_xxx | d | -| Cxx_xxxx_xxxxxx_xxxxxx | d | -| Cxx_xxxx_xxxxxxx | d | -| Cxx_xxxx_xxxxxx_xxxx | d | -| Tx_xxx_xxx_xxxxx_xxxx | d | -| Tx_xxx_xxxx_xxxx | d | -| Tx_xxx_xxxx_xxxxx | d | -+------------------------+-------+</programlisting> - <para>Nxxxxx xxxx xxxx xxxxx xxx <literal moreinfo="none">WHERE</literal> xxxxxx, xxx xxxxx xxxx xx xxx xxxxxxx xxxx xx xxxxx. Ix xxxx xxxx, xxx xxxxx xxxx <literal moreinfo="none">Vxxxxxxx_xxxx</literal> xx xxxxx. Yxx xxxxx xxxx xxxx xxx xxxxx xxxx <literal moreinfo="none">Vxxxx</literal> xx xxxxx xxx xxxxxxx xx xxxxxxx xx x xxxxxxx xxxxx xx xxxxx xx xxxxxx.</para> - <programlisting format="linespecific">SHOW GLOBAL STATUS -WHERE Vxxxxxxx_xxxx LIKE '%xxx%' -AND Vxxxxxxx_xxxx LIKE '%Ixxxxx%' -AND Vxxxx > ddd; - -+-----------------------+-------+ -| Vxxxxxxx_xxxx | Vxxxx | -+-----------------------+-------+ -| Ixxxxx_xx_xxx_xxxxxxx | ddd | -+-----------------------+-------+</programlisting> - <para><indexterm id="mysqlian-CHP-7-ITERM-3038" significance="normal"><primary>SET xxxxxxxxx</primary><secondary>xxxxxxx xxxxxxxxx</secondary></indexterm> -Ix xxxx xxxxxxx xx xxx xxxxxxx xxx xxx xxxxxxx xxx IxxxDB xxxx x xxxxx xxxx ddd. Txx xxxxxxx xxxxxxx xx xxxx xxx xxxxx.</para> - <para>Yxx xxx xxxxxx xxxx xxxxxxxxx xx xxxxxx xxxxxxx xxxxx xxxxxxx xxx xxx MxSQL xxxxxx xxxxxx. Sxx <xref linkend="mysqlian-CHP-15"/>. Yxx xxx xxxxxx xxxx xx xxxx xxxxx xxx xxxxxx xx xxxxxxx xxxx xxx <literal moreinfo="none">SET</literal> xxxxxxxxx, xxxxxxx xxxxxx xx xxxxxxx xxx xxxxxx. Txxx xxxxxxxxx xx xxxxxxx xx xxxx xxxxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch07-77025"> - <refmeta> - <refentrytitle>SHOW TABLE STATUS</refentrytitle> - </refmeta> - <refnamediv> - <refname>SHOW TABLE STATUS</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">SHOW TABLE STATUS [FROM <replaceable>xxxxxxxx</replaceable>] [LIKE '<replaceable>xxxxxxx</replaceable>'|WHERE <replaceable>xxxxxxxxxx</replaceable>]</synopsis> - </refsynopsisdiv> - <refsect1> - <title/> - <para><indexterm id="mysqlian-CHP-7-ITERM-3039" significance="normal"><primary>xxxxxx</primary><secondary>xxxxxxxxxx xxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-7-ITERM-3040" significance="normal"><primary>SHOW TABLE STATUS xxxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-7-ITERM-3041" significance="normal"><primary>LIKE xxxxxx</primary><secondary>SHOW TABLE STATUS xxxxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-7-ITERM-3042" significance="normal"><primary>FROM xxxxxx</primary><secondary>SHOW TABLE STATUS xxxxxxxxx</secondary></indexterm> -Txxx xxxxxxxxx xxxxxxxx xxxxxx xxxxxxxxxxx xx x xxx xx xxxxxx xxxx x xxxxxxxx. Tx xxxxxx xxx xxxxxx xx xxxxxx xxxx x xxxxxxxx xxxxx xxxx xxx xxxxxxx xxxxxxx xxx, xxx xxx <literal moreinfo="none">FROM</literal> xxxxxx. Txx xxxxxxx xxxx xxxxxxx xxxxxxxxxxx xx xxx xx xxx xxxxxx xx xxx xxxxxxxx xxxxxx xxx <literal moreinfo="none">LIKE</literal> xxxxxx xx xxxx xx xxxxx xxx xxxxxx xxxxxxxxx xx x xxxxxx xxxxxxx. Sxxxxxxxx, xxx <literal moreinfo="none">WHERE</literal> xxxxxx xxx xx xxxx xx xxxxxx xxx xxxxxxx xxx. Ax xx xxxxxxxxxxx xx xxxx xxxxxxxxx, xxx xxx xxx xxx xxxxxxx <literal moreinfo="none">xxxxxxxxx</literal> xxxx xxx <literal moreinfo="none">--xxxxxx</literal> xxxxxx, xxxxxxxxx xx <xref linkend="mysqlian-CHP-16"/>. Hxxx’x xx xxxxxxx xx xxxx xxxxxxxxx xxxxx xxx <literal moreinfo="none">LIKE</literal> xxxxxx:</para> - <programlisting format="linespecific">SHOW TABLE STATUS FROM xxxxxxxxxxxx LIKE 'xxxxxxx'\G - -*************************** d. xxx *************************** - Nxxx: xxxxxxx - Exxxxx: MxISAM - Vxxxxxx: d - Rxx_xxxxxx: Dxxxxxx - Rxxx: ddd - Axx_xxx_xxxxxx: ddd - Dxxx_xxxxxx: dddddd -Mxx_xxxx_xxxxxx: dddddddddd - Ixxxx_xxxxxx: dddd - Dxxx_xxxx: ddd - Axxx_xxxxxxxxx: dddd - Cxxxxx_xxxx: dddd-dd-dd dd:dd:dd - Uxxxxx_xxxx: dddd-dd-dd dd:dd:dd - Cxxxx_xxxx: dddd-dd-dd dd:dd:dd - Cxxxxxxxx: xxxxxd_xxxxxxx_xx - Cxxxxxxx: NULL - Cxxxxx_xxxxxxx: - Cxxxxxx:</programlisting> - <para><indexterm id="mysqlian-CHP-7-ITERM-3043" significance="normal"><primary>SHOW TABLE STATUS xxxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-7-ITERM-3044" significance="normal"><primary>xxxxxxxxx</primary><secondary>xxxxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-7-ITERM-3045" significance="normal"><primary>ALTER TABLE xxxxxxxxx</primary><secondary>xxxxxxxxx xxxxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-7-ITERM-3046" significance="normal"><primary>SHOW TABLE STATUS xxxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-7-ITERM-3047" significance="normal"><primary>xxxxxxx xxxx (%)</primary></indexterm><indexterm id="mysqlian-CHP-7-ITERM-3048" significance="normal"><primary>xxxxxxxxx</primary><secondary>xxxxxxx xxxx</secondary></indexterm> -Txxx xxxxxxx xxxxx xxxxxxx xxx xxxx xxx xxxxx, xxxxxxx x xxxxxxxx xxxxx xxxx xx xxxxx xx xxx <literal moreinfo="none">LIKE</literal> xxxxxx xxxxxxx xxx <literal moreinfo="none">%</literal> xxxxxxxx. Tx xxxx x xxxxx xx xxxxxx, xxx xx xxxxx xxx xxxxxxx xxxx, xxx xxx xxx xxx <literal moreinfo="none">WHERE</literal> xxxxxx. Ax xxxxxxx xx xxx xxx xxxxxxx:</para> - <programlisting format="linespecific">SHOW TABLE STATUS FROM xxxxxxxxxxxx -WHERE Rxxx > dddd;</programlisting> - <para>Txxx xxxxxxx xxxxx xxx xxxxxx xxxx xxx xxxxx xxxxxxxx xxxx xxxxxxx xxxx xxxx x xxxxxxxx xxxx xx xxxx. Nxxxxx xxxx xx’xx xxxxx xxx xxxxx xxxx <literal moreinfo="none">Rxxx</literal> xxxx xxx xxxxxxx xxx xx xxxxx xxx xxxxxxx. Axx xxxxx xxxx xxx xx xxxx xx xxxx xxx xxx xxxxxxxx xxxxxx xxx xx xxxxx, xxxxxxxxx xx xxx <literal moreinfo="none">AND</literal> xxxxxxxxx xx xxx <literal moreinfo="none">WHERE</literal> xxxxxx.</para> - <para>Ax xxx xxx xxxxxxx xxxxxxxxxx, xxxx xxx xxxxxxx xxxx xxxxx xxxxx xxxx. Txx <literal moreinfo="none">Rxx_xxxxxx</literal> xxxxx xxx xxxx x xxxxx xx <literal moreinfo="none">Cxxxxxx</literal>, <literal moreinfo="none">Cxxxxxxxxx</literal>, <literal moreinfo="none">Dxxxxxx</literal>, <literal moreinfo="none">Fxxxx</literal>, xx <literal moreinfo="none">Rxxxxxxxx</literal>. IxxxDB xxxxxx xxx xxxxxx <literal moreinfo="none">Cxxxxxx</literal> xx <literal moreinfo="none">Rxxxxxxxx</literal>. Txx <literal moreinfo="none">Rxxx</literal> xxxxx xxxxx xx xxxxxxxx xxxxx xxxx MxISAM xxxxxx, xxx xxx xxxx IxxxDB.</para> - <para>Txx <literal moreinfo="none">Dxxx_xxxxxx</literal> xxxxx xxxxx xxx xxxx xx xxx xxxx xxxx xxxxxxxxxx xxxx xxx xxxxx. <literal moreinfo="none">Mxx_xxxx_xxxxxx</literal> xx xxx xxxxxxx xxxx xxxxxxx xxx xxx xxxx xxxx. Txxxx xxx xxxxxx xxx xxxxxxxxx xxx MEMORY xxxxxx. Txx <literal moreinfo="none">Axxx_xxxxxxxxx</literal> xxxxx xxxxx xxx xxxxx xxx xxx xxxxxx xxxxx xxxx <literal moreinfo="none">AUTO_INCREMENT</literal>.</para> - <para>Wxxx xxxx xxxx xxxxx, xxxx xxxxxxxxx xxxxxxx NULL xxxxxx xxx xxxxxx xxx xxxxxx.</para> - <para>Yxx xxx xxxxxx xxxx xx xxxxx xxxxxxxxx xx xxxxx xxxxxxx xxxxx xxx <literal moreinfo="none">ALTER TABLE</literal> xxxxxxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch07-77026"> - <refmeta> - <refentrytitle>SHOW VARIABLES</refentrytitle> - </refmeta> - <refnamediv> - <refname>SHOW VARIABLES</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">SHOW [GLOBAL|LOCAL|SESSION] VARIABLES [LIKE '<replaceable>xxxxxxx</replaceable>'|WHERE <replaceable>xxxxxxxxxx</replaceable>]</synopsis> - </refsynopsisdiv> - <refsect1> - <title/> - <para><indexterm id="mysqlian-CHP-7-ITERM-3053" significance="normal"><primary>LIKE xxxxxx</primary><secondary>SHOW VARIABLES xxxxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-7-ITERM-3054" significance="normal"><primary>GLOBAL xxxxxxx</primary><secondary>SHOW VARIABLES xxxxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-7-ITERM-3055" significance="normal"><primary>LOCAL xxxxxxx</primary><secondary>SHOW VARIABLES xxxxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-7-ITERM-3056" significance="normal"><primary>SESSION xxxxxxx</primary><secondary>SHOW VARIABLES xxxxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-7-ITERM-3057" significance="normal"><primary>xxxxxxxxx</primary><secondary>xxxxxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-7-ITERM-3058" significance="normal"><primary>SHOW VARIABLES xxxxxxxxx</primary></indexterm> -Txxx xxxxxxxxx xxxxxxxx xxx xxxxxx xxxxxxxxx xxx xxx MxSQL xxxxxx. Txx <literal moreinfo="none">SESSION</literal> xxxxxxx xxxxxxxx xxxxxx xxx xxxxxxx xxxxxxxx xx xxxxxxxxxxx. Txxx xx xxx xxxxxxx xxx xx xxxxxxxxxx xxxx <literal moreinfo="none">LOCAL</literal>. Txx <literal moreinfo="none">GLOBAL</literal> xxxxxxx xxxxx xxxxxxxxx xxxx xxxxxx xx xxx xxxxxxxxxxx. Yxx xxx xxxxx xxx xxxxxxxxx xxxx xxx <literal moreinfo="none">LIKE</literal> xxxxxx xxx x xxxxxx xxxxxxx xxx xxx xxxxxxxxx. Sxxxxxxxx, xxx <literal moreinfo="none">WHERE</literal> xxxxxx xxxxx xx xxxx xx xxxxxx xxx xxxxxxx xxx. Hxxx xx xx xxxxxxx xx xxxx xxxxxxxxx xxxx xxx <literal moreinfo="none">LIKE</literal> xxxxxx:</para> - <programlisting format="linespecific">SHOW GLOBAL VARIABLES LIKE 'xxxxxxx%'; - -+-------------------------+------------------------------+ -| Vxxxxxxx_xxxx | Vxxxx | -+-------------------------+------------------------------+ -| xxxxxxx | d.d.dd-xxxx | -| xxxxxxx_xxxxxxx | MxSQL Cxxxxxxxx Sxxxxx (GPL) | -| xxxxxxx_xxxxxxx_xxxxxxx | xddd | -| xxxxxxx_xxxxxxx_xx | xx-xxxxx-xxx | -+-------------------------+------------------------------+</programlisting> - <para>Ix xxxx xxxxxxx, xxx xxxxxxxxx xxxxx xxx xxxxxxx xx xxxxxx xxxxxxxxx xxxxx xxxxx xxxxx xxxx xxx xxxx <emphasis>xxxxxxx</emphasis>. Sxxxxxx xxxx xx xxxxxx xx xxxx xxx xxx xxx xxxxxxxxx xx xxxxx xxxxxxx xxxx xxxxxxx x xxxxxxx xxxxx. Wx xxxxx xx xxxx xx xxxxx xxx <literal moreinfo="none">WHERE</literal> xxxxxx xxxx xx:</para> - <programlisting format="linespecific">SHOW GLOBAL VARIABLES -WHERE Vxxxxxxx_xxxx LIKE 'xxxxxxx%' -AND Vxxxx REGEXP '[d-d]'; - -+-------------------------+-------------+ -| Vxxxxxxx_xxxx | Vxxxx | -+-------------------------+-------------+ -| xxxxxxx | d.d.dd-xxxx | -| xxxxxxx_xxxxxxx_xxxxxxx | xddd | -+-------------------------+-------------+</programlisting> - <para>Nxxxxx xxxx xxx xxx <literal moreinfo="none">WHERE</literal> xxxxxx xx xxxxxxx xxx xxxxx xxxxx xx xxx xxxxxxx xxx: <literal moreinfo="none">Vxxxxxxx_xxxx</literal> xxx <literal moreinfo="none">Vxxxx</literal>. Wx’xx xxxx xxxxx xx xxxx xxxx xxx <literal moreinfo="none">LIKE</literal> xxx <literal moreinfo="none">REGEXP</literal> xxxxxx xxxxxxxxxx xxxxxxxxx xx xxxxxx xxx xxxxxxx.</para> - <para>Yxx xxx xxxxxx xxxx xx xxx xxxxxxxxx xx xxxxxx xxxxxxx xxxx xxxxxxx xxx xxx MxSQL xxxxxx xxxxxx. Sxx <xref linkend="mysqlian-CHP-15"/>. Yxx xxx xxxxxx xxxx xx xxxx xxxxx xxx xxxxxx xx xxxxxxx xxxx xxx <literal moreinfo="none">SET</literal> xxxxxxxxx, xxxxxxx xxxxxx xx xxxxxxx xxx xxxxxx. Txxx xxxxxxxxx xx xxxxxxx xx xxxx xxxxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch07-77027"> - <refmeta> - <refentrytitle>UNLOCK TABLES</refentrytitle> - </refmeta> - <refnamediv> - <refname>UNLOCK TABLES</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">UNLOCK TABLES</synopsis> - </refsynopsisdiv> - <refsect1> - <title/> - <para><indexterm id="mysqlian-CHP-7-ITERM-3088" significance="normal"><primary>xxxxxx</primary><secondary>xxxxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-7-ITERM-3089" significance="normal"><primary>ROLLBACK xxxxxxxxx</primary><secondary>xxxxxxxxx xxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-7-ITERM-3090" significance="normal"><primary>UNLOCK TABLES xxxxxxxxx</primary></indexterm> -Uxx xxxx xxxxxxxxx xx xxxxxx xxxxxx xxxx xxxx xxxxxx xx xxx xxxxxxx xxxxxxxxxx xxxxxx xxxx xxx <literal moreinfo="none">LOCK TABLES</literal> xxxxxxxxx xx xx <literal moreinfo="none">FLUSH TABLES WITH READ LOCK</literal>. <literal moreinfo="none">UNLOCK TABLES</literal> xxxxxxxxxx xxxxxxx xxx xxxxxx xxxxxxxxxxxx xx xxx xxxxxx xxxx xxxxxx xxxx <literal moreinfo="none">LOCK TABLES</literal>. Wxxx xxxxxxxxxx x xxxxx xxxxxx xx xxxxxxx xx xxxx xx MxISAM xxxxxx, xx xxx xx xxxxxx xxx xxxxxx xx xxxx xxx xxxxxx xxxxx. Txxx xxx xxx xxx xxxxx xxx’x xxxxxxx xxxxx xxxx SQL xxxxxxxxx. Ixxxxxx, xxx xxxxxx xxxxxxx xxx xxx xxxxx xxxx xxxxxxxxx <literal moreinfo="none">UNLOCK TABLES</literal>. -</para> - </refsect1> - </refentry> - </sect1> - <sect1 id="mysqlian-CHP-7-SECT-3"> - <title>Fxxxxxxxx xx Axxxxxxxxxxx Oxxxx - Txx xxxxxxxxx xx x xxxx xx MxSQL xxxxxxxxx xxxxxxx xx xxx xxxxx xx xxxx xxxxxxx, xx xxxxxxxxxxxx xxxxx. - - - CONNECTION_ID( ) - - - CONNECTION_ID( ) - - - - CONNECTION_ID( ) - - - - <para><indexterm id="mysqlian-CHP-7-ITERM-3502" significance="normal"><primary>CONNECTION_ID( ) xxxxxxxx</primary></indexterm> -Txxx xxxxxxxx xxxxxxx xxx MxSQL xxxxxxxxxx xx xxxxxx xxxxxxxxxxxxxx xxxxxx xxx xxx MxSQL xxxxxxx. Txxxx xxx xx xxxxxxxxx. Cxxxxxxxxx xxxxxxxxxxx xxx xxxxxx.</para> - <programlisting format="linespecific">SELECT CONNECTION_ID( ); - -+------------------+ -| CONNECTION_ID( ) | -+------------------+ -| ddddd | -+------------------+</programlisting> - </refsect1> - </refentry> - <refentry id="ch07-77029"> - <refmeta> - <refentrytitle>GET_LOCK( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>GET_LOCK( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">GET_LOCK(<replaceable>xxxxxx</replaceable>, <replaceable>xxxxxxx</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1> - <title/> - <para><indexterm id="mysqlian-CHP-7-ITERM-3519" significance="normal"><primary>RELEASE_LOCK( ) xxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-7-ITERM-3520" significance="normal"><primary>GET_LOCK( ) xxxxxxxx</primary></indexterm> -Txxx xxxxxxxx xxxxxxxx xx xxx x xxxx xx xxx xxxx xxxxx xx xxx xxxxx xxxxxxxx. Txx xxxxxx xx xxxxxxx xx xxxxxxx xxx xxxx xx xxxxx xx xxx xxxxxx xxxxxxxx. Ix xxxxxxxxxx, d xx xxxxxxxx. Ix xxx xxxxxxxx xx xxxxxxxxxxxx xxxxxxx xxx xxxxxxx xxxxx xxx, xx xxxxxxx d. Ix xxx xxxx xxxxx xxx xx xx xxxxx xx xxx xxxx, NULL xx xxxxxxxx. Txx xxxxxxxx <literal moreinfo="none">RELEASE_LOCK()</literal> xxx xx xxxx xx xxxxxxx x xxxx. Ix’x xxxx xxxxxxxx xxxx xxx xxxx xxxxxx xxxxxx xxxxxxx <literal moreinfo="none">GET_LOCK()</literal> xx xxxx xxx xxxxxx’x xxxxxxxxxx xx xxxxxxxxxx.</para> - <programlisting format="linespecific">SELECT GET_LOCK('xx_xxxx', dd); - -+-------------------------+ -| GET_LOCK('xx_xxxx', dd) | -+-------------------------+ -| d | -+-------------------------+</programlisting> - </refsect1> - </refentry> - <refentry id="ch07-77030"> - <refmeta> - <refentrytitle>IS_FREE_LOCK( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>IS_FREE_LOCK( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">IS_FREE_LOCK(<replaceable>xxxxxx</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1> - <title/> - <para><indexterm id="mysqlian-CHP-7-ITERM-3522" significance="normal"><primary>IS_FREE_LOCK( ) xxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-7-ITERM-3523" significance="normal"><primary>GET_LOCK() xxxxxxxx</primary></indexterm> -Uxx xxxx xxxxxxxx xx xxxxxxxxx xxxxxxx xxx xxxx xx xxx xxxx xxxxx xx xxxxxxxxxxx xx xxxx xxx xxxxxxxxx xx x xxxx xxxx. Txx xxxxxxxx xxxxxxx d xx xxx xxxx xxxx xx xxxx; d xx xx’x xxx (xxxxxxx xx xx xx xxx xx xxxxxxx xxxxxx). Txx xxxxxxxx xxxxxxx NULL xx xxxxx xx xx xxxxx. Lxxxx xxx xxxxxxx xx <literal moreinfo="none">GET_LOCK()</literal>. Txxx xxxxxxxx xx xxxxxxxxx xx xx xxxxxxx d.d.d xx MxSQL. -</para> - <programlisting format="linespecific">SELECT IS_FREE_LOCK('xx_xxxx'); - -+-------------------------+ -| IS_FREE_LOCK('xx_xxxx') | -+-------------------------+ -| d | -+-------------------------+</programlisting> - <para>Txx xxxxxxx xxxx xxxxxxxx xxxx xxx xxxx xx xxx xxxx.</para> - </refsect1> - </refentry> - <refentry id="ch07-77031"> - <refmeta> - <refentrytitle>IS_USED_LOCK( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>IS_USED_LOCK( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">IS_USED_LOCK(<replaceable>xxxxxx</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1> - <title/> - <para><indexterm id="mysqlian-CHP-7-ITERM-3524" significance="normal"><primary>IS_USED_LOCK( ) xxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-7-ITERM-3525" significance="normal"><primary>GET_LOCK() xxxxxxxx</primary></indexterm> -Txxx xxxxxxxx xxxxxxxxxx xxxxxxx xxx xxxx xxxxx xx xxxxxxx xx xxx xx x xxxx xxxx. Ix xxx xxxx xxxx xx xx xxx, xx xxxxxxx xxx xxxxxxxxxx xxxxxxxxxx xx xxx xxxxxx xxxxxxx xxx xxxx. Ix xxxxxxx NULL xx xx xx xxx xx xxx. Lxxxx xxx xxxxxxx xx <literal moreinfo="none">GET_LOCK()</literal>. Txxx xxxxxxxx xx xxxxxxxxx xx xx xxxxxxx d.d.d xx MxSQL. -</para> - <programlisting format="linespecific">SELECT IS_USED_LOCK('xx_xxxx'); - -+-------------------------+ -| IS_USED_LOCK('xx_xxxx') | -+-------------------------+ -| d | -+-------------------------+</programlisting> - <para>Txx xxxxxxx xxxx xxxxxxxx xxxx xxx xxxx xx xx xxx xxx xxx xxxxxxxxxx xxxxxxxxxx xx xxx xxxxxx xx d.</para> - </refsect1> - </refentry> - <refentry id="ch07-77032"> - <refmeta> - <refentrytitle>RELEASE_LOCK( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>RELEASE_LOCK( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">RELEASE_LOCK(<replaceable>xxxxxx</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1> - <title/> - <para><indexterm id="mysqlian-CHP-7-ITERM-3526" significance="normal"><primary>GET_LOCK( ) xxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-7-ITERM-3531" significance="normal"><primary>RELEASE_LOCK( ) xxxxxxxx</primary></indexterm> -Txxx xxxxxxxx xxxxxxxx x xxxx xxxxxxx xx <literal moreinfo="none">GET_LOCK()</literal>. Txx xxxx xx xxx xxxx xx xxxxx xx xxxxxxxxxxx. Ix xxxxxxxxxx, d xx xxxxxxxx; xx xxxxxxxxxxxx, d xx xxxxxxxx. Ix xxx xxxx xxxxxxxxx xxxx xxx xxxxx, NULL xx xxxxxxxx.</para> - <programlisting format="linespecific">SELECT RELEASE_LOCK('xx_xxxx'); - -+-------------------------+ -| RELEASE_LOCK('xx_xxxx') | -+-------------------------+ -| d | -+-------------------------+</programlisting> - <para><indexterm id="mysqlian-CHP-7-ITERM-3527" significance="normal"><primary>DO xxxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-7-ITERM-3528" significance="normal"><primary>RELEASE_LOCK() xxxxxxxx</primary></indexterm> -Ax xx xxxxxxxxxxx xx xxxxx <literal moreinfo="none">SELECT</literal>, xxx xxx xxx xxx <literal moreinfo="none">DO</literal> xxxxxxxxx. Ix xxxx xxxx, xx xxxxxxx xxx xxxxxxxx, xxx xxx xxxx xx xxxxxxxx. -</para> - <programlisting format="linespecific">DO RELEASE_LOCK('xx_xxxx');</programlisting> - </refsect1> - </refentry> - <refentry id="ch07-77033"> - <refmeta> - <refentrytitle>UUID ( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>UUID ( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">UUID( )</synopsis> - </refsynopsisdiv> - <refsect1> - <title/> - <para><indexterm id="mysqlian-CHP-7-ITERM-3529" significance="normal"><primary>UUID( ) xxxxxxxx</primary></indexterm> -Txxx xxxxxxxx xxxxxxx x Uxxxxxxxx Uxxxxx Ixxxxxxxxx (UUID), x ddd-xxx xxxxxx xxxxxxxx xx xxxx xxxxxxxxxxx xxxxxxx. Txxx xxxxxx xx xxxxxxxx xx xx xxxxxx xxx xxxxxxxxxx xxx xx xxxxx xx xxxxxx xxxx xxx xxxx xxxxxxxx xxx xxxxxxx. Txxxx xxx xx xxxxxxxxx xxx xxx xxxxxxxx. Ix’x xxxxxxxxx xx xx Vxxxxxx d.d.d xx MxSQL.</para> - <programlisting format="linespecific">SELECT UUID( ); - -+----------------------------------------+ -| UUID( ) | -+----------------------------------------+ -| 'dxxxdddx-xxxx-dddd-dddd-ddddxddddxdd' | -+----------------------------------------+</programlisting> - <para>Txx xxxxx xxxxx xxxxxxxxxxx xxx xx xxxxxxx xxx xxxxx xx xxx xxxx xxx xxxx xx xxx xxxxxxxxx xx xxx xxxxxxxxx. Txx xxxxxx xxx xx xxxxx xx xxxx xxxxxxxxxx xx xxxxxxxx xxxxxx xxxx. Txx xxxx xxx xx x xxxxxx xxxxxx, xx IEEE ddd xxxx xxxxxx xxxxxxx xx xxx xxxxxxxx xxxxxxxxxx xxx xxxxxx. Fxx xxxxxxxx, xxx xxxx xxxxxxxxx xxxxxx xx xxxxx xx xxx xxxxxxx xxxx’x MAC xxxxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch07-77034"> - <refmeta> - <refentrytitle>VERSION( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>VERSION( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">VERSION( )</synopsis> - </refsynopsisdiv> - <refsect1> - <title/> - <para><indexterm id="mysqlian-CHP-7-ITERM-3530" significance="normal"><primary>VERSION( ) xxxxxxxx</primary></indexterm> -Txxx xxxxxxxx xxxxxxx xxx MxSQL xxxxxx xxxxxxx. Txxxx xxx xx xxxxxxxxx xxx xxx xxxxxxxx.<indexterm class="endofrange" startref="mysqlian-CHP-7-ITERM-3531" id="mysqlian-CHP-7-ITERM-3545" significance="normal"/> -</para> - <programlisting format="linespecific">SELECT VERSION( ); - -+-------------+ -| VERSION( ) | -+-------------+ -| d.d.dd-xxxx | -+-------------+</programlisting> - </refsect1> - </refentry> - </sect1> - </chapter> - <chapter id="mysqlian-CHP-08" xml:base="ch08.xml"> - <title>Rxxxxxxxxxx Sxxxxxxxxx & Fxxxxxxxx - Txxx xxxxxxx xxxxxxxx x xxxxxxxx xx xxxxxxx xx xxx xxxxx xxxxxxxxxxx, x xxxx xx SQL xxxxxxxxxx xxx xxxxxxxxx xxxx xxxxxxxxxxxx xxxx xxxxxxxxxxx, xxx xx xxxxxxxxxxx xx xxxxxxxxxxx xxxxxx xxxx xxxx xx xxxxxx xxx xxxxxxxx xxxxxxx xxxxxxxxxxx xx xxxxxxxxx xx xxxxxx. Txx xxxxxxxxxxx SQL xxxxxxxxxx xxx xxxxxxxxx xxxxxxx xx xxxx xxxxxxx xxx: - CHANGE MASTER TO, LOAD DATA FROM MASTER, LOAD TABLE...FROM MASTER, MASTER_POS_WAIT( ), PURGE MASTER LOGS, RESET MASTER, RESET SLAVE, SET GLOBAL SQL_SLAVE_SKIP_COUNTER, SET SQL_LOG_BIN, SHOW BINARY LOGS, SHOW BINLOG EVENTS, SHOW MASTER LOGS, SHOW MASTER STATUS, SHOW SLAVE HOSTS, SHOW SLAVE STATUS, START SLAVE, STOP SLAVE. - - Mxxxxx xx Rxxxxxxxxxx - Oxx xx xxx xxxxxxxxxxxx xx xxxxxxxxxxx x xxxxx xxx xxxxxx MxSQL xxxxxxxx xx xxxxxx xxxxx xxxxxxx xxxxxxx xxxxxx xx xxxxx xxxx xxx xxxxxx. Pxxxxxxxxx x xxxxxx xxxxx x xxxxxx xx xxxxxxx xxx xxxx xxxx x xxxxxx xxxxxxxxxxxx. Axxxxxxxxxxx, xxxxxxx xxxx xx xxxxxx xxxxxxx xxx xxxxxx xx xxxxxxxxxxxx xxxx, xxxxxxx x xxxxxxx xxxxx xxx xx xxxxxxx xxxxx xxxxxxx xx xxxxx xxxxxx. Txxxxx xxxx xxx xxxxxx xxxxxxx xxxxxxxxxxx xx xxxx, xxx xxxxxxxxxx MxSQL xxxxxxx xx xxxxx. Sxxxxxxxx xxxx xx xxxxxxxxx xxx xxxxxxxxxxx, xxx xxxxx xxxxxx xxxxxxx xxx xxxxxxx xx xxxx xxx xx xx xxxxxxxxxxxx xxxxxx. A xxxxxx xxxxxxxxxxx xx xx xxx xx xxxxxxxxxxx xx MxSQL, xx xxxx xxx xx xxxx xxxxxxxxx xxxxxxx xxxxxxxx x xxxxxxxxxx xxx xxxxxxxxxx xxxx xx xxx xxxx MxSQL xxxxxx’x xxxxxxxxx, xxx xxx xx xxxxx xxxx xxx xxxxxxx xxxxx xxx xxxx xxxxxx xxxxxxxxx xxxxxxx xxx xxxxx. - Txxxxxxxx, xxxxxxxxxxx xx xxxxxxxxx x xxxxxx xx xxxxxxxxxxx xxxxxxxx xxxxxxx xx xxxx xxx xxx xxxxx xxxxx xxxxxx xxxxx xxxxxxx, xxxxx xx xxxx xxxxxxx xx x xxxxxx xxxxxx, xxxxxx xxx xxxx xxx xxxxxxx xxxxxx xxxxxxxx. Txx xxxxxx xxxx xxx xxxx xxxxxxx xx x xxxxxx xxx, xxxxxxx. Txx xxxxxx xx xxxx xxxxxxx xxxxxxx MxSQL xxxxxx (x xxxxx xxxxxx), xxxxx xxxxxxxx x xxxx xx xxx xxxxxx’x xxxxxxxxx, xx xxx xxxxxxxxx xx xxx xxxxxx xxx. Txx xxxxx xx xxxx xxxxx xxxxx xxxx xxxxxxx xx xxx xxxxxxxxx. Txx xxxxx xxx xxxxxx xx-xxxxxxx xxx xxxxxx’x SQL xxxxxxxxxx xxxxxxx, xx xxxx xxxx xxxx xxxxxxx xx xxx xxxxxx’x xxxxxxxxx. Txxxx xxx xxxxx xxxx xxx xxxxxxxxxxx (xxxx xx xxxx xxxxxxxxx), xxx xxx xxxxxxx xx xxxx xxxxxxxx xx xxxxx xxxxxxxxxxx xxx xxxx xxxxxxx xxx xxxxxxxxxx. Axxx, xx’x xxxx xx xxx xx xxxxxxxx xxxxxx xxx xxxx xxxxxx, xxx xxx xx xxxxxxxx xxxxxx xx xxx’xx xxxxx xxxxxxxxxxx xxxx xxx xxxxxxx. - Ax x xxxxxx xxxxxx, xxx xxx xxx xx x xxxxxxxx xxxxxx xx xx x xxxxx xxx xxxx xxxx x xxx (xx xxxxxxx xxxxx xxx xxxxxx), xxxx xxx xxxxxxxxxxx xx xxxx x xxxxx xxxxxx xx xxx xxxxx xxxxxx’x xxxxxxxxx. Wxxx xxx’xx xxxxxxxx xxxxxx xxx xxxxxx, xxxxxxxxxxx xxx xxxx xx xxxxxxxxx xxx xxx xxxxx xxxx xxxxxxxxxxxxx xxxxx xxx xxxxxx xxx xxxxxxx xx xxx xxxxxx’x xxxx xxxx xxx xxxxx xxxxxx xxxxx xx xxx xxxxxxx. - Rxxxxxxxxxx xx xx xxxxxxxxx xxxxxxx xxxxx xxxx xxx MxSQL xxxx. Ix xxxxx’x xxxxxxx xxx xx xxx xx xx xxxxxxx xxx xxxxxxxxxx xxxxxxxx. Yxx xxxx xxxxxxxxxx xxx xx x xxxxx xxxxxx xxx xxxxxxxxx MxSQL xx xxxx xxxxxxx xxxxxxxxxxxxx xx xxxxx xxxxxxxxxxx. Txxx xx’x x xxxxxx xx xxxxxxxxxx x xxxxxx xx xxxxxxxxx xxxx xxx xxxxxxxxxxx xxxxxxx, xxxx x xxxxxx xx xxx xxxxx’x xxxx, xxx xxxxxxx xxxxxxxxxxx. - Tx xxxxxxxxxx xxx xx xxxx xxxxxxxxxxx xxxxxxxxx xxx xxxxxx xx x xxxxxxxxxx xxxxxxxxxxx, xxx’x xxxx xx xxxxxx xx xxx xxxxx xxxx MxSQL xxxx xxxxxxx xx xxxxxxxx x xxxxxxxxxx xxxxxx. Txx xxxxxxx xx xxxxxxxxx xxxxxxxxx xx xxx xxxxxxx xx MxSQL xxxx xxxxxxx xxx xxxxx. Txxx xxxxxxx xxxxxxx xxxxxxxxx xx xxxxxxx d.d xx xxxxxx xx MxSQL. Txxxx xxxx xxxx xxxxxxxxxxx xxxxxxxxxxxx xxxx xx xxxxxxx d.d xxxxxxx xx xxx xxxxxxxxxxx xxxxxxxxxx xxx xxxxxxxxx, xxxxxx xx xxxx xxxx xxxxxxxxxx. Txxxxxxxx, xx xx xxxxxxxxxxx xxxx xxx xxxxxxx xxxx xxxxxxx xx xxxx xxx xxxxx xx xxxxx xxxxxxx. Yxx xxxxxx xxxxxxx xxx xxxxxxx xx x xxxx, xxx xxx xxx xxxx xxxxxxx xx MxSQL xx. xxxx xxx xxxxxx xxx xxx xxx xxxxx xxxxxxx. Oxxxxxxxx xxx xxx xxxxxxxxxx xxxxxxxx xxxx xxxxxxxxxxxxxx xxx xxxxxxx, xxxxxxxxxxxx xxxxx xxxxxxx, xxx xxxxx xxxx xxxxxxxx. - - - Rxxxxxxxxxx Pxxxxxx - Wxxx xxxxxxxxxxx xx xxxxxxx, SQL xxxxxxxxxx xxxx xxxxxx xxxx xxx xxxxxxxx xx x xxxxxx xxx (xxx.xxx) xx xxx xxxxxx xxxxxx xx xx xxxxxxxx xxxx. Oxxx SQL xxxxxxxxxx xxxx xxxxxx xxx xxxx xx xxx xxxxxx xxx xxxxxx. Txxx xxxxxxxx xxxx xxxxxxxx xxxxxxxxxx xxxx xx INSERT, UPDATE, xxx DELETE, xxx xxxxxx xxxxxxxxxxxx xxxxxxxxxx xxxx xx CREATE TABLE, ALTER TABLE, xxx DROP TABLE. Txxx xxxx xxxxxxxx xxxxxxx xxxx xxxxxx xxxx xxx xxxxxx, xxx xxxx xxx xxxxxxxx xxxx xxx xxxxxxx xxxx xx xxxxxxxxx xxxx xx xxxxxxxxxx. Ix xxxx xxx xxxxxxx SELECT xxxxxxxxxx xx xxx xxxxxxxxxx xxxx xxxx xxxxx xxx xxxxxx xxx xxxxxxxxxxx (x.x., SHOW VARIABLES). - Axxxx xxxx xxx SQL xxxxxxxxxx, xxx xxxxxx xxxxxxx x xxx xxxxxxxx xxxxxxxxxxxxxx xxxxxx. Txxx xxxx xx xxxx xx xxxxxxxxx xxxxx xxx xxxxxxx xxx xxxxxx xxxxxx xxxxx xx xxx xxxxx. Txxx xx xxxxxxxxx xxxxxxx xxx xxxxx xxx xxx xxxxxx xx xxxx xx xxxxxxxxxxxx xxxxxxx xxxxxxxxxxx xxxx xxx xxxxxx. Wx’xx xxxxxxx xxxxxxxxx xxx xxxxxxxxx xxxxx xx xxxxxxxxxxxxx xxxxxxxxxxxx xxxxxxxxxx x xxxxx: xxx xxxxxxx xxxx xxxx xxx xxxxxx x xxxxxx xx xxx xxxxx Ix xxxxxxxx, xxxxx xxx xx xxxxx xxxx xxx xxxxx xxx xxxxxxxxxx xxxxxxx xxxxxxxxx xx xxx xxxxxx xxx xx xxxxxxxxxx xxxxxxxx, xx xx xxx xxxxxx xxxx xxxxxx xxxxxxx xxx xxxxxx xxx x xxxxx xxxx xx xxxxxxx xx x xxxxx xxxxxx xx xxxx. Hxxxxxx, xx xxx xxxxx xxxxxxxxxx xxxxx xx xxxx xxxx xxxxx, xxxx xxx xxxxxxxx xxxxxxxxxxxxxx xxxxxx xx xxx xxxx xxx xxxxx xxxxxxxx, xx xxx xxxx xxx xxxxxx xxxxx xx xxxx xxx xx xxx xxxxxx xxx xxx xxx xxxxxx xxx xxxx xxx xxxxx xxx xx xxx xxxxxxxxxx xxxxxxx xx xxxxxx xxxxx xxxxxxxxxxxx. Ix xxx xx xxxx xxxx xx xxx xxxxxxx xxx xxxxxxxxx xx xxxxxxxx xxx xxxxx xxx xx xxx xxxxxx’x xxxx xxxxxx xxxx xxxxxxx xx xxx xxxxxxx. - Tx xxxx xxx xxxxxx xxxxxxxxxx xxx xxxxxxxxxxx xxxxxxx, I’xx xxxxxxxx—xx xxxx xxxxxxx xxxxxxxxxx, xxx xxxxxxxxxx xxxx xxxxxxx—xxxxxx xxxxxxxx xxxx xxxx xxxxxxxxxxx xxx xxx xxxxx xxxx. Kxxxxxx xxx xx xxxx xxxxxxx xxxx xxx xx xxxxxx xx xxxxxxxxx xxxxxx xxxxxxxx xxx xxxx xxxx xxxxxxxxxxx, xxx xxxx xxxxxxx xx xxxxxxxxxxx xxxxxxx xxxx xx xxxx. - A xxxxxx xxxxxxx xxxx x xxxxxx xxxxxx xxx xxxx xx: - /xxx/xxxxx/xxxxx/xxx/xxxxxxxxxxx /xxx/xxx/xxxxx/xxx.dddddd > /xxx/xxxxxx_xxx.xxxxxxx --xxxxx=dd /xxx/xxxxxx_xxx.xxx - -# xx dddd -#dddddd d:dd:dd xxxxxx xx d xxx_xxx_xxx dddd Qxxxx xxxxxx_xx=dddd xxxx_xxxx=d xxxxx_xxxx=d -USE xxxxxxxx; -SET TIMESTAMP=dddddddddd; -CREATE TABLE xxxxxxxxd (xxxxxxx_xx INT AUTO_INCREMENT KEY, xxxx VARCHAR(dd), xxxxxxxxx CHAR(dd)); - -# xx dddd -#dddddd d:dd:dd xxxxxx xx d xxx_xxx_xxx dddd Ixxxxx -SET INSERT_ID=d; - -# xx dddd -#dddddd d:dd:dd xxxxxx xx d xxx_xxx_xxx dddd Qxxxx xxxxxx_xx=dddd xxxx_xxxx=d xxxxx_xxxx=d -SET TIMESTAMP=dddddddddd; -INSERT INTO xxxxxxxxd (xxxx, xxxxxxxxx) VALUES ('Rxxxx Oxxxxxx', 'ddd-ddd-ddd-dddd'); - Ax xxx xxxxx xxxx xxxxx, I xxxx xxx xxxxxxx-xxxx xxxxxxx xxxxxxxxxxx xx xxxx xxx xxxxxxxx xx x xxxxxxxxxx xxxxxx xxx xxxx. Txx xxx xxxx xx xx x xxxxxx xxxxxx, xx xxxxxxxxxxx xx xxxxxxxx xxxx MxSQL xx xxxx xx xxxxxxxx xxx xxxxxxxxxxxxxx xx xxxx xxxxxx xxx xxxxx. Bxxxxxx xxx xxx xx xxxxxxxxx, I xxxx xxxxxxxxxx xxx xxxxxxx xx x xxxx xxxx xx xxx /xxx xxxxxxxxx xxxxx xxx xxxxx’x xxxxxxxx xxxxxxxx (x.x., >). Ox xxx xxxxxx xxxx, I xxxx xxx xxxx xxxxxxx xx xxxxxxx xxx xxxx xxxxxxxx xxxxx xx xxx xxxx xxxx xxxxxxxxx, xxxxx xxxxxxxxxx xx xxx xxxx xxxxx xxxxxxx xx xxxx xxxx. Yxx xxxxx xxxxxxx xxxx (|) xxx xxxxxxxx xx xxxx xx xxxx xx x Lxxxx xx Uxxx xxxxxx xx xxx xxxxxx xxxx xx xxxx xxx xxxxxxx xxxxxxx. - Axxxx xxx xxxxxxxx xxx xxxxxxx xx x xxxxxx xxx xx x xxxx xxxx, xx xxx xx xxxx xx xxxxxxx xxxx xx xxx xxxxxx xxxxxx xx x xxxxxxxx xxxxx xx xxxx. Pxxxx-xx-xxxx xxxxxxxx xxxxxxx xxx xx xxxxxxxxx xxxxxxxx xxxx xxx xxxx xxxxxxxxxxxxx xxxxxxx x xxxxx xxxxxx xx xxxx xxxx xxx xxxx xxxxx xxxxx xxxx xxxx xxxx xx. - Txx xxxxx xxxxxx, xxxxxxx xx I/O (xxxxx/xxxxxx) xxxxxx, xxxxxxx xxx xxxxxxxxxxxxxx xxxx xxx xxxxxx xxxx xxxxxx xxx xxxxx xx xxx xxxxxxx xx xxx xxxxxx’x xxxxxx xxx xxx xx xxx xxxxxxx xx xxx xxxx. Txx xxxxxx xxxx xxx xxxxxxxx xxxx xxxxxx xxxxxxxxx xx xxx xxxxx. Nxx xxxx xxx xxxxx xxxxxxxxxxx xxxxxxx xxx xxxxxx xxxx xxxxxxxxx xx xx xxxxxxx xxxxx xxx xxx xxxxxx xxx xxxxxxx. Ixxxxxx, xxxxx xxx xxxxxx xxx xxxx xx xxxxx xx xxx xxxxxx xxx, xx xxxxx xx xxx xxxxxxx xxx xxxxxx xxx xxxxxxxxx xxx xxxxxxx xxx xxxxxxx. Txx xxxxxx xxxx xxxxx xxx xxxxx xx xxx xx xxxx xxxx xx xxxxx xxx xxxx xxxx xx xxx xxxxxx xxx xx xxxx xx’x xxxxxxxxxx. Ix’x xxxx xx xx xxx xxxxx xx xxxxxxx xxx xxxxxxx. Txx xxxxx xxxx xxx xxx xxxxxx xx xxxx xxxxxxx xxxxxxxx xxxx xxx xxxxxxxx xxxxxxxxxxxxxx xxxxxx xx xxx xxxx xxx xxxx xxxxx xxx xxxxx xxxxxxxxx. - Lxxxxxx xx xxxx xxxxx xx xxx xxxxxx xxxxxx xxx, xxx xxxx xxxxxx xxxx xxxx xxxxxx xxxx xxx xxxxxxxx xxxxxxxxxxxxxx xxxxxx (x.x., dddd). Txx xxxxxx xxxx xx xxxx xxxxx xxxxxxxx xxx xxxx (x.x., dddddd xxx Nxxxxxxx dd, dddd), xxx xxxx, xxx xxx xxxxxxxxxxx xxxxxx’x xxxxxxxxxxxxxx xxxxxx. Txxx xx xxxxxxxx xx xxx xxxxxxxx xxxxxx xxxxxxxx xxx xxx xxxx xxxxx. Txxx xxxxxx xx xxxxxxxxxx xxxx xxx xxxxxx xx xxxxx xx xxxx xxxx xxx xxxxxxx xxxxx xxxxxxxx. Txx xxxx xx xxx xxxxx xxxxxxxx xxxxx xx xxx xxxxxx xxxx xxxxxxxx xxx SQL xxxxxxxxx. Ix xxxx xx xxx xxxxxxx, x SET xxxxxxxxx xx xxxxxxxx xxxx xxx TIMESTAMP xxxxxxxx xx xxxx xxxx xxx xxxxxx xxx xxxxx xx xxxx, xxx xxxx xxx xxxx xxxx xx xxxxxxxx xx xxx xxxxx xxxxxx xx xxxxx xxx xxxx xxx xxxx xx xxx xxxxx xx xxx xxxxxx. Txx xxxxx xxxx xx xxxx xxxxx xxxxx xxx SQL xxxxxxxxx xxxxx xxx xxxxxxxx. - Txx xxxxxxx xxxxxx xxxx x USE xxxxxxxxx, xxxxx xxx xxxxxxxx xx xx xxxx xxxx xxx xxxxx xxxxx xxx xxxxxxxxxx xxxxxxx xx xxx xxxxxxx xxxxxxxx. Sxxxxxxxx, xxxxxx xxxx xxx xxxxxx xxxxx xxxx xxx xxxxx xx INSERT_ID xx xxxxxxxxxxx xxx xxx INSERT xxxxxxxxx xx xxx xxxxxxxxx xxxxx. Txxx xxxxxxx xxxx xxx xxxxx xx xx xxxx xxx xxx xxxxxx xxxxxxx_xx xx xxx xxxxx xx xxx xxxx. Nxxxxxx xx xxxx xx xxxxxx xx xxxxxxx, xx xxxxxxxx. - Txx xxxxxx xxxxxx xxxxx xxxxx xx xxx xxxxx xx xxx xxxxxx xxx xxxxx xx x xxxxxx xxxx xxxx (xxx.xxxxx). Ax xxxxxxx xxxx xxx xxxxxx xxxxx xxxx xxxxxxx: - - /xxx/xxx/xxxxx/xxx.dddddd - /xxx/xxx/xxxxx/xxx.dddddd - /xxx/xxx/xxxxx/xxx.dddddd - /xxx/xxx/xxxxx/xxx.dddddd - /xxx/xxx/xxxxx/xxx.dddddd - /xxx/xxx/xxxxx/xxx.dddddd - /xxx/xxx/xxxxx/xxx.dddddd - - Txxx xxxx xx xxxxxx xxx xxxxx xxx xxxx xx xxxxxxxx xx xxxxxxxx xxx SHOW MASTER LOGS xxxxxxxxx. Nxxxxx xxxx xxx xxxx xxxxxxxx xxx xxxx xxxxxxxx xx xxxx xxxxxx xxx xxxx xx xxxxx, xxxxxxxxxx xxx xxxxx xx xxxxx xxx xxxxx xxxx xxxxxxx. Txx xxxxxx xxxxxxx xxxx xxxx xx xxx xxx xx xxx xxxxx xxxx xx xxx xxx xxxx xx xxxxxx. Ix x xxxxx xxx xxxx xxxxxxx xxx x xxxxxx xx xxxx, xxx xxxxxx xxxx xxxx xxxxxxxx xxxxxxx xxx xxxxx xx xxxx xxx xxxx xxxxxxxxxx xxx xxxxxxxx xxxxxxxxxxxxxx xxxxxx xxxxx xx xx xx xxx xxxxx. Ix xxxx xxxx xxxx xxxx xxxx xxxx xxx xxxxx xxxxxxxxx xxx xxxxxxxxx xxxxxxxx xxxxxxxxxxxxxx xxxxxx xx xxx xxx, xxxxxxxx xx xxx xxxxxxxxxx xxxxx xx xxxxx, xxxxxxx SQL xxxxxxxxxx xxxx xxxx xx xxx xxxxx xxxxx xxx xxxxx xx xxxxxxx xx xxxxxxxxxxxx. Ix xxx xxxxx xx xxxxxxxxxxxx xxxxxx xx xxx xxxxxx xxxxxxx, xxx xxxxx xxxx xxxx xxxxxxx xxxxxxx xxxx xx xxxxx xxxxxxxxxx xxxx xxx xxxx xxxxxx xxx xxxxxxxx xxxxxxxxxxxxxx xxxxxx xx xxxxxxxx. - Axxxx xxx xxxxx xx xxxxxxx xxxxx, xxx xxxxx xxxx xx xxxx xx xxxxxxx xxx xxxxxxx xxxxxxxxxxxx xxxx xxx xxxxxx xxxxxxxxx xxxxxxx xx xxx xxxxxx xxx. Txx xxxxx xxxx xxxx xxxxxxxxx xxxx xxxx xx xxxxxxxx xxxxxxx xxxxx xxxx xxx xxxxxx, xx xx xx xx xxxxxxxxxxxx xxxxxxxxxxx. Wxxx x xxxxx xxxxxxxxxx xx xxx xxxxxx xxxxx x xxxxxxxxxxxxx, xx xxxxx xxxxxxxxx xx xx xxxx xx xxxx’x xxxx xxxxxxxx xxxxx xx xxx xxxxxxxxxxxx. Ix xx xxxx xxxx xxx x xxxx xxxxxx, xxx xxxxx’x xxxxxxxxxx xxxx xxxx xxx, xxxx xxxxxxx xx xx xxxxxxxxx xxx xxxx xxxxxxxx. - Wxxx xxx xxxxx xxxxxxxx xxx xxxxxxx xxxx xxx xxxxxx, xxx xxxxx xxxxx’x xxxxxx xxx xxxxxxxxx xxxxxxxx. Dxxxxx xxxxxxxxxxx xx xxxxxxx xxx xxxxx xx xxxxxxxx xx xxxxxxxxxxx xxxxx xx MxSQL d.d xxx xxxxx xx xx xxx xxxxxxxxxx xx xxxx xxxx xxxxx xxxxx, xxxxxxxxxxxx xx xxx xxxxx’x xxxxxxxxx xxx xxxx xxxx xx xxxxxxx xxxx xxxx xxxxxxxx (x.x., xxx xxxxx xxxx xxxxx xxxx xxxx xxxxxxxxx). Txxxxx xx xxx xxxxxxxxxx xxxxxxxxx xxx xx xxxx xxxx xxx xxxxx xx xxxxxxxxxx xx xxxxxx xxx xxxx. A SELECT xxxxxxxxx xxxxx xx xxxxxxxx xxxx xxx HIGH_PRIORITY xxxx, xxxxxx xx xxxxxxxx xxxx UPDATE xxx xxxxx SQL xxxxxxxxxx xxxx xxxxxx xxxx xxx xxx xxx xxxx xxxxxxxxxxxx xxxxxxx xxxx xxx HIGH PRIORITY xxxx. Ix xxxx xxxx, xxx xxxxxxxxxxx xxxxxxx xxxxx xx xxxxxxx xx xxxx xxxxxxxxxx. Ox x xxxx xxxxxx, xxx xxxxxxxxxxx xxxxxxx xxxxx xx xxxxxxx xxx xxxxxxx xxxxxxx. Ix xxx xxxxxx xxxxxx xxxxxxx xxxxxx xxxx x xxxxxxx xxxxx, xxxx xxxxx xxxx xxx xxxx xx xxxx xxxx xxxxxxx xx xxxxx xxx xxxxx xxx xxx xxxxxxxx xxx xx xx xxxxxxx xx xxxxxx xx x xxxxx xx xxx xxx xxxxxx. - Bx xxxxxxxxxx xxx xxxxxxxxx xx xxxxxxx xxxxxxxx xxx xxxxx xx-xxxxxxxxx, xxx xxxxx xx xxxxxxx xx xxxxxxx xxx xx xxxxxx xxx xxxxxxxxxxxx xx xxxx xxx xxxx xxxx xxx xxxxxx xxxxxx xxxxxxx. Txxx xx x xxxx xxxx xxxxxxxxxx xxxxxx xxxx xxx xxx xxxx xx xxxxxxx xxxxxxxx xx MxSQL. - Cxxxxxxxx, xxx xxxxx xx xxxxxxx xxx xxxxxxx xx x xxxx xx xxx xxxx xxxxxx xxxxx xxxxx.xxx. Ax xxxxxxx xxxx x xxxxx xxx xxxxxxx: - /*!ddddd SET @@xxxxxxx.xxx_xxxxxx_xxxxxxx_xxxxxxx=d*/; -/*!ddddd SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=d*/; - -# xx d -#dddddd d:dd:dd xxxxxx xx d xxx_xxx_xxx dd - Sxxxx: xxxxxx x d, xxxxxx x d.d.dd-xxxx-xxxxxxxx-xxx xxxxxxx dddddd d:dd:dd - -# xx dd -#dddddd d:dd:dd xxxxxx xx d xxx_xxx_xxx d Rxxxxx xx xxx.dddddd xxx: d - -# xx ddd -#dddddd dd:dd:dd xxxxxx xx d xxx_xxx_xxx dd - Sxxxx: xxxxxx x d, xxxxxx x d.d.dd-xxxx-xxxxxxxx-xxx xxxxxxx dddddd dd:dd:dd xx xxxxxxx -ROLLBACK; - -# xx ddd -#dddddd dd:dd:dd xxxxxx xx d xxx_xxx_xxx ddd - Qxxxx xxxxxx_xx=dd xxxx_xxxx=d xxxxx_xxxx=d -SET TIMESTAMP=dddddddddd; -CREATE TABLE xxxxxxx_xxxx (xx INTEGER NOT NULL, xxxx CHAR(dd) NOT NULL); - -# xx ddd -#dddddd dd:dd:dd xxxxxx xx d xxx_xxx_xxx dddd - Qxxxx xxxxxx_xx=dd xxxx_xxxx=d xxxxx_xxxx=d -SET TIMESTAMP=dddddddddd; -INSERT INTO xxxxxxx_xxxx VALUES ('d','xxxxDxLxLxdXYxxVM'); - Txxx xxx xx xxxx xxx xxxxxx’x xxxxxx xxx. Nxxxxx xxxx xxx xxxxx xxxxx xxxxxxxx xxx xxxxxx’x ID xxxxxx, d, xxxxx xx xxx xxxxx’x xxxxxxxxxxxxxx xxxxxx. Txxxx xxx xxxx xxxx xxxxxxx xxx xxxxxx d, xxx xxxxxx. Txx xxxxx xxxxxxx xxxx xx xx xxxx xxx xxxxxxxxx xx xxxx xxxxxxx. Txx xxxx xxx xxxxxxx xxx SQL xxxxxxxxxx xxxxxxx xx xxx xxxxx xxxx xxx xxxxxx. - A xxx xxxxx xxx xxxx xx xxxxxxx xxxx xxxxxxxxxxx xxxxxx xx xxx xxxxx xxx xxxx xxx xxxx xxx xxxxxxx (x.x., xxx FLUSH LOGS xxxxxxxxx xx xxxxxx). A xxx xxxxx xxx xxxx xx xxxx xxxxxxx xxxx xxx xxxxxxx xxxx xxxxxxx xxx xxxxxxx xxxx xx xxx xx xxx xxx_xxxxx_xxx_xxxx xxxxxxxx. Txx xxxxxxx xxxx xxx xxxx xx xxxxxxx xx xxx xxx_xxxxxx_xxxx xxxxxxxx. Ix xxxxx xxxxxxxxx xxx xxx xx d, xxxxx xx xx xxxx xxxxx xxxxxx xx xxx xxxxx xxx xxxxx. - Oxxx xxx xxxxx xxx xxxx xxxx xx xxx SQL xxxxxxxxx xxxxxxx xx xx xx xxx xxxxxx, xx xxxxxxx xxx xxx xxxxxxxx xxxxxxxxxxxxxx xxxxxx xx xxx xxxxxx xxxxxxxxxxx xxxx (xxxxxx.xxxx) xx xxx xxxx xxxxxx. Hxxx xx xx xxxxxxx xx xxx xxxxxxx xx x xxxxxx xxxxxxxxxxx xxxx xx x xxxxx xxxxxx: - - dd - xxx.dddddd - dddd - xxxxxx_xxxx - xxxxxxxxx - xx_xxx - dddd - dd - d - - Txxx xxxx xx xxxxxxx xxxxxxxxx xx xxx xxxxx xxx xxxxxxxx xxx xxxxxxxx xx xxx xxxxxx’x xxxxxx xxx xxxx xxxx xx xxx xxxxx xx xxxxxxxx, xx xxxx xx xxx xxxxxxxxxxx xxxxxxxxx xx xxxxxxxxx xx xxx xxxxxx. Exxx xxxx xxx xxx xxxxxxxxx xxxxxxx: - - - -Txx xxxxx xxxx xxxxxxxx xxx xxxxxx xx xxxxx xx xxxx xx xxx xxxx (dd). Axxxxxxx xxxxx xxxx dd xxxxx xxx xxxxx xxxx, xxx xxxxxx xxxx xxxxxxxx xxxxx xxxxx xxxx xxxx xx xxx xxxx. - - - - -Txx xxxxxx xxxx xx xxx xxxx xx xxx xxxx xxxxxx xxx xxxx xx xxx xxxxxx xxxx xxxxx xxx xxxxx xxxxxxxx xxxxxxx. Txxx xxxxx xxx xxxxxx xx xxxxxxx xxxxxxx xx xxxxxxxx. - - - - -Txxxx xxxxx xxx xxxxxxxx xxxxxxxxxxxxxx xxxxxx (dddd) xx xxx xxxxxx’x xxxxxx xxx. - - - - -Txx xxxx xxx xxxxx xxxxxxx xxx xxxxxx’x xxxx xxxxxxx, xxx xxxxxxxxxxx xxxx xxxx, xxx xxxxxxxx, xxx xxx xxxx xxxxxx (dddd). Nxxxxx xxxx xxx xxxxxxxx xx xxx xxxxxxxxx xxx xx xxxxxx xx xxxxx xxxx. Txxxxxxxx, xx xxxx xx xxxxx xxxx xxxx xx x xxxxxx xxxxxxxxx. Yxx xxx xxxxxxxxx xxx xxxx xxx xxxx xxxx xx xxx xxxxxxxxxxxxx xxxx, xx xxxxxxxxx xxxxx xx xxxx xxxxxxx. - - - - -Txx xxxx xx xxxx xxxx (dd) xxxxx xxx xxxxxx xx xxxxxxxx xxx xxxxx xxxxxx xxxx xxxx xxxxxxxxxxxx xx xxx xxxxxx xxxxxx xxxxxxxx. - - - - -Txx xxxx xxxx xxxx xx d xxxxxxx xxx xxxxxx xxxx xxxxx xxxx xxxxxx xxxxxxxxxxx xxxx xxxx xxxx xxx xxxx xxx SSL xxxxxxx xxxxxxx. Ix SSL xxx xxxxxxx xx xxx xxxxx xxx xxxxxxx xx xxx xxxxxx, xxxxx xxxxx xx x xxxxx xx d xx xxxx xxxx. Ix xxxxx xxxx xx xxxxxxxx xx xxxx xxxx xxxxx xxxxxxxxxx xxxxxx xxxxxxx xx SSL xxxxxxxxxxxxxx, xxxxxxxxxx xxx xxxxxxxx xxxxx xxxxxxxxxxx xx xxx xxxxx xxxx. - - - - -Nxxxxx xxx xxx xxxxxx xx xxx xxxxxx xxxxxxxxxxx xxxx xxxxx xxx xxxxxxxxx xxxxxxx xxxx x SHOW SLAVE STATUS xxxxxxxxx xxxxxxxx xx xxx xxxxx. - SHOW SLAVE STATUS \G - -*************************** d. xxx *************************** -Sxxxx_IO_Sxxxx: Wxxxxxx xxx xxxxxx xx xxxx xxxxx -Mxxxxx_Hxxx: xxxxxx_xxxx -Mxxxxx_Uxxx: xxxxxxxxx -Mxxxxx_Pxxx: dddd -Cxxxxxx_Rxxxx: dd -Mxxxxx_Lxx_Fxxx: xxx.dddddd -Rxxx_Mxxxxx_Lxx_Pxx: dddd -Rxxxx_Lxx_Fxxx: xxxxx.dddddd -Rxxxx_Lxx_Pxx: ddd -Rxxxx_Mxxxxx_Lxx_Fxxx: xxx.dddddd -Sxxxx_IO_Rxxxxxx: Yxx -Sxxxx_SQL_Rxxxxxx: Nx -Rxxxxxxxx_Dx_DB: xxxx -Rxxxxxxxx_Ixxxxx_DB: -Rxxxxxxxx_Dx_Txxxx: -Rxxxxxxxx_Ixxxxx_Txxxx: -Rxxxxxxxx_Wxxx_Dx_Txxxx: -Rxxxxxxxx_Wxxx_Ixxxxx_Txxxx: -Lxxx_Exxxx: dddd -Lxxx_Exxxx: Exxxx 'Dxxxxxxxx xxxxx 'dddd' xxx xxx d' xx xxxxx.' -Sxxx_Cxxxxxx: d -Exxx_Mxxxxx_Lxx_Pxx: ddd -Rxxxx_Lxx_Sxxxx: dddddddd -Uxxxx_Cxxxxxxxx: Nxxx -Uxxxx_Lxx_Fxxx: -Uxxxx_Lxx_Pxx: d -Mxxxxx_SSL_Axxxxxx: Nx -Mxxxxx_SSL_CA_Fxxx: -Mxxxxx_SSL_CA_Pxxx: -Mxxxxx_SSL_Cxxx: -Mxxxxx_SSL_Cxxxxx: -Mxxxxx_SSL_Kxx: -Sxxxxxx_Bxxxxx_Mxxxxx: NULL - Nxxxxx xxx xxxxxx xxx xxx xxxxxxxxxx SSL xxxxxxxxx xx xxx xxx xx xxxx xxxxxxx. Txx xxxxxx xxxxxxxxxxx xxxx xxxxxxxx xxxxx xxx xxxx, xxxxxxx xxxx xxx xxxxx xx xxxxxxxxx. Axxx xxxx xxxx, xxx xxxxxx xxxxxxxx, xxx xxxxxxx xxxx xxx xxxxxx xxx xxxxxxxx. - Axxxx xxxxxx xxx xxx xxxxxxxx xxxxxx xxx xxxxx xxxxxxxxxxx xxxx xxx xxxx xxxxxxx, xxx xxxxx xxxx xxx xxxx I/O xxxxxx xx xxxxxx xxxxxxx xxx xxxx xxxxxxx xxxx xxx xxxxxx. - Wxxx xxx xxxxx xxxxxx xxxxxxx xxx xxxxxx xx xxx xxxxx xxx, xxxxxxx x xxxxxxxxx xxxxxx, xxx xxxxx xxxx xx SQL xxxxxx xx xxxxxxx xxx xxx SQL xxxxxxxxx xxxxxxxx xx xxx xxxxx xxx xx xxx xxxxx’x xxxxxxxxx. Axxxx xxx xxx xxxxx xx xxxxxxxx xx xxx xxxxx’x xxxxx xxx, xxx xxx xxxxx xxx xxxxxxxx xxxxxxxxxxxxxx xxxxxx xx xxxxxxxx xx xxx xxxxx xxx xxxxxxxxxxx xxxx (xxxxx-xxx.xxxx) xxxxxxx xxx xxxxx’x SQL xxxxxx. Ax xxxxxx xxxxxxx xxxx x xxxxx xxx xxxxxxxxxxx xxxx: - /xxx/xxx/xxxxx/xxxxx.dddddd -ddd -xxx.dddddd -ddd - Txx xxxxx xxxx xxxxx xxx xxxx xxxx xxx xxxx xx xxx xxxxxxx xxxxx xxx xxxx (Rxxxx_Lxx_Fxxx xx xxx SHOW SLAVE STATUS xxxxxxx ). Txx xxxxxx xxxxx xx xxx SQL xxxxxx’x xxxxxxxx xx xxx xxxxx xxx xxxx (Rxxxx_Lxx_Pxx). Txx xxxxx xxxxxxxx xxx xxxx xx xxx xxxxxxx xxxxxx xxx xxxx xx xxx xxxxxx (Rxxxx_Mxxxxx_Lxx_Fxxx). Txx xxxx xxxxx xx xxx xxxxxxxx xx xxx xxxxxx xxx xxxx (Exxx_Mxxxxx_Lxx_Pxx). Txxxx xxxxxx xxx xxxx xx xxxxx xx xxx xxxxxxx xx xxx SHOW SLAVE STATUS xxxxxxxxx xxxxx xxxxxxx. - Wxxx xxx xxxxx xx xxxxxxxxx, xx xxx xxxx xxx xxxxxxx, xx xxxxxxx xxx xxxx xx xxx xxxxxxx xxxxx xxx xxxx xx xxx xxx xx xxx xxxxx xxx xxxxx xxxx (xxxxx-xxx.xxxxx). Ax xxxxxxx xx x xxxxx xxx xxxxx xxxx xxxxxxx: - /xxx/xxx/xxxxx/xxxxx.dddddd -/xxx/xxx/xxxxx/xxxxx.dddddd -/xxx/xxx/xxxxx/xxxxx.dddddd - Txxx xxxxxxx xx xxxxxxxxxx xxxxxxx xxxxx xxx I/O xxxxxx xxxx xxx xxxxxxxxx xx xxxxxxxxx xxxxxxx xxxx xxx xxxxxx. Ix xxxxxxx xxxx xxx xxxxxx xx xxxxxxx xx xxx xxxxx’x xxxxxxxxx xx xxx SQL xxxxxx xxxx xxx xxxxxxx xx xxxx xxx xxxxxxxxx xx xxxx xxxx xxx xxxxxx. Wxxx xxxx xxxxxxxx xxxxxx xxxxxx, xxx xxxxx xxxxxx xxxxxxxxx xxx xxxxxxxxx xxxxxx xx xxx xxxxx xxx xxxx xx xxx xxxx xxxxxx xxxxx. - Ax xx xxxxxxxxxx xxxxxxxxx xx xxxxxx xxxxxxxx xx xxxx, xxx xxxxx xxxxxxxx xxx xxxxxxx xx xxx xxxxx xxx xx xxx xxxx xx xxx xxxxxxxxx. Ix xxx xxxxxxxxxx xxxxxxx xxx xxxxxxxxxxxxx, xxx xxxxxxxxxxx xxxxxxx xx xxxxxxx xxx xx xxxxx xxxxxxx xx xxxxxxxx xx xxx xxxxx’x xxxxx xxx (xxxxx.xxx). Txx xxxxx xxxx xxx xxxxxxx xxxxx xx xx xxxx xx xx xx. Axxxx xxx xxxx xxxxxxxx xxx xxxxxxxxxxx xxxx xxx xxxxx xxxxxxxx xx xxx xxxx, xxx xxx xxxx xxxxxxxx xxx xxxxx xx xxxxxx xxxxxxxxxxx, xx xxxxxxxxx xxxxx xx xxxx xxxxxxx. - Hxxx xx xx xxxxxxx xx xxxx xx xxxxxxxx xx x xxxxx xxxxxx xx xxx xxxxx xxx xxxx xxx xxxxxxx xxx’x xxxxx: - -dddddd dd:dd:dd xxxxxx xxxxxxx -dddddd d:dd:dd IxxxDB: Sxxxxxx -/xxx/xxxx/xxxxxx-xxx: xxxxx xxx xxxxxxxxxxx -dddddd d:dd:dd Sxxxx SQL xxxxxx xxxxxxxxxxx, xxxxxxxx xxxxxxxxxxx xx xxx -'xxxxxxd-xxx.ddd' xx xxxxxxxx ddddddddd, xxxxx xxx './xxd-xxxxx-xxx.ddd' -xxxxxxxx: d -dddddd d:dd:dd Sxxxx I/O xxxxxx: xxxxxxxxx xx xxxxxx -'...@dd.ddd.dd.dd:dddd', xxxxxxxxxxx xxxxxxx xx xxx 'xxxxxxd-xxx.ddd' xx -xxxxxxxx ddddddddd ERROR: dddd Txxxx ‘xxxx.xxxxxxxx’ xxxxx’x xxxxx -dddddd d:dd:dd Sxxxx: xxxxx 'Txxxx 'xxxx.xxxxxxxx' xxxxx'x xxxxx' xx xxxxx -'INSERT INTO xxxxxxxx SET xxxxxxx_xxxx=d.ddddddddddddddd, -xxxx_xxxx=d.dddddddddddddd, xxxx_xx='Axx'', xxxxx_xxxx=dddd -dddddd d:dd:dd Exxxx xxxxxxx xxxxx, xxxxx SQL xxxxxx xxxxxxx. Fxx xxx -xxxxxxx, xxx xxxxxxx xxx xxxxx SQL xxxxxx xxxx “SLAVE START”. Wx xxxxxxx xx -xxx 'xxxxxxd-xxx.ddd' xxxxxxxx ddddddddd -dddddd d:dd:dd Sxxxx SQL xxxxxx xxxxxxx, xxxxxxxxxxx xxxxxxx xx xxx -'xxxxxxd-xxx.ddd' xx xxxxxxxx ddddddddd -dddddd d:dd:dd Exxxx xxxxxxx xxxxxx xxxx xxxxxx: (xxxxxx_xxxxx=dddd) -dddddd d:dd:dd Sxxxx I/O xxxxxx xxxxxx xxxxx xxxxxxx xxxxx -dddddd d:dd:dd Sxxxx I/O xxxxxx xxxxxxx, xxxx xx xx xxx 'xxxxxxd-xxx.ddd', -xxxxxxxx ddddddddd -dddddd d:dd:dd /xxx/xxxx/xxxxxx-xxx: Nxxxxx xxxxxxxx - -dddddd d:dd:dd IxxxDB: Sxxxxxxx xxxxxxxx... -dddddd d:dd:dd IxxxDB: Sxxxxxxx xxxxxxxxx -dddddd d:dd:dd /xxx/xxxx/xxxxxx-xxx: Sxxxxxxx Cxxxxxxx - -dddddd dd:dd:dd xxxxxx xxxxx - - Ix xxx xxxxx xxxxxxx, I xxxx xxxx-xxxxx xx xxxxx xxxxxxx xxxxxxx xxxx xxx xxxxx xxx xxxxxxxx xxx xxxxx xxx xxxxxxxx xxxxxxx xxxxxxxxx x xxxxx xxxx xxxx xxx xxxxx xx xxx xxxxx. Txx xxxxxx xxxx xxxxx xxxxxxx xxxxx x xxxxxxx xxxxxxxxx xxx xxxxxxxxxxxx xx xxx xxxxxxxx xxx xxxx xxxxxxxxxxxx xx xxx xx xxxxxxx. - Txx xxxxxxxxxxx xxxxxxx xxx xxxx xxxx xxxxxxxx xxx xxxxxxxxxxx xx xxxxx, xxx xx xxx xxxxxx xxxxxxx; xx’x xxxxxxxxx xxx x xxxxxxxxxxx xxxxx xx xxx xxxxxx xxxxxx. Axxx, xx’x xxxxxxxxxxxx xxxx xx xxx xx: xx xxxxxxxx xxxx x xxx xxxxx xx xxxxxxx xx xxx xxxxxxxxxxxxx xxxxx xx xxx xxxxxx xxx xxxxx xxxxxxx. Yxx xxxx xxxx xx xxxx xxx xxxxxxxxx xx xxx xxxxxx xxxxxx xx xxx xxxxx xx xxx xxx xxxxx xxxxx xx xxxxx xxxxxxx. Txxx xx’x xxxxxx x xxxxxx xx xxxxxxxx xxx xxxxx xxx xx xx xxxxx xxxxxxxxxxx. Ix xxxx xxxxxxx xxxxxx xxx xxxx xx xxxxxx xxx xxxxxxx xxxxx xxx xxxxxxx xxxxxx xxxxxx xxxx xxx xxxxxx xxx xxxxxxxxx xx xxx xxxxx. Txxx xxxxxxxxxxx xxxx xxxx xx xxxxxxx—xxxxxxxxxxxxx. Ax xx xxxxxxxxxxxxx xxx xxxx xxxx xx xxxxxxx xxx xxxxxxxxxxx xxxxxxx xxx xxxxxxx xxxxxxxx xxxx xxxxx xxxxxxxxxxxx. - Bxxxxx xxxxxxxxxx xxxx xxxxxxx, xxx xx xxxxxx xx xxxxxxxxx xxxxx xxxxx xxx xxxx xx xxxxxxxxxxx: xxxxxxxxxxx xx xxxxxxxxxxx xxxxxx. Wxxx xx xxxxx, xx’x xxxxxx. Uxxxx xx xxxxx, xx xx xx xxxxx xxxxxxx, xxx xxxxxxx xxxxxxxxxxxx xx xxxxxxxxxxx xxxx xx xxxxxxxxx xx xxxxxxxxxx xxx xx xxxxx’x xxxx. Nxx xxx’x xxxx xx xxx xxxxx xxx xxxxxxx xx xxxxxxxxxxx. - - - Txx Rxxxxxxxxxx Uxxx Axxxxxx - Txxxx xxx xxxx x xxx xxxxx xx xxxxxxx xx xxxxxxxxxxx. Txx xxxxx xxxx xx xx xxx xx xxxx xxxxxxxx xxxxxxxxx xx xxxxxxxxxxx xx xxxx xxx xxxxxx xxx xxx xxxxx. Ix’x xxxx xxx xx xxx xx xxxxxxxx xxxxxxx xxx xxxxxxxx xxxxxxx. Tx xxx xx xxx xxxxxxxx, xxxxx xx SQL xxxxxxxxx xxxx xxx xxxxxxxxx xx xxx xxxxxx xxxxxx, xxxxxx xx xx xxxx xx x xxxx xxxx xxx xxx GRANT OPTION xxxxxxxxx: - GRANT REPLICATION SLAVE, REPLICATION CLIENT ON *.* -TO 'xxxxxxxxx'@'xxxxx_xxxx' IDENTIFIED BY 'xx_xxx'; - Txxxx xxx xxxxxxxxxx xxx xxx xxxx xxx xxxxxxxxx xxx x xxxx xx xxxxxxxxx x xxxxxx. Txx REPLICATE SLAVE xxxxxxxxx xxxxxxx xxx xxxx xx xxxxxxx xx xxx xxxxxx xxx xx xxxxxxx xxxxxxx xx xxx xxxxxx’x xxxxxx xxx. Txx REPLICATE CLIENT xxxxxxxxx xxxxxx xxx xxxx xx xxxxxxx xxx SHOW MASTER STATUS xxx xxx SHOW SLAVE STATUS xxxxxxxxx. Ix xxxx SQL xxxxxxxxx, xxx xxxx xxxxxxx xxxxxxxxx xx xxxxxxx xxxx xxxx xx xxxxxx xxx xxxxxxxxxxx. Txx xxxx xxxx xxx xx xxxxxx xxxxxxxx. Bxxx xxx xxxx xxxx xxx xxx xxxx xxxx xxx xxxxx xxxxxx xxxxxx. Txx xxxx xxxx xxx xx xxx xxxxx xx xxxxxxxx xxxxxxx /xxx/xxxxx (xx xxx xxxxxxxxxx xx xxxx xxxxxx), xx xx xxx xx x xxxxxx xxxx xxxx xx xxxxxxxx xxxxxxx DNS. Ixxxxxx xx x xxxx xxxx, xxx xxx xxxx xx IP xxxxxxx: - GRANT REPLICATION SLAVE, REPLICATION CLIENT ON *.* -TO 'xxxxxxxxx'@'dd.ddd.dd.dd' IDENTIFIED BY 'xx_xxx'; - Ix xxx xxxxxxxx MxSQL xx xxxx xxxxxx xx xxxxxxx d.x xxxxxxxx, xxx xxxx’x xxxxxxx xxxx xxxxx xxxxxxxx, xxx GRANT xxxxxxxxx xxxxx xxx’x xxxx xxxxxxx xxxxx xxxxxxxxxx xxxx’x xxxxx xx xxx xxxxxxx xxxxxxxx. Fxx xxxxxxxxxxx xx xxxxxx xxxx xxxxxxx, xxx , xxx xxxxxxx xx xxxxx_xxx_xxxxxxxxx_xxxxxx. - Nxx xxxxx xxx xxxx GRANT xxxxxxxxx xx xxx xxxxx xxxxxx xxxx xxx xxxx xxxx xxxx xxx xxxxxxxx, xxx xxxx xxx xxxxxx’x xxxx xxxx xx IP xxxxxxx: - GRANT REPLICATION SLAVE, REPLICATION CLIENT ON *.* -TO 'xxxxxxxxx'@'xxxxxx_xxxx' IDENTIFIED BY 'xx_xxx'; - Txxxx xx x xxxxxxxxx xxxxxxxxx xx xxxxxx xxx xxxx xxxx xx xxxx xxx xxxxxx xxx xxx xxxxx: Ix xxx xxxxxx xxxxx xxx xxxx xx xxxx xxx x xxxxx, xxx xxxxx xxxxxxxx xxxxx xx xxx xxxxx xxxx DNS xx xx xxxx xxxxx xxxxxx. Wxxx xxx xxxxxx xx xxxx xx, xxx xxx xxxx xxx xxxxxxxxxxx xx xxx xxx xxxxxx xx-xx-xxxx xx xxxxxxxxxxx xxxxxx xx x xxxxx xx xxx xxxxxx xxxxx xxxxxx. Txxx xx xxxxxxxxxx, xxxxxx, xxx xx xxxxxxx xx xxx xxxxx xx xxxx xxxx. Fxx xxxxxxx, xxx Hxxx Pxxxxxxxxxx MxSQL (O’Rxxxxx). Yxx xxxxxx xxxxxxxxxx xxx xxxxxxxx xxxx x xxxxxx xxxx x xxxxxx xx xxxx xxxxxxx xxxxxx xxxxxxx xx xx xxxx xxxxxxxxxx xxxxxxx. - Tx xxx xxx xxxxxxx xx xxx xxxxx GRANT xxxxxxxxx xxx xxx xxxxxx, xxxxx xxx xxxxxxxxx: - SHOW GRANTS FOR 'xxxxxxxxx'@'xxxxx_xxxx' \G - -*************************** d. xxx *************************** -Gxxxxx xxx xxxxxxxxx@xxxxx_xxxx: - -GRANT REPLICATION SLAVE, REPLICATION CLIENT ON *.* -TO 'xxxxxxxxx'@'xxxxx_xxxx' -IDENTIFIED BY PASSWORD '*dddddBFdddddddddEdddBAddBdBCddDdddFFCGddd' - Nxxx, xxxxxxxxxxxx, xxxx xxx xxxxxxxx xxx xxxx xxxxxxxxx xx xxx xxxxxx. Ix xxx xxx’x xxx xxxxxxx xxxxxxx xx xxxxx xxxxx xxxx, xxx GRANT xxxxxxxxx xxxxx xxxxxx. Cxxxx xxxx xxx xxxxx xxxx xxx xxxxxxx xxx xxxxxxxxxx xxx xxxx xxx xxxxxxxx xxxx xxxxxxxxx. Ix xxxxxxxxxx xxx xxxxx xxxxxxxxx xxx xxxxxxxx xx xxxx xxxxxxxxxx, xxxxxx xxxx xxx xxxx xxxxxxx d.d xx MxSQL xx xxxxxx, x xxxxxxx xxxx xxxxxxxx xxxxx xxx xxx xxxxxxxxxx. Exxxx SELECT VERSION(); xx xxxx xxxxxx xx xxxxxxxxx xxx xxxxxxxx xxxx xxx xxxxx. - - - Cxxxxxxxxxx xxx Sxxxxxx - Oxxx xxx xxxxxxxxxxx xxxx xx xxx xx xx xxxx xxxxxxx, xxx xxxx xxxx xx xxx xxxx xxxxx xx xxx MxSQL xxxxxxxxxxxxx xxxx xx xxx xxxxxx xxx xx xxx xxxxx xxxxxx. Dxxxxxxxx xx xxx xxxx xx xxxxxxxxx xxxxxx, xxx xxxxxxxxxxxxx xxxx xxxx xxxxxxxx xx xxxxxx xx.xxx xx xx.xxx. Ox Uxxx xxxxx xx xxxxxxx, xxx xxxxxxxxxxxxx xxxx xx xxxxxxx xxxxxxx xx xxx /xxx xxxxxxxxx. Ox Wxxxxxx xxxxxxx, xx’x xxxxxxx xxxxxxx xx x:\ xx xx x:\Wxxxxxx. Ix xxx xxxx xxxxx’x xxxxx xx xxxx xxxxxx, xxx xxx xxxxxx xx. Uxxxx x xxxxx xxxx xxxxxx (x.x., xx xx Nxxxxxx.xxx), xxx xxxx xxx’x xxx xxxxxx xxxxxxxxxx, xxx xxx xxxxxxxxx xxxxx xx xxx xxxxxxxxxxxxx xxxx xx xxx xxxxxx xxxxx xxx [xxxxxx] xxxxx xxxxxxx: - [xxxxxx] -xxxxxx-xx = d -xxx-xxx = /xxx/xxx/xxxxx/xxx.xxx -... - Txx xxxxxx xxxxxxxxxxxxxx xxxxxx xx xx xxxxxxxxx xxxxxx xxxx xx xxxxxxxx xxx xxxxxx xxxxxx xx xxx xxxxxx xxx xxx xx xxxxxxxxxxxxxx xxxx xxxxx xxxxxxx. Axxxxx xxx xxxxx xxxxxx xxxx d xx dddddddddd xx xxxx. Dxx’x xxx d, xx xxxx xxxxxx xxxxxxxx. Ix xxx xxx’x xxxxxx x xxxxxx xxxxxx, xxx xxxxxxx xxxxxx xxxxxxxxxxxxxx xxxxxx xx d xxxx xx xxxx. Txx xxxxxxx xx xxx xxxxx xxx xxx xxxxxx, xxx x xxxxxxxxx xxx xxxxxx xx xxxxxxxx xx xxxx xxxxx. Tx xxxx xxx xxxxxxx xxxxxxxx xxx xxxxx xxxxxxxxx xx xxxxxxxxxxxxxx xxxxxxx xxxxxxx, xx xx xxxx xxxxxxxxx xxxx xxxx xxxxx xxxx x xxxxxx xxxxxx. - Ix xxx xxxxxxxxxxxxx xxxx xxxxxxx xxxx xxxxx, xxx xxxx xxxxxxxxxx xxx xxx-xxx xxxxxx xxxxxxxxx MxSQL xx xxxxxxx xxxxxx xxxxxxx xx xxx xxxx xxx xxxx xxxxx. Txx xxxxxx xxxx xxx xxxx xxxx xx xxxxxx xx xx xxx. Jxxx xx xxxx xxxx xxx xxxxxxxxx xxxxxx xxx xxxx xxx xxxx xxxxx xx xxx xxxxx, xx xx xxxxx xxx xxxxxxxxxx xx xxxxx xx xxx xxxxxxxxx. Bx xxxxxxx, xx x xxxx xx xxx xxxxx, xxx xxxxxx’x xxxx xxxxxxxxx xx xxxxxxx xx xxx xxxx xxx xxx xxxxx. Tx xxxxx xxx xxxxxxxx xx xxxxx, xxxx xxx-xxx xxxxxxx xxx xxxxx-xxxx xxx xxxxxxx xxx xxxx xxxx xxxx. Txxx xxxxxxx xxxxx xxx xxxxxxx xxxxxxxx. Ix xxx xxx xxx xxx xxxx xxxx xx xxxxxxxxx xxxx, xxxx xxx xxxxxx .xxx xx xxxxx xxxx. Ix xxxx xx xxxxxxxx xxxxxxxxxxxxx xxxx xx xxxxx xxxxxx (x.x., .dddddd) xx xxx xxx xxxxx xxx xxxxxxx xxxx xxx xxxxxx xx xxxxxxxxx xx xxx xxxx xxx xxxxxxx. - Txxxx xxx xxxxxxx xxx xxx xxxx xx xxxxxxxx xx xxx xxxxxx. Txxx xxx xx xxx xx xxx xxxxxxxxxxxxx xxxx xx xxxxx xxxx xxx xxxxxxx xxxx xxxx xxxxxxxx xxx xxxxxx xxxxxx xxxx xxxx. Ox xxx xxxxxxx xxxx, xxx xxx xxxxxxxx xxxxxx xxxxxx xxxxxx xxxx xxxxxx xxx xxxx xxx xxxxxx xxxxxx xxx xxxxx-xxxxx. - Fxx IxxxDB xxxxxx, xxx xxx xxxx xx xxx xxx xxxxxxxxx xxxxx xx xxx xxxxxx’x xxxxxxxxxxxxx xxxx: - xxxxxx_xxxxx_xxx_xx_xxx_xxxxxx = d -xxxx-xxxxxx = d - Txxxx xxxxxxx xxxxxxxx xxxx xxx xxxxx xxxx xxxxxxxxxxxx xxx xxxxxx xxxxxxx. - Fxx xxx xxxxx xxxxxx, xx xxxx xxxx xx xxx xxxxxxx xxxxxxx xx xxx xxxxx’x xxxxxxxxxxxxx xxxx, xxxxxxxxxx xxx xxxxxxx xxxxxxxxxx xxx xxxxxx xx xxxxxxx xx xxx xxxxx. Yxx xxxx xxxx xx xxxxxxx x xxxxxx xxxxxxxxxxxxxx xxxxxx, xxxxxxxxxxx xx xxxxxxxxxx xx xxx xxxxxx xxxxxx, xxx xxxx xxx xxxxxxx. Axx xxxxx xxxxxxx xx xxx xxxxxxxxx xx xxx xxxxx’x xxxxxxxxxxxxx xxxx: - [xxxxxx] -xxxxxx-xx = d - -xxx-xxx = /xxx/xxx/xxxxx/xxx.xxx -xxx-xxx-xxxxx = /xxx/xxx/xxxxx/xxx-xxx.xxxxx -xxx-xxxxx = /xxx/xxx/xxxxx/xxxxx.xxx - -xxxxx-xxx = /xxx/xxx/xxxxx/xxxxx.xxx -xxxxx-xxx-xxxx-xxxx = /xxx/xxx/xxxxx/xxxxx-xxx.xxxx -xxxxx-xxx-xxxxx = /xxx/xxx/xxxxx/xxxxx-xxx.xxxxx - -xxxxx-xxxx-xxxxxx = /xxx/xxx/xxxxx/ -xxxx-xxxxx-xxxxx -... - Ax xxx xxx, xxx xxx xxx xxx xxxxxx xxxxxxxxxxxxxx xxxxxx xx xxx xx d. Txx xxxx xxxxxxx xxx xxx xxxx xxx xxxxxxx xxxxx xxxxx. Ix xxxxx xxxxx xxx’x xxxxx xxxx xxx xxxxx xx xxxxxxx, xx xxxx xxxxxxxxxxxxx xxxxxx xxxx. - Txx xxxxxx xxxxxx xxxxxx xxxxxx xxxxxxx xxxx xx xxx xxxxxx xxxxxx, xxx xxxx xxxx xx xxx xxxxx. Txxx xx xxx xxx xxxx xxx xx xxxx xx xxxxx xxx xxxxxx xxx xxx xxxxx xx xxxxxxx xxxxx xx xxxxxxxxx xxxxxxx. Txx xxxxxx xxx xxxxx xxxx (xxx-xxx.xxxxx) xxxxxxx xxx xxxx xx xxx xxxxxxx xxxxxx xxx xxxx xx xxx. Txx xxx-xxxxx xxxxxx xxxxxxxxxxx xx xxxxx xxx. Axx xxxxxxxx xxxx xxxxxxxxxxx xxxx xx xxxxxxxx xx xxxx xxx. - Txx xxxx xxxxxx xxxxxxx xxx xxxxx xxx xxxx xxxxxxx xxxx xxxxx xx xxx xxxxxx xxxxxx’x xxxxxx xxx, xxxxx xxxx xxxxxxx xxxxx xxxxxxxxx xxxxxxx. Txx xxxxx-xxx-xxxx-xxxx xxxxxx xxxxx xxx xxxx xxxx xxxxxxx xxx xxxx xxxxxx xxxxxxxx xx xxx xxxxxx’x xxxxxx xxx xxxx xxx xxxxx xxxxxxxx xxx xxxxx xxxxxxxxx (xxx xxx xxxx xxxxxxxxx xxxxxxxx xxxxxxxx xx xxx xxxxx), xxxxx xxx xxxxx xxx xxxxx xxxx xx xxxx xxxxxxx xxx xxxx xx xxx xxxxxxx xxxxx xxx xxxx xx xxx xxx xxxxxxxxxxx. - Txx xxxxx-xxxx-xxxxxx xxxxxx xx xxxxxxxxx xxxx xx xxx xxxxxx xxx LOAD DATA INFILE xxxxxxxxx xx xx xxxxxxxx xx xxx xxxxxx. Txxx SQL xxxxxxxxx xx xxxx xx xxxxxx xxxx xx xxxx xxxx xxx xxxxxxxxx. Txx xxxxx-xxxx-xxxxxx xxxxxx xxxxxxxxx xxx xxxxxxxxx xxxxxxxxx xxx xxxxx xxxxx. Ix xxx xxx’x xxxxxxx xxx xxxxxx, xxx xxxxx xx xxx xxxxxx xxxxxxxx xxxx xx xxxx. Txxx xxxxxxx xx xxxxxxxxxxx xxxxxxx xxx xxxxx xxxx xxx LOAD DATA INFILE xxxxxxxxxx xx xxx xxx xxxxx xxxx xxx xxxxxx SQL_LOAD- xx xxxx xxxxxxxxx. Fxx xxxxxxxx, xxx xxx xxx xxxx xxxxx xxxx xx xx xxxxxx xx x xxxxxxxxx xxxx xx /xxx. - Txx xxxx xxxxxx xxxxxxxx xxx xxxxx xxxx xxxxxxxxxxx xxxxx xxx xxx xxxxx. Txx xxxxx xxx xxxxxxx xx xxxxxxx, xxxxxxxxxxxx, xxx x xxxxxx xx xxxxxxxx xxxxx. - Tx xxx xxxxxxxxx xx xxx xxxxx xxxxxxx xx xxx xxxxxxxxxx xxxx xxx xxxxxx (x.x., xxx xxxxxx’x xxxx xxxxxxx), xx xx xxxxxxxxxxx xxxx xxx xxx xxx CHANGE MASTER TO xxxxxxxxx xx xxx xxx xxxxxx xx xxx xxxxx. Yxx xxxxx xxxxxxx xxx xxxxxx xx xxx xxxxxxxxxxxxx xxxx. Hxxxxxx, xxx xxxxx xxxx xxxx xxx xxxx xxxx xxx xxxxx xxxx xxx xxxxx xx xxx xxxxx xxx xxxxxxxxxxx. Bxxxxxx xxx xxxxxx xxx xxxxxx xx xxx xxxxxx.xxxx xxxx, MxSQL xxxx xxxxxx xx xxxx xxxx xxxxxx xxxxxxxxxxx xxxxx-xxx xxx xxxxxxx xxxxx xxxxxxx xx xxx xxxx MxSQL xxxxxxxxxxxxx xxxx. Txx xxxx xxxx xx xxxxxxx xxx xxxxxx.xxxx xxxx xxxxxxxx xx xxxx xxx xxxx xx xx xxxxxxxxxx xxxxxxx x CHANGE MASTER TO xxxxxxxxx. Yxx xxxxx xxxx xxx xxxxxx.xxxx xxxx xxx xxxxx xxxxxxxxxxx xxxxxxxxxxx xxxxx xxxxxxxx, xxx xxx xxxxx xxxxx xxxx xxxxxxxx xx xxxxx xx. Ix’x xxxx xx xxx xxx CHANGE MASTER TO xxxxxxxxx xx xxxx xxxxxxx. Ax xxxxxxx -xxxxxxx: - CHANGE MASTER TO MASTER_HOST = 'xxxxxx_xxxx'; -CHANGE MASTER TO MASTER_PORT = dddd; -CHANGE MASTER TO MASTER_USER = 'xxxxxxxxx'; -CHANGE MASTER TO MASTER_PASSWORD = 'xx_xxx'; - Txx xxx xx SQL xxxxxxxxxx xxxxx xxxxxxx xxxxxxxxxxx xxxxx xxx xxxxxx xxxxxx. Txx xxxxx xxxxx xxx xxxx xxxx (xx xxx IP xxxxxxx) xx xxx xxxxxx. Txx xxxx xxx xxxxxxxx xxx xxxx xxx xxx xxxxxxxxxx. Pxxx dddd xx xxx xxxxxxx xxxx xxx MxSQL, xxx xxxxxxx xxxxx xx xxxx xxx xxxxxxxxxxx xx xxxxxxxx xxxxxxxxxxxxxx. Txx xxxx xxx xxxxx xxx xxx xxxx xxxx xxx xxxxxxxx xxx xxxxxxx xxxx xxx xxxxxx xxxxxx. Axxxx xxx xxx xxxxx SQL xxxxxxxxxx, xxxxx xxxxxx xxx xxxxxx xx xxx xxxxxx.xxxx xxxx xxxxxxxxx xxxxxxx xxx xxx xxxxxxx’x xxxx xx xxxxx xxx xxxxxxxxxx xxxx xxxxxxxxxx xxxxx xxx. - Ax xxxx xxxxx, xxx xxxxxxx xxxxxx xx xxxxxxxxxx xxxxxxxx. Nxxx, xxx xxxx xxxx xx xxx xxx xxxxx’x xxxx xxxxxxx xx xxxxxx x xxxxxx xx xxx xxxxxx xxxxxx xxx xxxxxxx xx xxxxxxxx xx xxx xxxxx. Txxx xx xxxxxxxxx xx xxx xxxxxxxxx xxxxxxx. Ix xxx xxxxxx xxx xxxxx xxx xxx xxxxxxx xxx xxx xxxxxx xxx xx xxxx xxx, xxx xxx xxxx xxx xxxx xxxxxxx xxx xxxxxxx xx xxxxxxxx xxxxxxxxxxx. - - - Cxxxxxx Dxxxxxxxx xxx Sxxxxxxx Rxxxxxxxxxx - Ix xxx’xx xxxxxxx xx xxxxxxxxxxx xxxx xx xxxxxxxx xxxxxx xxxx xxxxxxx xxxxxxxx xxxx, xxx xxxx xxxx xx xxxx xx xxxxxxx xxxxxx xx xxx xxxxxxxxx xxx xxxx xxx xxxxxx xx xxx xxxxx xxxxxx. I’xx xxxx xxx xxxxxxxxxxx xxxxxx xxxxx, xxxxxxxx xx xxxx xxxxxxxxxxxx xxx xxxxx xxxxxxxxxxx. - Tx xxx x xxxxxxxx xx xxx xxxxxxxx xx x xxxxxxxxxx xxxxx, xxx xxxx xx xxxx xxxx xxx xxxxxx xxxxx xxx xxxx x xxxx xx xxx xxxx, xx xx xxxxx xxxxxxx xxxxx xxxx xxxxxxxx xxxx. Cxxxxxxxxxx xxxx xxxx xxx xxx xx xxxxxxxxxxx xxx xxx xxxxx xxxx xx xxxx xxxx xxxx xxxxxx xxxxxx xxx xxxxxxx xxxxx, xxxxxxx xx xxxxxxxxxx xxxx xx’x xxxxx xxxxxxxxxxxxxxx xxx xxxxx xxxx xxx xxxx xx xxx x xxxxx, xxxxxxxxxx xxxxxx. Txx xxxxxxxxx xxxxxxxx xxxx xxxxxxx xxx xx xxxx xxx xxxxxx. Nxxx xxxx xxx xxx xxxxx xxxxx xx xxxx xxxxxxx xx xxxx xx xxxx xxxx xx xxxx. Ix xxxx xxxx xxxxxxx xxxxxx xxxxxxxxxxx xxxxxx, MxSQL xxx xxxxxx xxxxxxxxx xxx xxxxxxxxxxx xxxxx xxxxxxx xxxx xxx xxxxx. - - Uxxxx xxxxxxxxx - Txxx xxxxxxx, xxxxxxxxx xx , xxxxxxx x xxxx xx SQL xxxxxxxxxx xxxx xxx xxxxx xx xxxxxxxx xx xxxxxxxx xxxxxxxxx xxx xxxxx xxxxxxxx. Fxx xxx xxxxxxxx xx xxxxxxx xx xxxxxxxxxxx, xxx xxx xxxxxxxxx xxxxxxx xxxxx xxxxxxx xxx xxxxxxx xxxx xxx xxxxxxx xxxx xx xxx xxxxxx xxxxxx: - xxxxxxxxx --xxxx=xxxx --xxxxxxxx=xx_xxx \ - --xxxxxxxx-xxxxxx --xxx-xxxxxxxxx \ - --xxxxxx-xxxxx=xxxxx.xxxxx --xxxxxx-xxxx > /xxx/xxxxxx.xxx - - Txx xxxxxx xx x xxxx xxxx (xxxxxx.xxx) xxxxxxxxxx SQL xxxxxxxxxx xx xxxxxx xxx xx xxx xxxxxx’x xxxxxxxxx xxx xxxxxx xxx xxxxxx xxxxx xxxx. Hxxx xx xx xxxxxxxxxxx xx xxxx xx xxx xxxxxxx xxxxxxx xxxxx: - - - - Txx --xxxxxxxx-xxxxxx xxxxxx xxxxxxx xxxxxxxx-xxx INSERT xxxxxxxxxx xxx xxxxxxx xxxxx xxx xxxxxxxxx xxxx xxxx xxxxxxx. Ix xxxx xxxxxx xxx xxxxxx xx xxx xxxxxx. - - - -Txx --xxxxxx-xxxxx xxxxxx xx xxxx xxxx xx xxxx xxx xxxx xxxxx xxx xxxxxxxxx xxx’x xx xxxxxx. Txxx xx x xxxx xxxxxxxx xxxxxxxxxx xx xxx xxxxx xxxx xxxx xxxxxxxxx xxxxx, xxx xxxxxxxxxx xx xx xxxx xxxx xx xxxx xxx xxxxxxx xx xxx xxxxxx. Uxxxxxxxxxxxx, xxxxx xx xx xxxx xxx xx xxxxxxx xxx xxxxxx xxxxx xxxxxxxx xxxxxxxxxx xxxx xxxxxxxxxxx. Yxx xxxxx xxxx xxxx xxxxx xx xxxx xxxxxxxx xx xx xxxxxxxx, xxx xxxx xxxx xx xx xxxxxx xxxxxxxxxx xxx xxxx xxxxxxx xxxxxxxxxx. Txx xxxx xxxxx xxxx xxxxxxxx xxxxxxxxx xx xxx xxxxx xxxxx, xx xx xxx xx xxx xxxx xxx xxxx xxxxxxx. Hxxxxxx, xx xxxxxxx xx xxxxxxx xxx xxx xxxxxxxx xx x xxxxxxxx, xxxxx, xx xxxxx xxxxx, xxx xxxxxxxxx xxxx xx xxxxxxx xxxx xxxx xxxxxxxxxxx. - - - -Txx --xxxxxx-xxxx xxxxxx xxxxx xxx xx xxx xxxxxx xxxxxx xxx xxxx xx xxxxxxx xxxx xxxx xxxxx xxxxxxx, xxx xxxxxx xxxxx xx xxxxxxxx xxxxxxx xxx xxxxxx. Txxx xxxxxx xxxx xxxx x xxx xxxxx xxxx xxx xxxxxxxxx xx xxx xxx xx xxx xxxx xxxx: - -- -- -Pxxxxxxx xx xxxxx xxxxxxxxxxx xxxx -- - -CHANGE MASTER TO MASTER_LOG_FILE='xxx.dddddd'; -CHANGE MASTER TO MASTER_LOG_POS=ddd; - Wxxx xxx xxxx xxxx xx xxxxxxxx xx xxx xxxxx xxxxxx, xxxxx xxxxx xxxx xxxxxx xxx xxxx xx xxx xxxxxx’x xxxxxx xxx xxxx xxx xxx xxxxxxxx xx xxx xxx xx xxx xxxx xx xxx xxxxxx, xxxxx xxx xxxxxx xxxx xxxxxx. Wxxx xxxxxxxxxxx xx xxxxxxx, xxxxx xxxxx xxxx xxxxxxx xxxx xxxxxxxxxxx xx xxx xxxxxx xx xx xxxx xxxx xxx xxxxx xx xxx xxxxxx’x xxxxxx xxx xx xxxxx xxxxxxx xxxxxxx xx xxx xxxxx. Txxx xx xxxxx xx xxxxxx xxxx xxx xxxx xxxx xxxxxxx xxxxx xxx xxx xx xxx xxxxx xxxxxx xxx’x xxxxxx. - - - Tx xxxxxxx xxx xxxx xxxx xxx xxxxxxx xxx xx xxx xxxxxxxxx xxx xxxx xx xxx xxxxx xxxxxx, xxxx xxx xxxx xxxx xxxxxxxxx xx xxxxxxxxx xx xxx xxxxx xxxxxx. Txx MxSQL xxxxxx xxxxx xx xx xxxxxxx xx xxx xxxxx, xxx xxx xxxxxxxxxxx. Rxx xxx xxxxx xxxxxx xxxxxxx x xxxxxxx xxxx xx xxx xxxxxxxxx xx xxx xxxxx: - xxxxx --xxxx=xxxx --xxxxxxxx=xx_xxx < /xxx/xxxxxx.xxx - Txxx xxxx xxxxxxx xxx xx xxx SQL xxxxxxxxxx xx xxx xxxx xxxx, xxxxxxxx x xxxx xx xxx xxxxxx’x xxxxxxxxx xxx xxxx xx xxx xxxxx. - - - Axxxxxxxxxx Mxxxxxx xx Mxxx Cxxxxx - -Ix xxx xxxxxx MxSQL xxxxxxxxxxxxx, xxx xxxxx xxx xxx xxxx xxx xxx LOAD DATA FROM MASTER xx xxxxx xxx xxxxxx x xxxx, xxx xx xxxxxxxx xx xxx xxxx xxxxxxxx. Fxxxx, xx xxxxx xxxx xx MxISAM xxxxxx. Bxxxxxx xx xxxxxxxx x xxxxxx xxxx xxxx xx xxx xxxxxx xxxxx xx xx xxxxxx x xxxxxx, xx xxxxxxxx xxx xxxxxx xxxx xxxxxxx xxxxx xxx xxxx xxxx. Fxxxxxx, xx xxx xx xxxx xxxx xxx xxxxxxx xx xxxx xxxxxxx xxxxxxxxxxxx (xx xx xxx xxxx xxx xxxxx xxxxxxx xxxx). Bxxxxxxxx, xxx xxxxxxxxx xx x xxxx xxxx, xxx xxx xxxx xxxxxxxxx xx xxxxxxxxxx xx xxxx xxxxxxxxxx. Axxxxxxxxxxx, xx xxx xxxx xxxxxxxxxx xx MxSQL AB xxx xxxx xx xxxxxxx xxxx xxxxxx xxxxxxxx. - -A xxxxxx xxxxxxxxxxx xx xx xxxx xxxx xx xxx xxxxxxxxx xxxxxx xxxxx xxx xxxx xxx xxx xxxxx xxxxxxxxxx xxxx xxxxxxx xxx xxxx. Tx xxxxx xxx xxxxxx xx xxx xxxxxxx xxxxxxx xx xxxx xxxxxx xxx xxxx x xxxx xx xxx MxSQL xxxx xxxxxxxxx, xxx xxxxx xxx x xxxx-xxxx xxxx xx xxx xxxxxx xx xxxxxxxx xxx xxxxxxxxx xxxxxxx: - - FLUSH TABLES WITH READ LOCK; - Txxx xxxxxxxxx xxxx xxxxxx xxx xxxxxxxxxxxx xxxx xxx xx xxxxxxxx xx xxx xxxxxx, xx xx xxxxxxx xxx xxxx xxxx xxx xxxx xx xxxxxxxx xx xxxxx xxxxxx xxx xxxxxxxx. Txxx, xxxxxxx xxxxxxxxxxxxx xxx xxxxxx xxxx xxxxxx xxx xxxxxxxxx, xxxx xxx xxxx xxxxxxxxx xx xx xxxxxxxxxxx xxxxxxxxx. Oxxx xxxx xx xxxxxxxxx, xxxxx xx UNLOCK TABLES xxxxxxxxx xx xxx xxxxxx xxxx xxxxxxx xxx xxxxxx xxx xxxxxx. Axxxx xxxx, xxx xxxxxx xxxxxxxx xx xxxxxxx xx xxxxx, xxxxx xxx xxxx xxxx xxxxxxxx xxx xxxx xx xxx xxxx xxxxxxxxx xx xxx xxxxx xxxxxx, xxxxxxx xx xxxx xxx xxxxx xxxxxx’x xxxx xxxxxxxxx. Bx xxxx xx xxxxxx xxx xxxxxxxxx xx xxx xx xxx xxxxx xxx xxxxxxxxxxx xx xxxxx. Ix Lxxxx, xxxx xx xxxx xx xxxxxxxx xxx xxxxxxxxx xxxxxxxxx xx xxxx: - xxxxx -R xxxxx:xxxxx /xxxx_xx_xxxx - Yxx xxxx xxx xxxx x xxxxxxxxxxxx xxxx xxxx xxxxxx xx xxxxxxx xxx xxxx xxxxxxxxx xx xxx xxxx IxxxDB xxxxxx xx xxxx xxxxxxxxx, xxxxxxx xxxx xxx xxx xxxxxx xx xxx xxxx xxxxxxxxx. Axxx, xx xxx xxx’x xxxx xxxxxxxxxxxxx xxxxxx xx xxx xxxxxxxxxx xx xx xxxx xx xxxxxxxx xxxx xxx xxxx xxxxxxxxx, xxx xxx’x xx xxxx xx xxx xxxx xxxxxx. Txxx xx xxx xxxxxxxxx xxxxxxx xxx xxxxxxxxxxx xxxxxx xxx xxxxxxx xxx xxxxxx’x xxxx. - - - - Sxxxxxxx Rxxxxxxxxxx - Axxxx xxx xxxxxx xxx xxxxxxxxxxx xxxx xxxxxxxx, xxxxxxxxx xxx xxxxxxx xxxxxxxx, xxx xxxx xxx xxxxxx-xx xxxxxxxxx xxxx xxx xxxxx xxxxxx, xxx’xx xxxxx xx xxxxx xxxxxxxxxxx. Exxxxxx xxx xxxxxxxxx SQL xxxxxxxxx xxxxx xxxxxx xx xx xxxx xx x xxxx xxxx SUPER xxxxxxxxxx xx xxx xxxxx: - START SLAVE; - Axxxx xxxx xxxxxxxxx xx xxx, xxx xxxxx xxxxxx xxxxxxx xx xxx xxxxxx xxx xxx xxx xxxxxxx xx xxxxxx xxxxx xxx xxxxxx. Fxxx xxxxx xx xxxxxx xxxx xxxxxxx xx xxxxxxxxxxxx xxxxxxxxxxx xxxx xxx xxxxxx xx xxxxxxxx xxxxxx xx xxx xxxxxxx “Rxxxxxxxxxx Pxxxxxx.” - Ix xxxxxxxxxx xx xxxxxxxxxx xxxxxxxxx xx xxx xxxxx, xx xxxx xxxx xxxxxx xxxxx xxxxxxx x xxxxxxx xxx xxxxxx xx xxxxxxx xxxx START SLAVE xx xxxxxxxx. Hxxxxxx, xxxx xxx xxxxx xxxxx xx xxxxxxx xx xxx xxxxxx, xxx xxxxxxxxxx xxx xxxx. Ox xxxx xxx SQL xxxxxx xxxxxx xxxxxxxxxx xxxxxxx xxxxxxxx xxxx xxx xxxxxx, xx xxx xxxx. Fxx xxxxxxxx xxxxxx, xx x xxxxx xxxxx xxxxx xx xxxxx xx xxxxxxx, xxx xxxxxx xxxx xxxxxxx xxx xxxxx xxxx xxx xx xxxxxxxx xx xxx xxxxxxx, xxx xxxx xx xx xxxxxxxx xx xxx xxxxxxxxxx xxxxxxxxxxx xx xxx xxxxx xxxxxx. Fxx xxxx xxxxxxxxxxx, xxx xxxx xxxx xx xxxx xxx xxxxx’x xxxxx xxxx. Tx xxxxxxx x xxxxx xx xxxxxxx, xxxxxx, xxx xxx xxxxxxx xxx SHOW SLAVE STATUS xxxxxxxxx xxx xxxxx xxx xxxxxxx xx xxx xxxx xxxxx xxx xxxxx xx xx, xx xxx. Lxxxx xx xxxx xxxxxxx, xxx xxxxxxx xxxxx xxxxxx xxx xxxxxxxxx. - Bx xxxxxxx, xxx START SLAVE xxxxxxxxx xxxxxx xxxx xxx I/O xxxxxx xxx xxx xxxxxxxxx xxxxxx xxxxxxxxx xx xxx xxxxxxx “Rxxxxxxxxxx Pxxxxxx.” Yxx xxx xxxxxxx xxxxx xxxxx xxxxxx xx xxxxx, xxxxxxx, xx xxx xxx’x xxxx xx xxxxx xxxx. Yxx xxx xxxx xxxxxxx x xxxxxxxxxx xxxxxx xxxxxx xxx xxxx xxx xxx xxxxxxxx xx xxx xxx xx xxxxx xx xxxx xxxxxxxxxxx. Yxx xxxxxxx’x xxxx xx xxxx xxxxx xxxxxxxxxxxx xxxx xxxxx xxxxxxxx x xxxxx. Hxxxxxx, xxxxx xxxxx xxxxxxx xxx START SLAVE xxx xxxxxx xxxx xxxxxxxxx x xxxxxxx xxxx x xxxxx xxx, xxx xxxxxxxxxx xxxx xxxxxxxxxx xx xxxxxxx xxxx xx x xxxxxxxxxx xxxxxxxx xx xxx xxx xxxxxxx x xxxx xxxxxxx xx xxxxxxxxx xxxxxxxxx xxx xxx xxxx xx xxxxxx xx xx xxxxxxx xxxxx xx xxx xxxxxxxx. - Ax xxxxxxx xx xxxxx xxxxxxxxxxxxx xxxxxxx: - START SLAVE SQL_THREAD -UNTIL MASTER_LOG_FILE = 'xxxxx.ddddddd', -MASTER_LOG_POS = ddd; - Yxx xxx xxxx xxxxxxx xxx xxxxxxxxxx xx xxx xxxxx xxx xxxx xxxx xxx xxxx xxxxxx xxxxx, xxx xxxxx xxx RELAY_LOG_FILE xxx xxx RELAY_LOG_POS xxxxxxxxxx. Yxx xxxxxx xxxxxxx x xxxxxx xxx xxxxxxx xxx x xxxxx xxx xxxxxxxx xx xxx xxxx xxxxxxxxx, xxxxxx. - Txx UNTIL xxxxxx xxxx xx xxxxxxx xx xxx SQL xxxxxx xx xxxxxxx xxxxxxx. Ix xxxx xxxx xx xxxxxxx xx x xxxxx xxxxxxx xxxxx xxxxxxxxxxx xx xxxx xxxx xxx xxxxxxxxx, xx xx xxx STOP SLAVE xxxxxxxxx xx xxxxxxxx xxxxxxxx xx x START SLAVE xxxxxxxxx xxxxxxx xxx UNTIL xxxxxx. Txxxxxxxx, xx xxx xxxxx xxxxxxx xxx xxxx-xxxxxxx xxxxxxx, xxxxxxx xxx xxxxx xxxxxx xxxx xxx --xxxx-xxxxx-xxxxx xxxxxx xx xxx xxxxxxxxxxxxx xxxx. - - - Bxxxxxx xxxx Rxxxxxxxxxx - Wxxx xxxxxxxxxxx xxxxxxx, xx’x xx xxxx xxxx xx xxxx x xxxxxx xx xxx xxxx. Yxx xxxx xxxx xx xxxxxxxxxxx xxxx xxx xxxxx xxxxxx xxxx xxxxxxxxxxx xx xxxxxxxx xxx xxxxxxxxx SQL xxxxxxxxx xxxxx xxxxxx xxxx xxx xxxxx xxxxxx xx xxxx xx x xxxx xxxx SUPER xxxxxxxxxx: - STOP SLAVE; - Txx xxxxx xxxxxx xxxxx xxx xxxxxxxx xxxxx xx xxxx xxx xx xxx xxxxxx xxx xx xxx xxxxxx xxxxxx xxx xxxx xxxxxx xxxx xxxxxxxxxxx xx xxx xxxxxx.xxxx xxxx. Sx xxx xxx xxxx xxxx xxxx xxxxxx x xxxxxx xx xxx xxxxxxxxxx xxxxxxxxx xx xxx xxxxx xxxxxx. Yxx xxx xxx xxx xxxxxx xxxxxxx xx xxxxxx xxx xxxxxx. Txx xxxx xxxxxxxxxxxx xx xx xxx xxxxx xxxx xxxxxxx xx xxxxxxxx xxxx xxxxxxxx xxx xxxx xxxxxxxxx, xx xxxxx xxxx STOP SLAVE xxxxxx xxx xxxxxx xxxx xx xxx xxxxxx xx xx xxxxx xxxxxx. - Ix xxx xxxxx xx xxxx xxxx xxx xxxxxxx xxx xxx xx xxxxx xxxxxxxxx xxx xxxx, xxx xxxxx xxxxxx xxxx xxx xxxx xxxxxxxxx. I xxxxxx xx xxx xxxxxxxxx xxxxxxx xx’x xxxxxx xxxxxxxxxxxxxxx xxx xxxxx xxxx xxx xxxxx xxxxx. Tx xxxx x xxxxxx xxxx xxxxxxxxx, xxxxx xxxxxxxxx xxxx xxx xxxxxxxxx: - xxxxxxxxx --xxxx=xxxx --xxxxxxxx=xx_xxx --xxxx-xxx-xxxxxx \ - --xxx-xxxxxxxxx > /xxxxxxx/xxxxx/xxxxxx.xxx - Wxxx xxx xxxxxx xx xxxxxxxx, xxxxx xxx xxxxxxxxx SQL xxxxxxxxx xx xxxx xx xxx xxxxx xxxxxx xx xxxxxxx xxxxxxxxxxx: - START SLAVE; - Axxxx xxxxxxxx xxxx xxxxxxxxx, xxxxx xxxxxx xx x xxxxxx xx xxxxxxxx xx xxx xxxxx xx xx xxxxxxxx xxx SQL xxxxxxxxxx xxxx xx xxxxxxxx xxxxx xx xxx xxxx. Ix x xxxx xxxxx xxxxxx xx xxxx, xxxxxx, xx xxxxxx xx xxxxxxx. - - - SQL Sxxxxxxxxx xxx Fxxxxxxxx xx Axxxxxxxxxxx Oxxxx - Sxxxxxx SQL xxxxxxxxxx xxxxx xxxxxxxx xx xxxxxxxxxxx. Oxx xxxxxxxx, MASTER_POS_WAIT( ), xxxx xxxxxxx xx xxxxxxxxxxx, xxx xx xxxxxx xxxx xxxx xxx xxxxxxxxxx. - - - CHANGE MASTER TO - - - CHANGE MASTER TO - - - - CHANGE MASTER TO -[MASTER_HOST = 'xxxx' | -MASTER_USER = 'xxxx' | -MASTER_PASSWORD = 'xxxxxxxx' | -MASTER_PORT = xxxx | -MASTER_CONNECT_RETRY = xxxxx | -MASTER_LOG_FILE = 'xxxxxxxx' | -MASTER_LOG_POS = xxxxxxxx | -RELAY_LOG_FILE = 'xxxxxxxx' | -RELAY_LOG_POS = xxxxxxxx | -MASTER_SSL = {d|d} | -MASTER_SSL_CA = 'xxxxxxxx' | -MASTER_SSL_CAPATH = 'xxxx' | -MASTER_SSL_CERT = 'xxxxxxxx' | -MASTER_SSL_KEY = 'xxxxxxxx' | -MASTER_SSL_CIPHER = 'xxxx' | -MASTER_SSL_VERIFY_SERVER_CERT = {d|d}], [,...] - - - - <para><indexterm id="mysqlian-CHP-08-ITERM-2307" significance="normal"><primary>CHANGE MASTER TO xxxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-08-ITERM-2308" significance="normal"><primary>xxxxxxxxx</primary><secondary>CHANGE MASTER TO xxxxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-08-ITERM-2309" significance="normal"><primary>START SLAVE xxxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-08-ITERM-2310" significance="normal"><primary>STOP SLAVE xxxxxxxxx</primary></indexterm> -Txxx xxxxxxxxx xxxxxxx xxx xxxxxxxx xx x xxxxx xxxxxx xxxxxxx xx xxx xxxxxx xxxxxx xxx xxxxxxxxxxx. Sxxx xx xxx xxxxxxxxx xxxxxx xx xxxxxxxxxx xx xxx xxxxxx xxxxxx xxx xxxx xxxxxx xx xxxxxx xxx xxxxx xxx xxx xxxxxxx xxxxxxxx xx xxx xxx xxxxx. Txxx xxxxxxxxx xx xxx xxxx xxx xxxxx.</para> - <para>Ix xxx xxxxx xx xxxxxxxx xx xxxxxxxxxxx, xx xxx xx xxxxxxxxx xx xxx xxx <literal moreinfo="none">STOP SLAVE</literal> xxxxxxxxx xxxxxx xxxxx xxxx xxxxxxxxx xxx xxx <literal moreinfo="none">START SLAVE</literal> xxxxxxxxx xxxxxxxxx. Txxxx xxxxxxx xxx xx xxx xxxx xxx xxxxxx’x xxxxxxx xxxx, xxx xx’x xxxx xxxxxx xx xxx xxxx SQL xxxxxxxxx xx xxx xxxxxxxxxxx xxxxxxx. <literal moreinfo="none">MASTER_SSL_VERIFY_SERVER_CERT</literal> xx xxxxxxxxx xx xx xxxxxxx d.d.dd xx MxSQL xxx xx xxxxxxxxxx xx xxx <literal moreinfo="none">--xxx-xxxxxx-xxxxxx-xxxx</literal> xxxxxx. Sxx <xref linkend="mysqlian-CHP-15"/> xxx xxxx xxxxxxxxxxx xx xxxx xxxxxx xxxxxx.</para> - <para>Mxxxxxxx xxxxxx xxx xxxxx xxxxx xxx xx xxxxx xx xxx <literal moreinfo="none">CHANGE MASTER TO</literal> xxxxxxxxx, xx xxxx xx xxx xxxxx xxx xxxxxxxxx xx xxxxxx. Fxx xxxxxxx, xxx xxxxxxxxx SQL xxxxxxxxx xxxx xxxxxxx xxxxxxxxxx xxx xxxx xxxxx:</para> - <programlisting format="linespecific">CHANGE MASTER TO - MASTER_HOST='xxxxx.xxxxxxx.xxx', - MASTER_PORT=dddd, - MASTER_USER='xxxxx_xxxxxx', - MASTER_PASSWORD='xxxxxxxx', - MASTER_CONNECT_RETRY=d;</programlisting> - <para><indexterm id="mysqlian-CHP-08-ITERM-2311" significance="normal"><primary>SHOW SLAVE STATUS xxxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-08-ITERM-2312" significance="normal"><primary>SHOW MASTER STATUS xxxxxxxxx</primary></indexterm> -Txx xxxxxxx xxxxxxx xx xxx xxxxx xxxx xxx xxxxxx xxx xxxxx xxx xxxxxxx xxx xxxxx xxxx xxx xxxxxxx xxxxxxxx xx xxx xxxxxx xxx xxxxx. Txxx xxx xx xxxxxxxxx xxxx xxxxx xxxxxxx xx x xxx xxxxx xx xxxx x xxxxx xxx xxxx xxxxxxxx xxx x xxxxx. Uxx xxx <literal moreinfo="none">SHOW MASTER STATUS</literal> xxxxxxxxx xx xxxxxxxxx xxx xxxxxxx xxxxxxxx xx xxx xxxxxx xxx xxxxx, xxx xxx <literal moreinfo="none">SHOW SLAVE STATUS</literal> xxxxxxxxx xx xxxxxxx x xxxxx’x xxxxxxxx xxx xxx xxxxxxx xxxxx. Hxxx xx xx xxxxxxx xxxxx xxx xxxxxxx xxxxxxx xx xxx xxxxx:</para> - <programlisting format="linespecific">CHANGE MASTER TO - MASTER_LOG_FILE= 'xxx-xxx.dddddd', - MASTER_LOG_POS = <replaceable>dd,</replaceable> - RELAY_LOG_FILE = 'xxx-xxxxx.dddddd', - RELAY_LOG_POS =<replaceable> ddd;</replaceable></programlisting> - <para><indexterm id="mysqlian-CHP-08-ITERM-2313" significance="normal"><primary>MASTER_SSL_CIPHER xxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-08-ITERM-2314" significance="normal"><primary>MASTER_SSL_CAPATH xxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-08-ITERM-2315" significance="normal"><primary>CHANGE MASTER TO xxxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-08-ITERM-2316" significance="normal"><primary>SSL (xxxxxx xxxxxx xxxxx) xxxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-08-ITERM-2317" significance="normal"><primary>xxxxxxxxx</primary><secondary>SSL</secondary></indexterm><indexterm id="mysqlian-CHP-08-ITERM-2318" significance="normal"><primary>xxxxxx xxxxxx xxxxx (SSL) xxxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-08-ITERM-2319" significance="normal"><primary>MASTER_SSL xxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-08-ITERM-2320" significance="normal"><primary>MASTER_SSL_CA xxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-08-ITERM-2321" significance="normal"><primary>MASTER_SSL_CERT xxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-08-ITERM-2322" significance="normal"><primary>MASTER_SSL_KEY xxxxxxxx</primary></indexterm> -Txx xxxxxxxxx xxxxxxx xxx xxxxxxx xxxxxx xxxxxx xxxxx (SSL) xxxxxxxxx. Txxxx xxxxxx xxx xxxxx xx xxx <emphasis>xxxxxx.xxxx</emphasis> xxxx. Tx xxx xxx xxxxxxx xxxxxx xxx xxxxx xxxxxxx, xxx xxx <literal moreinfo="none">SHOW SLAVE STATUS</literal> xxxxxxxxx.</para> - <para> Rxxxx xxx xxxxxxx xxx xxxxxxxxx xx xx Vxxxxxx d.d.d xx MxSQL. Txx <literal moreinfo="none">MASTER_SSL</literal> xxxxxxxx xx xxx xx d xx xxx xxxxxx xxxx xxx xxxxx SSL xxxxxxxxxxx, xxx d xx xx xxxx. Txx <literal moreinfo="none">MASTER_SSL_CA</literal> xxxxxxxx xxxxx xxx xxxx xx xxx xxxx xxxx xxxxxxxx x xxxx xx xxxxxxx CAx. <literal moreinfo="none">MASTER_SSL_CAPATH</literal> xxxxxxxx xxx xxxxxxxx xxxx xx xxxx xxxx. Txx <literal moreinfo="none">MASTER_SSL_CERT</literal> xxxxxxxx xxxxxxxxx xxx xxxx xx xxx SSL xxxxxxxxxxx xxxx xxx xxxxxx xxxxxxxxxxx, xxx <literal moreinfo="none">MASTER_SSL_KEY</literal> xxxxxxxxx xxx SSL xxx xxxx xxxx xx xxxxxxxxx xxxxxx xxxxxxxxxxx. Fxxxxxx, <literal moreinfo="none">MASTER_SSL_CIPHER</literal> xxxxxxxx x xxxx xx xxxxxxxxxx xxxxxx xxxxxxx xxx xxxxxxxxxx. -</para> - </refsect1> - </refentry> - <refentry id="ch08-00002"> - <refmeta> - <refentrytitle>LOAD DATA FROM MASTER</refentrytitle> - </refmeta> - <refnamediv> - <refname>LOAD DATA FROM MASTER</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">LOAD DATA FROM MASTER</synopsis> - </refsynopsisdiv> - <refsect1 id="ch08-02-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-08-ITERM-2699" significance="normal"><primary>LOAD DATA FROM MASTER xxxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-08-ITERM-2700" significance="normal"><primary>LOAD DATA FROM MASTER xxxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-08-ITERM-2701" significance="normal"><primary>MASTER_LOG_POS xxxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-08-ITERM-2702" significance="normal"><primary>MASTER_LOG_FILE xxxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-08-ITERM-2703" significance="normal"><primary>xxxxxxxxx</primary><secondary>xxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-08-ITERM-2704" significance="normal"><primary>SUPER xxxxxxxxx (GRANT/REVOKE)</primary></indexterm><indexterm id="mysqlian-CHP-08-ITERM-2705" significance="normal"><primary>SELECT xxxxxxxxx (GRANT/REVOKE)</primary><secondary>LOAD DATA FROM MASTER xxxxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-08-ITERM-2706" significance="normal"><primary>RELOAD xxxxxxxxx (GRANT/REVOKE)</primary><secondary>LOAD DATA FROM MASTER xxxxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-08-ITERM-2707" significance="normal"><primary>DROP xxxxxxxxx (GRANT/REVOKE)</primary></indexterm><indexterm id="mysqlian-CHP-08-ITERM-2708" significance="normal"><primary>CREATE xxxxxxxxx (GRANT/REVOKE)</primary></indexterm> -Txxx xxxxxxxxx xxx xxxx xxxxxxxxxx xxx xxxx xx xxxxxxx xxxx xxxxxx xxxxxxxx xx MxSQL. Ix xxxxx xxxxxx xxxx xxxx. Ix xxx xxxxx xx xxxx x xxxx xx xxx xxx xxxxxxxxx xx xxx xxxxxx xxxxxx (xxxxxx xxx <emphasis>xxxxx</emphasis> xxxxxxxx) xxx xxxx xxxx xx xxx xxxxx xxxxxxx. Ix xxxx x xxxxxx xxxx xxxx xx xxx xxxxxx xxxxx xx xxxxx x xxxxxxxx xx xxx xxxxxxxxx, xxx xxxxxxxx xxx xxxx xxxxxx xxxxxxx xxxx xx xxx xxxxxx. Txx <literal moreinfo="none">MASTER_LOG_FILE</literal> xxx xxx <literal moreinfo="none">MASTER_LOG_POS</literal> xxxxxxxxx xxxx xx xxxxxxx xx xxxx xxx xxxxx xxxxx xxxxx xx xxxxx xxxxxxx.</para> - <para>Txxx xxxxxxxxx xxxxx xxxx xxxx MxISAM xxxxxx. Txx xxxx xxx xxx xxxxxxxxxx xxxx xxxx <literal moreinfo="none">RELOAD</literal>, <literal moreinfo="none">SELECT</literal>, xxx <literal moreinfo="none">SUPER</literal> xxxxxxxxxx xx xxx xxxxxx xxxxxx. Txx xxxx xxxx xxxx xxxx <literal moreinfo="none">CREATE</literal> xxx <literal moreinfo="none">DROP</literal> xxxxxxxxxx xx xxx xxxxx xxxxxx. -<indexterm id="mysqlian-CHP-08-ITERM-2709" significance="normal"><primary>SET xxxxxxxxx</primary><secondary>xxxxxxxxxx xxxxxxxx xxxxxx</secondary></indexterm> -<indexterm id="mysqlian-CHP-08-ITERM-2710" significance="normal"><primary>LOAD TABLE...FROM MASTER xxxxxxxxx</primary></indexterm> -<indexterm id="mysqlian-CHP-08-ITERM-2711" significance="normal"><primary>xxx_xxxxx_xxxxxxx xxxxxxxx</primary></indexterm> -<indexterm id="mysqlian-CHP-08-ITERM-2712" significance="normal"><primary>xxx_xxxx_xxxxxxx xxxxxxxx</primary></indexterm> -Fxx xxxxx xxxxxxxxx, xxxxxxxx xxx xxxxxx xx xxx <literal moreinfo="none">xxx_xxxx_xxxxxxx</literal> xxx <literal moreinfo="none">xxx_xxxxx_xxxxxxx</literal> xxxxxxxxx xxxx xxx <literal moreinfo="none">SET</literal> xxxxxxxxx. Tx xxxx x xxxxxxxx xxxxx xxxx xxx xxxxxx xxxxxx, xxx xxx <literal moreinfo="none">LOAD TABLE...FROM MASTER</literal> xxxxxxxxx.</para> - <para>Axxxx, xxxx xxxxxxxxx xxxx xxx xxxx xxxx xxxx: xx’x xxx xxxxxxxxxx xxx xxxxxxx xxx xxxxxxxx xxxx xxxxxxxx xxxxxxx xxxx xxxx xxx xxxxxx xx xxx xxxxx. Ixxxxxx, xxx x xxxxxxx xxxx xx <literal moreinfo="none">xxxxxxxxx</literal> xx xxxx xxx xxxx xx xxx xxxxxx xxx xxxx xxxxxxxx xxx xxxxxxxxx xxxx xx xxx xxxxx, xx xxxxxxxxx xx xxxxxx xx xxx xxxxxxxx xxxxxxx xx xxxx xxxxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch08-00003"> - <refmeta> - <refentrytitle>LOAD TABLE...FROM MASTER</refentrytitle> - </refmeta> - <refnamediv> - <refname>LOAD TABLE...FROM MASTER</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">LOAD TABLE <replaceable>xxxxx</replaceable> FROM MASTER</synopsis> - </refsynopsisdiv> - <refsect1 id="ch08-03-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-5-ITERM-2742" significance="normal"><primary>DROP xxxxxxxxx (GRANT/REVOKE)</primary></indexterm><indexterm id="mysqlian-CHP-5-ITERM-2743" significance="normal"><primary>CREATE xxxxxxxxx (GRANT/REVOKE)</primary></indexterm><indexterm id="mysqlian-CHP-5-ITERM-2744" significance="normal"><primary>SELECT xxxxxxxxx (GRANT/REVOKE)</primary><secondary>LOAD TABLE...FROM MASTER xxxxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-5-ITERM-2745" significance="normal"><primary>RELOAD xxxxxxxxx (GRANT/REVOKE)</primary><secondary>LOAD TABLE...FROM MASTER xxxxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-5-ITERM-2746" significance="normal"><primary>LOAD TABLE...FROM MASTER xxxxxxxxx</primary></indexterm> -Txxx xxxxxxxxx xxx xxxx xxxxxxxxxx xxx xxxx xx xxxxxxx xxxx xxxxxx xxxxxxxx xx MxSQL xxxxx xx xxx xxxx xxxxxxxx. Ix xxx xxxxx xx xxxx x MxISAM xxxxx xxxx xxx xxxxxx xxxxxx xx x xxxxx xxxxxx. Txx xxxx xxx xxx xxxxxxxxxx xxxx xxxx <literal moreinfo="none">RELOAD</literal> xxx <literal moreinfo="none">SUPER</literal> xxxxxxxxxx xx xxxx xx <literal moreinfo="none">SELECT</literal> xxxxxxxxxx xxx xxx xxxxx xx xxx xxxxxx xxxxxx. Txx xxxx xxxx xxxx xxxx <literal moreinfo="none">CREATE</literal> xxx <literal moreinfo="none">DROP</literal> xxxxxxxxxx xx xxx xxxxx xxxxxx. -</para> - <para>Ixxxxxx xx xxxxx xxxx xxxxxxxxx, xxx x xxxxxxx xxxx <literal moreinfo="none">xxxxxxxxx</literal> xx xxxx xxx xxxx xxxx xxx xxxxxx. Txxx xxxxxx xx xxxxxxxxx xx xxxxxx xx xxx xxxxxxxx xxxxxxx xx xxxx xxxxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch08-00004"> - <refmeta> - <refentrytitle>MASTER_POS_WAIT( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>MASTER_POS_WAIT( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">MASTER_POS_WAIT(<replaceable>xxx_xxxxxxxx</replaceable>, <replaceable>xxx_xxxxxxxx</replaceable>[, <replaceable>xxxxxxx</replaceable>])</synopsis> - </refsynopsisdiv> - <refsect1 id="ch08-04-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-26-ITERM-3529" significance="normal"><primary>MASTER_POS_WAIT( ) xxxxxxxx</primary></indexterm> -Txxx xxxxxxxx xx xxxxxx xx xxxxxxxxxxx MxSQL xxxxxx xxx xxxxx xxxxxx xxxxxxx. Txx xxxxxxxx xxxxxx xxx xxxxxx xx xxxx xxxxx xxx xxxxx xxxxxx xxx xxxx xxx xxxxxxx xxx xxxxxxx xx xxx xxxxxxxx (xxxxx xx xxx xxxxxx xxxxxxxx) xx xxx xxxxxx xxx (xxxxx xx xxx xxxxx xxxxxxxx). Yxx xxx xxxxxxx x xxxxx xxxxxxxx xx xxx xxx xxxxxx xx xxxxxxx xxx xxxxxx xxxx xxxx. A xxxxx xx d xx x xxxxxxxx xxxxxx xx xxxxx xx xxxxxxxx xxx xxxxxxxx xxx xx xxxx xxx xxx xx xxxx xxxxxx.</para> - <para>Txx xxxxxxxx xxxxxxx xxx xxxxxx xx xxx xxxxxxx xxxx xxxx xxxx xx xxx xxxxx xxxxx xxx xxxxxx xxx xxxxxxx. Ix xxx xx xxx xxxxxxxx, xxx xxxxxx xxxxxxx xxxxx xxxxxxx xxxxxxx. Hxxxxxx, xx xxxxx xx xx xxxxx, NULL xx xxxxxxxx. NULL xx xxxx xxxxxxxx xx xxx xxxxx SQL xxxxxx xx xxx xxxxxxx, xx xxx xxxxx’x xxxxxx xxxxxxx xxx xxx xxx, xx xx xxx xxxxxxxxxx xxxxx xxxx xxxx xxxxxxxx xxx xxx xxxxxxx. Ix xxx xxxx xxx xxxxxxx xxxxxxxxx xxx xxx xxxxxx xx xxxx xx xxxxxxxx, -d xx xxxxxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch08-00005"> - <refmeta> - <refentrytitle>PURGE MASTER LOGS</refentrytitle> - </refmeta> - <refnamediv> - <refname>PURGE MASTER LOGS</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">PURGE {MASTER|BINARY} LOGS {TO '<replaceable>xxx_xxxxxxxx</replaceable>'|BEFORE '<replaceable>xxxx</replaceable>'}</synopsis> - </refsynopsisdiv> - <refsect1 id="ch08-05-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-08-ITERM-2775" significance="normal"><primary>BEFORE xxxxxx (PURGE MASTER LOGS)</primary></indexterm><indexterm id="mysqlian-CHP-08-ITERM-2776" significance="normal"><primary>TO xxxxxxx</primary><secondary>PURGE MASTER LOGS xxxxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-08-ITERM-2777" significance="normal"><primary>xxx xxxxx</primary><secondary>xxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-08-ITERM-2778" significance="normal"><primary>BINARY xxxxxxx (PURGE MASTER LOGS)</primary></indexterm><indexterm id="mysqlian-CHP-08-ITERM-2779" significance="normal"><primary>MASTER xxxx</primary><secondary>PURGE MASTER LOGS xxxxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-08-ITERM-2780" significance="normal"><primary>PURGE MASTER LOGS xxxxxxxxx</primary></indexterm> -Txxx xxxxxxxxx xxxxxxx xxx xxxxxx xxxx xxxx x xxxxxx xxxxxx. Txx xxxxxxxx <literal moreinfo="none">MASTER</literal> xxx <literal moreinfo="none">BINARY</literal> xxx xxxxxxxxxx xxx xxx xx xxxxxxxx xxx xxx xxxxxxxxx. Lxx xxxxx xxx xxxxxxx xxxxxxxxxxxx xxxx xxx xxxxxxxx xxx xxxx xx xxx xxx xxxxx xxxx xxx <literal moreinfo="none">TO</literal> xxxxxx, xx xx xxxxx (xxx xxx xxxxxxxxx) xxx xxxx xxxxx xxxx xxx <literal moreinfo="none">BEFORE</literal> xxxxxx. Hxxx xx xx xxxxxxx xx xxxx xxxxxx:</para> - <programlisting format="linespecific">PURGE MASTER LOGS TO 'xxx-xxx.ddddd'; -PURGE MASTER LOGS BEFORE 'dddd-dd-dd dd:dd:dd';</programlisting> - <para><indexterm id="mysqlian-CHP-08-ITERM-2781" significance="normal"><primary>SHOW MASTER LOGS xxxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-08-ITERM-2782" significance="normal"><primary>SHOW SLAVE LOGS xxxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-08-ITERM-2783" significance="normal"><primary>xxx xxxxx</primary><secondary>xxxxxxxxxx</secondary></indexterm> -Bxxxxx xxxxxxx xxxx xxxxxxxxx, xx xxxxx xx xxxxxxx xx xxxx x xxxxxx xx xxx xxxx. Txxx xxx <literal moreinfo="none">SHOW SLAVE STATUS</literal> xx xxxx xxxxx xx xxxxxxxxx xxxxx xxxx xxx xxxxxx xxx xxxxxxx, xxx xxx <literal moreinfo="none">SHOW BINARY LOGS</literal> xx xxx xxxxxx xxxxxx xx xxx x xxxx xx xxx xxxxx. Txx xxxxxx xxx xxxx xx xxx xxxx xx xxx xxx xxxx xxxx xx xxxxxx. Ix xxx xxxxxx xxx xxxxxxx, xxxx xxxxxxx’x xx xxxxxxx xxxx xxx xxxx. Ix xxxx xxxxx xxx, xxx xxxxx xxx xxxx xx xxxxx xx. Ix xxx xxxx xxxx xxxx xxx xxxxx xxxx’x xxxxx xxxxxxx xxxx xxxxx, xxx xxx xxx xxx xxxxxx xxxxxxxx <literal moreinfo="none">xxxxxx_xxxx_xxxx</literal> xx xxxxxxx xxx xxxxxx xx xxxx xxxxxx xxx xxx xxxxx xxx xxxxxxx xxx xxx xxxx xxxxxxxx. -</para> - </refsect1> - </refentry> - <refentry id="ch08-00006"> - <refmeta> - <refentrytitle>RESET MASTER</refentrytitle> - </refmeta> - <refnamediv> - <refname>RESET MASTER</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">RESET MASTER</synopsis> - </refsynopsisdiv> - <refsect1 id="ch08-06-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-08-ITERM-2816" significance="normal"><primary>SHOW MASTER LOGS xxxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-08-ITERM-2817" significance="normal"><primary>RESET MASTER xxxxxxxxx</primary></indexterm> -Txxx xxxxxxxxx xxxxxxx xxx xxx xxxxxx xxx xxxxx xx xxx xxxxxx xxxxxx. Bxxxxx xxx xxxxx xxx xxxxxxx xx xxx xxxxxxxxx xxxxxxxxx xx xxx xxxxx xx xxx <literal moreinfo="none">--xxx-xxx</literal> xxxxxx xx <emphasis>xxxxxx</emphasis> (xxx <xref linkend="mysqlian-CHP-15"/>). Txx xxx xxxxx xxx xxxxxxxxx xxxxx <emphasis>xxx-xxx.</emphasis><replaceable>x</replaceable>, xxxxx <replaceable>x</replaceable> xx x xxx-xxxxx xxxxxxxxx xxxxx. Uxx xxx <literal moreinfo="none">SHOW MASTER LOGS</literal> xxxxxxxxx xx xxx x xxxx xx xxx xxxxx xx xx xxxx.</para> - <para><indexterm id="mysqlian-CHP-08-ITERM-2818" significance="normal"><primary>RESET SLAVE xxxxxxxxx</primary></indexterm> -Txxx xxxxxxxxx xxxx xxxxxx xxx xx xxx xxxxxx xxx xxxxx xxx xxxxx xxxxxxxxx xxx xxx xxxx xx dddddd. Tx xxx xxx xxxxx xxxxxxx xx xxxx xxxx xxx xxxxx xxxxxx, xxx xxx <literal moreinfo="none">RESET SLAVE</literal> xxxxxxxxx. Yxx xxx xxx xxx <literal moreinfo="none">MASTER</literal> xxx <literal moreinfo="none">SLAVE</literal> xxxxxxx xxxxxxxx xx x xxxxx-xxxxxxxxx xxxx xxxx xx:</para> - <programlisting format="linespecific">RESET MASTER, SLAVE;</programlisting> - <para>Txxx xx x xxxxxxxxxxx xxxxxx xxx xxxxxxxx xxxxxxxxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch08-00007"> - <refmeta> - <refentrytitle>RESET SLAVE</refentrytitle> - </refmeta> - <refnamediv> - <refname>RESET SLAVE</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">RESET SLAVE</synopsis> - </refsynopsisdiv> - <refsect1 id="ch08-07-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-08-ITERM-2819" significance="normal"><primary>RESET SLAVE xxxxxxxxx</primary></indexterm> -Uxx xxxx xxxxxxxxx xxxxxx xx xxxxx xxx <literal moreinfo="none">RESET MASTER</literal> xxxxxxxxx xxxx xxxx xxx xxxxxx xxxxxxx xxxxx xxxx xx d. Txxx xxxxxxxxx xxxx xxxxxx xxx <emphasis>xxxxxx.xxxx</emphasis> xxxx, xxx <emphasis>xxxxx-xxx.xxxx</emphasis> xxxx, xxx xxx xx xxx xxxxx xxx xxxxx xx xxx xxxxx xxxxxx. Ix xxxx xxxxxx xxx xxxxx xxx xxxxx xxxxxxxxxx xx xxxxxxx xxx SQL xxxxxx xxx xxxxxx xxxxxxxxx xxx xxxxxxxx. A xxx <emphasis>.xxxx</emphasis> xxxx xxxx xx xxxxxxx xxxx xxx xxxxxxx, xxxxx-xx xxxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch08-00008"> - <refmeta> - <refentrytitle>SET GLOBAL SQL_SLAVE_SKIP_COUNTER</refentrytitle> - </refmeta> - <refnamediv> - <refname>SET GLOBAL SQL_SLAVE_SKIP_COUNTER</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">SET GLOBAL SQL_SLAVE_SKIP_COUNTER = <replaceable>xxxxxx</replaceable></synopsis> - </refsynopsisdiv> - <refsect1 id="ch08-08-fm2xml"> - <title/> - <para>Txxx xxxxxxxxx xxxxx xxx xxxxx xxxxxx xx xxxxxx xxxx xxx xxxxxx. Ix xx xxxx xxx xxxx xxxxxxx x xxxxxxxx. Ix xxxxxxx xx xxxxx xx xxx xxxxx xxxxxx xx xxxxxxx.</para> - <programlisting format="linespecific">SET GLOBAL SQL_SLAVE_SKIP_COUNTER=dd;</programlisting> - </refsect1> - </refentry> - <refentry id="ch08-00009"> - <refmeta> - <refentrytitle>SET SQL_LOG_BIN</refentrytitle> - </refmeta> - <refnamediv> - <refname>SET SQL_LOG_BIN</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">SET SQL_LOG_BIN = {d|d}</synopsis> - </refsynopsisdiv> - <refsect1 id="ch08-09-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-08-ITERM-2944" significance="normal"><primary>SUPER xxxxxxxxx (GRANT/REVOKE)</primary></indexterm><indexterm id="mysqlian-CHP-08-ITERM-2945" significance="normal"><primary>SET SQL_LOG_BIN xxxxxxxxx</primary></indexterm> -Txxx xxxxxxxxx xxxxxxx xx xxxxxxxx xxxxxx xxxxxxx xx SQL xxxxxxxxxx xxx xxx xxxxxxx xxxxxxxxxx. Ix xxxx xxx xxxxxx xxxxxxx xxx xxx xxxxxxxxxx xx xxxxx xxxxxxx xxx xx xxxxx xx xxx xxxxxxx xxxxx xxxx xxx xxxxxxxxxx xx xxxxxx. Txx xxxxxxxxx xxxxxxxx <literal moreinfo="none">SUPER</literal> xxxxxxxxxx. A xxxxx xx d xxxxxxxx xxxxxx xxxxxxx; d xxxxxxx xx.</para> - <programlisting format="linespecific">SET SQL_LOG_BIN = d;</programlisting> - </refsect1> - </refentry> - <refentry id="ch08-00010"> - <refmeta> - <refentrytitle>SHOW BINARY LOGS</refentrytitle> - </refmeta> - <refnamediv> - <refname>SHOW BINARY LOGS</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">SHOW BINARY LOGS</synopsis> - </refsynopsisdiv> - <refsect1 id="ch08-10-fm2xml"> - <title/> - <para>Txxx xxxxxxxxx xxxxxxxx x xxxx xx xxxxxx xxxx xxxxxxx xx xxx xxxxxx MxSQL xxxxxx xx xxx xxxxxxxxxx xxxxxxxxx. Ix’x xxxxxxxxxx xxxx <literal moreinfo="none">SHOW MASTER LOGS</literal>. Tx xxxxxx xxxx, xxx xxx xxxxxxxxxxx xx <literal moreinfo="none">PURGE MASTER LOGS</literal> xxxxxxxxx. Fxx xxxxxxxxxxx xx xxxxxxxx xxxx, xxx <xref linkend="mysqlian-CHP-16"/>.</para> - <programlisting format="linespecific">SHOW BINARY LOGS;</programlisting> - </refsect1> - </refentry> - <refentry id="ch08-00011"> - <refmeta> - <refentrytitle>SHOW BINLOG EVENTS</refentrytitle> - </refmeta> - <refnamediv> - <refname>SHOW BINLOG EVENTS</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">SHOW BINLOG EVENTS [IN '<replaceable>xxx_xxxxxxxx</replaceable>'] - [FROM <replaceable>xxxxxxxx</replaceable>] [LIMIT [<replaceable>xxxxxx</replaceable>,] <replaceable>xxxxx</replaceable>]</synopsis> - </refsynopsisdiv> - <refsect1 id="ch08-11-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-08-ITERM-2953" significance="normal"><primary>IN xxxxxx (SHOW BINLOG EVENTS)</primary></indexterm><indexterm id="mysqlian-CHP-08-ITERM-2954" significance="normal"><primary>SHOW BINLOG EVENTS xxxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-08-ITERM-2955" significance="normal"><primary>xxxxxx, xxxxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-08-ITERM-2956" significance="normal"><primary>SHOW MASTER LOGS xxxxxxxxx</primary></indexterm> -Txxx xxxxxxxxx xxxxxxxx xxx xxxxxx xx x xxxxxx xxx xxxx. Uxx xxx <literal moreinfo="none">IN</literal> xxxxxx xx xxxxxxx x xxxxxxxxxx xxx xxxx. Ix xxx <literal moreinfo="none">IN</literal> xxxxxx xx xxxxxxx, xxx xxxxxxx xxxx xx xxxx. Tx xxxxxx x xxxx xx xxxxxx xxx xxxxx, xxx xxx <literal moreinfo="none">SHOW MASTER LOGS</literal> xxxxxxxxx. Hxxx xx xx xxxxxxx xx xxx xxx xxx xxx xxxx xxxxxxxxx xxx xxxxxxx xxxxxxx:</para> - <programlisting format="linespecific">SHOW BINLOG EVENTS IN 'xxx-xxx.dddddd'\G -*************************** d. xxx *************************** - Lxx_xxxx: xxx-xxx.dddddd - Pxx: d - Exxxx_xxxx: Sxxxx - Sxxxxx_xx: d -Oxxx_xxx_xxx: d - Ixxx: Sxxxxx xxx: d.d.d-xxxxxxxx-xxx, Bxxxxx xxx: d -d xxx xx xxx (d.dd xxx)</programlisting> - <para><indexterm id="mysqlian-CHP-08-ITERM-2957" significance="normal"><primary>LIMIT xxxxxx</primary><secondary>SHOW BINLOG EVENTS xxxxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-08-ITERM-2958" significance="normal"><primary>FROM xxxxxx</primary><secondary>SHOW BINLOG EVENTS xxxxxxxxx</secondary></indexterm> -Txxx xxx xxxx xxx xxxx xxx xxx xx xxxx, xxxxxxx xxx SQL xxxxxxxxx xxx xxx xxxxxxx xxxxx xxx xxxxxx xxx xxxxxxx. Fxx x xxxxxx xxx xxxx xxxxxxxxx xxxx xxxx xx xxxxxx, xxx xxxxxxx xxxx x xxxx xxxx xxx xxxxx xxxxxx xxxxxxxxx xxxxxxxxxxxxx. Tx xxxxxxxx xxxx xxx xxx xxxxx xxx xxxxx xxx xxxxxxx xxxx xxx <literal moreinfo="none">FROM</literal> xxx <literal moreinfo="none">LIMIT</literal> xxxxxxx. Ix xxx xxxxxxx, xxxxxx xxx <emphasis>Pxx</emphasis> xxxxx xxxx x xxxxx xx d. Ix x xxxxx xxx xxxx, xxxx xxxxxx xxxxx xx xx xxx xxxxxxxxx. Txx xxxxxxx xxxxxxxxx xxxxx xx xxxxxxx xxxx xx xxxx xxxxxxxx xxxx x xxxxxxxxxx xxxxxxxx xx xxx xxx xxxx xxx <literal moreinfo="none">FROM</literal> xxxxxx. Yxx xxx xxxxx xxx xxxxxx xx xxxx xx xxxxxx xxxxxxxxx xxxx xxx <literal moreinfo="none">LIMIT</literal> xxxxxx. Ix xxx <literal moreinfo="none">LIMIT</literal> xxxxxx, xxx xxx xxxx xxx xxx xxxxxxxx xxxxx xx xxx xxxxxx xxxxx xx xxx xxxxxx xx xxxx xx xxx xxxxxxx xxx xxx xxxxx xxxx xx x xxxxxxx xxxxxx xx xxxx. Hxxx xx xx xxxxxxx xx xxxx xx xxxxx xxxxxxx:</para> - <programlisting format="linespecific">SHOW BINLOG EVENTS IN 'xxx-xxx.dddddd' -FROM dddd LIMIT d,d\G -*************************** d. xxx *************************** - Lxx_xxxx: xxx-xxx.dddddd - Pxx: dddd - Exxxx_xxxx: Ixxxxx - Sxxxxx_xx: d -Oxxx_xxx_xxx: dddd - Ixxx: INSERT_ID=d</programlisting> - <para>Ix xxxx xxxxxxx, xxx xxxxxxxxx xx xxx xxxxxx xx xx xxxxx xxxx xxxxxxxx dddd xxxxxxx xx xxx <literal moreinfo="none">FROM</literal> xxxxxx. Txx xxxxxxx xxx xxxxxxxx xxxxxxx xxxx, xxxxxxxx xxxx xxx xx xxxxx xxxx. Txx xxxxxxx xx xxxxxxx xx xxx xxx, xxxxxxxx xxxx xxx xxxxx xxx xx xxx xxxxxxx xxx xxx xxx <literal moreinfo="none">LIMIT</literal> xxxxxx. Txx xxxxxx xx xxxxxxx xxxxxxx xx xxx xxx xx xxx <literal moreinfo="none">FROM</literal> xxxxxxxx xxx xxx xxxxx <literal moreinfo="none">LIMIT</literal> xxxxxxxx.</para> - <para>Ax xx xxxxxxxxxxx xx xxxxx xxxx xxxxxxxxx xxxx xxxxxxx xxxx xxxxx xxxxxx xxx xxxxx, xxx xxxxx xxx xxxxx xxx <literal moreinfo="none">xxxxxxxxxxx</literal> xxxxxxx xxx xxxxxxxxxxx xxx xxxxxxx xx x xxxx xxxx xxxx xxx xxx xxxx xx x xxxx xxxxxx xxxx xx’x xxxxxxxx. Bxxxxxx, xxxx xxxxxxx xxxx xxxxxxx xxx xxxx xxxxxxxxxxx xxxx <literal moreinfo="none">SHOW BINLOG EVENTS</literal>.</para> - </refsect1> - </refentry> - <refentry id="ch08-00012"> - <refmeta> - <refentrytitle>SHOW MASTER LOGS</refentrytitle> - </refmeta> - <refnamediv> - <refname>SHOW MASTER LOGS</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">SHOW MASTER LOGS</synopsis> - </refsynopsisdiv> - <refsect1 id="ch08-12-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-08-ITERM-3015" significance="normal"><primary>PURGE MASTER LOGS xxxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-08-ITERM-3016" significance="normal"><primary>SHOW MASTER LOGS xxxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-08-ITERM-3017" significance="normal"><primary>xxx xxxxx</primary><secondary>xxxxxxxxxx</secondary></indexterm> -Txxx xxxxxxxxx xxxxxxxx x xxxx xx xxxxxx xxxx xxxxxxx xx xxx xxxxxx MxSQL xxxxxx xx xxx xxxxxxxxxx xxxxxxxxx. Ix’x xxxxxxxxxx xxxx <literal moreinfo="none">SHOW BINARY LOGS</literal>. Tx xxxxxx xxxx, xxx xxx xxxxxxxxxxx xx <literal moreinfo="none">PURGE MASTER LOGS</literal> xxxxxxxxx. Fxx xxxxxxxxxxx xx xxxxxxxx xxxx, xxx <xref linkend="mysqlian-CHP-16"/>. -</para> - </refsect1> - </refentry> - <refentry id="ch08-00013"> - <refmeta> - <refentrytitle>SHOW MASTER STATUS</refentrytitle> - </refmeta> - <refnamediv> - <refname>SHOW MASTER STATUS</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">SHOW MASTER STATUS</synopsis> - </refsynopsisdiv> - <refsect1 id="ch08-13-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-08-ITERM-3018" significance="normal"><primary>SHOW MASTER STATUS xxxxxxxxx</primary></indexterm> -Txxx xxxxxxxxx xxxxxxxx xxxxxxxxxxx xx xxx xxxxxx xx xxx xxxxxx xxx xxxx xxxx xx xxxxx xxxx xxxxxxxxx xx xxx xxxxxx MxSQL xxxxxx.</para> - <programlisting format="linespecific">SHOW MASTER STATUS; - -+----------------+----------+--------------+------------------+ -| Fxxx | Pxxxxxxx | Bxxxxx_Dx_DB | Bxxxxx_Ixxxxx_DB | -+----------------+----------+--------------+------------------+ -| xxx-xxx.dddddd | dddd | | | -+----------------+----------+--------------+------------------+</programlisting> - </refsect1> - </refentry> - <refentry id="ch08-00014"> - <refmeta> - <refentrytitle>SHOW SLAVE HOSTS</refentrytitle> - </refmeta> - <refnamediv> - <refname>SHOW SLAVE HOSTS</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">SHOW SLAVE HOSTS</synopsis> - </refsynopsisdiv> - <refsect1 id="ch08-14-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-08-ITERM-3027" significance="normal"><primary>SHOW SLAVE HOSTS xxxxxxxxx</primary></indexterm> -Txxx xxxxxxxxx xxxxxxxx x xxxx xx xxxxx xxxxxxx xxx xxx xxxxxx xxxxxx. Sxxxxx xxxx xx xxxxxxx xxxx xxx <literal moreinfo="none">--xxxxxx-xxxx=</literal><replaceable>xxxxx</replaceable> xxxxxx xx xxxxx xx xx xxxxx. -</para> - <programlisting format="linespecific">SHOW SLAVE HOSTS; - -+------------+-----------+------+-----------+ -| Sxxxxx_xx | Hxxx | Pxxx | Mxxxxx_xx | -+------------+-----------+------+-----------+ -| d | xxxxxd | dddd | d | -| d | xxxxxd | dddd | d | -+------------+-----------+------+-----------+</programlisting> - <para>Ix xxx xxxxxxx xxx xxxx </para> - <variablelist> - <varlistentry> - <term> - <literal moreinfo="none">Sxxxxx_xx</literal> - </term> - <listitem> - <para> -Txx xxxxxx xxxxxxxxxxxxxx xxxxxx xxx xxx xxxxx xxxxxx, xxxxx xx xxx xx xxx <literal moreinfo="none">--xxxxxx-xx</literal> xxxxxx (xxxxxxxxxx xx xxx xxxxx’x xxxxxxx xxxx). -</para> - </listitem> - </varlistentry> - <varlistentry> - <term> - <literal moreinfo="none">Hxxx</literal> - </term> - <listitem> - <para> -Txx xxxx xxxx xx xxx xxxxx xxxxxx, xxxxx xx xxx xx xxx <literal moreinfo="none">--xxxxxx-xxxx</literal> xxxxxx xx xxx xxxxx. -</para> - </listitem> - </varlistentry> - <varlistentry> - <term> - <literal moreinfo="none">Pxxx</literal> - </term> - <listitem> - <para> -Txx xxxx xx xxxxx xxx xxxxx xx xxxxxxxxx xxx xxxxxxxxxxx. Txxx xxxxxxxx xx dddd, xxx xxx xx xxx xxxx xxx <literal moreinfo="none">CHANGE MASTER TO</literal> xxxxxxxxx, xxxxxxxxx xx xxxx xxxxxxx. -</para> - </listitem> - </varlistentry> - <varlistentry> - <term> - <literal moreinfo="none">Mxxxxx_xx</literal> - </term> - <listitem> - <para> -Txx xxxxxx xxxxxxxxxxxxxx xxxxxx xx xxx xxxxxx. Ix’x xxx xx xxx xxxxxx xxxx <literal moreinfo="none">--xxxxxx-xx</literal> xxx xxxxxxxxxx xx xxx xxxxx xxxx xxx <literal moreinfo="none">CHANGE MASTER TO</literal> xxxxxxxxx. -</para> - </listitem> - </varlistentry> - </variablelist> - </refsect1> - </refentry> - <refentry id="ch08-00015"> - <refmeta> - <refentrytitle>SHOW SLAVE STATUS</refentrytitle> - </refmeta> - <refnamediv> - <refname>SHOW SLAVE STATUS</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">SHOW SLAVE STATUS</synopsis> - </refsynopsisdiv> - <refsect1 id="ch08-15-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-08-ITERM-3028" significance="normal"><primary>SHOW SLAVE STATUS xxxxxxxxx</primary></indexterm> -Txxx xxxxxxxxx xxxxxxxx xxxxxxxxxxx xx xxx xxxxx xxxxxx. Hxxx xx xx xxxxxxx xx xxxx xxxxxxxxx xxx xxx xxxxxxx:</para> - <programlisting format="linespecific">SHOW SLAVE STATUS\G -*************************** d. xxx *************************** - Sxxxx_IO_Sxxxx: Wxxxxxx xxx xxxxxx xx xxxx xxxxx - Mxxxxx_Hxxx: xxxxxxxxx - Mxxxxx_Uxxx: xxxx - Mxxxxx_Pxxx: dddd - Cxxxxxx_Rxxxx: d - Mxxxxx_Lxx_Fxxx: xxx-xxx.dddddd - Rxxx_Mxxxxx_Lxx_Pxx: ddd - Rxxxx_Lxx_Fxxx: xxx-xxxxx-xxx.ddd - Rxxxx_Lxx_Pxx: ddd -Rxxxx_Mxxxxx_Lxx_Fxxx: xxx-xxx.ddd - Sxxxx_IO_Rxxxxxx: Yxx - Sxxxx_SQL_Rxxxxxx: Yxx - Rxxxxxxxx_Dx_DB: - Rxxxxxxxx_Ixxxxx_DB: - Lxxx_Exxxx: d - Lxxx_Exxxx: - Sxxx_Cxxxxxx: d - Exxx_Mxxxxx_Lxx_Pxx: ddd - Rxxxx_Lxx_Sxxxx: ddd - Uxxxx_Cxxxxxxxx: Nxxx - Uxxxx_Lxx_Fxxx: - Uxxxx_Lxx_Pxx: d - Mxxxxx_SSL_Axxxxxx: Yxx - Mxxxxx_SSL_CA_Fxxx: xxx_xx.xxx - Mxxxxx_SSL_CA_Pxxx: /xxxx/xxxxx/xxx_xx - Mxxxxx_SSL_Cxxx: xxx_xxxx.xxx - Mxxxxx_SSL_Cxxxxx: - Mxxxxx_SSL_Kxx: -Sxxxxxx_Bxxxxx_Mxxxxx: d</programlisting> - <para><indexterm id="mysqlian-CHP-08-ITERM-3029" significance="normal"><primary>xxxxxxxxx</primary><secondary>xxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-08-ITERM-3030" significance="normal"><primary>SET xxxxxxxxx</primary><secondary>xxxxxxx xxxxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-08-ITERM-3031" significance="normal"><primary>xxxxxx xxxxxx</primary><secondary>xxxxxxx xxxxxx</secondary></indexterm> -Yxx xxx xxx xxxx xx xxxxx xxxxxx xx xxxxxxx xxxx xxx MxSQL xxxxxx xxxxxx (<emphasis>xxxxxx</emphasis>). Sxx <xref linkend="mysqlian-CHP-15"/> xxx xxxx xxxxxxxxxxx xx xxxxxxx xxxxxx xxxxxxxxx xx xxxxxxx. Yxx xxx xxxx xxx xxxx xx xxxxx xxxxxxxxx xxxx xxx <literal moreinfo="none">SET</literal> xxxxxxxxx, xxx xxx xxx xxxxxx xxxxxx xxx xxxxxxxxxx xxxxxx xxxx xxx <literal moreinfo="none">ALTER TABLE</literal> xxxxxxxxx. Yxx xxx xxxxx xxxx xx xxx xxx xxxx xxxxxxxxx xxxx xxx <literal moreinfo="none">RESET MASTER</literal> xxx <literal moreinfo="none">RESET SLAVE</literal> xxxxxxxxxx.<indexterm id="mysqlian-CHP-08-ITERM-3032" significance="normal"><primary>xxxxxxxxx</primary><secondary>xxxxxxxxx</secondary></indexterm> -<indexterm id="mysqlian-CHP-08-ITERM-3033" significance="normal"><primary>RESET SLAVE xxxxxxxxx</primary></indexterm> -<indexterm id="mysqlian-CHP-08-ITERM-3034" significance="normal"><primary>RESET MASTER xxxxxxxxx</primary></indexterm> -<indexterm id="mysqlian-CHP-08-ITERM-3035" significance="normal"><primary>ALTER TABLE xxxxxxxxx</primary><secondary>xxxxxxxxx xxxxxxxxx</secondary></indexterm></para> - </refsect1> - </refentry> - <refentry id="ch08-00016"> - <refmeta> - <refentrytitle>START SLAVE</refentrytitle> - </refmeta> - <refnamediv> - <refname>START SLAVE</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">START SLAVE [IO_THREAD|SQL_THREAD] - -START SLAVE [SQL_THREAD] - UNTIL MASTER_LOG_FILE = '<replaceable>xxx_xxxxxxxx</replaceable>', MASTER_LOG_POS = <replaceable>xxxxxxxx</replaceable> -START SLAVE [SQL_THREAD] - UNTIL RELAY_LOG_FILE = '<replaceable>xxx_xxxxxxxx</replaceable>', RELAY_LOG_POS = <replaceable>xxxxxxxx</replaceable></synopsis> - </refsynopsisdiv> - <refsect1 id="ch08-16-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-08-ITERM-3063" significance="normal"><primary>START SLAVE xxxxxxxxx</primary></indexterm> -Uxx xxxx xxxxxxxxx xx xxxxx x xxxxx xxxxxx. Ix xxx xxxxx xxxxxx, xxx xxx xxxxx xxxx xxx I/O xxxxxx xx xxxx xxx SQL xxxxxx xx xxxxx xxx xxxxxxxxxx xxxxxxx. Yxx xxx xxxxx xxxx xx xxxxxxx xxxx xxxxxxxx, xxxxxxxxx xx x xxxxx. Txx xxxxxxx xx xx xxxxx xxxx. Txx I/O xxxxxx xxxxx SQL xxxxxxx xxxx xxx xxxxxx xxxxxx xxx xxxxxxx xxxx xx xxx xxxxx xxx xxxx. Txx SQL xxxxxx xxxxx xxx xxxxx xxx xxxx xxx xxxx xxxxxxxx xxx SQL xxxxxxxxxx. Sxx xxx xxxxxxx “Rxxxxxxxxxx Pxxxxxx” xxx xxxxxxx.</para> - <para><indexterm id="mysqlian-CHP-08-ITERM-3064" significance="normal"><primary>SQL_THREAD xxxxxxx (START SLAVE)</primary></indexterm><indexterm id="mysqlian-CHP-08-ITERM-3065" significance="normal"><primary>MASTER_LOG_FILE xxxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-08-ITERM-3066" significance="normal"><primary>MASTER_LOG_POS xxxxxxxxx</primary></indexterm> -Txx xxxxxx xxxxxx xxxxxx xxx xxxxxxx xx xxx xxxxxxx xx x xxxxxxxx xxxxx, xxxxx xxxx <literal moreinfo="none">MASTER_LOG_POS</literal>, xx xxx xxxxxx xxx xxxx xxxxx xxxx xxx <literal moreinfo="none">MASTER_LOG_FILE</literal> xxxxxxxxx. Txx <literal moreinfo="none">UNTIL</literal> xxxxxx xxxxx xxxxxxxxxx xx xxx xxxxx xxx xxxxx xxxx xxx xxxxx xxxxxxxx xx xxxxxxx. Txx xxxxx xxxxxx xxxxxxxxx xxx xxxxx xxx xxxx xxx xxxxxx xxx xxxxxxx xxx xxxxxxxxx. Ix xxx <literal moreinfo="none">SQL_THREAD</literal> xxxxxxx xx xxxxx xx xxxxxx xxx xxxxxx xx xxxxx xxxxxxxx, xxx xxxxxxx xxxx xx xxxxxxx xx xxx SQL xxxxxx.</para> - <para><indexterm id="mysqlian-CHP-08-ITERM-3067" significance="normal"><primary>SHOW SLAVE STATUS xxxxxxxxx</primary></indexterm> -Txx xxxxxxxx xx x xxxxx xxxxxx xxx’x xxxxxx xxxxxxxxxx. Rxx xxx <literal moreinfo="none">SHOW SLAVE STATUS</literal> xxxxxxxxx xx xxxxxxx xxxx xxx xxxxxx xxxxx xxx xxxxxxxx xxxxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch08-00017"> - <refmeta> - <refentrytitle>STOP SLAVE</refentrytitle> - </refmeta> - <refnamediv> - <refname>STOP SLAVE</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">STOP SLAVE [IO_THREAD|SQL_THREAD]</synopsis> - </refsynopsisdiv> - <refsect1 id="ch08-17-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-08-ITERM-3077" significance="normal"><primary>STOP SLAVE xxxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-08-ITERM-3078" significance="normal"><primary>START SLAVE xxxxxxxxx</primary></indexterm> -Txxx xxxxxxxxx xxxxx xxx xxxxx xxxxxx xxxxxxx. Tx xxxx x xxxxxxxx xxxx xx xxxxx xxxxxx, xxxxxxx xxx xx xxxx xx xxx xxxxxx xxxxx. Bxxx xxx xx xxxxx xx x xxxxx-xxxxxxxxx xxxx. Txx xxxxxxx xx xx xxxx xxxx. Txx xxxxxxxxx xxxxxxxx <literal moreinfo="none">SUPER</literal> xxxxxxxxx. Yxx xxx xxxxx xxxxx xxxxxxx xxxx xxx <literal moreinfo="none">START SLAVE</literal> xxxxxxxxx.</para> - </refsect1> - </refentry> - </sect1> - <sect1 id="mysqlian-CHP-08-SECT-9"> - <title>Rxxxxxxxxxx Sxxxxx - Ix xxxxx xx xx xxxx xx xxxxxxx xxxxxxxxxxx xxxxxxxxxxx, xxx xxxx xx xxxx xxx xxxxxxxxxx xxx xxxxxxx xxxxxx xxxx xxx xxxxxx xxx xxxxx xxx xxxxxx. Sxxxxx xxxxxx xxx xx xxxxxxxxx xx xxxxx xxx SHOW PROCESSLIST xxxxxxxxx xx xxx xxxxxx xxx xxx xxxxx. Ax xxxxx xxx xxxx xx xxx xxxxxxx xxxx xx xxxxxxx xx xxx xxxxxxxxxxx xxxxxxxxxx xxx xxx xxxx xxxxxxx xxxxxxxxxx xxxx xxxxxxxxxxx. Fxxxxxxxx xxx xxxxxxxx xx xxxx xxxxxxx, xxx xxxxxxx xx xxxxxxxxx xx xxx xxxxxx xxx xxxxxx xxxx xx xxx xxxxx. Ix xxx Cxxxxxx xxxxxx, xx xxx xxxxxx xxx xxxxx xxxx xx Bxxxxx Dxxx, xxxxxxx x xxxxxx xxx xxxxxx; xx xxx xxxxx xxx xxxxxxx xxxx xx Cxxxxxx. Txx xxxxxxx xxxx xxxx xxxxxxx x xxxxx xxxxxx Sxxxx xx xxxxx xxx xxxxx xx xxx xxxxxx xxxx xx xxxxx. Ax xxxxxxx xxxx x xxxxx xxxxxxx: - SHOW PROCESSLIST \G -*************************** d. xxx *************************** - Ix: dd - Uxxx: xxxxxx xxxx - Hxxx: - xx: NULL - Cxxxxxx: Cxxxxxx - Txxx: dddddd - Sxxxx: Wxxxxxx xxx xxxxxx xx xxxx xxxxx - Ixxx: NULL - Txxxx xxxxxxx xxxx xxxx xxx xxxxxx, xxx I/O xxxxxx xxxxxxx xx xxx xxxxxx. Ix xxx xxxxxx xxxx xxxxxxxxxx xxxxxxx xxxx xxx xxxxxx’x xxxxxx xxx, xxxxx xxxxx xxxxxxxx xx xxxxxxx xxx xxxxx xx xxx xxxxxxx xxx xxx SQL xxxxxx. Wxxx xxxxxxx xx x xxxx xx xxx xx xxx xxxxxxxx xxxxxx xxxxxx xxxx xxx xxx xxx xx xxxxxx xxx xxxxx xxxxxxx, xxxxx xxxx xxxxxxxxxxxx xx xxxx. Ix xxxxxxxx xx xxxxxxxxxxxxx xxxxx xxxxxx, xxx xxx xxxx xx xxxxxxx x xxxxxx xx xxxxx xxxx xxxxxxxxxxx xx xxxxxxx xx xxx xxxxx xxx xxx xxxxxxx xxx xx xxxxxx xxx xx xx’x xxx xxxxxxxx. Rxxxxxxxxxx xx MxSQL xx xxxx xxxxxx, xxx xx xx xxxx xxxx, xx’x xxxx xxxxx xxxxx xx. Fxxxxxxxxxx, xx’x xxxx xxxx xxxxx xxxxxxx xxxxxxxx xx xxxx xxx xxxxxxx xx. - - Mxxxxx BxxLxx Dxxx Txxxxx Sxxxxx - Ax xxxxxxxx xxxxxxx xx xxxxxx xxxxxx xxxxxxxxxxx xxxxxx xxxx xxx xx xxxxxxxx xxx xxxxxx xxx xxxxxxx (Bxxxxx Dxxx): - - - - - Hxx xxxx xxx xxxxxx xx xxxxx; xxxxxxx xxx xxxxxx xx xx xxxxxxx - - - Txxx xx xxx xxxx xxxxxx xxxxxx xxxxxxx xxx xxxxxx xxx xxx x xxxxx xxxxxxxxxx xx xxx xxxxxx. Ix xxxx xxxxx, xxx xxxxxx xx xxxxxxxxx xxxxx xxxxxxx xxxxxxxxx xxxxxxxxxxx. Ix xxx xxxx xxx xxxxx xxx xxxxxxx xxxxxxxxx xxx xx xxx xxxxxxx xxx xxxxxxx xxxxx xx xxxxx xxxx xxxx xxxxx xxx xxxxxx xxx xx xx xxxxxxx. Nxxxxx xxxx xx xxxx xxxx xx xx xxxxxxx xxx xxx xxxxxx xxx xx xx xxxxxxx. Ix xxxxx’x xxx xxxx xx’x xxxxxxx xxx xxx xxxxxxxxx xx xx xxxxxxx. Txxx’x xxxxxxx xx x xxxxxxxxx xxxxxxxxx xx MxSQL. Txx xxxxxx xxxxx xxxx xx xxxxxxx xxxxxxxxxxx xxxxx xxx xxxxxx xxx xx xxx xxxxx. - - - - - Sxxxxxx xxxxxx xxxxx xx xxxxx - - - Axxxx xxx xxxxxx xxx xxx xxxx xxxxxxx, xxx xxxxxx xxxxxxx xxx xxxxx xxxx xxx xx xxxx xxx xxxxxxx xxxx xxxx xxxx. Ix xxx xxxxx xxxxxxxx xxx xxxxxxx, xxx xxxxxx xxxxxx xxxx xxxxx, xxxxxxxxxx xxxx xx xx xx xxx xxxxxxx xx xxxxxxx x xxxxx xxxxxxx xx xxxxxxxxxxx xx xxxxxxxxx xxxxxxxx xxxxxx. Txxxx xxx xxxxxxxxx xxxxx xxxxxx xx xxxxxxx, xxx xxxx xxx xx xxxx xxx xxxxx xxxxx xxxx xxxx xxx xxx xxxxxxxxxx xxx xxxxxxxxx xxxx xxx xxxx xx xx xxx xxxxxxx xx SHOW PROCESSLIST. - - - - - Fxxxxxxx xxxxxxx xxx xxxxxx; xxxxxxxxx xx xxxx xxxxxx - - - Ix x xxxxx xxx xxxx xxx-xxxx xxx x xxxxx, xxx xxxxxx xxx xxxx xxxxxxx xxx xxxx xx xxx xxxxxxx. Wxxx xxxx xxxxxx, xx xxxx xxxxx x xxx xxx xxxx, xxxxxx xxx xxxxxxxx xxxx. Wxxx x xxxxx xxxxxxxx xxx xxxxxxx xxxx xxxx xxxx xxxx xxx xxx xxxx xx xxx xxxxxx xxxxxxxx xxxx xxx xxxx xx xxx xxxx, xx xxxxxx xxxx xxxxx. - - - - - Wxxxxxx xx xxxxxxxx xxxxxxxxxxx - - - Oxxx xxx xxxxxx xxx xxxxxxxxx xxx xxxxxxx xx xxxxxxxx x xxxxx, xxx xxxxxx xxxxx xxxx xxxxxx xx xxx xxxxxxx xxx xxxxxx xxx xxxx xxx xxxxxxx xxxx xxx xxxxxxxxxxxxx xxxx xxx xxxxx. Wxxx xx xx xxxxxxxx, xxx xxxxxx xxxx xxxxxx xx xxx xxxxx xxxxxx xxxxx xx xxxxx xx xx xxxxxxx xxx xxxx xxxxxxx xx xxx xxxxxx xxx. - - - - - - Sxxxx I/O Txxxxx Sxxxxx - A xxxx xx xxxxxxxxxxx xxxxxx xxxx xxx xx xxxxx xx xxx xxxxx xxxxxx xxx I/O xxxxxxx xxxxxxx: - - - - Cxxxxxxxxx xx xxxxxx - - - Txxx xxxxx xxxxxxxxx xxxx xxx xxxxx I/O xxxxxx xx xxxxxxxxxx xx xxxxxxx xx xxx xxxxxx. Ix xx xxx’x xxxxxxx, xx xxx xxxx xx xxxx xxxxx xxx x xxxxx xx xx xxxxxxx. - - - - - Cxxxxxxx xxxxxx xxxxxxx - - - Axxxx xxx xxxxx xxxxxxxx xx xxx xxxxxx, xx xxxxxxxx xxxxxxxx xx MxSQL xxxx xxx xxxxxx xx xxxxxx xxxxxxxxxxxxx. Txxx xx xxxx xxxxx. - - - - - Rxxxxxxxxxx xxxxx xx xxxxxx - - - Axxxx xxx xxxxx xxxxxxxx xx xxx xxxxxx, xx xxxxxxxxx xxxxxx xxxx xxx xxxxxx xx x xxxxxxxxxxx xxxxx xxxxxx. Dxxxxx xxxx xxxxxxx, xx xxxx xx xx xxxx xxxxx. Ox xxx xxxxxx xxxx xx xxx xxxxxxxxxx, xxx Bxxxxx Dxxx xxxxx xxxx xx Hxx xxxx xxx xxxxxx xx xxxxx; xxxxxxx xxx xxxxxx xx xx xxxxxxx, xx xxxxxxxxx xx xxx xxxxxxxx xxxxxxx. - - - - - Rxxxxxxxxx xxxxxx xxxx - - - Wxxx xxx xxxxx xxx xxxx xxxxxxxx xx xxxxxxx xx xxx xxxxxx xxxxxx xxx, xx xxxxxx xxxx xxxxx xx xxxxxxx xxx xxx xxxxxxx. Axxx, xxxx xx xxxxx xxxxxxxx xx x xxxxxx—xxxxxx xxx xxx xxxxx xxxx xx xxxxx xxxxxx xxxx xxxxxxxxxxxx xxx x xxxxx—xx xxxxxx xxxx xxxxx xxxxxxx xx xxxxxxx xxx xxxxxxx xxxxx xxx xxxx xxxxxx xxxxxx xxx xxxxxxxx xxxx xx xxxxx xxx xxxxxx. Ix xx xxxxxxx xxxx xxxxxxxx, xxxx xxx xxxxxxxx. Ix xxxxx xxx xxx xxxxxxx, xxx xxxxxxx xxxxxxxx xxxx xxx xxxxxxxx xxxxx xxxxx xxx xxx xx xxx xxxxxx’x xxxxxx xxx xxxx xx xxxxxxxxxxx xx xxx xxxxx. Ox xxx xxxxxx xxxx, xxx xxxx xxx xxx xxxxx Sxxxxxx xxxxxx xxxxx xx xxxxx xx x xxxxxx xx xxx xxxxxxx. - - - - - Wxxxxxx xx xxxxxxxxx xxxxx x xxxxxx xxxxxx xxxx xxxxxxx - - - Ix xxx xxxxxxx xxx xxx xxxxxxx xxxxxxxxx xx xxx xxxxxxxx xxxxx xxxxx xx xx xxxxxxxx xxxx xxx xxxxxx, xxx xxxxx xxxxxx xxxx xxxxx xx xx xxxxx xx xx xxxx xx xxxxxxx xx xxx xxxxxx xxxxxxxxxxxx. Txxx xxxxxxx xxxxxx xx xxxxxxxxxx xxxxx xxx --xxxxxx-xxxxxxx-xxxxx xxx xxxxxxxx xx dd xxxxxxx. Txx xxxxxx xx xxxxxxx xx xxxx xxxx xxx xx xxxxx xx xxx xxxxxx.xxxx xxxx xxxxx xxxxxxx xx xxxx xxxxxxx. Exxx xxxx xxx xxxxx xxxxxxxx xx xxxxxxxxx, xx xxxx xxxxx xxx xxxx xxxxx. - - - - - Rxxxxxxxxxxx xxxxx x xxxxxx xxxxxx xxxx xxxxxxx - - - Txx xxxxx xxxxxx xx xxxx xxxxxxxxx xx xxx xxxxxx xxxxx xxxxxx xx xxxxxxxx xxxxxxx xx xxx xxxxxx’x xxxxxx xxx, xx xxxxxxxxx xx xxx xxxxxxxx xxxxx xxxxxxxxxxx. Txxx xxxxx xxxxxxxxx xxxx xxx xxxxx xx xxxxxx xx xxxxxxxxx. Ix xx xxxxx xxxxx, xx xxxx xx xxxx xx xxx xxxxxxxx xxxxx xxx xxxx xx xxxxx. Bx xxxxxxx xx xxxx xxx dd xxxxx xxxxxx xxxxxxxx. Yxx xxx xxxxxx xxx xxxxxx xx xxxxxxx xxxx xxx --xxxxxx-xxxxxxx-xxxxx xxxxxx. - - - - - Wxxxxxx xxx xxxxxx xx xxxx xxxxx - - - Txxx xxxxx xx xxx xxxx xxxxxx xxx xxxx xxx xxxx xxx, xxxxxx xxxx xxxxxx xx xxxx xxxx. Txx SQL xxxxxx xx xxxxxxxxx xxxxxxxxx xx xxx xxxxxx xxx xx xxxxxxx xxx xxx xxxxxx xx xxxx xx xxxxxx xxx xxxxxxx. Ix xxxxx xx xx xxxxxxxx xxxxx x xxxxx, xxx xxxxxxxxxx xxxx xxxx xxx. Txx xxxxxx xx xxxxxxx xxxx xxxx xxxxxx xxxxxx xxxxxxx xx xxxxxxx xxx xx xxxxx xx xxx xxxxxxxx xxxxx_xxx_xxxxxxx (xxxxxxxxxx xxxxx_xxxx_xxxxxxx). A xxxxxxx xx xxx xxxx xx x xxxx xxxxxxxxxx xxx xxx xxxxx. Txxxxxxxx, xx xxxx xxxxxx xxxxxx xxx xxxxxxx xx xxxxxxxxx xx xxx xxxxxx, xxxx xxxxxxx xxxxx xxx xxxxxxx xx xxx xxxxxx’x xxxxxx xxx xxxxxx xxxxxxxx xxxx xxxxx xxxxx. - - - - - Qxxxxxxx xxxxxx xxxxx xx xxx xxxxx xxx - - - Txxx xxxxx xxxxxx xxxx xxx xxxxx I/O xxxxxx xxx xxxxxxxx xxxxxxx xx xxx xxxxxx’x xxxxxx xxx xxxx xxx xxxxxx xxx xx xxxxxxx xxx SQL xxxxxxxxxx xxx xxx xxxxxxx xxxxxxxxxxx xx xxx xxxxx’x xxxxx xxx. Oxxx xx’x xxxx, xxx xxxxx’x SQL xxxxxx xxxx xxxx xxx xxxxx xxx xxx xxxxxxx xxx xxx SQL xxxxxxxxxx xxxxxxx xx xxx xxx. Ox xxx SQL xxxxxx, xxxx xx xxx Rxxxxxx xxxxx xxxx xxx xxxxx xxx xxxxx xxxxxxxxx xxxxx. - - - - - Wxxxxxx xx xxxxxxxxx xxxxx x xxxxxx xxxxxx xxxxx xxxx - - - Ix xxx xxxxxxxxxx xx xxx xxxxx xxxxxx xxxxx xxxxxxx xx xxxxx (xxxxxxxxxxx xx xx xxxxx xx xxx xxxxxx’x xxxxxx xxx), xxx xxxxx xxxx xxxx xx xxxx xxxxx xxx x xxxxxxx xxxxxx xx xxxx xxxxxx xxxxxxxxxx xx xxxxxxxxx xx xxx xxxxxx. Txx xxxxxx xx xxxxxxx xxxx xxx xxxxx xxxx xxxx xxxxxx xxxxxxxx xx xxxxx xx xxx xxxxxx-xxxxxxx-xxxxx xxxxxxxx xx xxx xxxxx. Wxxx xxx xxxxx xxxxxxxx xx xxxxxxxxx, xx xxxxxx xxx xxxx xxxxx. - - - - - Rxxxxxxxxxxx xxxxx x xxxxxx xxxxxx xxxxx xxxx - - - Txxx xxxxx xxxxxx xxxxx xxx xxxxx I/O xxxxxx xxxx xxx xxxxxxxxxx xx xxx xxxxxx xxxxx xxxxxxxxx xx xxxxx xxxx xxx xxxxxx xxxxxx xxx. - - - - - Wxxxxxx xxx xxx xxxxx SQL xxxxxx xx xxxx xxxxxx xxxxx xxx xxxxx - - - Ix xxx SQL xxxxxx xxx’x xxxxxxxxxx xxx xxxxxxx xx xxx xxxxx xxx xxxx xxxxxx, xxx xxx xxxxxxx xxx xxxxxx xxx xxxxx xxx xxxxx xx xxxxxx xxx xxxxx, xxx I/O xxxxxx xxxx xxxxx xxxx xxxxx. Ix xxxx xxxxx, xx’x xxxxxxx xxx xxx SQL xxxxxx xx xxxxxxx xxxxxx xx xxx xxxxxxx xx xxx xxxxx xxx xx xxxx xxx I/O xxxxxx xxx xxxxxx xxxx xx xxx xxxxx xxxxxxx xx xxx xxx. Txx xxxxxxx xxxxxx xx xxxxx xxxxxxxxx xxx xxx xxxxx xxx xxxxx xx xxxxx xx xxx xxxxx_xxx_xxxxx_xxxxx xxxxxxxx. Txx xxxxx SQL xxxxxx xxxxxxxxxxxxx xxxxxxx xxxxx xxx xxxxx. Txx FLUSH LOGS xxxxxxxxx, xxxxxx, xxxxxx xxx xxxxx xx xxxxxx xxx xxxxx xxx xx xxxxxxxx xxxxxxxx xxx xxxxx. - - - - - Wxxxxxx xxx xxxxx xxxxx xx xxxx - - - Wxxx xxx I/O xxxxxx xxx xxxx xxxxxxxxxx, xx xxxxxx xxxx xxxxx xx xx xxxxxx. Txx xxxx xxxxx xxxxxx xxx xxxxxx xxxxxxxxx. Txx SQL xxxxxx xxxx xxx xxxxx xx xxxxxxx xxx xxxxx xxxxx xxxxxxxxxxx xxxxxxxxxx xx xxxx xxxxxxxxxxx xxx xx xxxx xxxx xxxxxxx xxxx xx xxxx xx xxxx xxxxxxxxxx. - - - - - - Sxxxx SQL Txxxxx Sxxxxx - A xxxx xx xxxxxxxxxxx xxxxxx xxxx xxx xx xxxxx xx xxx xxxxx xxxxxx xxx SQL xxxxxxx xxxxxxx: - - - - Hxx xxxx xxx xxxxx xxx; xxxxxxx xxx xxx xxxxx I/O xxxxxx xx xxxxxx xx - - - Bxxxxxx xxxxxxxxxxx xx xx xxxx, xxx xxxx xxxxxxx xxx xxx xxxxx’x SQL xxxxxx xx xxxx xxxxx xxxxxx xxx xxxx x xxxx xxxx xxxxxxxx xxxxxx xxxx xxxx xxxxxxxxxx xxxxx xxxxxxx. Txxx xxxxx xxxxxxxxx xxxx xxx xxxxx’x SQL xxxxxx xxx xxxx xxx xx xxx xxxxxxx xx xxx xxxxx xxx xxx xxx xxxxxxxx xxx xx xxx SQL xxxxxxxxxx xxxx xx xxxxxxxx. Ix xxx xx xxxxxxx xxxxxxx xx xxxx xx xxx xxxxxxxxx xxx xx xxxxxxx xxx xxx xxxxx’x I/O xxxxxx xx xxx xxxx xxxxxxx xx xxx xxxxx xxx xxxx. Ax xxxxxxxxx xx xxx xxxxxxx xxxxx xxx xxx xxxxxx, xxxx xxxxxx xxxx xxxxxxxx xxxxxxxxxxxxx xxx xxxxxxx xxxx xx xxx xxxxxxxxxxx xx xxx xxxxxxx. Mxxxxxxx xxxxxxx xx xxxx xxxxxx’x xxxxx xxxxxxx xxxx. - - - - - Rxxxxxx xxxxx xxxx xxx xxxxx xxx - - - Wxxx xx xxxxx xxx xxxx xxxx xx xxx xxxxx xxx xx xxx xxxxx’x I/O xxxxxx, xxx xxxxx’x SQL xxxxxx xxxxxx xxxx xxxxx. Ix xxxx xxxxx xx xx xxxxxxx xxx xxxxxxx xxxxx xxx xxxx xxx xx xxxxxxxxx xxx xxx SQL xxxxxxxxxx xxxx xx xxxxxxxx. Bxxxxxxxx, xx xxxx xxxxx xxx SQL xxxxxx xx xxxx xxxxxxxx xxx xxxxx’x xxxxxxxxx. - - - - - Wxxxxxx xxx xxxxx xxxxx xx xxxx - - - Wxxx xxx SQL xxxxxx xxx xxxxxxxx xxxxxxxx xxx xxxxx’x xxxxxxxxx,xx xxxxxx xxxx xxxxx xxxxx xx’x xxxxxxx xxx xxxxx xxx xxxx xxx xxxxxxxxxxx xxxxxxxxxxxxxx xxxx xxx xxxxx xxxxxx. Txx SQL xxxxxx xxxx xxx xxxxx xx xxxxxxx xxx xxxxx xxxxx xxxxxxxxxxx xxxxxxxxxx xx xxxx xxxxxxxxxxx xxx xx xxxx xxxx xxxxxxx xxxx xx xxxx xx xxxx xxxxxxxxxx. Txxx xx x xxxx xxxxxxx xxxxx. Hxxxxxx, xx xxxxx xx x xxxxxxx xxxx xxxxxxx xxx xxxxx xxx xxxx xx xxxxxx xxx xxxxxxxxxx xxxx xxx xxxxx xxxxxx, xxx xxxxx xx xxxxxxxxx xx xxxx xxx xxx xxxx xxxx xxx xxxxxx xx xxxxxx. Txxx xxxxx xx xxxxxx xx x xxxxx xx xxx xxxx xxxxx xxxxxxxxx. Ix xxx xxx xxxx xxxxx, xxx xxx xxxx xx xxx xxxxxxxxx xx x xxxxxxx xxxxxxx, xx xxx REPAIR TABLE xxxxxxxxx xx xxx xxxxxx xxxx xxxxxxxx xx xxx xxxx xx xxx xxxx xx. Yxx’xx xxxx xx xxxx xx xxx xxxxx xxx xxxx xxx xxx xxxxx xxx xxxx xx xxx xxxxx xx xxxxxxxxx xxxxx xxxxxx xxxxx xxxx xxxxxxxx. - - - - - -
- - Sxxxxx Rxxxxxxx Sxxxxxxxxx - MxSQL xxxxxx xxxx xx SQL xxxxxxxxxx, xxxxx xx xxxxxxxx, xx xx xxxxxx xx xxx xxxxxxxx xxx xxxxxx xxx xxxx xxxxxxxxxx xxx. Yxx xxx xxxxxx xxxx xxx xxxxxxxxx xxxxx xx xxxxxxxx SQL xxxxxxxxxx xxx xxxxx-xx xxxxxxxxx, xxxxxxxx x xxxx xx xxxx xxxxxx xx xxxxx xxxx-xxxxxxx xxxxxxxxx xx xxxx xx xxxxxxx xxxxxx xx xxxxxx. Txxx xxx xxxx xxxxxxx xxxxx xxxxxxx xxx xxx-xxxxx, xx xxxx xx xxxxx xxxxxxxx xxxxxxxxxxxxxx xx xxxxxxx xx xxxxxxx xxx xxxxxxxxx xxxxxxxxx xx xxxxx. Axxxxxxxxxxx, MxSQL xxxxxxxx SQL xxxxxxxxxx xxxxxxx xx xxxxxx. Exxxxx xxx xx xxxxxxxx xxxxxx xx xxxxxxxx xxx xxxxxxxxx xx SQL xxxxxxxxxx xx xxxxxx xxxxxxxxxx. Txxxx xxx xxx SQL xxxxxxxxxx xxxxxxx xx xxxx xxxxxxx: - ALTER EVENT, ALTER FUNCTION, ALTER PROCEDURE, BEGIN...END, CALL, CREATE EVENT, CREATE TRIGGER, CREATE FUNCTION, CREATE PROCEDURE, DECLARE, DELIMITER, DROP EVENT, DROP FUNCTION, DROP PREPARE, DROP PROCEDURE, DROP TRIGGER, EXECUTE, PREPARE, SHOW CREATE EVENT, SHOW CREATE FUNCTION, SHOW CREATE PROCEDURE, SHOW EVENTS, SHOW FUNCTION CODE, SHOW PROCEDURE CODE, SHOW FUNCTION STATUS, SHOW PROCEDURE STATUS, SHOW SCHEDULER STATUS, SHOW TRIGGERS. - - Sxxxxxxxxx xx Axxxxxxxxxxx Oxxxx - Txxx xxxxxxx xx xx xxxxxxxxxxxx xxxxxxx xx MxSQL xxxxxxxxxx xxxxxxx xx xxxxxx, xxxxxx xxxxxxxxxx, xxxxxxxx, xxx xxxx-xxxxxxx xxxxxxxxx. Fxx xx xxxxxxxxxxx xx xxx xxxxxx xx xxxxxxxxxx xxxxxx xxx xxxxxxxxxx xxx SQL xxxxxxxxxx, xx xxxx xx xxxxxxxxxxx xxxxxxx xx xxxxxxxx, xxxxxx xxx xxx xxxxxxxxxxxx xx Pxxx II. Mxxx xx xxx xxxxxxxx xx xxxx xxxxxxxxxx xxxxxxx xxxxxxx xxx xxxxxxxxxx xx x xxxxxxxxxx xxxxxxx. - - - ALTER EVENT - - - ALTER EVENT - - - - ALTER EVENT -[DEFINER = {'xxxx'@'xxxx'|CURRENT_USER}] -xxxxx -ON SCHEDULE -AT xxxxxxxxx [+ INTERVAL xxxxx xxxxxxxx] | -EVERY xxxxx xxxxxxxx - [STARTS xxxxxxxxx [+ INTERVAL xxxxx xxxxxxxx]] - [ENDS xxxxxxxxx [+ INTERVAL xxxxx xxxxxxxx]] -[ON COMPLETION [NOT] PRESERVE] -[ENABLE|DISABLE|DISABLE ON SLAVE] -[COMMENT 'xxxxxxx'] -DO xxxxxxxxx - - - - <para>Uxx xxxx xxxxxxxxx xx xxxxx xx xxxxxxxx xxxxxxxxx MxSQL xxxxx. Txx xxxxxxxxx xxx xx xxxx xx xxxxxx xxx xxxx xxxx xxx xxxxxxxxx SQL xxxxxxxxx xxxx xxxxxxx, xx xxxxx xxxxxxx xx xxx xxxxxxxx xxxxxxxxx. Txx <literal moreinfo="none">xxxxx</literal> xxxxxxxxx xxx xx xx xxx xxxx xx xx xxxxx xxxx xxx xxxxxxx xxxxxxxxx xxx xxx xxx xxx xxxx xxxxxxxxx, xx xxx xxxxxxxxx xxx xxxxxxxxx xx xxx xxxxxx. Ix xxx’x xxxxxxxx xxxxxx MxSQL xx xxxxxx xxx xxxx xx xx xxxxx. Ixxxxxx, xxx xxx <literal moreinfo="none">DROP EVENT</literal> xxxxxxxxx xx xxxxxx xx xxxxxxxx xxxxx xxx xxxx xxxxxx xx xxxxx xxxx x xxx xxxx xxxx <literal moreinfo="none">CREATE EVENT</literal>. Yxx xxx xxx xxx <literal moreinfo="none">SHOW CREATE EVENT</literal> xxxxxxxxx xx xx xxxx xxxx xxx xxxxx xxxxxxxxxx xxx xxx xxxx.</para> - <para>Tx xxxxxx xxx MxSQL xxxx xxx xxxx xxxxxxx xxxxx MxSQL xxxxxxxx xxx xxxxx, xxx xxx <literal moreinfo="none">DEFINER</literal> xxxxxx. Ax xx xxxxxxx d.d.dd xx MxSQL, x xxxx xxxx xxx <literal moreinfo="none">EVENT</literal> xxxxxxxxx xxx xxxxxx xx xxxxx. Uxxxxx xxx xxxxxxx xx xxxxxxxxx xxxx xxx <literal moreinfo="none">DEFINER</literal> xxxxxx, xxx xxxx xxxx xxxxxxx xx xxxxx xxxxxxx xxx xxx xxxxxxx.</para> - <para>Tx xxxxxx xxx xxxx xxx xxxx xxxx xxxx xxx xxxxx xxx xxxxxxx xxx xxxxx, xxx xxx <literal moreinfo="none">ON SCHEDULE AT</literal> xxxxxx xxx xxxx xxx xxx xxxx xx xxx <literal moreinfo="none">xxxxxxxxx</literal> xxxxxx (<replaceable>xxxx-xx-xx xx:xx:xx</replaceable>). Txx xxxx xxxxx xxx xx x xxxxxx, x xxxx xxxxxxxx, xx xxxx <literal moreinfo="none">CURRENT_TIMESTAMP</literal>. -Yxx xxx xxxx xxxxxxx xx x xxxx xxxxxxxx xx xxx xxxxxxxxx xxxxx xx xxxxxx x xxxx xxxx xxxxxxxx xx xxx xxxxxxx <literal moreinfo="none">INTERVAL</literal>, xxx xxxxxx xx xxxxxxxxx (x.x., <literal moreinfo="none">d</literal>) xxx xxxx xxx xxxxxxxx xxxxxxxxx (x.x., <literal moreinfo="none">HOUR</literal>). Fxx <replaceable>xxxxxxxx</replaceable>, xxx xxx xx xxx xxxxxxxxx xxxxxxxxx xxxxx xx xxx xxxxxxxxxxx xx xxx <literal moreinfo="none">CREATE EVENT</literal> xxxxxxxxx xx xxxx xxxxxxx.</para> - <para>Tx xxxx xxx xxxxx x xxxxxxxxx xxx, xxx xxx <literal moreinfo="none">EVERY</literal> xxxxxx, xxxxx xxx xxxx xxxxxx xxx xxxxxx. Yxx xxx xxxx xxxx xxxxxxxx xxx xxxxxx xxxxx xxx x xxxxxxxxx xxxxx xxxx xxx <literal moreinfo="none">STARTS</literal> xxx <literal moreinfo="none">ENDS</literal> xxxxxxx.</para> - <para>Ix xx xxxxx xx xxx xxx xxxxxxxxx, xxx xxx xxxx xxx xxxxxx xxxx xxxxxxxx xx xx xxxxxx xxx <literal moreinfo="none">ON COMPLETION</literal> xxxxxx xxxx xxx <literal moreinfo="none">PRESERVE</literal> xxxxxxx. Ix xxx xxxxxxx xxx xxxx xxxx xxx xxxxxxx xxx xxxxx, xxx xxx xxxxxx xxxx xxxx xxx xxx xxx xxxxxx xx <literal moreinfo="none">NOT PRESERVE</literal> xxx xxxxx.</para> - <para>Ix xxx xxxxxxx xx xxxxx xxxx xxx xxxx xx xxxxxxxxxxx xxxxxxx xxx xxxx xxxxxx, xxx xxx xx xx xxxx xxxx xxxxxxxxx xx xxxxx xxx <literal moreinfo="none">DISABLE</literal> xxxxxxx. Ax xxxxx xxxx xxx xxxx xxxxxxxx xxx xx xxxxxxx xxxx xxx <literal moreinfo="none">ENABLE</literal> xxxxxxx. Txx <literal moreinfo="none">DISABLE ON SLAVE</literal> xxxxxxx xxxxxxxx xxx xxxxx xxxx xxxxxxx xx xxxxx xxxxxxx.</para> - <para>Wxxx xxx <literal moreinfo="none">COMMENT</literal> xxxxxx xxx xxx xxx xx xxxxxx x xxxxxxx xxxxxxxxxx xxx xxxxx xxx xxxxxx xxxxxxxxx. Txx <literal moreinfo="none">DO</literal> xxxxxx xxx xxxxxxx xxx SQL xxxxxxxxx xx xx xxxxxxxx. A xxxxxx xxxxxxxxx xxx xx xxxx xx xxxxxx xxxxxxx x xxx xx SQL xxxxxxxxxx.</para> - <para>Ax xxxxxxx xxxxx xxxx xxxxxxxxx xx xxxxxx x xxxxxxxx xxxxx xxxxxxx:</para> - <programlisting format="linespecific">ALTER EVENT xxxxxxxx_xxxx -ON SCHEDULE EVERY d DAY -STARTS 'dddd-dd-dd dd:dd:dd' -ON COMPLETION PRESERVE;</programlisting> - <para>Ix xxx xxxx xx xxx xxxxxxx xxx <literal moreinfo="none">CREATE EVENT</literal> xxxxx xx xxxx xxxxxxx, xxx’xx xxx xxxx xxx xxxx xxxxxx xx xx xxxx xxx xxxx xxxx d:dd A.M. xx d:dd A.M. xxxx. Hxxxxxx, xxx xxxxxxxx xxxx xxx xxxx xxxxx xxx xxx xxxx xxx xxx xxxx xx xxxx, xxx xxxxx xxxx xxxxxxxxx xxx xxx xx Dxxxxxxx d, xxx xxxx xx Dxxxxxxx dd xxx xxxxx. Wxxx xx xxxxx’x xxxx xx xxxxxxx xx xxxx xx xxxxx xx xxxxx xxxxxxx, xx xxxx xx xxx x xxxxxx xxxx. Txx <literal moreinfo="none">EVERY</literal> xxxxxx xx xxxxxxxx xxxxxxx <literal moreinfo="none">STARTS</literal> xx xxxx xx xx xxx xxx x xxxxxxxx xxxxxx xx xxx xxx. Sx xxxx xxx <literal moreinfo="none">ON COMPLETION PRESERVE</literal> xxx’x xxx xxxx xx xxx xxxxxxx xx <literal moreinfo="none">ON COMPLETION NOT PRESERVE</literal>, xx xxxxxxxxx xx xxxxx xxxx.</para> - </refsect1> - </refentry> - <refentry id="ch09-77002"> - <refmeta> - <refentrytitle>ALTER FUNCTION</refentrytitle> - </refmeta> - <refnamediv> - <refname>ALTER FUNCTION</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">ALTER FUNCTION <replaceable>xxxxxx_xxxxxxxxx</replaceable> - [{CONTAINS SQL|NO SQL|READS SQL DATA|MODIFIES SQL DATA} | - SQL SECURITY {DEFINER|INVOKER} | - COMMENT '<replaceable>xxxxxx</replaceable>']</synopsis> - </refsynopsisdiv> - <refsect1 id="ch09-02-fm2xml"> - <title/> - <para>Txxx xxxxxxxxx xxxxxxx xxx xxxxxxxxxxxxxxx xx xx xxxxxxxx xxxx-xxxxxxx xxxxxxxx. Yxx xxxxxx xxxxxx xxx xxxxxxxx xxxxxx xxxx xx. Tx xx xxxx, xxx xxxx xx xxxxxx xxx xxxxxxxx xxxx <literal moreinfo="none">DROP FUNCTION</literal> xxx xxxxxx x xxx xxxxxxxxx xxxx <literal moreinfo="none">CREATE FUNCTION</literal>. Sxx xxx xxxxxxxxxxx xx <literal moreinfo="none">CREATE FUNCTION</literal> xx xxxx xxxxxxx xxx xx xxxxxxxxxxx xx xxxx xxxxxxxxxxxxxx.</para> - <para>Txxxx xxx xxxxx xxxxx xx xxxxxxxxxxxxxxx xxxx xxx xxx xxx xx xxxxxx xxxx xxxx xxxxxxxxx: xxx xxxxx xx xxxxxxxxxxx xxxx xxx xxxxxx, xxx xxxx xxxxxxxxxx xxx SQL xxxxxxxx, xxx x xxxxxxx. Exxx xxxx xxx xx xxxxx xx x xxxxx-xxxxxxxxx xxxx, xx xxx xxxxx. Sxx <literal moreinfo="none">CREATE FUNCTION</literal> xx xxxx xxxxxxx xxx x xxxxxxxxxx xx xxx xxxxxxxxxxxxxxx. Txx <literal moreinfo="none">COMMENT</literal> xxxxxx xxxxxxxx xxx xxxxxxxx xxxxxxx. Tx xxxxx x xxxxxxx xxxxxxx xxxxxxxxx xxxxxxx, xxxx xxx xxxxxx xxxx xxxxxxx xxxxxxx xxxx.</para> - <para>Txxx xxxxxxxxx xxxxxxxx xxx <literal moreinfo="none">CREATE ROUTINE</literal> xxxxxxxxx. Txx <literal moreinfo="none">ALTER ROUTINE</literal> xxx <literal moreinfo="none">EXECUTE</literal> xxxxxxxxxx xxx xxxxxxx xx xxx xxxx xxx xxxxxxx xxxx xxxxxxx xx xxxxxx x xxxxxxxx, xx xxxxxxx.</para> - <para>Ax xxxxxxx xxxxx xxxx xxxxxxxxx xxxxxxx, xx xxxxx x xxxxxxxx xxxxx xx xxx xxxxxxx xxx xxx xxxxxxxxxxx xx <literal moreinfo="none">CREATE FUNCTION</literal> xx xxxxxxx:</para> - <programlisting format="linespecific">ALTER FUNCTION xxxx_xxxxxxxxxxx -SQL SECURITY INVOKER -COMMENT "Cxxxxxxx x xxxxxx xxxx xxxx 'Dxx. d, dddd' xx xxxxxxxx xxxxxx.";</programlisting> - </refsect1> - </refentry> - <refentry id="ch09-77003"> - <refmeta> - <refentrytitle>ALTER PROCEDURE</refentrytitle> - </refmeta> - <refnamediv> - <refname>ALTER PROCEDURE</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">ALTER PROCEDURE <replaceable>xxxxxx_xxxxxxxxx</replaceable> - [{CONTAINS SQL|NO SQL|READS SQL DATA|MODIFIES SQL DATA}] - [SQL SECURITY {DEFINER|INVOKER}] - [COMMENT '<replaceable>xxxxxx</replaceable>']</synopsis> - </refsynopsisdiv> - <refsect1 id="ch09-03-fm2xml"> - <title/> - <para>Txxx xxxxxxxxx xxxxxxx xxx xxxxxxxxxxxxxxx xx xx xxxxxxxx xxxxxx xxxxxxxxx. Yxx xxxxxx xxxxxx xxx xxxxxxxxx xxxxxx xxxx xx. Tx xx xxxx, xxx xxxx xx xxxxxx xxx xxxxxxxxx xxxx <literal moreinfo="none">DROP PROCEDURE</literal> xxx xxxxxx x xxx xxxxxxxxx xxxx <literal moreinfo="none">CREATE PROCEDURE</literal>. Sxx xxx xxxxxxxxxxx xx <literal moreinfo="none">CREATE PROCEDURE</literal> xx xxxx xxxxxxx xxx xx xxxxxxxxxxx xx xxxx xxxxxxxxxxxxxx.</para> - <para>Txxxx xxx xxxxx xxxxx xx xxxxxxxxxxxxxxx xxxx xxx xxx xxx xx xxxxxx xxxx xxxx xxxxxxxxx: xxx xxxxx xx xxxxxxxxxxx xxxx xxx xxxxxx, xxx xxxx xxxxxxxxxx xxx SQL xxxxxxxx, xxx x xxxxxxx. Exxx xxxx xxx xx xxxxx xx x xxxxx-xxxxxxxxx xxxx, xx xxx xxxxx. Sxx <literal moreinfo="none">CREATE PROCEDURE</literal> xx xxxx xxxxxxx xxx x xxxxxxxxxx xx xxx xxxxxxxxxxxxxxx. Txx <literal moreinfo="none">COMMENT</literal> xxxxxx xxxxxxxx xxx xxxxxxxx xxxxxxx. Tx xxxxx x xxxxxxx xxxxxxx xxxxxxxxx xxxxxxx, xxxx xxx xxxxxx xxxx xxxxxxx xxxxxxx xxxx.</para> - <para>Txxx xxxxxxxxx xxxxxxxx xxx <literal moreinfo="none">CREATE ROUTINE</literal> xxxxxxxxx. Txx <literal moreinfo="none">ALTER ROUTINE</literal> xxx <literal moreinfo="none">EXECUTE</literal> xxxxxxxxxx xxx xxxxxxx xx xxx xxxx xxx xxxxxxx xxxx xxxxxxx xx xxxxxx x xxxxxx xxxxxxxxx, xx xxxxxxx.</para> - <para>Ax xxxxxxx xx xxxx xxxxxxxxx xxxxxxx:</para> - <programlisting format="linespecific">ALTER PROCEDURE xxxxxxxx_xxxx_xxxx -SQL SECURITY INVOKER -COMMENT 'Cxxxxx xxxx xxxx xxxxxxxx xxxxx xx xxxxxxxx_xxxxxx. -Axx x xxxxxxx xxxx @xxx_xxxx.'</programlisting> - <para>Ix xxx xxxx xx xxx xxxxxxx xxx <literal moreinfo="none">CREATE PROCEDURE</literal> xxxxx xx xxxx xxxxxxx, xxx’xx xxx xxxx xxx xxxxxxx xxxx xx xxxxxxxx xxx xxxxxxxxx xxxxxxx xx xxxx xxxxxxx. Wx’xx xxxx xxxxxx xxxx xxx xxxx xxxxxxx xx xx xxxx xxx xxxxxxxxx xxx xxxxxxxxx xxxx xx xxx xxxxxxx, xxx xx’xx xxxxxx x xxxxxxx xxxxx xxx xxxxxxxxx—xx xxxx’x xxxxxxx xxx xxxx xx xxxxxxx xxx xxxxxxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch09-77004"> - <refmeta> - <refentrytitle>ALTER TRIGGER</refentrytitle> - </refmeta> - <refnamediv> - <refname>ALTER TRIGGER</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific"/> - </refsynopsisdiv> - <refsect1 id="ch09-04-fm2xml"> - <title/> - <para>Txxxx xx xxx xx <literal moreinfo="none">ALTER TRIGGER</literal> xxxxxxxxx xx xxxx xxxx. Ixxxxxx, xxx xxx <literal moreinfo="none">DROP TRIGGER</literal> xxxxxxxxx xxx xxxx <literal moreinfo="none">CREATE TRIGGER</literal> xxxxx xxxx xxx xxx xxxxxxxx xxxxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch09-77005"> - <refmeta> - <refentrytitle>BEGIN...END</refentrytitle> - </refmeta> - <refnamediv> - <refname>BEGIN...END</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">BEGIN...END</synopsis> - </refsynopsisdiv> - <refsect1 id="ch09-05-fm2xml"> - <title/> - <para>Uxx xxxx xxxxxxxxxxx xx xxxxxxxxxx xx xxxxx xxx xxx xxx xxxxx xxxx xxx xxxx xx x xxxxxx xxxxxxxxx xx xxxxxxx. Ix xxxxxxx, <literal moreinfo="none">BEGIN</literal> xxxxx xxx xxxxxxxxx xx x xxxxxxxx SQL xxxxxxxxx xxx <literal moreinfo="none">END</literal> xxxxx xxx xxx xx xx. Mxxxxxxx SQL xxxxxxxxxx xxx xx xxxxxxxx xxxxxxx xxxx.</para> - <para>Txxxxxxxxxxxx, xx xxx xxxx xxxx xxxxx xxx <literal moreinfo="none">xxxxx</literal> xxxxxx, xxxx SQL xxxxxxxxx xxxx xxx xxxx x xxxx-xxxxx. Hxxxxxx, xxxx-xxxxxx xxxx xx xxxx xxxxxx <literal moreinfo="none">CREATE PROCEDURE</literal> xxx <literal moreinfo="none">CREATE TRIGGER</literal> xxxxxxxxxx xx xxxxxxxx xxx xxxxxxxx xxxxxxxxxx xxxx xxxx xxx xxxxxxxxx xx xxxxxxx. Ix xxxxx xxx xx xxxxxxx xxx xxxxxx xx xxx xxxxxx xxx xxxxxx, xxxxxxx x <literal moreinfo="none">DELIMITER</literal> xxxxxxx xx xxxxxx xxx xxxxxxx xxxxxxxxx xx xxxxxxx xxxxxxxxx xxxxxx xxxxxxxx <literal moreinfo="none">BEGIN</literal> xxx xxxx xx xxx xx xxxx xx x xxxx-xxxxx xxxxx xxxxx xxxxxxxx <literal moreinfo="none">END</literal>. Fxx xx xxxxxxx xx xxxxx xxxxxxxxxx, xxx xxx xxxxxxxx xxx <literal moreinfo="none">CREATE PROCEDURE</literal> xxx <literal moreinfo="none">CREATE TRIGGER</literal> xx xxxx xxxxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch09-77006"> - <refmeta> - <refentrytitle>CALL</refentrytitle> - </refmeta> - <refnamediv> - <refname>CALL</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">CALL <replaceable>xxxxxx_xxxxxxxxx</replaceable>[([<replaceable>xxxxxxxxx</replaceable>[, ...]])]</synopsis> - </refsynopsisdiv> - <refsect1 id="ch09-06-fm2xml"> - <title/> - <para>Uxx xxxx xxxxxxxxx xx xxxx x xxxxxx xxxxxxxxx. Pxxxxxxxxx xx xx xxxxxx xx xxx xxxxxx xxxxxxxxx xxx xx xxxxx xxxxxx xxx xxxxxxxxxxx. Ix xxx xxxxxxx xx INOUT xx xxxxx, xxxxxx xxx xx xxxxx xx xxx xxxxxx xxxxxxxxx xxx xxxxxxxx xx xxx SQL xxxxxxxxx xxxx xxxxxx xx. Fxx xx xxxxxxx xx xxxx xxxxxxxxx, xxx xxx xxxxxxx xxx <literal moreinfo="none">CREATE PROCEDURE</literal> xx xxxx xxxxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch09-77007"> - <refmeta> - <refentrytitle>CLOSE</refentrytitle> - </refmeta> - <refnamediv> - <refname>CLOSE</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">CLOSE <replaceable>xxxxxx</replaceable></synopsis> - </refsynopsisdiv> - <refsect1 id="ch09-07-fm2xml"> - <title/> - <para>Txxx xxxxxxxxx xxxxxx x xxxxxx xxxx xxx xxxx xxxxxxxx xxxxxx xxx xxxxxxx xxxxxxx xxx xxx xxxx xxxxxx xxxxx xxx <literal moreinfo="none">OPEN</literal> xxxxxxxxx. Sxx xxx xxxxxxxxxxx xx xxx <literal moreinfo="none">DECLARE</literal> xxx <literal moreinfo="none">FETCH</literal> xxxxxxxxxx xx xxxx xxxxxxx xxx xxxx xxxxxxxxxxx xx xxxxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch09-77008"> - <refmeta> - <refentrytitle>CREATE EVENT</refentrytitle> - </refmeta> - <refnamediv> - <refname>CREATE EVENT</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">CREATE [DEFINER = {'<replaceable>xxxx</replaceable>'@'<replaceable>xxxx</replaceable>'|CURRENT_USER}] EVENT -[IF NOT EXISTS] <replaceable>xxxxx</replaceable> -ON SCHEDULE -AT <replaceable>xxxxxxxxx</replaceable> [+ INTERVAL <replaceable>xxxxx</replaceable> <replaceable>xxxxxxxx</replaceable>] | -EVERY <replaceable>xxxxx</replaceable> <replaceable>xxxxxxxx</replaceable> - [STARTS xxxxxxxxx [+ INTERVAL <replaceable>xxxxx</replaceable> <replaceable>xxxxxxxx</replaceable>]] - [ENDS xxxxxxxxx [+ INTERVAL <replaceable>xxxxx</replaceable> <replaceable>xxxxxxxx</replaceable>]] -[ON COMPLETION [NOT] PRESERVE] -[ENABLE|DISABLE|DISABLE ON SLAVE] -[COMMENT '<replaceable>xxxxxxx</replaceable>'] -DO <replaceable>xxxxxxxxx</replaceable></synopsis> - </refsynopsisdiv> - <refsect1 id="ch09-08-fm2xml"> - <title/> - <para>Uxx xxxx xxxxxxxxx xx xxxxxxxx xxx xxxxxxxxx xx xx SQL xxxxxxxxx xx x xxxxxxxx xxxx xxx xxxx. Exxxxx xxx xxxx xx xxxxxxxxx. Axxxxxxx xxxxx xxx xxxx xxxxxxx, xxx xxxxx xxxxxx xx: -</para> - <programlisting format="linespecific"> -CREATE EVENT <replaceable>xxxxx</replaceable> ON SCHEDULE AT <replaceable>xxxxxxxxx</replaceable> DO <replaceable>xxxxxxxxx</replaceable> -</programlisting> - <para>Txx xxxxx xxxx xxx xxxx xxx xx xxx xxx-xxxxxxxx xxxx xxx xx xxxx-xxxxxxxxxxx. Txx <literal moreinfo="none">DO</literal> xxxxxx xxx xxxxxxx xxx SQL xxxxxxxxx xx xx xxxxxxxx. A xxxxxx xxxxxxxxx xxx xx xxxxxx xxxx xx xxxxxxxxxxxx xxxxxxx x xxx xx SQL xxxxxxxxxx.</para> - <para>Wxxx xxx <literal moreinfo="none">DEFINER</literal> xxxxxx, xxx xxx xxxxxxx xxx MxSQL xxxx xxx xxxx xx xx xxxx xx MxSQL xxx xxx xxxxx. Txxx xxxxx xxxx xxx xxxxx xxx xx xxxxxxx xx x xxxx xxxx <literal moreinfo="none">SUPER</literal> xxxxxxxxx, xxx xxxxxxxx xx xxxxxxx xxxx xxxxxxx xx xxxxx xxxxxxxxxx xxx xxxxxxx xxx xxxxxxxx xxxxxxx. Txx <literal moreinfo="none">IF NOT EXISTS</literal> xxxxxx xxx xx xxxxx xx xxxxxxx xxxxxx xxxx xxxxx xxxxxxxx xx xxx xxxxx xxx xxxxxxx xxxx xxxxxxx.</para> - <para>Fxx xxx xxxxxxxx <literal moreinfo="none">ON SCHEDULE AT</literal> xxxxxx, xxxxxxx x xxxxxxxx xxxx xxx xxxx xx xxx <literal moreinfo="none">xxxxxxxxx</literal> xxxxxx (<replaceable>xxxx-xx-xx xx:xx:xx</replaceable>). Txx xxxx xxxxx xxx xx x xxxxxx, x xxxx xxxxxxxx, xx xxxx <literal moreinfo="none">CURRENT_TIMESTAMP</literal>. Yxx xxx xxxx xxxxxxx xx x xxxx xxxxxxxx xx xxx xxxxxxxxx xxxxx xx xxxxxx x xxxx xxxx xxxxxxxx xx xxx xxxxxxx <literal moreinfo="none">INTERVAL</literal>, xxx xxxxxx xx xxxxxxxxx (x.x., <literal moreinfo="none">d</literal>) xxx xxxx xxx xxxxxxxx xxxxxxxxx (x.x., <literal moreinfo="none">HOUR</literal>). Fxx <replaceable>xxxxxxxx</replaceable>, xxx xxx xx xxx xxxxxxxxx xxxxxxxxx: <literal moreinfo="none">SECOND</literal>, <literal moreinfo="none">MINUTE</literal>, <literal moreinfo="none">MINUTE_SECOND</literal>, <literal moreinfo="none">HOUR</literal>, <literal moreinfo="none">HOUR_SECOND</literal>, <literal moreinfo="none">HOUR_MINUTE</literal>, <literal moreinfo="none">DAY</literal>, <literal moreinfo="none">DAY_SECOND</literal>, <literal moreinfo="none">DAY_MINUTE</literal>, <literal moreinfo="none">DAY_HOUR</literal>, <literal moreinfo="none">WEEK</literal>, <literal moreinfo="none">MONTH</literal>, <literal moreinfo="none">QUARTER</literal>, <literal moreinfo="none">YEAR</literal>, xx <literal moreinfo="none">YEAR_MONTH</literal>.</para> - <para>Tx xxxx xxx xxxxx x xxxxxxxxx xxx, xxx xxx <literal moreinfo="none">EVERY</literal> xxxxxx, xxxxx xxx xxxx xxxxxx xxx xxxxxx. Yxx xxx xxxx xxxx xxxxxxxx xxx xxxxxx xxxxx xxx x xxxxxxxxx xxxxx xxxx xxx <literal moreinfo="none">STARTS</literal> xxx <literal moreinfo="none">ENDS</literal> xxxxxxx.</para> - <para>Oxxx xx xxxxx xx xxxxxxxxx, xx xxxx xx xxxxxxx xxxxxxxxxxxxx. Hxxxxxx, xxx xxx xxxx xx xxxxxxxx xxxxxx xxxxxxxxxx xxxx xxx <literal moreinfo="none">DROP EVENT</literal> xxxxxxxxx. Yxx xxx xxxx xxxx xxx xxxxxx xxxx xxxxxxxx xx xxxxx xx xxxxxx xxx <literal moreinfo="none">ON COMPLETION</literal> xxxxxx xxxx xxx <literal moreinfo="none">PRESERVE</literal> xxxxxxx. Txx <literal moreinfo="none">NOT PRESERVE</literal> xxxxxxx xxxxxxxxx xxx xxxxxx xxx xx xxxxxx xxx xxxxx xxxx xxxxxxxxx, xxx xx xxx xxxxxx’x xxxxxxx xxxxxxxx.</para> - <para>Wxxx xxxxxxxx xx xxxxx, xxx xxx xxxx xx xxxxxx xx xxxx xxx <literal moreinfo="none">DISABLE</literal> xxxxxxxxx xx xxxx xx xxx’x xxxxx xx xxxxxxx xxxxx xxx xxxxxx xx. Txxx xxx xxx <literal moreinfo="none">ALTER EVENT</literal> xxxxxxxxx xx xxxxxx xx xxxxx. Txx <literal moreinfo="none">DISABLE ON SLAVE</literal> xxxxxxx xxxx xxxxxxx xxx xxxxx xxxx xxxxxxx xx xxxxx xxxxxxx. Bx xxxxxxx, xx xxxxx xxxx xx xxxx xxx xxxxxx xxx xxx xxxxxx.</para> - <para>Wxxx xxx <literal moreinfo="none">COMMENT</literal> xxxxxx xxx xxx xxx x xxxxxxx xxxxxxxxxx xxx xxxxx xxx xxxxxx xxxxxxxxx. Txxx xxxxxxx xx xxxxxxxxx xxxx xxxx <literal moreinfo="none">SHOW CREATE EVENT</literal> xx xxxxxxxx xxx xxx xxxxx.</para> - <para>Ax xxxxxxx xxxxx xxxx xxxxxxxxx xxxxxxx. Ix xxxxxxxxx x xxxxxxxxx xxxx xx xxxxxxx xx xxx xxxxxxx xxxxx xxx <literal moreinfo="none">CREATE PROCEDURE</literal> xxxxxxxxx xx xxxx xxxxxxx:</para> - <programlisting format="linespecific">CREATE EVENT xxxxxxxx_xxxx -ON SCHEDULE EVERY d DAY -STARTS 'dddd-dd-dd dd:dd:dd' -ON COMPLETION PRESERVE -COMMENT 'Dxxxx xxxx xx xxxxxxxx xxxxx xx xxxxxxxx_xxxxxx' -DO CALL xxxxxxxx_xxxx_xxxx();</programlisting> - <para>Ix xxxx xxxxxxx, xxx xxxxx xxxx xx xxx xxxx x xxx xxxxxxxx xxxx xxx xxxx xxxxx xxx xxxx xxxxx xxx xxxxxxxxxx xx xxx xxxx xxxx (d:dd A.M.). Ix’x xxx xx xx xxxxxxxxx, xxx xx xxxx xxxxxxx xxxx xxxxxxx xxxx xxxxxx xx xx, MxSQL xxxx xxxxxxxx xxx xxxxx xxxx xxxxxxxxxx. Wx’xx xxxxx x xxxxxxx xx xxxxxxx xxx xxxxxxx xx xxx xxxxx. Uxx <literal moreinfo="none">ALTER EVENT</literal> xx xxxxxx xx xxxxx xxx <literal moreinfo="none">SHOW EVENTS</literal> xx xxx x xxxx xx xxxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch09-77009"> - <refmeta> - <refentrytitle>CREATE FUNCTION</refentrytitle> - </refmeta> - <refnamediv> - <refname>CREATE FUNCTION</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">CREATE -[DEFINER = {'<replaceable>xxxx</replaceable>'@'<replaceable>xxxx</replaceable>'|CURRENT_USER}] -FUNCTION <replaceable>xxxxxxxx</replaceable> ([<replaceable>xxxxxxxxx</replaceable> <replaceable>xxxx_xxxx</replaceable>[,...]]) -RETURNS <replaceable>xxxx_xxxx</replaceable> - [LANGUAGE SQL] - [[NOT] DETERMINISTIC] - [{CONTAINS SQL|NO SQL|READS SQL DATA|MODIFIES SQL DATA}] - [COMMENT '<replaceable>xxxxxx</replaceable>'] - [SQL SECURITY {DEFINER|INVOKER}] -RETURN <replaceable>xxxxxxx</replaceable></synopsis> - </refsynopsisdiv> - <refsect1 id="ch09-09-fm2xml"> - <title/> - <para>A xxxx-xxxxxxx xxxxxxxx xx xx xxxxxxx x xxx xx SQL xxxxxxxxxx xxxx xxx xx xxxxxx xx x xxxx, xxxxxxxxxx xxx xxxx xx’x xxxxx xx xxx xxxxxxxxxx xxx xxxxxxxxx x xxxxx xx xxx xxxxxx xx xxx xxxxxxxx. Txxx xx xxxxxxx xx x xxxxxx xxxxxxxxx, xxxxxx xxxx x xxxxxxxx xxxxxxx x xxxxx xxx x xxxxxx xxxxxxxxx xxxx xxx. A xxxxxx xxxxxxxxx xxxxxxxx xxxxxx xxx xxxxxx xx xxxxxxxxx xx xxxx xxxxxxxxx xxxx xxx xxxx xx xxxxxxxxx xx xxxxxxx xxxx.</para> - <para>Txx xxxxx, xxxxxxx xxxxxx xx xxxxxxxxx xxxx:</para> - <programlisting format="linespecific"> -CREATE FUNCTION <replaceable>xxxxxxxx_xxxx</replaceable> (<replaceable>xxxxxxxxx</replaceable>) RETURNS INT RETURN <replaceable>xxxxxxx</replaceable> -</programlisting> - <para>Txx xxxxxxxx xxxx xxxxx xxx xx xxx xxx-xxxxxxxx xxxx; xxx’x xxx xxx xxxx xx x xxxxx-xx xxxxxxxx. Txx xxxx xx xxxx-xxxxxxxxxxx. Wxxxxx xxxxxxxxxxx, xxxx x xxxxx-xxxxxxxxx xxxx xx xxx xxxxxxxxxx. Fxx xxxx xxxxxxxxx, xxxxxxx xxx xxxx xxxx xx xx xxxx (<literal moreinfo="none">INT</literal>, <literal moreinfo="none">CHAR</literal>, xxx.). Txx xxxxxxx <literal moreinfo="none">RETURNS</literal> xx xxxxxxxx xx xxx xxxx xxxx xx xxx xxxxx xxxx xxxx xx xxxxxxxx xx xxx xxxxxxxx. Ax xxx xxx xxxxx xxx xxxxxxx <literal moreinfo="none">RETURN</literal> xxxxxxxx xx xxx xxxxxxx xx xxxxxxx.</para> - <para>Yxx xxx xxxxxxx xxxxxxx xxxxxxxxxx xx xxxxxxxx xxx xxxxxxxxxxxxxxx xx xxx xxxxxx xxxxxxxxx. Sxxxxxx xxx xx xxxxx xx xxx xxxxx, xx x xxxxx-xxxxxxxxx xxxx. Yxx xxx xxxxxxx xxx xxxxxxxx xxxx xx SQL xxxx xxx <literal moreinfo="none">LANGUAGE SQL</literal> xxxxxxxxx, xxx xxxx xx xxx xxxxxxx xxx xxxxxxx xxxxxxxxxxx.</para> - <para>A xxxxxxxx xxxx xxxxxxx xxx xxxx xxxxxxx xxxx xxxx xxx xxx xxxx xxxxx xxxxxxxxxx xx xxxxxxxxxx <firstterm>xxxxxxxxxxxxx</firstterm>. Yxx xxx xxxx xxxxxxxxxx xxxx xx xxx xxxxxx xx xxxxxxxxxx xxxx xxxxxxxx xxxxxxx xxx <literal moreinfo="none">DETERMINISTIC</literal> xxxxxxxxx. <literal moreinfo="none">NOT DETERMINISTIC</literal> xx xxx xxxxxxx.</para> - <para>Oxx xxx xx xxxxxxxx xxxxx xxx xxxxxx xxx xxx xxxxxxxx xxxx xxxxxxxx xxxx xx, xxxxxxxx xxx xxxxxx xx xxxxxxxx xxx xxxxxxxx. Txx xxxxxx xxxx xxx xxxxxxx xxx xxxxxxxxxxxx xx xxx xxxxxxxx, xxxxxxx:</para> - <variablelist> - <varlistentry> - <term> - <literal moreinfo="none">CONTAINS SQL</literal> - </term> - <listitem> - <para> -Txx xxxxxxxx xxxxxxxx SQL xxxxxxxxxx, xxx xxxx xxx xxxx xxxx xx xxxxx xx x xxxxx; xxx xxxxxxx xx x xxxxxxxx xxxx xxxxxxx xxxxxx xxxxxx. Txxx xx xxx xxxxxxx. -</para> - </listitem> - </varlistentry> - <varlistentry> - <term> - <literal moreinfo="none">NO SQL</literal> - </term> - <listitem> - <para> -Txx xxxxxxxx xxxx xxx xxxxxxx xxx SQL xxxxxxxxxx. -</para> - </listitem> - </varlistentry> - <varlistentry> - <term> - <literal moreinfo="none">READS SQL DATA</literal> - </term> - <listitem> - <para> -Txx xxxxxxxx xxxxx xxxx xxxx xxxx xx xxxxx xxx xxxxx, xxx xxxxx’x xxxxx xxxx xx xxx xxxxxx. -</para> - </listitem> - </varlistentry> - <varlistentry> - <term> - <literal moreinfo="none">MODIFIES SQL DATA</literal> - </term> - <listitem> - <para> -Txx xxxxxxxx xxxxx xxxxx xxxx xx xx xxxxx xxx xxxxx, xx xxxx xxxxxxxxxxx xxxxxxx xxxx xxxx xxxxxx. -</para> - </listitem> - </varlistentry> - </variablelist> - <para>Wxxx xxx <literal moreinfo="none">COMMENT</literal> xxxxxx xxx xxx xxx x xxxxxxx xxxxxxxxxx xxx xxxxxxxx xxx xxxxxx xxxxxxxxx.</para> - <para>Txxx xxxxxxxxx xxxxxxxx xxx <literal moreinfo="none">CREATE ROUTINE</literal> xxxxxxxxx. Txx <literal moreinfo="none">ALTER ROUTINE</literal> xxx <literal moreinfo="none">EXECUTE</literal> xxxxxxxxxx xxx xxxxxxx xx xxx xxxx xxx xxxxxxx xxxx xxxxxxx xx xxxxxx x xxxxxxx, xx xxxxxxx. Wxxx xxx <literal moreinfo="none">DEFINER</literal> xxxxxx, xxx xxx xxxxxxx xxx MxSQL xxxx xxx xxxx xx xx xxxx xx MxSQL xxx xxx xxxxxxxx. Rxxxxxx xx xxxx xxxxxx xx <literal moreinfo="none">SQL SECURITY</literal> xxxxxxx, xxxxx xxxxxxxxx MxSQL xx xxx xxxxxx xxx xxxx xxxxxxx xx xxx xxxxxxx (<literal moreinfo="none">DEFINER</literal>) xx xxx xxxxxxxx xx xxx xxxxxxx xxxx’x xxxxxxx xxx xxxxxxxx (<literal moreinfo="none">INVOKER</literal>). Txxx xxx xxxx xx xxxxxxx xxxx xxxxx xxxx xxxxxxxxx xxxxxxxxxx xxxxxxxxx.</para> - <para>Ax xxxxxxx xxxxx xxxx xxxxxxxxx xxxxxxx:</para> - <programlisting format="linespecific">CREATE FUNCTION xxxx_xxxxxxxxxxx (xxx_xxxx VARCHAR(dd)) -RETURNS DATE -RETURN STR_TO_DATE(REPLACE(xxx_xxxx, '.', ''), '%x %x, %Y'); - -SELECT xxxx_xxxxxxxxxxx('Dxx. d, dddd') -AS xxxxxx_xxxx; - -+-------------+ -| xxxxxx_xxxx | -+-------------+ -| dddd-dd-dd | -+-------------+</programlisting> - <para>Txxx xxxxxxxx xxxxxx xxxx xxx <literal moreinfo="none">STR_TO_DATE( )</literal> xxxxxxxx xx xxxxxxx x xxxxxx xx x xxxxxxxxxx xxxx xxxxxx (x.x., <literal moreinfo="none">xxxx-xx-xx</literal>) xxxxx xx x xxxxxx xxxxxx xxxx xxxxx xxx xxxx. Ix xxxxxxx xxx xxxx xxxxx xx xx xx xxxx xxxx xxxxxxxx xxxxxxxxxx xxxx. Bxxxxxx xxxx xxxxx xxx xxxxxxx x xxxxxx xxxxx xxx xxxxxxxxxxx xxxxx xxxx xxx xxxx xxx xxx, xxx xxxxxxxx xxxx xxx <literal moreinfo="none">REPLACE( )</literal> xxxxxxxx xx xxxxxx xxx xxxxxx. A xxxxxxxx xxxx xxxx xxx xxx xx xxxx xx xxx xxxx xx xxxxxxxxx (x.x., xx <literal moreinfo="none">UPDATE</literal> xxxxxxxxx xx xxx x xxxxxx xxxxx.</para> - <para>Tx xxxxxx xx xxxxxxxx xxxx-xxxxxxx xxxxxxxx, xxx xxx <literal moreinfo="none">ALTER FUNCTION</literal> xxxxxxxxx. Txx <literal moreinfo="none">DROP FUNCTION</literal> xxxxxxxxx xxxxxxx x xxxx-xxxxxxx xxxxxxxx. Yxx xxxxxx xxxxxx xxxxxxxx, xxxxx-xx xxxxxxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch09-77010"> - <refmeta> - <refentrytitle>CREATE PROCEDURE</refentrytitle> - </refmeta> - <refnamediv> - <refname>CREATE PROCEDURE</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">CREATE -[DEFINER = {'<replaceable>xxxx</replaceable>'@'<replaceable>xxxx</replaceable>'|CURRENT_USER}] -PROCEDURE <replaceable>xxxxxx_xxxxxxxxx</replaceable> ([[IN|OUT|INOUT] <replaceable>xxxxxxxxx</replaceable> <replaceable>xxxx_xxxx</replaceable>[,...]]) - [LANGUAGE SQL] - [NOT] DETERMINISTIC] - [{CONTAINS SQL|NO SQL|READS SQL DATA|MODIFIES SQL DATA}] - [COMMENT '<replaceable>xxxxxx</replaceable>'] - [SQL SECURITY {DEFINER|INVOKER}] -<replaceable>xxxxxxx</replaceable></synopsis> - </refsynopsisdiv> - <refsect1 id="ch09-10-fm2xml"> - <title/> - <para>A xxxxxxxxx, xxxx xxxxx xx x <firstterm>xxxxxx xxxxxxxxx</firstterm>, xx xxx xx SQL xxxxxxxxxx xxxxxx xx xxx xxxxxx xxx xxxxxx xx x xxxx, xxxxxxxxxx xxx xxxx xx’x xxxxx xx xxx xxxxxxxxxx. A xxxxxxxxx xxx xxxxxxxxxxx xxxxxxx xxxx xx xxx xxxx xx xxxxxxx xxx xxxxxx xx xxxxxxxxx xx xxxx xxxxxxxxx xxxx xxx xxxx xx xxxxxxxxx xx xxxxxxx xxxx.</para> - <para>Txx xxxxx, xxxxxxx xxxxxx xx xxxxxxxxx xxxx:</para> - <programlisting format="linespecific"> -CREATE PROCEDURE <replaceable>xxxxxxxxx_xxxx</replaceable> (IN <replaceable>xxxxxxxxx</replaceable> INT) <replaceable>SQL_xxxxxxxxxx</replaceable> -</programlisting> - <para> -Txx xxxxxxxxx xxxx xxxxx xxx xx xxx xxx-xxxxxxxx xxxx, xxx xx xxxx-xxxxxxxxxxx. Wxxxxx xxxxxxxxxxx, xxxx x xxxxx-xxxxxxxxx xxxx xx xxx xxxxxxxxxx xxxx xxxx xxxx xxxx xx (<literal moreinfo="none">IN</literal>), xxxxxx xxxx (<literal moreinfo="none">OUT</literal>), xx xx xxxx (<literal moreinfo="none">INOUT</literal>). Fxx xxxx xxxxxxxxx, xxxxxxx xxx xxxx xxxx xx xx xxxx (<literal moreinfo="none">INT</literal>, <literal moreinfo="none">CHAR</literal>, xxx.).</para> - <para>Yxx xxx xxxxxxx xxxxxxx xxxxxxxxxx xx xxxxxxxx xxx xxxxxxxxxxxxxxx xx xxx xxxxxx xxxxxxxxx. Sxxxxxx xxx xx xxxxx xx xxx xxxxx, xx x xxxxx-xxxxxxxxx xxxx. Yxx xxx xxxxxxx xxx xxxxxxxx xxxx xx SQL xxxx xxx <literal moreinfo="none">LANGUAGE SQL</literal> xxxxxxxxx, xxx xxxx xx xxx xxxxxxx xxx xxxxxxx xxxxxxxxxxx.</para> - <para>A xxxxxxxxx xxxx xxxxxxx xxx xxxx xxxxxxx xxxx xxxx xxx xxx xxxx xxxxx xxxxxxxxxx xx xxxxxxxxxx <firstterm>xxxxxxxxxxxxx</firstterm>. Yxx xxx xxxx xxxxxxxxxx xxxx xx xxx xxxxxx xx xxxxxxxxxx xxxx xxxxxxxx xxxxxxx xxx <literal moreinfo="none">DETERMINISTIC</literal> xxxxxxxxx. <literal moreinfo="none">NOT DETERMINISTIC</literal> xx xxx xxxxxxx.</para> - <para>Oxx xxx xx xxxxxxxx xxxxx xxx xxxxxx xxx xxx xxxxxxxxx xxxx xxxxxxxx xxxx xx, xxxxxxxx xxx xxxxxx xx xxxxxxxx xxx xxxxxxxxx. Txx xxxxxx xxxx xxx xxxxxxx xxx xxxxxxxxxxxx xx xxx xxxxxxxxx, xxxxxxx:</para> - <variablelist> - <varlistentry> - <term> - <literal moreinfo="none">CONTAINS SQL</literal> - </term> - <listitem> - <para> -Txx xxxxxxxxx xxxxxxxx SQL xxxxxxxxxx, xxx xxxx xxx xxxx xxxx xx xxxxx xx x xxxxx; xxx xxxxxxx xx x xxxxxxxxx xxxx xxxxxxx xxxxxx xxxxxx. Txxx xx xxx xxxxxxx. -</para> - </listitem> - </varlistentry> - <varlistentry> - <term> - <literal moreinfo="none">NO SQL</literal> - </term> - <listitem> - <para> -Txx xxxxxxxxx xxxx xxx xxxxxxx xxx SQL xxxxxxxxxx. -</para> - </listitem> - </varlistentry> - <varlistentry> - <term> - <literal moreinfo="none">READS SQL DATA</literal> - </term> - <listitem> - <para> -Txx xxxxxxxxx xxxxx xxxx xxxx xxxx xx xxxxx xxx xxxxx, xxx xxxxx’x xxxxx xxxx xx xxx xxxxxx. -</para> - </listitem> - </varlistentry> - <varlistentry> - <term> - <literal moreinfo="none">MODIFIES SQL DATA</literal> - </term> - <listitem> - <para> -Txx xxxxxxxxx xxxxx xxxxx xxxx xx xx xxxxx xxx xxxxx, xx xxxx xxxxxxxxxxx xxxxxxx xxxx xxxx xxxxxx. -</para> - </listitem> - </varlistentry> - </variablelist> - <para>Wxxx xxx <literal moreinfo="none">COMMENT</literal> xxxxxx xxx xxx xxx x xxxxxxx xxxxxxxxxx xxx xxxxxxxxx xxx xxxxxx xxxxxxxxx.</para> - <para>Txxx xxxxxxxxx xxxxxxxx xxx <literal moreinfo="none">CREATE ROUTINE</literal> xxxxxxxxx. Txx <literal moreinfo="none">ALTER ROUTINE</literal> xxx <literal moreinfo="none">EXECUTE</literal> xxxxxxxxxx xxx xxxxxxx xx xxx xxxx xxx xxxxxxx xxxx xxxxxxx xx xxxxxx x xxxxxxx, xx xxxxxxx. Wxxx xxx <literal moreinfo="none">DEFINER</literal> xxxxxx, xxx xxx xxxxxxx xxx MxSQL xxxx xxx xxxx xx xx xxxx xx MxSQL xxx xxx xxxxxxxxx. Rxxxxxx xx xxxx xxxxxx xx <literal moreinfo="none">SQL SECURITY</literal> xxxxxxx, xxxxx xxxxxxxxx MxSQL xx xxx xxxxxx xxx xxxx xxxxxxx xx xxx xxxxxxx (<literal moreinfo="none">DEFINER</literal>) xx xxx xxxxxxxxx xx xxx xxxxxxx xxxx’x xxxxxxxxx xxx xxxxxxxxx (<literal moreinfo="none">INVOKER</literal>). Txxx xxx xxxx xx xxxxxxx xxxx xxxxx xxxx xxxxxxxxx xxxxxxxxxx xxxxxxxxxx.</para> - <para>Ix xxx xxxxxxxxx xxxxxxx, xx xxxxxx x xxxxxx xxxxxxxxx xxxx xxxxxx xxx xx xxx xxxx xxxx xxx <literal moreinfo="none">xxxxxxxx</literal> xxxxx xx x xxxxxx xxxxx xxxx xxx xxxx xxxxxx. Txx xxxxx xxxx xxxxxxxx xx xxxxx xxxxxx xx xxxxx xxx xxxx xxx xxx x xxxxxxx xx xxxxxxxxx xxxx.</para> - <programlisting format="linespecific">DELIMITER | - -CREATE PROCEDURE xxxxxxxx_xxxx_xxxx (IN xxx_xxxx VARCHAR(ddd)) -BEGIN -REPLACE INTO xxxxxxxx_xxxxxx -SELECT *, xxx_xxxx FROM xxxxxxxx; -END| - -DELIMITER ; - -SET @xxx_xxxx = 'dddd Sxxxxx Rxxxxx'; - -CALL xxxxxxxx_xxxx_xxxx(@xxx_xxxx);</programlisting> - <para>Txx xxxxx xxxxxxxxx xxxxxxx xxx xxxxxxxxxxx xxxxxxxxx xxx xx SQL xxxxxxxxx xxxx xxx xxxxxxx, x xxxx-xxxxx, xx x xxxxxxxx xxx. Sxx xxx <literal moreinfo="none">BEGIN...END</literal> xxxxxxxxx xx xxxx xxxxxxx xxx xxx xxxxxxx xxxx xx xxxxxxxxx.</para> - <para>Ixxxxx xxx xxxxxxxxx, xxx <literal moreinfo="none">REPLACE</literal> xxxxxxxxx xxxxxxx xxx xxxxxxx xxxx <literal moreinfo="none">xxxxxxxx</literal> xxxxx xxxx xxx xxxxx xx xxx <literal moreinfo="none">xxx_xxxx</literal> xxxxxxxx. Txxx, xxxxx xxx xx <literal moreinfo="none">xxxxxxxx</literal> xx xxxxxxxx, xxxxx xxxx xxx xxxxx xx xxx xxxxxxxx, xxxx x xxx xxx xx <literal moreinfo="none">xxxxxxxx_xxxxxx</literal>.</para> - <para>Axxxx xxx xxxxxxxxx xx xxxxxxx xxx xxx xxxxxxxxx xx xxxxxxx xxxx xx x xxxx-xxxxx, xxx xxxxxxx xxxx x xxxxxxxx xxxxxx <literal moreinfo="none">xxx_xxxx</literal> xxxx xxxxxxxx x xxxx xxx xxxx xxxxx xxxxx xx xxxx xxx xx xxxx xx xxx xxx xxxxx. Txxx xxxxxxxx xx xxxxxx xx xxx <literal moreinfo="none">CALL</literal> xxxxxxxxx xxxx xxxx xxx xxxxxxxxx.</para> - <para>Tx xxxxxx xx xxxxxxxx xxxxxx xxxxxxxxx, xxx xxx <literal moreinfo="none">ALTER PROCEDURE</literal> xxxxxxxxx. Txx <literal moreinfo="none">DROP PROCEDURE</literal> xxxxxxxxx xxxxxxx x xxxxxxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch09-77011"> - <refmeta> - <refentrytitle>CREATE TRIGGER</refentrytitle> - </refmeta> - <refnamediv> - <refname>CREATE TRIGGER</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">CREATE -[DEFINER = {'<replaceable>xxxx</replaceable>'@'<replaceable>xxxx</replaceable>'|CURRENT_USER}] -TRIGGER <replaceable>xxxxxxx</replaceable> {AFTER|BEFORE} -{DELETE|INSERT|UPDATE} -ON <replaceable>xxxxx</replaceable> FOR EACH ROW <replaceable>xxxxxxxxx</replaceable></synopsis> - </refsynopsisdiv> - <refsect1 id="ch09-11-fm2xml"> - <title/> - <para>Txxxxxxx xxx xxxxxxx xx xx xxxxx xxxx x xxxx xxxxxxxx x xxxxxx xx xxxx. Exxx xxxxxxx xx xxxxxxxxxx xxxx x xxxxxxxxxx xxxxx.</para> - <para>Tx xxxxxxx xxxx xxx xxxxxxx xx xxxxxxxx xxxxxxxxxxx xxxxxx xxx xxxxxxxxxx xxxx xxxxxxxxx, xxx xxx xxxxxxxxx <literal moreinfo="none">BEFORE</literal>; xx xxxxxxxx xxxx xxx xxxxxxx xxxxxx xx xxxxxxxx xxxxxxxxxxx xxxxxxxxx, xxx <literal moreinfo="none">AFTER</literal>.</para> - <para>Ax xxxx xxxx xxxx xxxxx xxxxx xx SQL xxxxxxxxxx xxx xxxxx xxx xxxxxx xx xxxxxxx x xxxxxxx: xxxxxxxxx, xxxxxxxxxx, xxx xxxxxxx. Sxxxxxxxxx <literal moreinfo="none">INSERT</literal>, xxxxxxx, xxxxxxx xxx xxxxxxx xx <literal moreinfo="none">INSERT</literal> xxxxxxxxxx, <literal moreinfo="none">LOAD DATA</literal> xxxxxxxxxx, xxx <literal moreinfo="none">REPLACE</literal> xxxxxxxxxx—xxx xxxxxxxxxx xxxx xxx xxxxxxxx xx xxxxxx xxxx xxxx x xxxxx. Sxxxxxxxx, xxxxxxxxxx <literal moreinfo="none">DELETE</literal> xxxxxxxx xxxx <literal moreinfo="none">DELETE</literal>, xxx <literal moreinfo="none">REPLACE</literal> xxxxxxxxxx, xxxxxxx <literal moreinfo="none">REPLACE</literal> xxxxxxxxx xxxxxxx xxxx xx xxxx xx xxxxxxxxx xxxx.</para> - <para> Axxxx xxxxxxxxxx xxx xxxxxxx xxxxx, xxxx xxx xxxxxxx <literal moreinfo="none">ON</literal> xxxxxxxx xx xxx xxxxx xxxx. Txxx xx xxxxxxxx xx <literal moreinfo="none">FOR EACH ROW</literal> xxx xxx SQL xxxxxxxxx xx xx xxxxxxxx xxxx xxx xxxxxxx xxxxx xxxxxx. Mxxxxxxx SQL xxxxxxxxxx xx xxxxxxx xxx xx xxxxx xx xxx xxxx xx x xxxxxxxx xxxxxxxxx xxxxx <literal moreinfo="none">BEGIN...END</literal>, xxxxx xxx xxxxxxxxx xxxxxxx xx xxxx xxxxxxx.</para> - <para>Oxxx xxx xxxxxxx xxxxxx xxx xxxxxxx xxxxx xxxxxxxxxxx xx xxxxxxx xxx xxxx xxxxx. Fxx xxxxxxx, x xxxxx xxxxxx xxxx xxx <literal moreinfo="none">INSERT BEFORE</literal> xxxxxxxx, xxx xx xxx xxxx xx <literal moreinfo="none">INSERT BEFORE</literal> xxx xx <literal moreinfo="none">INSERT AFTER</literal> xxxxxxx.</para> - <para>Txxxx xx xx <literal moreinfo="none">ALTER TRIGGER</literal> xxxxxxxxx xx xxxx xxxx. Ixxxxxx, xxx xxx <literal moreinfo="none">DROP TRIGGER</literal> xxxxxxxxx xxx xxxx xxxxxxx <literal moreinfo="none">CREATE TRIGGER</literal> xxxx xxx xxx xxxxxxx.</para> - <para>Ax xx xxxxxxx xx xxx x xxxxxxx xxx xx xxxxxxx, xxxxxxx xxxx xxx x xxxxxxx xxxxxxxx, xxxxxxxx x xxxxxxx xxxxxx xx xxxxxxx xx xxx <literal moreinfo="none">xxxxxxxx</literal> xxxxx, xx xxxx xx xxxxx xxx xxxx xx xxxxxxx xxxxx xx xxxxxxxx xxxx xxxxxxxxxxx. Ax xxxxxxx xxxxxxx xx xxx xxxx xxxxx xx xxxx xxxx x xxxxxxx:</para> - <programlisting format="linespecific">DELIMITER | - -CREATE TRIGGER xxxxxxxx_xxxxxxxx -BEFORE DELETE -ON xxxxxxxx FOR EACH ROW - -BEGIN -INSERT INTO xxxxxxxx_xxxxxxx -(xxxxxxx_xx, xxxx_xxxxx, xxxx_xxxx) -VALUES(OLD.xxxxxxx_xx, OLD.xxxx_xxxxx, OLD.xxxx_xxxx); -END| - -DELIMITER ;</programlisting> - <para>Txx xxxxx xxxxxxxxx xxxxxxx xxx xxxxxxxxxxx xxxxxxxxx xxx xx SQL xxxxxxxxx xxxx xxx xxxxxxx, x xxxx-xxxxx, xx x xxxxxxxx xxx. Sxx xxx <literal moreinfo="none">BEGIN...END</literal> xxxxxxxxx xx xxxx xxxxxxx xxx xxx xxxxxxx xxxx xx xxxxxxxxx.</para> - <para>Nxxx, xx xxxxxx x xxxxxxx xx xxxxxxxxx xxxx, xxxxxx xxxxxx x xxxxxxxx xx xxxx xx xxx <literal moreinfo="none">xxxxxxxx</literal> xxxxx, xxx xxxxxx xxxx xxxxxxx xxx xxxxxxxx SQL xxxxxxxxx xxxxx. Txx xxxxxxxxxx xxxxxxx <literal moreinfo="none">BEGIN</literal> xxx <literal moreinfo="none">END</literal> xxxx xxxxx xxx xxxx xx xx xxxxxxx xx xxxxxxx xxxxx xxxx xxx xxxx xxxxxx.</para> - <para>Tx xxxxxxx xxxx xxxx xxx xxxx xx xx xxx <literal moreinfo="none">INSERT</literal> xxxxxxxxx, xx xxx xxx <literal moreinfo="none">OLD</literal> xxxxx xxxxx xxxxxxxx xx MxSQL xxxxxxx xxxx xxx xxxxxx xxxxx xx xxx xxxxx xxxxx xxx xxx xx xx xx xxxxxxx. <literal moreinfo="none">OLD</literal> xxxxxx xx xxx xxxxx xx xxx xxxxxxx’x <literal moreinfo="none">ON</literal> xxxxxx, xxxxxx xxx xxxxxxx xxx xxxx xx xxx xxxxxxx xx xxx xxxxxxxxx xxxxxxx xxx xxxxxxx. Tx xxxx xxxxx, xx xxxx xxxxxxx xx’xx xxxxxxxxx xxx xxxx xxxx xxxx xxxxx xx xxxxxxx. <literal moreinfo="none">OLD.*</literal> xx xxx xxxxxxx, xx xx xxxx xx xxxxxxx xxxx xxxxxx. Tx xxxxxxx xxx xxxxxxx xxxxx xxxx xxx xxxxxxxx xx xxxxxxx, xxx <literal moreinfo="none">NEW</literal> xx xxx xxxxx xxxxx.</para> - <para> Txx xxxxxxxxx xx xx xxxxxxxx xx xxx xxxxxxx xx xxx xxxxxxxx xxxxxxx xx x xxxxxxxx xxxxxxxxx. Ix xxxxxx xxxx <literal moreinfo="none">BEGIN</literal> xxx xxxx xxxx <literal moreinfo="none">END</literal> xxx xxxxxxxx xx xxx xxxxxxxx xxx (<literal moreinfo="none">|</literal>) xxxx xx xxxxxxxxx xx xxx xxxxxxxxx. Txx xxxxxxxxx xx xxxx xxxxx xx xxx xxxx xxxx xxxx xx x xxxx-xxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch09-77012"> - <refmeta> - <refentrytitle>DECLARE</refentrytitle> - </refmeta> - <refnamediv> - <refname>DECLARE</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">DECLARE <replaceable>xxxxxxxx</replaceable> <replaceable>xxxx_xxxx</replaceable> [DEFAULT <replaceable>xxxxx</replaceable>] - -DECLARE <replaceable>xxxxxxxxx</replaceable> CONDITION FOR -{SQLSTATE [VALUE] <replaceable>xxxxx</replaceable> | <replaceable>xxxxx_xxxx</replaceable>] - -DECLARE <replaceable>xxxxxx</replaceable> CURSOR FOR SELECT... - -DECLARE {CONTINUE|EXIT|UNDO} HANDLER FOR - {[SQLSTATE [VALUE] <replaceable>xxxxx</replaceable>] - [SQLWARNING] - [NOT FOUND] - [SQLEXCEPTION] - [<replaceable>xxxxx_xxxx</replaceable>] - [<replaceable>xxxxxxxxx</replaceable>]} -<replaceable>SQL_xxxxxxxxx</replaceable></synopsis> - </refsynopsisdiv> - <refsect1 id="ch09-12-fm2xml"> - <title/> - <para>Txxx xxxxxxxxx xxxxxxxx xxxxx xxxxxxxxx xxx xxxxx xxxxx xxxxxxx xx xxxxxxxx. Ix xxxx xx xxxx xxxxxx x <literal moreinfo="none">BEGIN...END</literal> xxxxxxxx xxxxxxxxx xx x xxxxxxx, xxxxx <literal moreinfo="none">BEGIN</literal> xxx xxxxxx xxx xxxxx SQL xxxxxxxxxx. Txxxx xxx xxxx xxxxx xxxx xxx <literal moreinfo="none">DECLARE</literal>: xx xxxxxxx xxxxx xxxxxxxxx, xxxxxxxxxx, xxxxxxx, xxx xxxxxxxx. Wxxxxx x <literal moreinfo="none">BEGIN...END</literal> xxxxx, xxxxxxxxx xxx xxxxxxxxxx xxxx xx xxxxxxxx xxxxxx xxxxxxx xxx xxxxxxxx, xxx xxxxxxx xxxx xx xxxxxxxx xxxxxx xxxxxxxx.</para> - <para>Txx xxxxx xxxxxx xxxxx xxx xx xxxxxxx xxxxxxxxx. Ix xxxxxxxx xxx xxxx xxxx xxx, xxxxxxxxxx, xxxxxxx xxxxxx. A xxxxxxxx xxxxxxxx xxxx xxxx xxxxxxxxx xx xxxxxxxxx xxxx xxxxxx xxx xxxxxxx xx xxxxx xx xx xxxxxxxx. Ix xxx xxxxxxx xx x xxxxxx, xxxxx xx xxxxxx xxxxxx. Ix xx xxxxxxx xx xxxxxxxx, NULL xx xxx xxxxxxx xxxxx.</para> - <para>A xxxxxxxxx xx xxxxxxxxx xxxxxx xx SQLSTATE xxxxx xx x MxSQL xxxxx xxxx xxxxxx. Txx xxxxxx xxxxxx xx xxxx xxx xxxxxxxxx x xxxxxxxxx xxx xxxxxxxxxxx xx xxxx xx SQLSTATE xx xx xxxxx xxxx. Wxxx xxxxxxxxx x xxxxxxxxx xxxxx xx xx SQLSTATE, xxxx xxx <literal moreinfo="none">SQLSTATE VALUE</literal> xxxxxx xxxxxxxx xx xxx xxxxx. Oxxxxxxxx, xxxx xxx xxxxx xxxx xxxxxx.</para> - <para>Txx xxxxx xxxxxx xxxxxxxx x xxxxxx, xxxxx xxxxxxxxxx, xxxxxx x xxxxxxxxx, x xxxxxxx xxx xxxx xx xxxxxxxxx xxx xxx xx x xxxx. Gxxx x xxxxxx, xxx-xxxxxxxx xxxx xxx xxx xxxxxx’x xxxx. Txxx xx xxxxxxxx xx <literal moreinfo="none">CURSOR FOR</literal> xxx xxxx x <literal moreinfo="none">SELECT</literal> xxxxxxxxx. Ix xxxx xxx xxxx xx <literal moreinfo="none">INTO</literal> xxxxxx. Tx xxxx xx xxxx x xxxxxx, xxx xxx <literal moreinfo="none">OPEN</literal> xxxxxxxxx xxxxxx xxx xxxx xxxxxxx xx xxxxx xxx xxxxxxxxxxx xxx xxxx. Tx xxxxxxxx xxxx xxxx x xxxxxx, xxxxx xx xxxx xxx xxx xx x xxxx, xxx xxx <literal moreinfo="none">FETCH</literal> xxxxxxxxx. Wxxx xxxxxxxx, xxx xxx <literal moreinfo="none">CLOSE</literal> xxxxxxxxx xx xxxxx xx xxxx xxxxxx.</para> - <para>Txx xxxx xxxxxx xxx xxxx xxxxxxxxx xxxxxxxx x xxxxxxx. Wxxx x xxxxxxx, xxx xxx xxxxxxx xx SQL xxxxxxxxx xx xx xxxxxxxx xxxxx x xxxxxxxx xxxxxxxxx xxxx xxxxxx xxxxxx x xxxxxxx. Txxxx xxxxx xx xxxxxxxx xxx xxxxxxx: <literal moreinfo="none">CONTINUE</literal>, <literal moreinfo="none">EXIT</literal>, xxx <literal moreinfo="none">UNDO</literal>. Uxx <literal moreinfo="none">CONTINUE</literal> xx xxxxxxxx xxxx xxx xxxxxxx xx xx xxxxxxxx xxxxx xxx SQL xxxxxxxxx xxxxx xx xxxxxxxx. Txx <literal moreinfo="none">EXIT</literal> xxxxxxxxx xxxxxxxxx xxxx xxx <literal moreinfo="none">BEGIN...END</literal> xxxxxxxx xxxxxxxxx xxxx xxxxxxxx xxx xxxxxxxxxxx xxxxxx xx xxxxxx xxxx xxx xxxxxxxxx xxxxx xx xxx. <literal moreinfo="none">UNDO</literal> xx xxxxx xx xxxxxxxx MxSQL xx xxxx xxx xxxxxxxx xxxxxxxxx xxx xxxxx xx xxxxx. Hxxxxxx, xxxx xxxxxxxxx xx xxx xxx xxxxxxxxx xx MxSQL.</para> - <para>Txx xxxxxxx’x <literal moreinfo="none">FOR</literal> xxxxxx xxx xxxxxxx xxxxxxxx xxxxxxxxxx xx x xxxxx-xxxxxxxxx xxxx. Txxxx xxx xxxxxxx xxxxxxx xx xxx SQLSTATE: xxx xxxxx xxxxxxx x xxxxxx SQLSTATE xxxx xxxxxx, xxxx <literal moreinfo="none">SQLWARNING</literal> xx xxxxxxx xxx SQLSTATE xxxx xxxxxxxx xxxx dd, <literal moreinfo="none">NOT FOUND</literal> xxx xxx SQLSTATE xxxx xxxxxxxx xxxx dd, xx <literal moreinfo="none">SQLEXCEPTION</literal> xxx xxx xxxxxx xxxx xxx’x xxxxx xxxx dd xx dd. Axxxxxx xxxxxxxxx xxx xxx xxxx xx x MxSQL xxxxx xxxx xxxxxx. Yxx xxx xxxx xxxxxxx xxx xxxx xx x xxxxxxxxx xxx xxxxxxxxxx xxxxxxx xxxx xxx xxx <literal moreinfo="none">DECLARE</literal> xxxxxxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch09-77013"> - <refmeta> - <refentrytitle>DELIMITER</refentrytitle> - </refmeta> - <refnamediv> - <refname>DELIMITER</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">DELIMITER <replaceable>xxxxxxxxx</replaceable></synopsis> - </refsynopsisdiv> - <refsect1 id="ch09-13-fm2xml"> - <title/> - <para>Txxx xxxxxxxxx xxxxxxx xxx xxxxxxxxx (xxxxxxxxxxx xxxxxxxxx) xx SQL xxxxxxxxxx xxxx xxx xxxxxxx xx x xxxx-xxxxx xx xxxxxxx xxxxxxxxx. Txxx xx xxxxxx xxxx xxxxxxxx x xxxxxx xxxxxxxxx xx xxxxxxx, xx xxxx MxSQL xxxx xxx xxxxxxx x xxxx-xxxxx xxxxxxxxx xx xxx xxxxxxxxx xx xxxxxxx xx xxx xxx xx xxx <literal moreinfo="none">CREATE PROCEDURE</literal> xx <literal moreinfo="none">CREATE TRIGGER</literal> xxxxxxxxx. Txxx xxxxxxxxx xx xxxx xxxx xx xxxxxxx xxx xxxxxxx xxxxxxxxx. Dxx’x xxx xxx xxxx-xxxxx xx xxx xxxxxxxxx, xx xxxx xx xxxx xx xxxxxx xxxxxxx xxxxxxxxxx. Exxxxxxx xx xxxx xxxxxxxxx xxxxxx xx xxx <literal moreinfo="none">CREATE PROCEDURE</literal> xxx <literal moreinfo="none">CREATE TRIGGER</literal> xxxxxxxxxx xx xxxx xxxxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch09-77014"> - <refmeta> - <refentrytitle>DROP EVENT</refentrytitle> - </refmeta> - <refnamediv> - <refname>DROP EVENT</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">DROP EVENT [IF EXISTS] <replaceable>xxxxx</replaceable></synopsis> - </refsynopsisdiv> - <refsect1 id="ch09-14-fm2xml"> - <title/> - <para>Txxx xxxxxxxxx xxxxxxx xx xxxxx. Txx <literal moreinfo="none">IF EXISTS</literal> xxxxxxx xxxxxxxx xxxxx xxxxxxxx xxxx xxx xxxxx xxxxx’x xxxxx. Ixxxxxx, x xxxx xxxx xx xxxxxxxxx, xxxxx xxx xx xxxxxxxxx xxxxxxxxx xx xxxxxxxxx xxx <literal moreinfo="none">SHOW WARNINGS</literal> xxxxxxxxx. Ax xxxxxxx d.d.dd xx MxSQL, xxxx xxxxxxxxx xxxxxxxx xxx <literal moreinfo="none">EVENT</literal> xxxxxxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch09-77015"> - <refmeta> - <refentrytitle>DROP FUNCTION</refentrytitle> - </refmeta> - <refnamediv> - <refname>DROP FUNCTION</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">DROP FUNCTION [IF EXISTS] <replaceable>xxxxxxxx</replaceable></synopsis> - </refsynopsisdiv> - <refsect1 id="ch09-15-fm2xml"> - <title/> - <para>Uxx xxxx xxxxxxxxx xx xxxxxx x xxxx-xxxxxxx xxxxxxxx. Txx <literal moreinfo="none">IF EXISTS</literal> xxxxxxx xxxxxxxx xxxxx xxxxxxxx xxxx xxx xxxxxxxx xxxxx’x xxxxx. Ixxxxxx, x xxxx xxxx xx xxxxxxxxx, xxxxx xxx xx xxxxxxxxx xxxxxxxxx xx xxxxxxxxx xxx <literal moreinfo="none">SHOW WARNINGS</literal> xxxxxxxxx. Txxx xxxxxxxxx xxxxxxxx xxx <literal moreinfo="none">ALTER ROUTINE</literal> xxxxxxxxx xxx xxx xxxxxxxx xxxxx, xxxxx xx xxxxxxxxxxxxx xxxxxxx xx xxx xxxxxxx xx xxx xxxxxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch09-77016"> - <refmeta> - <refentrytitle>DROP PREPARE</refentrytitle> - </refmeta> - <refnamediv> - <refname>DROP PREPARE</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">{DROP|DEALLOCATE} PREPARE <replaceable>xxxxxxxxx_xxxx</replaceable></synopsis> - </refsynopsisdiv> - <refsect1 id="ch09-16-fm2xml"> - <title/> - <para>Txxx xxxxxxxxx xxxxxxx x xxxxxxxx xxxxxxxxx. Txx xxxxxx xx <literal moreinfo="none">DROP PREPARE</literal> xxx <literal moreinfo="none">DEALLOCATE PREPARE</literal> xxx xxxxxxxxxx. Fxx xx xxxxxxx, xxx xxx <literal moreinfo="none">PREPARE</literal> xxxxxxxxx xx xxxx xxxxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch09-77017"> - <refmeta> - <refentrytitle>DROP PROCEDURE</refentrytitle> - </refmeta> - <refnamediv> - <refname>DROP PROCEDUREE</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">DROP PROCEDURE [IF EXISTS] <replaceable>xxxxxxxx</replaceable></synopsis> - </refsynopsisdiv> - <refsect1 id="ch09-17-fm2xml"> - <title/> - <para>Txxx xxxxxxxxx xxxxxxx x xxxxxx xxxxxxxxx. Txx <literal moreinfo="none">IF EXISTS</literal> xxxxxxx xxxxxxxx xxxxx xxxxxxxx xxxx xxx xxxxxx xxxxxxxxx xxxxx’x xxxxx. Ixxxxxx, x xxxx xxxx xx xxxxxxxxx, xxxxx xxx xx xxxxxxxxx xxxxxxxxxx xx xxxxxxxxx xxx <literal moreinfo="none">SHOW WARNINGS</literal> xxxxxxxxx. Txxx xxxxxxxxx xxxxxxxx xxx <literal moreinfo="none">ALTER ROUTINE</literal> xxxxxxxxx xxx xxx xxxxxx xxxxxxxxx xxxxx, xxxxx xx xxxxxxxxxxxxx xxxxxxx xx xxx xxxxxxx xx xxx xxxxxx xxxxxxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch09-77018"> - <refmeta> - <refentrytitle>DROP TRIGGER</refentrytitle> - </refmeta> - <refnamediv> - <refname>DROP TRIGGER</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">DROP TRIGGER [IF EXISTS] <replaceable>[xxxxxxxx.]xxxxxxx</replaceable></synopsis> - </refsynopsisdiv> - <refsect1 id="ch09-18-fm2xml"> - <title/> - <para>Txxx xxxxxxxxx xxxxxxx x xxxxxxx. Txx <literal moreinfo="none">IF EXISTS</literal> xxxxxxx xxxxxxxx xxxxx xxxxxxxx xxxx xxx xxxxxxx xxxxx’x xxxxx. Ixxxxxx, x xxxx xxxx xx xxxxxxxxx, xxxxx xxx xx xxxxxxxxx xxxxxxxxxx xx xxxxxxxxx xxx <literal moreinfo="none">SHOW WARNINGS</literal> xxxxxxxxx. Yxx xxx xxxxxxx xxx xxxxxxxx xx xxxxxx xxxx xxxxx xxx xxxxxxx xx xxxxxxxxxx. Ix xxx xxxxx, xxx xxxxxxx xxxxxxx xxxxxxxx xx xxxxxxx. Ax xx xxxxxxx d.d.d xx MxSQL, xxxx xxxxxxxxx xxxxxxxx xxx <literal moreinfo="none">TRIGGER</literal> xxxxxxxxx xxx xxx xxxxx xxxxxxx xx xxx xxxxxxx xxxxx. Pxxxxxxxxx xx xxxxxxxx <literal moreinfo="none">SUPER</literal> xxxxxxxxx. Wxxx xxxxxxxxx xxxx xxxxxxx d.d.dd xx xxxxxxx xx MxSQL, xx xxxx xx xxxx xxx xxxxxxxx xxxxxxx xxxxx’x x xxxxxxx xxxx xxxxx xx xxxxxxxx xxxxxxxx xxxx xxxxxxx xxxxxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch09-77019"> - <refmeta> - <refentrytitle>EXECUTE</refentrytitle> - </refmeta> - <refnamediv> - <refname>EXECUTE</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">EXECUTE <replaceable>xxxxxxxxx_xxxx</replaceable> [USING <replaceable>@xxxxxxxx</replaceable>[, ...] ...]</synopsis> - </refsynopsisdiv> - <refsect1 id="ch09-19-fm2xml"> - <title/> - <para>Txxx xxxxxxxxx xxxxxxxx x xxxx-xxxxxxx xxxxxxxx xxxxxxxxx. Ix xxx xxxxxxxx xxxxxxxxx xxxxxxxx xxxxxxxxxxxx xx xxxx xxx xxx xxxx xxxxxxxxxx xx xx, xxxxx xxxxxxxxxx xxxx xx xxxxx xx xxx xxxx xx xxxx-xxxxxxx xxxxxxxxx. Mxxxxxxx xxxxxxxxx xxx xx xxxxx xx x xxxxx-xxxxxxxxx xxxx. Yxx xxx xxx xxx <literal moreinfo="none">SET</literal> xxxxxxxxx xx xxx xxx xxxxx xx x xxxxxxxx. Sxx xxx <literal moreinfo="none">PREPARE</literal> xxxxxxxxx xx xxxx xxxxxxx xxx xx xxxxxxx xx xxx <literal moreinfo="none">EXECUTE</literal> xxxxxxxxx’x xxx.</para> - </refsect1> - </refentry> - <refentry id="ch09-77020"> - <refmeta> - <refentrytitle>FETCH</refentrytitle> - </refmeta> - <refnamediv> - <refname>FETCH</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">FETCH <replaceable>xxxxxx</replaceable> INTO <replaceable>xxxxxxxx</replaceable>[, ...]</synopsis> - </refsynopsisdiv> - <refsect1 id="ch09-20-fm2xml"> - <title/> - <para>A xxxxxx xx xxxxxxx xx x xxxxx xx x xxxx: xx xxxxxxxxxx, xxxxxx x xxxxxxxxx, x xxxxxxx xxx xxxx xx xxxxxxxxx xxx xxx xx x xxxx xxxxx xxxx xxxxxxxxx. A xxxxxx xx xxxxxxxxxxx xxxxx xxxx xxx <literal moreinfo="none">DECLARE</literal> xxxxxxxxx. Txxx xxx xxx xxx <literal moreinfo="none">OPEN</literal> xxxxxxxxx xx xxxxxxxxxx xxx xxxxxx. Txx <literal moreinfo="none">FETCH</literal> xxxxxxxxx xxxxxxxxx xxx xxxx xxx xx xxx xxxxxx xxx xxxxxx xxx xxxx xxxxxxxxx xxxx xxx xx xxxx xxxxxxxxx. Txxxx xxxxxx xxx xxxx xxxxxx xx xxxxxxxxx xx xxxxx xxx xxxxxxx xx xxx xxxxxxxxxx <literal moreinfo="none">SELECT</literal> xxxxxxxxx xx xxx xxxxxx. Vxxxxxxxx xxx xxxxx xx x xxxxx-xxxxxxxxx xxxx. Exxx xxxxxxxxx xx <literal moreinfo="none">FETCH</literal> xxxxxxxx xxx xxxxxxx xxx xxx xxxxxx xx xxx xxx. Oxxx xxx xxxx xxxx xxxx xxxxxxx, xx SQLSTATE xx <literal moreinfo="none">ddddd</literal> xx xxxxxxxx. Yxx xxx xxx x xxxxxxxxx xx xxxx xxxxx xxxxxxx x <literal moreinfo="none">DECLARE</literal> xxxxxxxxx xxx xxx xxxxxxx xxxxx xx xxx xxxxxxxxx. Uxx xxx <literal moreinfo="none">CLOSE</literal> xxxxxxxxx xxxxxxxxx xx xxxxx x xxxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch09-77021"> - <refmeta> - <refentrytitle>OPEN</refentrytitle> - </refmeta> - <refnamediv> - <refname>OPEN</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">OPEN <replaceable>xxxxxx</replaceable></synopsis> - </refsynopsisdiv> - <refsect1 id="ch09-21-fm2xml"> - <title/> - <para>Txxx xxxxxxxxx xxxxx x xxxxxx xxxx xxx xxxx xxxxxxxx xxxxxx xxx xxxxxxx xxxxxxx. Dxxx xxxxxxxx xxxx xxx xxxxxx xx xxxxxxxx xxxx xxx <literal moreinfo="none">FETCH</literal> xxxxxxxxx. Txx xxxxxx xx xxxxxx xxxx xxx <literal moreinfo="none">CLOSE</literal> xxxxxxxxx. Sxx xxx xxxxxxxxxxx xx xxx <literal moreinfo="none">DECLARE</literal> xxx <literal moreinfo="none">FETCH</literal> xxxxxxxxxx xx xxxx xxxxxxx xxx xxxx xxxxxxxxxxx xx xxxxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch09-77022"> - <refmeta> - <refentrytitle>PREPARE</refentrytitle> - </refmeta> - <refnamediv> - <refname>PREPARE</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">PREPARE <replaceable>xxxxxxxxx_xxxx</replaceable> FROM <replaceable>xxxxxxxxx</replaceable></synopsis> - </refsynopsisdiv> - <refsect1 id="ch09-22-fm2xml"> - <title/> - <para>Txxx xxxxxxxxx xxxxxxx x xxxxxxxx xxxxxxxxx. A xxxxxxxx xxxxxxxxx xx xxxx xx xxxxx xx SQL xxxxxxxxx, xx xx xx xxxx xxxxxxxxxx xxxx xxxxxx xxxxxxxx xxxxxxxxxx xx xxx xxxxxxxxx. Txxx xxxxx xxxxxxxxxxx xxx xxxxxxx xxxxxxxxxxx. Pxxxxxxx xxxxxxxxxx xxx xxxxx xx xxx xxxx xxx xxxxxxx; xxxx’xx xxx xxxxxx. Txx xxxx xxxxx xxx xx xxx xxx-xxxxxxxx xxxx xxx xx xxxx-xxxxxxxxxxx. Txx xxxxxxxxx xxxxx xxxxxx xxxxxx xxx xx xxx xxxx xx SQL xxxxxxxxx.</para> - <para>Ix xxx xxxx xx xxxxxxx x xxxxx xxxx xxxx xx xxxxxxx xxxx xxx xxxxxxxxx xx xxxxxxxx, xxxx x xxxxxxxx xxxx xx x xxxxxxxxxxx xxxxxx <replaceable>xxxxxxxxx</replaceable>. Wxxx xxx xxxxxxxx xxxxxxxxx xx xxxxxxxx xxxxx xxxx xxx <literal moreinfo="none">EXECUTE</literal> xxxxxxxxx, xxx xxxxxxxxxxxx xxxx xx xxxxxxxx xxxx xxx xxxxxx xxxxx. Txx xxxxxx xxxx xx xxxx xxxxxxxxx (xxx xx xxxx xxx <literal moreinfo="none">SET</literal> xxxxxxxxx) xxx xxxx xx xxxxxx xx xxx <literal moreinfo="none">EXECUTE</literal> xxxxxxxxx xx xxx xxxxx xxxx xxx xxxxxxxxxxxx xxxxxx xx xxx xxxxxxxx xxxxxxxxx. A xxxxxx xxxxxxx xxxxx xxxxx xxxxxxxxxx xxxxxxx:</para> - <programlisting format="linespecific">PREPARE xxxxx_xxxxx -FROM 'SELECT COUNT(*) - FROM xxxxxxxx - WHERE xxxx_xxxx = ?'; - -SET @xxxx = 'Nxx Oxxxxxx'; -EXECUTE xxxxx_xxxxx USING @xxxx; - -SET @xxxx = 'Bxxxxx'; -EXECUTE xxxxx_xxxxx USING @xxxx;</programlisting> - <para>Ix xxxx xxxxxxx, xxx xxxxx xxxxxx xxx xxxxxxxx xxxxxxxxx xxxx xxxxxx x xxxxx xx xxx xxxxxx xx xxxxxxxx xxxx xxx xxxx xxxxx. Bx xxxxxxx xxx xxxxx xx xxx xxxx-xxxxxxx xxxxxxxx <literal moreinfo="none">@xxxx</literal> xx xxxxxxx xxxx, xx xxx xxxxxxx xxx xxxxxxxx xxxxxxxxx <literal moreinfo="none">xxxxx_xxxxx</literal> xxxxx xxxxxxx xxxxxx xx xxxxxxx xxx <literal moreinfo="none">PREPARE</literal> xxxxxxxxx. Txx xxxxxxx xxxx xxxxxxxx xx xxxxxxxxx, xx xxxxxx. Tx xxxxxx x xxxxxxxx xxxxxxxxx xxxx xxx xxxxx, xxx xxx <literal moreinfo="none">DROP PREPARE</literal> xxxxxxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch09-77023"> - <refmeta> - <refentrytitle>SHOW CREATE EVENT</refentrytitle> - </refmeta> - <refnamediv> - <refname>SHOW CREATE EVENT</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">SHOW CREATE EVENT <replaceable>xxxxx</replaceable></synopsis> - </refsynopsisdiv> - <refsect1 id="ch09-23-fm2xml"> - <title/> - <para>Txxx xxxxxxxxx xxxxxxxx xx SQL xxxxxxxxx xxxx xxx xx xxxx xx xxxxxx xx xxxxx xxxx xxx xxx xxxxx. Ix’x xxxxxx xxxxxx xxx xxxxxxxxxx xxx xxxxxxxx xxxxxxxxxx xxxx xxx xxxxx, xxxxxxx xxxx’xx xxx xxxxxxxx xx xxx xxxxxxx xx xxx <literal moreinfo="none">SHOW EVENTS</literal> xxxxxxxxx.</para> - <para>Ax xxxxxxx xxxxxxx xxxxxxx xx xxxxx xxxx xxx xxxxxxx xxxx xxx <literal moreinfo="none">CREATE EVENT</literal> xxxxxxxxx xxxxxxx xx xxxx xxxxxxx:</para> - <programlisting format="linespecific">SHOW CREATE EVENT xxxxxxxx_xxxx \G - -*************************** d. xxx *************************** - Exxxx: xxxxxxxx_xxxx - xxx_xxxx: -Cxxxxx Exxxx: CREATE EVENT `xxxxxxxx_xxxx` ON SCHEDULE -EVERY d DAY ON COMPLETION PRESERVE ENABLE -COMMENT 'Dxxxx xxxx xx xxxxxxxx xxxxx xx xxxxxxxx_xxxxxx' -DO CALL xxxxxxxx_xxxx_xxxx()</programlisting> - </refsect1> - </refentry> - <refentry id="ch09-77024"> - <refmeta> - <refentrytitle>SHOW CREATE FUNCTION</refentrytitle> - </refmeta> - <refnamediv> - <refname>SHOW CREATE FUNCTION</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">SHOW CREATE FUNCTION <replaceable>xxxxxxxx</replaceable></synopsis> - </refsynopsisdiv> - <refsect1 id="ch09-24-fm2xml"> - <title/> - <para>Txxx xxxxxxxxx xxxxxxxx xx SQL xxxxxxxxx xxxx xxx xx xxxx xx xxxxxx x xxxxxxxx xxxx xxx xxx xxxxx. Ix’x xxxxxx xxx xxxxxxxxxx xxx SQL xxxxxxxxxx xxxx xxx xxxxxxxxx xx xxx xxxxxxxx.</para> - <para>Ax xxxxxxx xxxxxxx xx x xxxxxxxx xxxx xxx xxxxxxx xxxx xxx <literal moreinfo="none">CREATE FUNCTION</literal> xxxxxxxxx xxxxxxx xx xxxx xxxxxxx:</para> - <programlisting format="linespecific">SHOW CREATE FUNCTION xxxx_xxxxxxxxxxx \G - -*************************** d. xxx *************************** - Fxxxxxxx: xxxx_xxxxxxxxxxx - xxx_xxxx: -Cxxxxx Fxxxxxxx: CREATE DEFINER=`xxxx`@`xxxxxxxxx` -FUNCTION `xxxx_xxxxxxxxxxx`(xxx_xxxx VARCHAR(dd)) -RETURNS xxxx -SQL SECURITY INVOKER -COMMENT 'Cxxxxxxx x xxxxxx xxxx xxxx ''Dxx. d, dddd'' xx xxxxxxxx xxxxxx.' -RETURN STR_TO_DATE(REPLACE(xxx_xxxx, '.', ''), '%x %x, %Y')</programlisting> - </refsect1> - </refentry> - <refentry id="ch09-77025"> - <refmeta> - <refentrytitle>SHOW CREATE PROCEDURE</refentrytitle> - </refmeta> - <refnamediv> - <refname>SHOW CREATE PROCEDURE</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">SHOW CREATE PROCEDURE <replaceable>xxxxxxxx</replaceable></synopsis> - </refsynopsisdiv> - <refsect1 id="ch09-25-fm2xml"> - <title/> - <para>Txxx xxxxxxxxx xxxxxxxx xx SQL xxxxxxxxx xxxx xxx xx xxxx xx xxxxxx x xxxxxx xxxxxxxxx xxxx xxx xxx xxxxx. Ix’x xxxxxx xxx xxxxxxxxxx xxx SQL xxxxxxxxxx xxxx xxx xxxxxxxxx xx xxx xxxxxx xxxxxxxxx.</para> - <para>Ax xxxxxxx xxxxxxx xx x xxxxxxxxx xxxx xxx xxxxxxx xx xxx xxxxxxx xxxxx xx xxxxxxxxxxx xx xxx <literal moreinfo="none">CREATE PROCEDURE</literal> xxxxxxxxx xxxxxxx:</para> - <programlisting format="linespecific">SHOW CREATE PROCEDURE xxxxxxxx_xxxx_xxxx \G - -*************************** d. xxx *************************** - Pxxxxxxxx: xxxxxxxx_xxxx_xxxx - xxx_xxxx: -Cxxxxx Pxxxxxxxx: CREATE DEFINER=`xxxx`@`xxxxxxxxx` -PROCEDURE `xxxxxxxx_xxxx_xxxx`(IN xxx_xxxx VARCHAR(ddd)) -BEGIN -REPLACE INTO xxxxxxxx_xxxxxx -SELECT *, xxx_xxxx FROM xxxxxxxx; -END</programlisting> - </refsect1> - </refentry> - <refentry id="ch09-77026"> - <refmeta> - <refentrytitle>SHOW EVENTS</refentrytitle> - </refmeta> - <refnamediv> - <refname>SHOW EVENTS</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">SHOW EVENTS [FROM <replaceable>xxxxxxxx</replaceable>] [LIKE '<replaceable>xxxxxxx</replaceable>'|WHERE <replaceable>xxxxxxxxxx</replaceable>]</synopsis> - </refsynopsisdiv> - <refsect1 id="ch09-26-fm2xml"> - <title/> - <para>Txxx xxxxxxxxx xxxxxxxx x xxxx xx xxxxxxxxx xxxxxx xx xxx xxxxxx. Txx xxxxxxx xxx xxxx xxxxxxx xxxxxx xxxx xxxx xxxx xxxxxxxxx xxx xxxx xxxxxxxxx. -Txx xxxxxxxx xx xxxxx xxxxxx xxx xxxxxxx xxx xx xxxxx xx xxx <literal moreinfo="none">FROM</literal> xxxxxx; xxx xxxxxxx xx xxx xxxxxxx xxxxxxxx. Txx <literal moreinfo="none">LIKE</literal> xx <literal moreinfo="none">WHERE</literal> xxxxxxx xxx xx xxxx xx xxxx xxxxxx xxxxx xx x xxxxxxxxxx xxxxxx xxxxxxx. Wxxx xxx <literal moreinfo="none">WHERE</literal> xxxxxx, xxx xxx xxx xxx xxxxx xx xxxxxx xx xxx xxxxxxx xx xxxxxx xx xxxxxxxxxx xxxx xxxx x xxxxxxxxx xxxxxxxxxxx xxx xxxxxxx xxxxxxxx. Ax xxxxxxx xx xxxx xxxxxxx. Sxx <literal moreinfo="none">CREATE EVENT</literal> xxx xxxx xxxxxxxxxxx xx xxxxxx.</para> - <programlisting format="linespecific"> SHOW EVENTS FROM xxxxxxx -WHERE Dxxxxxx='xxxxxxx@xxxxxxxxx' \G - -*************************** d. xxx *************************** - Dx: xxxxxxx - Nxxx: xxxxxxxx_xxxx - Dxxxxxx: xxxxxxx@xxxxxxxxx - Txxx: RECURRING - Exxxxxx xx: NULL -Ixxxxxxx xxxxx: d -Ixxxxxxx xxxxx: DAY - Sxxxxx: dddd-dd-dd dd:dd:dd - Exxx: NULL - Sxxxxx: ENABLED</programlisting> - </refsect1> - </refentry> - <refentry id="ch09-77027"> - <refmeta> - <refentrytitle>SHOW FUNCTION CODE</refentrytitle> - </refmeta> - <refnamediv> - <refname>SHOW FUNCTION CODE</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">SHOW FUNCTION CODE <replaceable>xxxxxxxx</replaceable></synopsis> - </refsynopsisdiv> - <refsect1 id="ch09-27-fm2xml"> - <title/> - <para>Txxx xxxxxxxxx xxxxxxxx xxx xxxxxxxx xxxx xx x xxxxxxxx. Ix xxxxxxxx xxxx xxx MxSQL xxxxxx xx xxxxx xxxx xxxxxxxxx. Txxx xxxxxxxxx xxx xxxxxxxxxx xx xxxxxxx d.d.d xx MxSQL.</para> - </refsect1> - </refentry> - <refentry id="ch09-77028"> - <refmeta> - <refentrytitle>SHOW PROCEDURE CODE</refentrytitle> - </refmeta> - <refnamediv> - <refname>SHOW PROCEDURE CODE</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">SHOW PROCEDURE CODE <replaceable>xxxxxx_xxxxxxxxx</replaceable></synopsis> - </refsynopsisdiv> - <refsect1 id="ch09-28-fm2xml"> - <title/> - <para>Txxx xxxxxxxxx xxxxxxxx xxx xxxxxxxx xxxx xx x xxxxxx xxxxxxxxx. Ix xxxxxxxx xxxx xxx MxSQL xxxxxx xx xxxxx xxxx xxxxxxxxx. Txxx xxxxxxxxx xxx xxxxxxxxxx xx xxxxxxx d.d.d xx MxSQL.</para> - </refsect1> - </refentry> - <refentry id="ch09-77029"> - <refmeta> - <refentrytitle>SHOW FUNCTION STATUS</refentrytitle> - </refmeta> - <refnamediv> - <refname>SHOW FUNCTION STATUS</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">SHOW {FUNCTION|PROCEDURE} STATUS [LIKE '<replaceable>xxxxxxx</replaceable>'|WHERE <replaceable>xxxxxxxxxx</replaceable>]</synopsis> - </refsynopsisdiv> - <refsect1 id="ch09-29-fm2xml"> - <title/> - <para>Txxx xxxxxxxxx xxxxxxxx xxxxxxxxxxx xx xxxx-xxxxxxx xxxxxxxxx. Txx <literal moreinfo="none">LIKE</literal> xx <literal moreinfo="none">WHERE</literal> xxxxxxx xxx xx xxxx xx xxxx xxxxxxxxx xxxxx xx x xxxxxxxxxx xxxxxx xxxxxxx. Wxxx xxx <literal moreinfo="none">WHERE</literal> xxxxxx, xxx xxx xxx xxx xxxxx xx xxxxxx xx xxx xxxxxxx xx xxxxxx xx xxxxxxxxxx xxxx xxxx x xxxxxxxxx xxxxxxxxxxx xxx xxxxxxx xxxxxxxx.</para> - <programlisting format="linespecific">SHOW FUNCTION STATUS -WHERE Nxxx='xxxx_xxxxxxxxxxx' \G - -*************************** d. xxx *************************** - Dx: xxxxxxx - Nxxx: xxxx_xxxxxxxxxxx - Txxx: FUNCTION - Dxxxxxx: xxxx@xxxxxxxxx - Mxxxxxxx: dddd-dd-dd dd:dd:dd - Cxxxxxx: dddd-dd-dd dd:dd:dd -Sxxxxxxx_xxxx: INVOKER - Cxxxxxx: Cxxxxxxx x xxxxxx xxxx xxxx 'Dxx. d, dddd' xx xxxxxxxx xxxxxx.</programlisting> - </refsect1> - </refentry> - <refentry id="ch09-77030"> - <refmeta> - <refentrytitle>SHOW PROCEDURE STATUS</refentrytitle> - </refmeta> - <refnamediv> - <refname>SHOW PROCEDURE STATUS</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">SHOW PROCEDURE STATUS [LIKE '<replaceable>xxxxxxx</replaceable>'|WHERE <replaceable>xxxxxxxxxx</replaceable>]</synopsis> - </refsynopsisdiv> - <refsect1 id="ch09-30-fm2xml"> - <title/> - <para>Txxx xxxxxxxxx xxxxxxxx xxxxxxxxxxx xx xxxxxx xxxxxxxxxx. Txx <literal moreinfo="none">LIKE</literal> xx <literal moreinfo="none">WHERE</literal> xxxxxxx xxx xx xxxx xx xxxx xxxxxx xxxxxxxxxx xxxxx xx x xxxxxxxxxx xxxxxx xxxxxxx. Wxxx xxx <literal moreinfo="none">WHERE</literal> xxxxxx, xxx xxx xxx xxx xxxxx xx xxxxxx xx xxx xxxxxxx xx xxxxxx xx xxxxxxxxxx xxxx xxxx x xxxxxxxxx xxxxxxxxxxx xxx xxxxxxx xxxxxxxx. Ax xxxxxxx xxxxx xxxx xxxxxxxxx xxxxxxx:</para> - <programlisting format="linespecific">SHOW PROCEDURE STATUS -WHERE Nxxx='xxxxxxxx_xxxx_xxxx' \G - -*************************** d. xxx *************************** - Dx: xxxxxxx - Nxxx: xxxxxxxx_xxxx_xxxx - Txxx: PROCEDURE - Dxxxxxx: xxxxxxx@xxxxxxxxx - Mxxxxxxx: dddd-dd-dd dd:dd:dd - Cxxxxxx: dddd-dd-dd dd:dd:dd -Sxxxxxxx_xxxx: DEFINER - Cxxxxxx:</programlisting> - <para>Nxxx xxxx xxx xxx <literal moreinfo="none">WHERE</literal> xxxxxx xx xxxx xxx xxxxx xxxx xx xxx xxx xxxxxxxx xxxxxx xxxxxxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch09-77031"> - <refmeta> - <refentrytitle>SHOW TRIGGERS</refentrytitle> - </refmeta> - <refnamediv> - <refname>SHOW TRIGGERS</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">SHOW TRIGGERS STATUS [FROM <replaceable>xxxxxxxx</replaceable>] -[LIKE '<replaceable>xxxxxxx</replaceable>'|WHERE <replaceable>xxxxxxxxxx</replaceable>]</synopsis> - </refsynopsisdiv> - <refsect1 id="ch09-31-fm2xml"> - <title/> - <para>Txxx xxxxxxxxx xxxxxxxx x xxxx xx xxxxxxxx xx xxx xxxxxx. Txx xxxxxxxx xx xxxxx xxxxxxxx xxx xxxxxxx xxx xx xxxxx xx xxx <literal moreinfo="none">FROM</literal> xxxxxx; xxx xxxxxxx xx xxx xxxxxxx xxxxxxxx. Txx <literal moreinfo="none">LIKE</literal> xx <literal moreinfo="none">WHERE</literal> xxxxxxx xxx xx xxxx xx xxxx xxxxxxxx xxxxx xx x xxxxxxxxxx xxxxxx xxxxxxx. Txx <literal moreinfo="none">LIKE</literal> xxxxxx xxxxxxxx xxx xxxx xx xxx xxxxx xxxx xxxxx xxx xxxxxxx xx xxxxxxxxxx xx x xxxxxxx xxx xxx xxxxx xxxx xxxx xxxxxxxx xxxxxxxxx (<literal moreinfo="none">%</literal>). Wxxx xxx <literal moreinfo="none">WHERE</literal> xxxxxx, xxx xxx xxx xxx xxxxx xx xxxxxx xx xxx xxxxxxx xx xxxxxx xx xxxxxxxxxx xxxx xxxx x xxxxxxxxx xxxxxxxxxxx xxx xxxxxxx xxxxxxxx. Ax xxxxxxx xxxxx xxxx xxxxxxxxx xxxxxxx:</para> - <programlisting format="linespecific">SHOW TRIGGERS LIKE 'xxxxxxxx' \G - -*************************** d. xxx *************************** - Txxxxxx: xxxxxxxx_xxxxxxxx - Exxxx: DELETE - Txxxx: xxxxxxxx -Sxxxxxxxx: BEGIN -INSERT INTO xxxxxxxx_xxxxxxx -(xxxxxxx_xx, xxxx_xxxxx, xxxx_xxxx) -VALUES(OLD.xxxxxxx_xx, OLD.xxxx_xxxxx, OLD.xxxx_xxxx); -END - Txxxxx: BEFORE - Cxxxxxx: NULL - xxx_xxxx: - Dxxxxxx: xxxx@xxxxxxxxx</programlisting> - <para>Sxx <literal moreinfo="none">CREATE TRIGGER</literal> xxx xxxx xxxxxxxxxxx xx xxxxxxxx xxx xxx xxx xxxxxxx xxxxx xx xxx xxxxxxx xxx xxxxxxx.</para> - </refsect1> - </refentry> - </sect1> - </chapter> - <chapter id="mysqlian-CHP-10" xml:base="ch10.xml"> - <title>Axxxxxxxx Cxxxxxx, Axxxxxxxx Fxxxxxxxx, xxx Sxxxxxxxxx - xxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/xxxxxxxxx -MxSQL xxx xxxx xxxxx-xx xxxxxxxxx xxxx xxx xxx xxx xx SQL xxxxxxxxxx xxx xxxxxxxxxx xxxxxxxxxxxx xx xxxxxxxxxxxx xx xxxxxx xx xxxxxxxxx; xxxxx xxx xxxxxx xxxxxxxxx xxxxxxxxx. Txxx xxxxxxx xxxx xxxxx xx xxxxx xxxxxxxxxxx xxxxxxxx xx xxxxxxxx xxxx, xxxxxxxxxxx xxx xxxxxxx xx x xxxxx xxxxxx’x xxxxx, xxxxxxx xxx xxxxxxxx xxxxxxxxx, xxx xx xxxxx. Txx xxxxx xxxxxxx xx xxxx xxxxxxx xxxxxxxxx MxSQL xxxxxxxxx xxxxxxxxx xxx xxxxxxxx xxxxxxxx xx xxxx xx xxxx. Txx xxxxxx xxxxxxx xxxxxxxx x xxxxxxxx xxxxx xxxxxxxxxx. Ix xxxxxxxx xxxxxxx xxxxxxxx xx xxxxxxxxxx xx xxxxxxxx xx xxx xxxx xxxxx xx xxx xxxxx xxxxxxx xxx xx xxxxxxx xxxxxxxx xxxxxxxxxx xxxx xxxx. Sxxxxxxxxx xxx xxxxxxxx xx xxxx xxxxxxx xxxxxxx xxxx xxx xxxxx xxxx xxxx GROUP BY xxx xxxxxxxxx xxxxxxxxx xxx xxxxxxx xxxx’xx xxxxxxx xxxxxx xxx xxxxxxxx xxxxxxxx xxxx. - - - Axxxxxxxx Fxxxxxxxx xx Axxxxxxxxxxx Oxxxx - GROUP BY xxxxxx -Txxx xxxxxxx xxxxxxxxx xxxx xxxxxxxxx xxxxxxxx. Mxxx xx xxx xxxxxxxx xxx x xxxxxxxx. Fxx xxxxxxxx xxxxxxxxxxx xxxxx xxxxxxxxxx, xxx xxx Sxxxxxxxxx xxxxxxx xxxxx xx xxxx xxxxxxx. - A xxx xxxxxxx xxxxxxx xx xxxxxxxxx xxxxxxxxx xxxxxxx: - - - -Axxxxxxxx xxxxxxxxx xxxxxx NULL xxxx xxxx xxxxxxxxx xx xxxxx. - - - - -Mxxx xxxx xxx xxxxxxxxx xxxxxxxxx xxxxxxx x GROUP BY xxxxxx, xxxxx xx xxxxxxxxx xx xxxx xxxxxxxxxxx. Ix xx xxxxxxxxx xxxxxxxx xx xxxx xxxxxxx x GROUP BY xxxxxx, xxxxxx, xx xxxxxxxx xx xxx xxxx. - - - - - - - - - - AVG( ) - - - AVG( ) - - - - AVG([DISTINCT] xxxxxx) - - - - <para><indexterm id="mysqlian-CHP-10-ITERM-3396" significance="normal"><primary>AVG( ) xxxxxxxx</primary></indexterm> -Txxx xxxxxxxx xxxxxxx xxx xxxxxxx xx xxxx xx x xxx xx xxxxxxx xxxxx xx xxx xxxxxxxx. Ix xxxxxxx NULL xx xxxxxxxxxxxx. Txx <literal moreinfo="none">DISTINCT</literal> xxxxxxx xxxxxx xxx xxxxxxxx xx xxxxx xxxx xxxxxx xxxxxx xx xxx xxxxxxxxxxx; xxxxxxxxx xxxxxx xxxx xxx xxxxxx xxxx xxx xxxxxxxxx.</para> - <para> Wxxx xxxxxxxxx xxxxxxxx xxxx, xxx xxxxxxxxx xxxx xx xxx xxxx xxxxxxxx xxxx xxx <literal moreinfo="none">GROUP BY</literal> xxxxxx xxxx xxxxxx xxx xxxxxx xxx xxxx xxxxxx xxxx, xx xxxx xxx xxx xxx xxx xxxxxxx xxx xxxx xxxx. Txxx xxxx xx xxxxxxx xxxx xx xxxxxxx:</para> - <programlisting format="linespecific">SELECT xxxxx_xxx_xx, -CONCAT(xxxx_xxxxx, SPACE(d), xxxx_xxxx) AS xxx_xxxx, -AVG(xxxx_xxxxxx) AS xxx_xxxxx -FROM xxxxx -JOIN xxxxx_xxxx USING(xxxxx_xxx_xx) -GROUP BY xxxxx_xxx_xx;</programlisting> - <para>Txxx SQL xxxxxxxxx xxxxxxx xxx xxxxxxx xxxxxx xx xxxxx xx xxx <emphasis>xxxxx</emphasis> xxxxx xxxx xx xxxx xxxxx xxxxxxxxxxxxxx. Ix xxxx xxxxx xxx xxxxxx xxxxx xxx xxx <emphasis>xxxx_xxxxxx</emphasis> xxxxxx, xxx xxxx xxxxxx xxxxx xxx <emphasis>xxxxx_xxx_xx</emphasis>, xxx xxxxxx xx xxx xxxxxx xx xxxx xxxxx xxx xxxx xx xxxxx xxxxxx xxxxxx. Ix xxx xxxxx xxxx xx xxxxxxx xxxxx xxxxxxxxxxxxxxx xxx xxxx xx xxxxx xx xxx xxxxxxx, xxx’xx xxxx xx xxxxxx xxx <literal moreinfo="none">JOIN</literal> xx x <literal moreinfo="none">RIGHT JOIN</literal>:</para> - <programlisting format="linespecific">SELECT xxxxx_xxx_xx, -CONCAT(xxxx_xxxxx, SPACE(d), xxxx_xxxx) AS xxx_xxxx, -FORMAT(AVG(xxxx_xxxxxx), d) AS xxx_xxxxx -FROM xxxxx -RIGHT JOIN xxxxx_xxxx USING(xxxxx_xxx_xx) -GROUP BY xxxxx_xxx_xx;</programlisting> - <para>Sxxxx xxxxxxxxxxxxxxx xxx xxxx xx xxxxx xxxx xxxx xx xxxx <literal moreinfo="none">NULL</literal> xx xxx <literal moreinfo="none">xxx_xxxxx</literal> xxxxxx. Txxx xxxxxxx xx xxx xxxxxxxxx xxxx xxxxxxxx xx xxxxxxxxxxx: xx xxxxxx xxx xxxxxxx xxx <emphasis>xxx_xxxxx</emphasis> xx xxx xxxxxxx xxxxxx xx xxxxxx xxx <literal moreinfo="none">FORMAT()</literal> xxxxxxxx.</para> - <para>Ix xx xxxx xxxx xxx xxxxxxx xxxxx xxx xxx xxxxxxx xxxxx, xx xxxxx xxx x <literal moreinfo="none">WHERE</literal> xxxxxx. Hxxxxxx, xxxx xxxxx xxxxxx xxx xxxxxx xx xxx <literal moreinfo="none">RIGHT JOIN</literal>: xxxxx xxxxxx xxxxxxx xxxxxx xxx xxx xxxxx xxxxxx’x xxxxxx xx xxx xxxx. Tx xxxxxxx xxxx, xx xxxx xx xxx x xxxxxxxx xxxx xxxxxxxx xxx xxxxx xxxx xxxx xxxxx xxx xxxxxxxxxx xx xxx <literal moreinfo="none">WHERE</literal> xxxxxx xxxxx, xxxx xxxx xxx xxxxxxxx’x xxxxxxx xx xxxxxxx xxxxxxxx xxxxxxxxxx x xxxx xxxx xx xxx xxxxx xx xxxxx xxxx:</para> - <programlisting format="linespecific">SELECT xxxxx_xxx_xx, xxx_xxxx, -IFNULL(xxx_xxxxx, 'xxxx') xx xxx_xxxxx_xxxxx -FROM - (SELECT xxxxx_xxx_xx, - FORMAT(AVG(xxxx_xxxxxx), d) AS xxx_xxxxx - FROM xxxxx - JOIN xxxxx_xxxx USING(xxxxx_xxx_xx) - WHERE DATE_FORMAT(xxxx_xx_xxxx, '%Y%x') = - DATE_FORMAT(CURDATE(), '%Y%x') - GROUP BY xxxxx_xxx_xx) AS xxxxxx_xxxx -RIGHT JOIN - (SELECT xxxxx_xxx_xx, - CONCAT(xxxx_xxxxx, SPACE(d), xxxx_xxxx) AS xxx_xxxx - FROM xxxxx_xxxx) AS xxx_xxxx -USING(xxxxx_xxx_xx) -GROUP BY xxxxx_xxx_xx;</programlisting> - <para>Ix xxx xxxxx xxxxxxxx xxxx, xx xxx xxxxxxxxxxx xxx xxxxxxx xxxxx xxx xxxx xxxxx xxx xxxx xxx xxxxx xxx xxx xxxxxxx xxxxx. Ix xxx xxxxxx xxxxxxxx xx’xx xxxxxxx xxxxxxxx x xxxx xx xxxxx xx xxx xxxxx xxxx, xxxxxxxxxx xx xxxxx. Ix xxx xxxx xxxxx, xxxxx xxx <emphasis>xxxxx_xxx_xx</emphasis> xxxxxx xx xxx xxxxxxx xxxxx xx xxx xxx xxxxxxx xxxx xxxxxxx xxxx xxx xxxxxxxxxx, xx xxx xxxxxxxx x xxxxxxx xxx xxxx xxxx xxxx xxx xxxxxxx xxxxx xxx xxx xxxxx xxx xxxx xxx xxxx xxx xxxx xxxxx, xx (xxxxx <literal moreinfo="none">IFNULL()</literal>) xxx xxxx <emphasis>xxxx</emphasis> xxx xxxxx xxx xxx xxxx.</para> - </refsect1> - </refentry> - <refentry id="ch10-77010"> - <refmeta> - <refentrytitle>BIT_AND( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>BIT_AND( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">BIT_AND(<replaceable>xxxxxxxxxx</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch10-02-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-10-ITERM-3397" significance="normal"><primary>BIT_AND( ) xxxxxxxx</primary></indexterm> -Txxx xxxxxxxx xxxxxxx xxx xxxxxxx <literal moreinfo="none">AND</literal> xxx xxx xxxx xxx xxx xxxxxxxxxx xxxxx. Uxx xxxx xx xxxxxxxxxxx xxxx xxx <literal moreinfo="none">GROUP</literal> <literal moreinfo="none">BY</literal> xxxxxx. Txx xxxxxxxx xxx x dd-xxx xxxxxxxxx. Ix xxxxx xxx xx xxxxxxxx xxxx, xxxxxx xxxxxxx d.d.dd xx MxSQL, x -d xx xxxxxxxx. Nxxxx xxxxxxxx xxxxxx dddddddddddddddddddd, xxxxx xx xxx xxxxx xx d xxx xxx xxxx xx xx xxxxxxxx <literal moreinfo="none">BIGINT</literal> xxxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch10-77011"> - <refmeta> - <refentrytitle>BIT_OR( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>BIT_OR( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">BIR_OR(<replaceable>xxxxxxxxxx</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch10-03-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-10-ITERM-3398" significance="normal"><primary>BIT_OR( ) xxxxxxxx</primary></indexterm> -Txxx xxxxxxxx xxxxxxx xxx xxxxxxx <literal moreinfo="none">OR</literal> xxx xxx xxxx xxx xxx xxxxxxxxxx xxxxx. Ix xxxxxxxxxx xxxx x dd-xxx xxxxxxxxx (<literal moreinfo="none">BIGINT</literal>). Ix xxxxxxx d xx xx xxxxxxxx xxxx xxx xxxxx. Uxx xx xx xxxxxxxxxxx xxxx <literal moreinfo="none">GROUP BY</literal> xxxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch10-77012"> - <refmeta> - <refentrytitle>BIT_XOR( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>BIT_XOR( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">BIR_XOR(<replaceable>xxxxxxxxxx</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch10-04-fm2xml"> - <title/> - <para>Txxx xxxxxxxx xxxxxxx xxx xxxxxxx <literal moreinfo="none">XOR</literal> (xxxxxxxxx xx) xxx xxx xxxx xxx xxx xxxxxxxxxx xxxxx. Ix xxxxxxxxxx xxxx x dd-xxx xxxxxxxxx (<literal moreinfo="none">BIGINT</literal>). Ix xxxxxxx d xx xx xxxxxxxx xxxx xxx xxxxx. Uxx xx xx xxxxxxxxxxx xxxx xxx <literal moreinfo="none">GROUP BY</literal> xxxxxx. Txxx xxxxxxxx xx xxxxxxxxx xx xx xxxxxxx d.d.d xx MxSQL.</para> - </refsect1> - </refentry> - <refentry id="ch10-77013"> - <refmeta> - <refentrytitle>COUNT( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>COUNT( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">COUNT([DISTINCT] <replaceable>xxxxxxxxxx</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch10-05-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-10-ITERM-3407" significance="normal"><primary>COUNT( ) xxxxxxxx</primary></indexterm> -Txxx xxxxxxxx xxxxxxx xxx xxxxxx xx xxxx xxxxxxxxx xx xxx <literal moreinfo="none">SELECT</literal> xxxxxxxxx xxx xxx xxxxx xxxxxx. Bx xxxxxxx, xxxx xx xxxxx xxx xxxxxx xx NULL xxx xxx xxxxxxx. Ix xxx xxxxxxxx <literal moreinfo="none">*</literal> xx xxxx xx xxx xxxxxxxx, xxx xxxxxxxx xxxxxx xxx xxxx, xxxxxxxxx xxxx xxxx NULL xxxxxx. Ix xxx xxxx xxxx x xxxxx xx xxx xxxxxx xx xxxx xx xxx xxxxx, xxx xxx’x xxxx <literal moreinfo="none">GROUP BY</literal>, xxx xxx xxx xxxxx xxxxxxx x <literal moreinfo="none">WHERE</literal> xx xxxxx xxxx xxxx xxxxxxx xxxxxxxx xxxxxxxx. Ix xxx xxxx x xxxxx xx xxx xxxxxx xx xxxx xxx xxxx xxxxx xx x xxxxxx, xxx xxxx xxxx xx xxx xxx <literal moreinfo="none">GROUP BY</literal> xxxxxx. Ax xx xxxxxxxxxxx xx xxxxx <literal moreinfo="none">GROUP BY</literal>, xxx xxx xxx xxx <literal moreinfo="none">DISTINCT</literal> xxxxxxx xx xxx x xxxxx xx xxxxxx xxx-NULL xxxxxx xxxxx xxx xxx xxxxx xxxxxx. Wxxx xxx xxx <literal moreinfo="none">DISTINCT</literal>, xxx xxxxxx xxxxxxx xxx xxxxx xxxxxxx xx xxx <literal moreinfo="none">SELECT</literal> xxxxxxxxx. Yxx xxx, xxxxxxx, xxxxxxx xxxxxxxx xxxxxxx xx xxxxxxxxxxx xxxxxx xxx xxxxxxxx. Ax xxxxxxx xxxxxxx:</para> - <programlisting format="linespecific">SELECT xxxxxx_xxxx, -COUNT(xxxxx_xxx_xx) AS xxxxxx_xx_xxxx -FROM xxxxx_xxxx -JOIN xxxxxx_xxxxxxx USING(xxxxxx_xx) -GROUP BY xxxxxx_xx;</programlisting> - <para>Txxx xxxxxxx xxxxx xxx <emphasis>xxxxx_xxxx</emphasis> xxx <emphasis>xxxxxx_xxxxxxx</emphasis> xxxxxx xxxxxxxx xxxxx xxx <emphasis>xxxxxx_xx</emphasis> xxxxxxxxx xx xxxx xxxxxx. Wx xxxx xxxxx xxx <literal moreinfo="none">COUNT( )</literal> xxxxxxxx xx xxxxx xxx xxxxxx xx xxxxx xxxx xxxxx xxx xxxx xxxxxx (xxxxxxxxxx xx xxx <literal moreinfo="none">GROUP BY</literal> xxxxxx).</para> - </refsect1> - </refentry> - <refentry id="ch10-77014"> - <refmeta> - <refentrytitle>GROUP_CONCAT( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>GROUP_CONCAT( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">GROUP_CONCAT([DISTINCT] <replaceable>xxxxxxxxxx</replaceable>[, ...] - [ORDER BY {<replaceable>xxxxxxxx_xxxxxxx|xxxxxx|xxxxxxxxxx</replaceable>} - [ASC|DESC] [,<replaceable>xxxxxx</replaceable>...]] - [SEPARATOR <replaceable>xxxxxxxxx</replaceable>])</synopsis> - </refsynopsisdiv> - <refsect1 id="ch10-06-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-10-ITERM-3419" significance="normal"><primary>GROUP_CONCAT( ) xxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-10-ITERM-3420" significance="normal"><primary>DISTINCT xxxxxxx</primary><secondary>GROUP_CONCAT() xxxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-10-ITERM-3421" significance="normal"><primary>DESC xxxxxxx</primary><secondary>GROUP_CONCAT() xxxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-10-ITERM-3422" significance="normal"><primary>ASC xxxxxxx</primary><secondary>GROUP_CONCAT() xxxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-10-ITERM-3423" significance="normal"><primary>xxxxx (,)</primary><secondary>GROUP_CONCAT() xxxxxxxx</secondary></indexterm> -Txxx xxxxxxxx xxxxxxx xxx-NULL xxxxxx xx x xxxxx xxxxxxxxxxxx xx x <literal moreinfo="none">GROUP BY</literal> xxxxxx, xxxxxxxxx xx xxxxxx. Txx xxxxxxxxxx xxx xxxx xxxxxxxx xxx xxxxxxxx xx xxx xxxxxxxxxxx, xxxxxxxxx xx xxxxxx, xxx xxxxxx. Txx xxxxxxxx xxxxxxx NULL xx xxx xxxxx xxxxx’x xxxxxxx xxx-NULL xxxxxx.</para> - <para> Dxxxxxxxxx xxx xxxxxxx xxxx xxx <literal moreinfo="none">DISTINCT</literal> xxxxxxx. Txx <literal moreinfo="none">ORDER BY</literal> xxxxxx xxxxxxxxx xxx xxxxxxxx xx xxxx xxxxxx xxxxxx xxxxxxxxxxxxx xxxx. Oxxxxxxx xxx xx xxxxx xx xx xxxxxxxx xxxxxxx xxxxx, xxxxxx, xx xxxxxxxxxx. Txx xxxx xxxxx xxx xx xxx xx xxxxxxxxx xxxx xxx <literal moreinfo="none">ASC</literal> xxxxxxx (xxxxxxx), xx xx xxxxxxxxxx xxxx <literal moreinfo="none">DESC</literal>. Tx xxx x xxxxxxxxx xxxxxxxxx xxxx x xxxxx, xxx xxx <literal moreinfo="none">SEPARATOR</literal> xxxxxxx xxxxxxxx xx xxx xxxxxxxxx xxxxxxxxx.</para> - <para>Txx xxxxx xx xxx xxxxxx xxxxxxxx <literal moreinfo="none">xxxxx_xxxxxx_xxx_xxx</literal> xxxxxx xxx xxxxxx xx xxxxxxxx xxxxxxxx. Ixx xxxxxxx xx dddd. Uxx xxx <literal moreinfo="none">SET</literal> xxxxxxxxx xx xxxxxx xxx xxxxx. Txxx xxxxxxxx xx xxxxxxxxx xx xx xxxxxxx d.d xx MxSQL. -<indexterm id="mysqlian-CHP-10-ITERM-3424" significance="normal"><primary>SEPARATOR xxxxxxx (GROUP_CONCAT)</primary></indexterm> -</para> - <para>Ax xx xxxxxxx xx xxxx xxxxxxxx, xxxxxxx xxxx xx xxxxxx xx xxxx xxx xxxx xxxxxxxxx xxxxx xx x xxxxxxxxxx xxxx. Wx xxxxx xxxxx xx SQL xxxxxxxxx xxxx xxxx:</para> - <programlisting format="linespecific">SELECT xxxx_xxx AS Ixxx, -GROUP_CONCAT(xxxxxxxx) AS Qxxxxxxxxx -FROM xxxxxx -WHERE xxxx_xxx = ddd -GROUP BY xxxx_xxx; - -+------+------------+ -| Ixxx | Qxxxxxxxxx | -+------+------------+ -| ddd | d,dd,d,d,d | -+------+------------+</programlisting> - <para><indexterm id="mysqlian-CHP-10-ITERM-3425" significance="normal"><primary>GROUP_CONCAT( ) xxxxxxxx</primary></indexterm> -Nxxxxx xxxx xxx xxxxxxxxxx xxxx’x xxxxxx--xx’x xxx xxxx xxxxxxx xxxx xxx xxxxxx xx xxx <literal moreinfo="none">GROUP BY</literal> xxxxxx. Tx xxxx xxx xxxxxxxxxx xxxxxx xxxx xxxxx xxx xx xxx x xxxxxxxxx xxxxxxxxx, xx xxxxx xxxxx xxxxxxxxx xxxx xxx xxxxxxxxx xxxxxxx: -</para> - <programlisting format="linespecific">SELECT xxxx_xxx AS Ixxx, -GROUP_CONCAT(DISTINCT xxxxxxxx - ORDER BY xxxxxxxx ASC - SEPARATOR '|') -AS Qxxxxxxxxx -FROM xxxxxx -WHERE xxxx_xxx = ddd -GROUP BY xxxx_xxx; - -+------+------------+ -| Ixxx | Qxxxxxxxxx | -+------+------------+ -| ddd | d|d|d|dd | -+------+------------+</programlisting> - <para>Bxxxxxx xxx xxxxxxx xxxxxxxxx x xxxxxxxxx xxxxx (xxx d), xx’xx xxxxxxxxxxx xxxxxxxxxx xxxx xx xxxxxxxxx xxx <literal moreinfo="none">DISTINCT</literal> xxxxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch10-77015"> - <refmeta> - <refentrytitle>MAX( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>MAX( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">MAX(<replaceable>xxxxxxxxxx</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch10-07-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-10-ITERM-3437" significance="normal"><primary>MAX( ) xxxxxxxx</primary></indexterm> -Txxx xxxxxxxx xxxxxxx xxx xxxxxxx xxxxxx xx xxx xxxxxx xxx x xxxxx xxxxxx. Ix’x xxxxxxxx xxxx xx xxxxxxxxxxx xxxx x <literal moreinfo="none">GROUP BY</literal> xxxxxx xxxxxxxxxx x xxxxxx xxxxxx, xx xxxx xxxxxx xxx xxxxxxxx xxx xxxx xxxxxx xxxx xxxxxxxxxx.</para> - <para>Ax xx xxxxxxx xx xxxx xxxxxxxx, xxxxxxx xxxx xx xxxxxx xx xxxx xxx xxxxxxx xxxx xxx xxxx xxxxx xxxxxx xxx xxx xxxxx. Wx xxxxx xxxxx xxx xxxxxxxxx SQL xxxxxxxxx:</para> - <programlisting format="linespecific">SELECT CONCAT(xxxx_xxxxx, SPACE(d), xxxx_xxxx) AS xxx_xxxx, -MAX(xxxx_xxxxxx) AS xxxxxxx_xxxx -FROM xxxxx -JOIN xxxxx_xxxx USING(xxxxx_xxx_xx) -WHERE DATE_FORMAT(xxxx_xx_xxxx, '%Y%x') = - DATE_FORMAT(CURDATE(), '%Y%x') -GROUP BY xxxxx_xxx_xx DESC;</programlisting> - <para>Wx’xx xxxxx <emphasis>xxxx_xxxxxx</emphasis> xx xxx xxxxxx xxx xxxxx xx xxxx xxx xxxxxxx xxxxx xxxxxxxx xxx xxxx xxxxx xxx. Txx <literal moreinfo="none">WHERE</literal> xxxxxx xxxxxxxxx xxxx xx xxxx xxxx xxxxx xxx xxx xxxxxxx xxxxx. Nxxxxx xxxx xxx <literal moreinfo="none">GROUP BY</literal> xxxxxx xxxxxxxx xxx <literal moreinfo="none">DESC</literal> xxxxxxx. Txxx xxxx xxxxx xxx xxxx xx xxxxxxxxxx xxxxx xxx xxx xxxxxx xx xxx <emphasis>xxxxxxx_xxxx</emphasis> xxxxx: xxx xxxxxxx xxxx xx xxx xxx, xxx xxxxxx xx xxx xxxxxx.</para> - <para>Hxxx’x xx xxxxxxx xx xxxxxxx xxxxx, xxx xxxx xxxxxxx xxx xx xxxx xxxxxxxx: xxxxxxx xx xxxx x xxxxx xx xxxxx xxxxxx xxxxxxxx xxx xxxx xx xxx xxxxx xxxxxx. Wxxx x xxxxx xxx xxxxxxx x xxxxxx xxxxxxx xxxxxxx x xxx xxxxxxxxx, xxxxxxx xx xxxxxxxx xxx xxxxxxxx xxx, xxx xxxxxxx xx xxxxx xxxxxxx x xxx xxxxx. Wx xxx xxxx xxxxxx xx xxxxxxx xxxxx xxxxxx xxxx xxxxxxxxxxxxx xxxxxxxxxxx xxxx xxx xx xxxx xxxxxxxx xxxxxx xxxxxxxx xx xxxx xxxxxxx xxxxx xx xxxxx xx xxxx xxxxx. Wxxx xxx xxxxxx xxxxxxx xx xxxxxx xxxxxxx xxx xxx xxxxxxxxx, xx xxxx xxxx xxx xxxxxx xxxxxxx xx xxxxxx. Rxxxxxxxxx xxx xxxxxx xxx xxxxxxx xxx xxxxxxxxxx, xxx xx xxx xx xxxx xxxx <literal moreinfo="none">MAX( )</literal> xxx x xxxxxxxx xx xxxxxxx:</para> - <programlisting format="linespecific">SELECT xxxxxx_xxxx, xxxxxxx, -MAX(xxxxx_xxxx) AS xxxx_xxxxx -FROM - (SELECT xxxxxx_xx, xxxxx_xxxx, xxxxxxx - FROM xxxxxx_xxxxxxxx - ORDER BY xxxxxx_xx, xxxxx_xxxx DESC) AS xxxxxxxx -JOIN xxxxxxx USING(xxxxxx_xx) -GROUP BY xxxxxx_xx;</programlisting> - <para>Ix xxx xxxxxxxx, xx xxxxxxxx x xxxx xx xxxxxxxx xxxx xxx xxxx xxxx xxx xx xxx xxxxx xx xxx xxxxx <emphasis>xxxxxx_xxxxxxxx</emphasis>; xxx xxxxxxx xxxxxxx xxx xxxxxxxxx xxxxxxx xxx xxxxxxx. Ix xxx xxxx xxxxx, xxxxx <literal moreinfo="none">MAX()</literal>, xx xxx xxx xxxxxxx (xxxxxx) xxxx xxx xxxx xxxxxx. Txx xxxxxxxxxx <emphasis>xxxxxxx</emphasis> xx xxxxxxxx xx xxx xxxxxxx xxxxxxxx xx xxx xxxx xxxxx. Wx xxxx xxx xxxxxxx xx xxx xxxxxxxx xx xxx <emphasis>xxxxxxx</emphasis> xxxxx xx xxxxxxx xxx xxxxxx’x xxxx.</para> - <para>Txx xxxxxxxx xx xxxxxxxxx xx xxxx xx xxx xxx xxxxxx xxxx, xxxxxxx xx xxx xxxxxx. Txx xxxxxxx xx xxxx xxx <literal moreinfo="none">GROUP BY</literal> xxxxxx xxxxxx xxx xxxxxx xxxxx xx xxx xxxxx xxxxxx. Wxxxxxx xxx xxxxxxxx, xxx <literal moreinfo="none">GROUP BY</literal> xxxxx xxx xxx xxxxx xxx xxx <emphasis>xxxxx_xxxx</emphasis> xx xxx xxxxx xxx xx xxxxx, xxxxx xxxx xx xxx xxxxxxxx xxxx, xxx xxx xxxxxx. Sx xx xxxxx xxx xxxx xx xxx xxxxxxxx xxxx xxx xxxxxx xxxxx xxx xxxx xxxxxx xxxxx. <literal moreinfo="none">GROUP BY</literal> xxxx xxxxx xxx xxxxx xxxxx xx xxx xxxxxxxx xxxxxxx, xxxxx xxxx xx xxx xxxxxx xxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch10-77016"> - <refmeta> - <refentrytitle>MIN( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>MIN( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">MIN(<replaceable>xxxxxxxxxx</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch10-08-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-10-ITERM-3438" significance="normal"><primary>MIN( ) xxxxxxxx</primary></indexterm> -Txxx xxxxxxxx xxxxxxx xxx xxxxxx xxxxxx xx xxx xxxxxx xxx x xxxxx xxxxxx. Ix’x xxxxxxxx xxxx xx xxxxxxxxxxx xxxx x <literal moreinfo="none">GROUP BY</literal> xxxxxx xxxxxxxxxx x xxxxxx xxxxxx, xx xxxx xxxxxx xxx xxxxxxxx xxx xxxx xxxxxx xxxx xxxxxxxxxx. Ax xxxxxxx xxxxxxx:</para> - <programlisting format="linespecific">SELECT CONCAT(xxxx_xxxxx, SPACE(d), xxxx_xxxx) AS xxx_xxxx, -MIN(xxxx_xxxxxx) AS xxxxxxxx_xxxx, -MAX(xxxx_xxxxxx) AS xxxxxxx_xxxx -FROM xxxxx -JOIN xxxxx_xxxx USING(xxxxx_xxx_xx) -GROUP BY xxxxx_xxx_xx;</programlisting> - <para>Ix xxxx xxxxxxx, xx xxxxxxxx xxx xxxxxxxx xxxx xxx xxxxxxx xxxx xxxx xx xxxx xxxxx xxxxxxxxxxxxxx. Wx xxx <literal moreinfo="none">JOIN</literal> xx xxxx xxx xxx xxxxxx xx xxx xxx xxxxx xxx’x xxxx. Bxxxxxx <literal moreinfo="none">MAX( )</literal> xx xxxx xxxxxxx, xxx xxx xxxxxxxx xx xxx xxxxxxxxxxx xxx xxxxxxxxxx xxxx xx xxx <literal moreinfo="none">MIN( )</literal>.</para> - </refsect1> - </refentry> - <refentry id="ch10-77017"> - <refmeta> - <refentrytitle>STD( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>STD( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">STD(<replaceable>xxxxxxxxxx</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch10-09-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-10-ITERM-3454" significance="normal"><primary>STD( ) xxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-10-ITERM-3455" significance="normal"><primary>STDDEV( ) xxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-10-ITERM-3456" significance="normal"><primary>xxxxxxxx xxxxxxxxx</primary></indexterm> -Txxx xxxxxxxx xxxxxxx xxx xxxxxxxxxx xxxxxxxx xxxxxxxxx xx xxx xxxxx xxxxxx. Txxx xxxxxxxx xx xx xxxxx xxx <literal moreinfo="none">STDDEV()</literal>; xxx xxx xxxxxxxxxxx xx xxxx xxxxxxxx xxx xx xxxxxxx xx xxx xxx. -</para> - </refsect1> - </refentry> - <refentry id="ch10-77018"> - <refmeta> - <refentrytitle>STDDEV( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>STDDEV( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">STDDEV(<replaceable>xxxxxxxxxx</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch10-10-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-10-ITERM-3457" significance="normal"><primary>STD( ) xxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-10-ITERM-3458" significance="normal"><primary>STDDEV( ) xxxxxxxx</primary></indexterm> -Txxx xxxxxxxx xxxxxxx xxx xxxxxxxxxx xxxxxxxx xxxxxxxxx xx xxx xxxxx xxxxxx. Ix’x xxxxxxxx xxxx xx xxxxxxxxxxx xxxx x <literal moreinfo="none">GROUP BY</literal> xxxxxx xxxxxxxxxx x xxxxxx xxxxxx, xx xxxx xxxxxx xxx xxxxxxxx xxx xxxx xxxxxx xxxx xxxxxxxxxx. Ix xxxxxxx NULL xx xx xxxxxxxx xxxx xxxx xxxxx. Ax xxxxxxx xxxxxxx:</para> - <programlisting format="linespecific">SELECT CONCAT(xxxx_xxxxx, SPACE(d), xxxx_xxxx) AS xxx_xxxx, -SUM(xxxx_xxxxxx) AS xxxxx_xxxxx, -COUNT(xxxx_xxxxxx) AS xxxxx_xxxxxxx, -AVG(xxxx_xxxxxx) AS xxx_xxxx_xxx_xxxxxx, -STDDEV(xxxx_xxxxxx) AS xxxxxxxx_xxxxxxxxx -FROM xxxxx -JOIN xxxxx_xxxx USING(xxxxx_xxx_xx) -GROUP BY xxxxx_xxx_xx;</programlisting> - <para>Txxx xxxxxxxxx xxxxxxx xxxxxxx xxxxxxxxx xxxxxxxxx. Wx xxx <literal moreinfo="none">SUM( )</literal> xx xxx xxx xxxxx xxxxx xxx xxxx xxxxx xxx, <literal moreinfo="none">COUNT( )</literal> xx xxxxxxxx xxx xxxxxx xx xxxxxx xxx xxx xxxx, <literal moreinfo="none">AVG( )</literal> xx xxxxxxxxx xxx xxxxxxx xxxx, xxx <literal moreinfo="none">STDDEV( )</literal> xx xxxx xxx xxx xxxx xxxx xxxx xxxx xx xxxx xxxxx xxx xxxxx xx xxxx xxxx xxxx xxx’x xxxxxxx xxxx. Ixxxxxxxxxxx, xxxxxxxxxxx xxxxxxxxx xxxxxx xxxxxxx xxxxxxx xxxxxx. Tx xxxxxx xxxx xxx xxxxxxx xxxxxx, xxx xxx xxxx xxxx xxxxxxxx xx <literal moreinfo="none">FORMAT( )</literal>.</para> - </refsect1> - </refentry> - <refentry id="ch10-77019"> - <refmeta> - <refentrytitle>STDDEV_POP( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>STDDEV_POP( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">STDDEV_POP(<replaceable>xxxxxxxxxx</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch10-11-fm2xml"> - <title/> - <para>Txxx xxxxxxxx xxxxxxx xxx xxxxxxxxxx xxxxxxxx xxxxxxxxx xx xxx xxxxx xxxxxx. Ix xxx xxxxx xx xxxxxxx d.d.d xx MxSQL xxx xxxxxxxxxx xxxx SQL xxxxxxxxx. Txxx xxxxxxxx xx xx xxxxx xxx <literal moreinfo="none">STDDEV()</literal>; xxx xxx xxxxxxxxxxx xx xxxx xxxxxxxx xxx xx xxxxxxx xx xxx xxx.</para> - </refsect1> - </refentry> - <refentry id="ch10-77020"> - <refmeta> - <refentrytitle>STDDEV_SAMP( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>STDDEV_SAMP( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">STDDEV_SAMP(<replaceable>xxxxxxxxxx</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch10-12-fm2xml"> - <title/> - <para>Txxx xxxxxxxx xxxxxxx xxx xxxxxx xxxxxxxx xxxxxxxxx xx xxx xxxxx xxxxxx. Ix’x xxxxxxxx xxxx xx xxxxxxxxxxx xxxx x <literal moreinfo="none">GROUP BY</literal> xxxxxx xxxxxxxxxx x xxxxxx xxxxxx, xx xxxx xxxxxx xxx xxxxxxxx xxx xxxx xxxxxx xxxx xxxxxxxxxx. Ix xxxxxxx NULL xx xx xxxxxxxx xxxx xxxx xxxxx. Ix xxx xxxxx xx xxxxxxx d.d.d xx MxSQL xxx xxxxxxxxxx xxxx SQL xxxxxxxxx. </para> - <programlisting format="linespecific">SELECT CONCAT(xxxx_xxxxx, SPACE(d), xxxx_xxxx) AS xxx_xxxx, -AVG(xxxx_xxxxxx) AS xxx_xxxx_xxx_xxxxxx, -STDDEV_POP(xxxx_xxxxxx) AS xxxxxxxxxx_xxx_xxx, -STDDEV_SAMP(xxxx_xxxxxx) AS xxxxxx_xxx_xxx -FROM xxxxx -JOIN xxxxx_xxxx USING(xxxxx_xxx_xx) -GROUP BY xxxxx_xxx_xx;</programlisting> - <para>Txxx SQL xxxxxxxxx xxxx xxxxxxx xxxxxxxxx xxxxxxxxx: <literal moreinfo="none">AVG( )</literal> xx xxxxxxxxx xxx xxxxxxx xxxx xxx xxxx xxxxx xxx, <literal moreinfo="none">STDDEV_POP( )</literal> xx xxxxxxxxx xxx xxxx xxxx xxxx xxxx xx xxxx xxxxx xxx xxxxx xx xxxx xxxx xxxx xxx’x xxxxxxx xxxx, xxx <literal moreinfo="none">STDDEV_SAMP( )</literal> xx xxxxxxxxx xxx xxxxxxxx xxxxxxxxx xxxx xxx xxxxxxx xxxxx xx x xxxxxx xx xxx xxxx.</para> - </refsect1> - </refentry> - <refentry id="ch10-77021"> - <refmeta> - <refentrytitle>SUM( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>SUM( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">SUM([DISTINCT] <replaceable>xxxxxxxxxx</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch10-13-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-10-ITERM-3459" significance="normal"><primary>SUM( ) xxxxxxxx</primary></indexterm> -Txxx xxxxxxxx xxxxxxx xxx xxx xx xxx xxxxxx xxx xxx xxxxx xxxxxx xx xxxxxxxxxx. Ix’x xxxxxxxx xxxx xx xxxxxxxxxxx xxxx x <literal moreinfo="none">GROUP BY</literal> xxxxxx xxxxxxxxxx x xxxxxx xxxxxx, xx xxxx xxxxxx xxx xxxxxxxx xxx xxxx xxxxxx xxxx xxxxxxxxxx. Ix xxxxxxx NULL xx xx xxxxxxxx xxxx xxxx xxxxx. Txx xxxxxxxxx <literal moreinfo="none">DISTINCT</literal> xxx xx xxxxx xxxxxx xxx xxxxxxxxxxx xx xxx xxxxxxxx xx xxx xxxx xxxxxx xxxxxx xxxxx xxx x xxxxx xxxxxx. Txxx xxxxxxxxx xxx xxxxx xx xxxxxxx d.d xx MxSQL.</para> - <programlisting format="linespecific">SELECT xxxxx_xxx_xx, -SUM(xxxx_xxxxxx) AS xxxxx_xxxxx -FROM xxxxx -WHERE DATE_FORMAT(xxxx_xx_xxxx, '%Y%x') = - DATE_FORMAT(SUBDATE(CURDATE(), INTERVAL d MONTH), '%Y%x') -GROUP BY xxxxx_xxx_xx;</programlisting> - <para>Txxx xxxxxxxxx xxxxxxx xxx <emphasis>xxxxx</emphasis> xxxxx xx xxxxxxxx xxxx xxxxx xxxx xxxxxx xxxx xxxxx (xxx xxx <literal moreinfo="none">WHERE</literal> xxxxxx). Fxxx xxxxx xxxxxxx, <literal moreinfo="none">SUM( )</literal> xxxxxxx xxx xxxxx xxxx xxxxxxx xxxxxxxxxx xxxxxxxx xx xxx <emphasis>xxxxx_xxx_xx</emphasis> (xxx xxx <literal moreinfo="none">GROUP BY</literal> xxxxxx).</para> - </refsect1> - </refentry> - <refentry id="ch10-77022"> - <refmeta> - <refentrytitle>VAR_POP( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>VAR_POP( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">VAR_POP(<replaceable>xxxxxxxxxx</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch10-14-fm2xml"> - <title/> - <para>Txxx xxxxxxxx xxxxxxx xxx xxxxxxxx xx x xxxxx xxxxxx, xxxxx xx xxx xxxx xxxxxxxx xx x xxxxxxxxxx. Ix’x xxxxxxxxxx xxxx <literal moreinfo="none">VARIANCE</literal> xxx xxx xxxxx xx xxxxxxx d.d.d xx MxSQL xxx xxxxxxxxxx xxxx SQL xxxxxxxxx. Sxx xxx xxxxxxxxxxx xx <literal moreinfo="none">VAR_SAMP( )</literal> xxx xx xxxxxxx xx xxxx xxxxxxxx’x xxx.</para> - </refsect1> - </refentry> - <refentry id="ch10-77023"> - <refmeta> - <refentrytitle>VAR_SAMP( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>VAR_SAMP( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">VAR_SAMP(<replaceable>xxxxxxxxxx</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch10-15-fm2xml"> - <title/> - <para>Txxx xxxxxxxx xxxxxxx xxx xxxxxxxx xx x xxxxx xxxxxx, xxxxx xx xxx xxxx xxxxxxxx xx x xxxxxx xx x xxxxx xxxxxxxxxx. Ix’x xxxxxxxx xxxx xx xxxxxxxxxxx xxxx x <literal moreinfo="none">GROUP BY</literal> xxxxxx xxxxxxxxxx x xxxxxx xxxxxx, xx xxxx xxxxxx xxx xxxxxxxx xxx xxxx xxxxxx xxxx xxxxxxxxxx. Tx xxxxxxxxx xxx xxxxxxxx xxxxx xx xxx xxxxxx xxxxxxxxxx xxxxxx xxxx x xxxxxx, xxx <literal moreinfo="none">VAR_POP</literal>. Bxxx xx xxxxx xxxxxxxxx xxxx xxxxx xx xxxxxxx d.d.d xx MxSQL xxx xxxxxxxxxx xxxx SQL xxxxxxxxx. Ax xxxxxxx xx xxxx xxxxxxx:</para> - <programlisting format="linespecific">SELECT CONCAT(xxxx_xxxxx, SPACE(d), xxxx_xxxx) AS xxx_xxxx, -AVG(xxxx_xxxxxx) AS xxx_xxxx, -STDDEV_POP(xxxx_xxxxxx) AS xxxxxxxxxx_xxx_xxx, -STDDEV_SAMP(xxxx_xxxxxx) AS xxxxxx_xxx_xxx, -VAR_POP(xxxx_xxxxxx) AS xxxxxxxxxx_xxxxxxxx, -VAR_SAMP(xxxx_xxxxxx) AS xxxxxx_xxxxxxxx -FROM xxxxx -JOIN xxxxx_xxxx USING(xxxxx_xxx_xx) -GROUP BY xxxxx_xxx_xx;</programlisting> - <para>Txxx SQL xxxxxxxxx xxxx xxxxxxx xxxxxxxxx xxxxxxxxx: <literal moreinfo="none">AVG( )</literal> xx xxxxxxxxx xxx xxxxxxx xxxx xxx xxxx xxxxx xxx, <literal moreinfo="none">STDDEV_POP( )</literal> xx xxxxxxxxx xxx xxxx xxxx xxxx xxxx xx xxxx xxxxx xxx xxxxx xx xxxx xxxx xxxx xxx’x xxxxxxx xxxx, xxx <literal moreinfo="none">STDDEV_SAMP( )</literal> xx xxxxxxxxx xxx xxxxxxxx xxxxxxxxx xxxx xxx xxxxxxx xxxxx xx x xxxxxx xx xxx xxxx. Ix xxxx xxxxxxxx <literal moreinfo="none">VAR_POP( )</literal> xx xxxx xxx xxxxxxxxx xxxxx xx xxx xxxxxxxxxx xxx <literal moreinfo="none">VAR_SAMP( )</literal> xx xxxxxx xxx xxxxxxxx xxxxx xx xxx xxxxxx xxxx.</para> - </refsect1> - </refentry> - <refentry id="ch10-77024"> - <refmeta> - <refentrytitle>VARIANCE( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>VARIANCE( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">VARIANCE(<replaceable>xxxxxxxxxx</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch10-16-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-10-ITERM-3466" significance="normal"><primary>VARIANCE( ) xxxxxxxx</primary></indexterm> -Txx <emphasis>xxxxxxxx</emphasis> xx xxxxxxxxxx xx xxxxxx xxx xxxxxxxxxx xxxxxxx xxxx xxxxx xxxxx xxx xxx xxxxxxx xx xxx xxxxxx xxxxx. Exxx xx xxxxx xxxxxxxxxxx xx xxxx xxxxxxx, xxx xxx xxxxxxx xxx xxxxxxx. Txx xxxxxxx xx xxxx xxxxx xx xxx xxxxxxxxxx xx xxx xxx xxxxxxxx. Txxx xxxxxxxx xxxxxxx xxx xxxxxxxx xx x xxxxx xxxxxx, xxxxx xx xxx xxxx xxxxxxxx xx x xxxxxxxxxx. Ix’x xxxxxxxx xxxx xx xxxxxxxxxxx xxxx x <literal moreinfo="none">GROUP BY</literal> xxxxxx xxxxxxxxxx x xxxxxx xxxxxx, xx xxxx xxxxxx xxx xxxxxxxx xxx xxxx xxxxxx xxxx xxxxxxxxxx. Txxx xxxxxxxx xx xxxxxxxxx xx xx xxxxxxx d.d xx MxSQL. Ax xxxxxxx xxxxxxx:</para> - <programlisting format="linespecific">SELECT CONCAT(xxxx_xxxxx, SPACE(d), xxxx_xxxx) AS xxx_xxxx, -AVG(xxxx_xxxxxx) AS xxx_xxxx, -STDDEV_POP(xxxx_xxxxxx) AS xxxxxxxx_xxxxxxxxx, -VARIANCE(xxxx_xxxxxx) AS xxxxxxxx -FROM xxxxx -JOIN xxxxx_xxxx USING(xxxxx_xxx_xx) -GROUP BY xxxxx_xxx_xx;</programlisting> - <para>Txxx SQL xxxxxxxxx xxxx x xxx xxxxxxxxx xxxxxxxxx: <literal moreinfo="none">AVG( )</literal> xx xxxxxxxxx xxx xxxxxxx xxxx xxx xxxx xxxxx xxx, <literal moreinfo="none">STDDEV_POP( )</literal> xx xxxxxxxxx xxx xxxx xxxx xxxx xxxx xx xxxx xxxxx xxx xxxxx xx xxxx xxxx xxxx xxx’x xxxxxxx xxxx, xxx <literal moreinfo="none">VARIANCE( )</literal> xx xxxx xxx xxxxxxxxx xxxxx xx xxx xxxxxxxxxx. Tx xxxxxx xxxx SQL xxxxxxxxx, <literal moreinfo="none">VAR_POP( )</literal> xxxxx xxxx xxxx xxxx xxxxxxx.<indexterm class="endofrange" startref="mysqlian-CHP-10-ITERM-3381" id="mysqlian-CHP-10-ITERM-3467" significance="normal"/> -<!--indexterm class="endofrange" startref="mysqlian-CHP-10-ITERM-3382" id="mysqlian-CHP-10-ITERM-3468"/--> -<indexterm class="endofrange" startref="mysqlian-CHP-10-ITERM-3383" id="mysqlian-CHP-10-ITERM-3469" significance="normal"/> -</para> - </refsect1> - </refentry> - </sect1> - <sect1 id="mysqlian-CHP-10-SECT-2"> - <title>Sxxxxxxxxx - A xxxxxxxx xx x SELECT xxxxxxxxx xxxxxx xxxxxx xxxxxxx SQL xxxxxxxxx. Txxx xxxxxxx xxxxxx xxxxxxxxx xx xx xxxxxxx d.d xx MxSQL. Axxxxxxx xxx xxxx xxxxxxx xxx xx xxxxxxxxxxxx xx xxxxx xxx JOIN xxxxxx xx UNION, xxxxxxxxx xx xxx xxxxxxxxx, xxxxxxxxxx xxx x xxxxxxx xxxxxxxx xxxx xx xxxxxxxxx xxxxxx xx xxxx. Txxx xxxx x xxxxxxx xxxxx xxxx xxxxxxx, xxxxx xxxxx xx xxxxxx xx xxxxxx xxx xx xxxxxxxxxxxx. A xxxxxx xxxxxxx xx x xxxxxxxx xxxxxxx: - SELECT * -FROM - (SELECT xxxd, xxxd - FROM xxxxxd - WHERE xxx_xx = dddd) AS xxxxxxxd -ORDER BY xxxd; - Ix xxxx xxxxxxx, xxx xxxxxxxx xx xxxxx xxxxx xx x SELECT xxxxxxxxx xxxxxxxxxx xxx xxxxxx xxxxx. Txx xxxxx xxxxx xx xxxxxx xxx xxxx xx xxxxx xxxxx. Ix xxxxx’x xxxx xx xx x SELECT. Ix xxx xx xx INSERT, x DELETE, x DO, xx UPDATE, xx xxxx x SET xxxxxxxxx. Txx xxxxx xxxxx xxxxxxxxx xxx’x xxxxxx xxxx xx xxxxxx xxxx xxxx xxx xxxx xxxxx xx xx xxxxx xxxxx, xxx xxxx xxxxx’x xxxxx xx xxx xxxxxxxx xx xxxx xx x FROM xxxxxx. A xxxxxxxx xxx xxxxxx x xxxxx (x xxxxxx), x xxxxx, xxxxxxxx xxxxxx xxxxxxxxxx xxxxxx, xx x xxxx xxxxxxx xxx xxxx xxxxxx xx x xxxxxxx xxxxx. - Yxx xxx xxxxxxxxx xxxxxxxxxxx xxxxxxxx xxxx xxxxxxxxxx xx xxxx xxx xxx xxxx xxxxxxxxxxx. Oxx xxxxxxx xx xxxx x xxxxxxxx xx xxxxxx xxxxxx xx IN( ) xxxxxx xx xxxx xx x WHERE xxxxxx. Ix’x xxxxxxxxx xxxxxx xx xxx xxx = xxxxxxxx xxx xxxx xxxxx, xxxxx xxxx AND xxx xxxx xxxxxxxxx/xxxxx xxxx. - Wxxx xxx xxx x xxxxxxxxxxx xxxxxxx xxxx x xxxxxxxx, xxx xxxxxxxxxxxxxx xxx SQL xxxxxxxxx xxxx JOIN xxx xxxxxxx xxx xxxxxxxxxxx xxxxx xxx BENCHMARK( ) xxxxxxxx. Ix xxx xxxxxxxxxxx xx xxxxxx xxxxxxx x xxxxxxxx, xxx’x xxxx xx xx xxxxxxxxxx. Oxxx xx xxxx xxxxxxxxxx xx xxxxxxxxxxx xxxxxx. Fxx xxxxx xxxxxxxxxx xxxxx xxxxx xx x xxxxxxxxxxx xxxxx, MxSQL AB xx xxxxxxx xx xxxxxxxxx MxSQL xxxxxxxxxx. Sx xxxxxxxxxxx xxxxxxxx xxx xxxxxxxxxx xxx xxx xx xxxxxxxx xx xxxxxx xxxxxxxx. Yxx xxx xxxx xxxx xx xxxxxxx xx xxx xxxxxxx xxxxxxx xx xxxxx xxx xxxxxxxxxxxx xx xxxxxx xxxxxxxx. - - Sxxxxx Fxxxx Sxxxxxxxxx - Txx xxxx xxxxx xxxxxxxx xx xxx xxxx xxxxxxx x xxxxxx xx xxxxxx xxxxx. Txxx xxxx xx xxxxxxxx xx xxxxxxxxxxxx xxxxxx xx x WHERE xxxxxx xx xxxxxxxxxxx xxxx xx = xxxxxxxx, xx xx xxxxx xxxxxxxxx xxxxx x xxxxxx xxxxx xxxx xx xxxxxxxxxx xx xxxxxxxxx. - Ax xx xxxxxxx xx xxxx xxxxxxxxx, xxxxxxx xxxx xx xxx xxxxxxxxxx xxxxxxx, xxx xx xxx xxxxx xxxxxxxx, Sxxxx Oxxx, xxx xxxxxx xx xxxxxx xxxx xxx xxxxx x xxxx xx xxxxxxxx xxx xxx xx xxx xxxxxxx xx xxxx xxx xxx xxxx xxxx xx xxxxxx xxxx xx x xxxxxxx. Sxx xxxxx xxx xxxxx xxx xxxxxxxxx xxxxxxx xxxx xxx xxx xxxxx xxxxxx Mxxxxx xxxxxxx xxxxx. - Txx xxx xxxx xxxxxxxxx xxxxx xxxx xxxx, xxx xxxxxx xxxxxx xxxxx xx x xxxxxx xxx xxx xxxxx xxxx xx xxxx xx xxxxxxxx xxx xxxxx xxxx xxxxxxx x xxxxxxxx. Bxx Sxxxx xxxxx’x xxxx xxx xxxxxx xxxxxx, xx xx xxxxx xx SQL xxxxxxxxx xxxx xxxx: - SELECT CONCAT(xxxx_xxxxx, ' ', xxxx_xxxx) AS xxxxxxx, -xxxxx_xxxx, xxxxx_xxxx -FROM xxxxxxxx -JOIN xxxxxx_xxxxxxx USING (xxxxxxx_xx) -WHERE xxxxxx_xx = - (SELECT xxxxxx_xx - FROM xxxxxx_xxxxxxxx - JOIN xxxxxxxx USING (xxxxxxx_xx) - WHERE xxxxxxxx_xxxx = 'ddddAU' - AND xxxxx_xxxx = 'xxxxxx_dd' - AND xxxx_xxxxx = 'Sxxxx' - AND xxxx_xxxx = 'Oxxx'); - Nxxxxx xx xxx xxxxxxxx xxxx xx’xx xxxxxxx xxx xxxxxx_xxxxxxxx xxxxx xxxx xxxxxxxx xx xx xxxx xx xxxx xxx xxxxxxx’x xxxxx xxx xxxx xxxx xx xxx WHERE xxxxxx xx xxx xxxxxxxx. Wx’xx xxxx xxxxxxxxxx xx xxx WHERE xxxxxx x xxxxxxxx xxxxxxxx (Axxxxx dddd) xxx xxxx xxxx (Mxxxxx, xxxxx xxxxxx). Txx xxxxxxx xx xxxxx xxxxxxxxx xxxxxx xx xxx xxxxxx xxxxxxxxxxxxxx xxxxxx, xxxxxxx x xxxxxxx xxx’x xxxxx xxxx xxxx xxx xxxxx xxxxxx x xxxxxxxxxx xxxxx xxxxxx. Txxx xxxxxx xxxxxx xxxxxx xxxx xx xxxx xx xxx WHERE xxxxxx xx xxx xxxx xxxxx xx xxxxxx xxx xxxx xx xxxxxxxx xx xxx xxxxx xxxxxx xxx xxx xxxxxx, xxxxx xxxx xxxxx xxxxxxxxx xxxxxxx. - Ix xx xxxxxx xxxx xxxx xxx xxxxx xx xxxxxxxx xx xxx xxxxxxxx xx xxx xxxxxxxx xxxxxxx, MxSQL xxxx xxxxxx xx xxxxx: - ERROR dddd (ER_SUBSELECT_NO_d_ROW) -SQLSTATE = ddddd -Mxxxxxx = "Sxxxxxxx xxxxxxx xxxx xxxx d xxx" - Dxxxxxx xxx xxxxxxxxxxx, xx xx xxxxxxxx xxxx x xxxxxxx xxxxx xxxxx xxxx xxxx xxx xxxxx xx x xxxx: xxxxxxx xxx xxxxxxx xx xxxxxxxx x xxxxxx xx xxxxxx xxx xxxxxxx xx xxxxx, xxx xxxx xxxxx xxx xx xxx xxxxxxxx xxxx xxx xxxxxxxxxx xxxx xxx xxxx xxxxxxxx. Ix xxxx x xxxxxxxxx, xxx xxxxxxx xxxxx xxxx xxx xxxx xxx xxxx xxxxxx xxxxxxx. Tx xxx xxxxxxxx xxxxxx xxxxxxx xxxx x xxxxxxxx xx x WHERE xxxxxx xxxx xxxx, xx xxxxx xxxx xx xxx xxxxxxxxx xxxxx xxxx xxx = xxxxxxxx, xxxx xx IN. Fxx xxxx xxxx xx xxxxxxxxx, xxx xxx xxxx xxxxxxx. - - - Mxxxxxxx Fxxxxx Sxxxxxxxxx - Ix xxx xxxxxxxx xxxxxxx, xx xxxxxxxxx xxxxxxxxx xxxxx xxxxx xxx xxxxxx xxxxx xxx xxxxxxxx xxxx x xxxxxxxx xx x WHERE xxxxxx. Hxxxxxx, xxxxx xxx xxxxx xxxx xxx xxx xxxx xx xxxxx xxxxxxxx xxxxxx. Fxx xxxxx xxxxxxxxxx xxx xxxx xxxx xx xxx xxx xxxxxxxx xx xxxxxxxxxxx xxxx xx xxxxxxxx xx xxxxxx: ALL, ANY, EXISTS, IN, xxx SOME. - Ax xx xxxxxxx xx x xxxxxxxx xxxxxx xxxxxxxx xx xxxxxxx, xxx xxxxxxxxxxxx xx x xxxxxxxx xxxxx IN (xx xxxxx ANY xx SOME), xxx’x xxxxx xxx xxxxxxx xxxx xxx xxxxxxxx xxxxxxx xx x xxxxxxxxx xxxxx xxx xxxxxxx xxxxx xxx xxxxxxx xxxxxxxxxxx xxx xxx xx xxx xxxxxxx. Tx xx xxxx xx xxx xxxxx xxx xxxxxxxxx SQL xxxxxxxxx: - SELECT CONCAT(xxxx_xxxxx, ' ', xxxx_xxxx) AS xxxxxxx, -xxxxx_xxxx, xxxxx_xxxx -FROM xxxxxxxx -JOIN xxxxxx_xxxxxxx USING (xxxxxxx_xx) -WHERE xxxxxx_xx IN - (SELECT xxxxxx_xx - FROM xxxxxx_xxxxxxxx - JOIN xxxxxxxx USING (xxxxxxx_xx) - WHERE xxxxxxxx_xxxx = 'ddddAU' - AND xxxx_xxxxx = 'Sxxxx' - AND xxxx_xxxx = 'Oxxx'); - Ix xxxx xxxxxxx, xxxxxx xxxx xxx xxxxxxxx xx xxxxxxxxx xxxxxx xxx xxxxxxxxxxx xx xxx IN xxxxxx. Sxxxxxxxxx xxx xxxxxxxx xxxxx, xx xxx xxxxxxx xxxx xx xxxxxxxxx xxxxxx xxx WHERE xxxxxx xx xxxxxxxx. Axxxxxxx x xxxxx-xxxxxxxxx xxxx xxx’x xxxxxxxx, MxSQL xxxxx xxxxxxx xxx xxxxxxx xx xxxx xxxx xxx xx xxxx xx xxx xxxxx xxxxxx. Txx xxxxxxxx xx xxx WHERE xxxxxx xxxx xxxx xxx xxxxxxx x xxxxxxxx xxxx xxxx xx xxx xxxxxxx xxxxxxx xxx. Sx xxxxxxxx xxxxxx xxx xxxx xxxx xxxxxx xx xx xxxxxxxx. - Ixxxxxx xx IN, xxx xxx xxx ANY xx SOME xx xxxxxx xxx xxxx xxxxxxx xx xxx xxxx xxxxxxx. (ANY xxx SOME xxx xxxxxxxxxx.) Txxxx xxx xxxxxxxx, xxxxxx, xxxx xx xxxxxxxx xx x xxxxxxxxxx xxxxxxxx (x.x., =, <, >). Fxx xxxxxxx, xx xxxxx xxxxxxx xxx IN xx xxx SQL xxxxxxxx xxxxxxxxx xxxx = ANY, xx xxxx = SOME xxx xxx xxxx xxxxxxx xxxx xx xxxxxxxx. IN xxx xx xxxxxxxx xxxx NOT xxx xxxxxxxx xxxxxxxxxxx: NOT IN(...). Txxx xx xxx xxxx xx != ANY (...) xxx != SOME (...). - Lxx’x xxxx xx xxxxxxx xxxxxxxx xxxxxxxxx xxxxxxxx xxxxxx, xxx xxxxx xxx ALL xxxxxxxx. Txx ALL xxxxxxxx xxxx xx xxxxxxxx xx x xxxxxxxxxx xxxxxxxx (x.x., =, <, >). Ax xx xxxxxxx xx xxxx xxxxx, xxxxxxx xxx xx xxx xxxxx xxxxxxxx xxxxxxxx xxxxxxx xxxxxxxx xxx xxxxxxxx. Sxxxxxx xxxx xxxx xx xxxxx xxxx x xxx xxxxxxxx xxx xxxxxxxx xx xxx xx xxx xxxxxxxx xxxx xx xxx xxxxxxxxx xxx xxx xxxxxxxx xxx xxxx xx xxxxx x xxxx xx xxxxx xxxxx xxx xxxxxxxxx xxxxxxx xx xxxxxxx. Wx xxxxxx xx xxxx xx xxx xxxx xxxx xx xxxxxxxx xx SQL xxxxxxxxx xxxx xxxx (xxx xxxxxxxxx xx xxxxx’x xxxx xxx xxxxxxx xx xx xxxxxxxxx xxxxxxx): - SELECT DISTINCT xxxxxxx_xx, -CONCAT(xxxx_xxxxx, ' ', xxxx_xxxx) AS xxxxxxx -FROM xxxxxxxx -JOIN xxxxxxx_xxxxxxx USING (xxxxxxx_xx) -WHERE xxxxxxx_xx = ALL - (SELECT xxxxxxx_xx - FROM xxxxxxx_xxxxxxxx - JOIN xxxxxxxx ON (xxxxxxxxxx_xx = xxxxxxx_xx) - WHERE xxxxxxxx_xxxx = 'ddddAU' - AND xxxx_xxxxx = 'Sxx' - AND xxxx_xxxx = 'Oxxx'); - Ix xxxx xxxxxxx, x xxxxxx xx xxx xxxxxx xxxx xxxxxxxxx xxxxxx xxxxx xxx xxx ID xx xxxx, xxx xx xxxx xx xxxx xxx xx xxxx xxxx ON xxxxxxx xx USING, xxx xxxx xxx xxxxxxx xx xx xxxx xxx xxxxxxxx. Wxxx’x xxxxxxxxxxx xx xxxx xxxx xxxxxxxx xxxxxxx x xxxx xx xxxxxxx xxxxxxxxxxxxxx xxxxxxx xxx xx xxxx xx xxx WHERE xxxxxx xx xxx xxxx xxxxx xxxx = ALL. Uxxxxxxxxxxxx, xxxxxxxx xxxx xxxxxxxxx xx xxxxxxxxxxx xxxxxxxxx, xx xxxxx’x xxxx xxxx MxSQL xx xxx xxxx xx xxxx xxxxxxx xxx xxxx xxxxxxx xx xxxxx xxx. Hxxxxxx, xx xxxxxx xxxx xx xxxxxx xxxxxxxx xx MxSQL, xx I’xx xxxxxxxx xx xxx xxxxxx xxxxxxxxx. Fxx xxx xx xxxxx xxxx xx xxxxxxxxxx xxx SQL xxxxxxxxx xxxx xx: - SELECT xxxxxxx_xx, xxxxxxx -FROM - (SELECT xxxxxxx_xx, COUNT(*) - AS xxx_xxxxxxxx_xxxxxxxxxx, - CONCAT(xxxx_xxxxx, ' ', xxxx_xxxx) - AS xxxxxxx - FROM xxxxxxxx - JOIN xxxxxxx_xxxxxxx USING (xxxxxxx_xx) - WHERE xxxxxxx_xx IN - (SELECT xxxxxxx_xx - FROM xxxxxxx_xxxxxxxx - JOIN xxxxxxxx - ON (xxxxxxxxxx_xx = xxxxxxx_xx) - WHERE xxxxxxxx_xxxx = 'ddddAU' - AND xxxx_xxxxx = 'Sxx' - AND xxxx_xxxx = 'Oxxx') - GROUP BY xxxxxxx_xx) AS xxxxxxxx_xxxxxxxxxx -WHERE xxx_xxxxxxxx_xxxxxxxxxx = - (SELECT COUNT(*) AS xxx_xxxxxxxx - FROM xxxxxxx_xxxxxxxx - JOIN xxxxxxxx - ON (xxxxxxxxxx_xx = xxxxxxx_xx) - WHERE xxxxxxxx_xxxx = 'ddddAU' - AND xxxx_xxxxx = 'Sxx' - AND xxxx_xxxx = 'Oxxx'); - Txxx xx xxxx xxxx xxxxxxxx, xxx xx xxxx xxxx xxxx xxx xxxxxx xxxxxxx xx MxSQL. - Txx xxxxx xxxxxxxx xx xxxx xx xxx xxx xxxxxxx’x xxxx. Txxx xxxxxxxx’x WHERE xxxxxx xxxx xxxxxxx xxxxxxxx xx xxxxxxxx xxx xxxx xx xxxxxxxx xxxxxx xx xxx xxxxxxxxx xxx xxx xxxxxxxx, xx xxxxxxxxx xxx xxxxxxx xxx xxxx xxxxx xxx xxxx xxxxx xxxx xxxx xxx xxxxxxxx xxxx. Txx xxxxx xxxxxxxx xxxxxx xxx xxxxxx xx xxxxxxxx xxxx xxx xxxx xxxxxxxxx xx xxxxxxxx xxx xxx xxxxxxxx. Txxx xxxxxx xxxxx xx xxxx xxxx xxx WHERE xxxxxx xx xxxx xxxxx. Ix xxxxxxx, xx’xx xxxxxxxxxxx xxx xxxxxx xx xxxxxxxx xxx xxxxxxxxx xx xxxxxxxx xxx xxxxx xxxxxxxx xxx xxxxxxxxxx xxx xxx xx xxxx. - Txx xxxx xxxxxxxx xxxxxx xxx xxxxx xxxxxxxx xxxxxx xx x xxxxxxxx xxxx EXISTS. Wxxx EXISTS, xx xxxxx xxx xx xx xxxxxx xxxxxxxxxx xx xxxxxxx xxxxxxx, xxx xxxx xx xxxxxxxxx xx xxx WHERE xxxxxxx xx xxx xxxxxxxx x xxxxx xx xxxxx xx xx xxxxxx xx xxx xxxxx xxxxx. Uxxxx xxx xxxxxxx xxxx xxx xxxxxxxx xxxxxxx xxxxxxxxx xxx xxxxxxx Sxxxx Oxxx, xxx’x xxxxxxx xxxx xx xxxx xx xxxxxxxx x xxxx xx xxxxxxx xxxx xxx xxxxxxx: - SELECT DISTINCT xxxxxx_xx, xxxxxx_xxxx -FROM xxxxxxx -WHERE EXISTS - (SELECT xxxxxx_xx - FROM xxxxxx_xxxxxxxx - JOIN xxxxxxxx USING (xxxxxxx_xx) - WHERE xxxxxxxx_xxxx = 'ddddAU' - AND xxxx_xxxxx = 'Sxxxx' - AND xxxx_xxxx = 'Oxxx' - AND xxxxxxx.xxxxxx_xx = xxxxxx_xxxxxxxx.xxxxxx_xx); - Ax xxx xxx xxx xxxx, xx’xx xxxxx EXISTS xx xxx WHERE xxxxxx xxxx xxx xxxxxxxx xx xxxxxxxxxxx, xxxxxxx xx xxxxx IN. Txx xxxxxxxxxxx xxxxxxxxxx xx xxxx xx xxxxx xxxxxxx.xxxxxx_xx = xxxxxx_xxxxxxxx.xxxxxx_xx xx xxx xxx. Wxxxxxx xx, x xxxx xx xxx xxxxxxx xxxxx xx xxxxxxxx xxxxxxxxxx xx xxx xxxxxxxx xx xxx WHERE xxxxxx xx xxx xxxxxxxx. Ixxxxxxxxxxx, xx xx xxxxxxxxx NOT EXISTS xxxxxxx, xx xxxxx xxx xxx xxxxxxx xxxxxx xxx xxx xxxx xxxxxx xx xxx xxxxxxx xxxxx. - - - Rxxxxxx Sxx Sxxxxxxxxx - A xxxxxxxx xxx xx xxxx xx xxxxxxxx x xxxxxxx xxx, xxxxx xx x xxxxx xxxx xxxxx xx xxxxx xxxxx xxx xxxxxx xxxx. Txxx xx xx xxx, x xxxxxxxx xxx xx xxxx xx x FROM xxxxxx xx xx xx xxxx xxxxxxx xxxxx xx x xxxxxxxx. Ix xx xxxx xx xx x xxxxxxx xxxxx. Axxxx xxxxx xxxxx, xxxx xxxxxxx xxxxx xxxx xx xxxxx. Txxx xx xxxx xxxx AS xxxxxxxxx xxx xxxxxxxxxxx xxxxxxxxxx xxx xxxxxxxx. A xxxxxxxx xxxxxxxxx xx x FROM xxxxxx xxxxxxxxx xxxxxx xx x xxxxxxxxxx xxxxxxxx—xxxx xx, xx xxxxxx xxxxxxxxx xxx xxxx xxxxx xx xxx xxxxx xxxxx. Txx xxxxxxxxx xx xx xx’x xxxxxxxxxxx xxxx x JOIN. - Ix xxx xxxxxxx xxxx xxxxxxx, xxx’x xxxxxxxx xxx xxxxxxxx xxxxxxxxxx xx xxxxxx xx xxxx x xxxxx xxxxx xxx xxx x xxxxxxxx. Ix xxxx xxxxxxxx x xxxxxxx xxx xxxxxxxxxx xxx xxxxxxx’x ID xxx xxx xxxxxxx’x xxxxxxx xxxx xxxxx xxx x xxxxxxxx xxxxxx xxxxxx xxxxxx x xxxxxxxx xxxxxxxx. Txx xxxxx xxxx AVG(), xxxxx xxxxxxxx x GROUP BY xxxxxx. Txx xxxxxxx xxxx GROUP BY xx xxxx xx xxxx xxxxx xxxx xxxx xx xxx xxxxxxx xx xxxxx xx’x xxxxx xx xxxxx xxxx. Ix xxxx xxxx, xx xxxx xxxxx xxx xxxx xx xxxxxxx_xx xxx xxx xxxx xxx xxxxxxx xx xxx xxxxx, xxxx xxxxxx xxxxxx. Ix xx xxxx xx xxxxx xxx xxxx xx xxxx xxx xxxxxxx xxxxxxx xxxxxxx xx xxxxx, xxxxxxxxxx xx xxxxx xx xxx xxxxxx xxxxxxx xxxxxxx, xx xxxx xx xxxx xxx xxxxx xxxx x xxxxxxxx xxx xxxx xxx xxxxx xxxxx xxxxxx xxx xxxxxxx: - SELECT CONCAT(xxxx_xxxxx, ' ', xxxx_xxxx) AS xxxxxxx, -xxxxxxx_xx, xxx_xxxxx -FROM xxxxxxxx -JOIN - (SELECT xxxxxxx_xx, - AVG(xxxx_xxxxx) AS xxx_xxxxx - FROM xxxxx - WHERE xxxxxxxx_xxxx = 'ddddAU' - AND xxxxxx_xx = dddd - GROUP BY xxxxxxx_xx) AS xxxxx_xxxxxxxx -USING(xxxxxxx_xx) -ORDER BY xxx_xxxxx DESC; - Txx xxxxxxx xxx (xxx xxxxxxx xxxxx xxxxxxxxx xx xxx xxxxxxxx xx xxx FROM xxxxxx) xx xxxxx xxxxx_xxxxxxxx. Nxxxxx xxxx xxxxxxxx xxx xxxxxx xxxxxxx_xx xxxxxx xx xxx xxxxxxx xxxxx xxx xx xxx xxxxx xxxx xxxxx xx xxxx xxx xxxx (x.x., xxxxx), xxx xx xxx xxxxxxx xxxxx xxxx xx xxx xxxx xxxxx (x.x., xxxxxxxx), xxxxx xx xx xxxxxxxxx. Nx xxxxx xx xxxxxxxxx. Hxxxxxx, xx xx xxxxxx xx xxxxxxx xxxx xxx xxxx xx xxxxx xxxx xxx xxxxxxx xxxxx, xx xxxxx xxx xxxxx_xxxxxxxx.xxxxxxx_xx xx xxx SELECT xx xxx xxxxx xxxxx., - Txxx xxxxxxxx xx x xxxxxxxxxx xxxxxxxx, xxxxx xx xxxxxxxxx xxx xxxxxxxxx xx x FROM xxxxxx. Ix’x xxxxxxx xx xxxx xxxxxxx xxxxxxx xx xxx xxxxx x JOIN xx xxxx xxx xxxxxxx xxx xx xxx xxxxx xxxxxxxxxx xx xxx xxxxx xxxxx. - - - - - Sxxxxx Fxxxxxxxx - xxxxxxxxxxxxxxxxx xxxxxxxxx -MxSQL xxx xxxxxxx xxxxx-xx xxxxxxxxx xxx xxxxxxxxxx, xxxxxxxxxxxx, xxx xxxxxxxxx xxxxxxx, xxxx xxxx-xxxxxxxxx xxx xxxxxx xxxxxxx xx xxxx. Txxx xxxxxxx xxxxx xxxxx xxxxxx xxxxxxxxx, xxxxxxxx xxx xxxxxx xx xxxx, xxx xxxxx xxxxxxxx xx xxxxx xxx. Txx xxxxxxxx xx xxxx xxxxxxx xxx x xxxxxxxxxx xxxxxxxx xxx x xxxxxxx. - -Sxxxxx xxxxxxxxx xx xxx xxxxxx xxxxx xxxxxx; xxx xxxxxxxxx’ xxxxxx xxxxxx xxxxxxx xxx xxxxxxx. - - - Sxxxxx Fxxxxxxxx Gxxxxxx xx Txxx - xxxxxx xxxxxxxxxxxxxxxxxxxxxxxx -Txx xxxx xx xxxxxx xxxxxxxxx xx xxxxx xxxx, xxx xxxx xxxxxxx xxxxxxx xxxxx. Txx xxxxxxxxx xxxx xxxxxx xxx xxxxxxxxx xx xxxxx xxxxx. - - Cxxxxxxxx Sxxx xxx Cxxxxxxxx - CHAR_SET( ), COALESCE( ), COERCIBILITY( ), COLLATION( ) - - - Cxxxxxxxxx - ASCII( ), BIN( ), BINARY( ), CAST( ), CHAR( ), COMPRESS( ), CONVERT( ), EXPORT_SET( ), HEX( ), MAKE_SET( ), ORD( ), SOUNDEX( ), UNCOMPRESS( ), UNHEX( ). - - - Fxxxxxxxxx - CONCAT( ), CONCAT_WS( ), LCASE( ), LENGTH( ), LOWER( ), LPAD( ), LTRIM( ), OCTET_LENGTH( ), QUOTE( ), RPAD( ), RTRIM( ), SPACE( ), TRIM( ), UCASE( ), UPPER( ). - - - Exxxxxxxxxx - BIT_LENGTH( ), CRCdd( ), CHAR_LENGTH( ), CHARACTER_LENGTH( ), ELT( ), FIELD( ), FIND_IN_SET( ), INSTR( ), INTERVAL( ), LOCATE( ), MATCH( ), AGAINST( ), POSITION( ), STRCMP( ), UNCOMPRES_LENGTH(). - - - Exxxxxxxxx - LEFT( ), LOAD_FILE( ), MID( ), RIGHT( ), SUBSTRING( ), SUBSTRING_INDEX( ). - - - Mxxxxxxxxxxx - INSERT( ), REPEAT( ), REPLACE( ), REVERSE( ). - - - - Sxxxxx Fxxxxxxxx xx Axxxxxxxxxxx Oxxxx - Txx xxxx xx xxxx xxxxxxx xxxxx xxx xxxxxx xxxxxxxxx xx xxxxxxxxxxxx xxxxx. - - - ASCII( ) - - - ASCII( ) - - - - ASCII(xxxxxx) - - - - <para><indexterm id="mysqlian-CHP-11-ITERM-3102" significance="normal"><primary>ASCII( ) xxxxxxxx</primary></indexterm> -Txxx xxxxxxxx xxxxxxx xxx xxxxxxx xxxx xxxxxxxxxxxxx xx xxx xxxxx xxxxxxxxx xx x xxxxx xxxxxx. Ix xxx xxxxx xxxxxx xx xxxxx, d xx xxxxxxxx. Dxxxxxx xxx xxxxxxx’x xxxx, xx xxxxx xxx xxxxxxxxxx xxxxxxx xxx ASCII xxx (xxxx xx, xxxxxxxxxx xxxx xxxxxxxxxx xx xxxxxx xxxxx ddd) xxx xx xxxxxxxx xxxx xxxxxx xxx xxxx xxxxxxxxxx.</para> - <para>Ax xx xxxxxxx xx xxxx xxxxxxxx’x xxx, xxxxxxx xxxx xxx x xxxxxxx xx xxx x xxxxx xxxxxxx xxx xxxxx xx xxxxxxxxxxxx xxxx xxxxx Gxxxx xxxxxxx. Fxx xxxxxx xxxxxxxxxxxx xx xxx xxxx xxxxxxxxx xx x xxxxxx, xx xxxxx xxxx xx xxxxxxx xxx Gxxxx xxxxxxx xx x xxxxxxx xxxx xxxx xxxx xxxxxxxx:</para> - <programlisting format="linespecific">SELECT xxxxx_xx, -CONCAT_WS('-', - ASCII( SUBSTR(xxxxx_xx, d, d) ), - ASCII( SUBSTR(xxxxx_xx, d, d) ), - ASCII( SUBSTR(xxxxx_xx, d, d) ) -) AS 'ASCII Vxxxxx' -FROM xxxxxxxxxxxx WHERE xxxx_xx = ddd; - -+----------+--------------+ -| xxxxx_xx | ASCII Vxxxxx | -+----------+--------------+ -| ? ? ? | ddd-ddd-ddd | -+----------+--------------+</programlisting> - <remark>[PROD: Cxxxx xx xxxxx xxxx xxxxxx xxxxx xxxx xxxx xxxxxxxxx (xxxxxx xx xxx Dxxxx Sxxxx Px)—DCPS]</remark> - <para>Ix xxxx xxxxxxx, xx xxx xxx <literal moreinfo="none">SUBSTR( )</literal> xxxxxxxx xx xxxxxxx xxxx xxxxxx xx xx xxx xxxx xxxxxxx xxxx xxx xxxxxxxxxxxx xx xxx xxxxxxx xxxxxxxxxx xxxx xxx <literal moreinfo="none">ASCII( )</literal> xxxxxxxx. Txxx, xxxxx xxx <literal moreinfo="none">CONCAT_WS( )</literal>, xx xxxxxx xxxxxxx xxxxxxx xxxx xxxxxx xxxxxxxx. Wx xxx xxx xxxx xxxxxx xx xxxx xxxxxx xxxxxx xxx xxxx xxxxxxx xx xxxx xxxxxxxxxx. Sxx xxx xxxxxxxxxxxx xx <literal moreinfo="none">CHAR( )</literal> xxx <literal moreinfo="none">CONVERT( )</literal> xx xxxx xxxxxxx xxx xxxx xxxxxxxxxxx xx xxxx xxxxxxxx xxx xxx xxxx xxxxxxx xxxxxxx xx xxxx xxxxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch11-77008"> - <refmeta> - <refentrytitle>BIN( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>BIN( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">BIN(<replaceable>xxxxxx</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch11-02-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-11-ITERM-3103" significance="normal"><primary>BIN( ) xxxxxxxx</primary></indexterm> -Txxx xxxxxxxx xxxxxxx x xxxxxx xxxxxx xxx x xxxxx xxxxxxx. Ix xxxxxxx NULL xx xxx xxxxx xx NULL.</para> - <programlisting format="linespecific">SELECT BIN(d), BIN(d), BIN(d); - -+--------+--------+--------+ -| BIN(d) | BIN(d) | BIN(d) | -+--------+--------+--------+ -| d | dd | dd | -+--------+--------+--------+</programlisting> - <para>Fxx xxx xxxxxx d xx x xxxx dd xxxxxx, xxx xxxxx xxxxxxxx xx x xxxxxx xxxxxx xx <emphasis>xx</emphasis> xx d. Fxx xxx xxxxxx d, xxx xxxxx xxxxxxxx xxxx xxx xxxxx xx <emphasis>xxx</emphasis> xxx xxx xxxxxx xx <emphasis>xx</emphasis>. Fxx d, xxx xxxxx xxx xxx xxxxxx xxxxxxxxx xxx <emphasis>xx</emphasis>.</para> - </refsect1> - </refentry> - <refentry id="ch11-77009"> - <refmeta> - <refentrytitle>BINARY</refentrytitle> - </refmeta> - <refnamediv> - <refname>BINARY</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">BINARY <replaceable>xxxxxx</replaceable></synopsis> - </refsynopsisdiv> - <refsect1 id="ch11-03-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-11-ITERM-3105" significance="normal"><primary>xxxx xxxxxxxxxxx</primary><secondary>BINARY xxxxxxxx</secondary></indexterm> -Uxx xxxx xxxxxxxx xx xxxxx xxxxxxx xx xxxxx xxxxxx xxxxx. Txxx xxxxxxxx xx xxxxxx xxx xxxxxx SQL xxxxxxxxxx xxxx-xxxxxxxxx. Nxxxxx xxxx xxx xxxxxx xxxx xxx xxxx xxx xxxxxxxxxxx: </para> - <programlisting format="linespecific">SELECT xxxxxxx_xx, xxxx_xxxx -FROM xxxxxxxx -WHERE BINARY LEFT(UCASE(xxxx_xxxx), d) <> - LEFT(xxxx_xxxx, d); - -+------------+-----------+ -| xxxxxxx_xx | xxxx_xxxx | -+------------+-----------+ -| ddddddddd | xxxx | -| ddddddddd | xx Vxxxx | -+------------+-----------+</programlisting> - <para><indexterm id="mysqlian-CHP-11-ITERM-3106" significance="normal"><primary>BINARY xxxxxxxx</primary></indexterm> -Txxx xxxxxxxxx xxxxxx xxx xxx xxxxxxxx xxxxx xxxx xxxx xxxxxx xxxx x xxxxxxxxx xxxxxx. Tx xx xxxx, xxxx xxxxxxx’x xxxx xxxx xx xxxxxxxxx xx xxxxxxxxx xxxxxxx xxx xxxx xxx xxxxx xxxxxx xxxxxxxx xxxx xxx xxxx xx xxxxxxxxx xx xxxxxxx xx xx xxx xxxxx xxxxxx xx xxx xxxx xxxx xxxxxxx xxxx xxxxxxxxxx. Txx xxxxxxx xxxx xxx xxxxxx xxxx xx xxxxxxxx x xxxxxx xxxxx xxx x xxxxxx xxxx xx xxxxxxxx xxxxxxx. Nxxxxx xxxx xxx <literal moreinfo="none">BINARY</literal> xxxxxxx xx xxxxxxxxx xxxxxx xxx xxxxxxxxxx xx xxxx xxxxxxx xxx xxxxxxx xxx xx xxxxxxx xx xxxx xxxxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch11-77010"> - <refmeta> - <refentrytitle>BIT_LENGTH( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>BIT_LENGTH( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">BIT_LENGTH(<replaceable>xxxxxx</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch11-04-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-11-ITERM-3107" significance="normal"><primary>BIT_LENGTH( ) xxxxxxxx</primary></indexterm> -Txxx xxxxxxxx xxxxxxx xxx xxxxxx xx xxxx xx x xxxxx xxxxxx. Txx xxxxxxxxx xxxxxxx xxxx xxx xxxxxxx xxxxxxxxx xxx, xxxxx xxx xxxxxxxxx xxxxxxxx d xxxx.</para> - <programlisting format="linespecific">SELECT BIT_LENGTH('x') AS 'Oxx Cxxxxxxxx', -BIT_LENGTH('xx') AS 'Txx Cxxxxxxxxx'; - -+---------------+----------------+ -| Oxx Cxxxxxxxx | Txx Cxxxxxxxxx | -+---------------+----------------+ -| d | dd | -+---------------+----------------+</programlisting> - </refsect1> - </refentry> - <refentry id="ch11-77011"> - <refmeta> - <refentrytitle>CAST( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>CAST( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">CAST(<replaceable>xxxxxxxxxx</replaceable> AS <replaceable>xxxx</replaceable> [CHARACTER SET <replaceable>xxxxxxxxx_xxx</replaceable>])</synopsis> - </refsynopsisdiv> - <refsect1 id="ch11-05-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-11-ITERM-3489" significance="normal"><primary>CAST( ) xxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-11-ITERM-3490" significance="normal"><primary>CONVERT( ) xxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-11-ITERM-3491" significance="normal"><primary>UNSIGNED INTEGER xxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-11-ITERM-3492" significance="normal"><primary>TIME xxxxxxxx</primary><secondary>CAST( ) xxxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-11-ITERM-3493" significance="normal"><primary>SIGNED INTEGER xxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-11-ITERM-3494" significance="normal"><primary>DATETIME xxxxxxxx</primary><secondary>CAST( ) xxxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-11-ITERM-3495" significance="normal"><primary>DATE xxxxxxxx</primary><secondary>CAST( ) xxxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-11-ITERM-3496" significance="normal"><primary>CHAR xxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-11-ITERM-3497" significance="normal"><primary>BINARY xxxxxxxx</primary></indexterm> -Uxx xxxx xxxxxxxx xx xxxxxxx x xxxxx xxxx xxx xxxxxxxx xx xxxxxxx. Txxx xxxxxxxx xx xxxxxxxxx xx xx xxxxxxx d.d.d xx MxSQL. Txx xxxxxxxx xxxxx xx xxx xxxxxx xxxxxxxx xxx xx <literal moreinfo="none">BINARY</literal>, <literal moreinfo="none">CHAR</literal>, <literal moreinfo="none">DATE</literal>, <literal moreinfo="none">DATETIME</literal>, <literal moreinfo="none">SIGNED [INTEGER]</literal>, <literal moreinfo="none">TIME</literal>, xx <literal moreinfo="none">UNSIGNED [INTEGER]</literal>. <literal moreinfo="none">BINARY</literal> xxxxxxxx x xxxxxx xx x xxxxxx xxxxxx.</para> - <para><literal moreinfo="none">CHAR</literal> xxxxxxxxxx xx xxxxxxxxx xx xx xxxxxxx d.d.d xx MxSQL. Txxx xxxxxxxx xx xxxxxxx xx <literal moreinfo="none">CONVERT()</literal>. Oxxxxxxxxx, xxx xxx xxx <literal moreinfo="none">CHARACTER SET</literal> xx xxx x xxxxxxxxx xxxxxxxxx xxx xxxx xxx xxxxxxx xxx xxx xxxxx xxxxx. Txx xxxxxxx xx xxxxx xxxx xxx xxxxxx xxxxxxxxx <literal moreinfo="none">xxxxxxxxx_xxx_xxxxxxxxxx</literal> xxx <literal moreinfo="none">xxxxxxxxx_xxxxxxxxxx</literal>. -</para> - <para>Ax xx xxxxxxx, xxxxxxx xx xxxx xx xxxxxxxx x xxxx xx xxxxxxx xxx xxx xxxxxxx xxxxxxxx (Sxxxxx) xxx xxxxx xxxxxxxxx, xxx xxxxxxx xxxx xxxxxxxxxxxxxx xx xxxxx xxxxxxxx xxxx. Uxxxxxxxxxxxx, xxx xxxxxxxx xxxxx xxx xx xx <literal moreinfo="none">ENUM()</literal> xxxxxx, xxxxxxx xx’xx xx x xxxxx xxxxxxx. Sxxxx xxxx’xx xxx xx xxxxxxxxxxxx xxxxx xx xxx xxxxxx xxxxxxxxxx, xxxx xxxxxx’x xx xxxxxx xxx xxx xx xxxx. Ixxxxxx, xxxx xxxx xx xxxxxx xx xxx xxxxxxx xxxxx xx xxx xxxxxx xxxxxxxxxx, xxx xxxxx xxxx xxx xxxxxx xx xxx <literal moreinfo="none">ENUM()</literal> xxxxxx xx xxx xxxxx xxxxxxxxxx. Uxxxx <literal moreinfo="none">CAST()</literal> xx xxx <literal moreinfo="none">WHERE</literal> xxxxxx xxx xxxxxxx xxxx:</para> - <programlisting format="linespecific">SELECT xxxxxx_xx, xxxxxx_xxxx, -CONCAT(xxxxxxxx, '-', xxxx_xxx) AS xxxxxxxx -FROM xxxxxxx -WHERE xxxx = YEAR(CURDATE()) -AND xxxxxxxx = 'xxxxxx' -ORDER BY CAST(xxxxxxxx AS CHAR);</programlisting> - <para>Bx xxxxx xxx <literal moreinfo="none">CAST()</literal> xxxxxxxx xx xxxxx xxx xxxxxx xx <replaceable>xxxxxxxx</replaceable> xx x <literal moreinfo="none">CHAR</literal> xxxx xxxx, xx xxxx xxxx xxx xxxxxxx xxxx xx xxxxxxxxxxxxxx xxxxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch11-77012"> - <refmeta> - <refentrytitle>CHAR( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>CHAR( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">CHAR(<replaceable>xxxxx</replaceable>[, . . . ] [USING <replaceable>xxxxxxxxx_xxx</replaceable>])</synopsis> - </refsynopsisdiv> - <refsect1 id="ch11-06-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-11-ITERM-3108" significance="normal"><primary>CHAR( ) xxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-11-ITERM-3109" significance="normal"><primary>ASCII() xxxxxxxx</primary></indexterm> -Txxx xxxxxxxx xxxxxxx x xxxxxx xxxxxxxxxxxxx xx xxx xxxxxxx xxxx xxxxxx xx xxx xxxxxxxx. Txxx xx xxx xxxxxxx xx <literal moreinfo="none">ASCII( )</literal>. Yxx xxx xxxxxxxxxx xxxx xxx <literal moreinfo="none">USING</literal> xxxxxxxxx xx xxxxxxx x xxxxxxxxx xxxxxxxxx xxx xx xxx xx xxxxxxxx xx xxx xxxxxx xxxxx. Ix xxx xxxx xx x xxxxx xxxxxxx xxxx ddd, xx xxxxxxx xxx xxxxxx xxxx ddd xx xxxxxxx xxxxxxxxx. Sx, <literal moreinfo="none">CHAR(ddd)</literal> xx xxxxxxxxxx xx <literal moreinfo="none">CHAR(d,d)</literal>. -</para> - <para>Ax xx xxxxxxx xx xxxx xxxxxxxx’x xxx, xxxxxxx xxxx x xxxxxxx xxxxxxxx xxx x xxxxx xxx xxxxxxxxxxxx xx xxxxxx xxx xxxx xxx xxxxx xxx x xxxxxx xx xxxxxxx xxx Gxxxx xxxxxxx xxx xxx xxxxxxxxxx’x xxxx. Tx xxxxxx x xxxxx xxxx xxxx x xxxxxx, xx xxxxx xx x xxxxxxx xxxxx xxxxxxxxx xxxx xxx xxxxxxxxx:</para> - <programlisting format="linespecific">CREATE TABLE xxxxxxxxxxxx ( -xxxx_xx INT(dd), -xxxxx_xx CHAR(dd) CHARACTER SET xxxxx);</programlisting> - <para>Nxxxxx xxxx xxx xxx xxxxxx <replaceable>xxxxx_xx</replaceable> xx’xx xxxxxxxxxx x xxxxxxx xxxxxxxxx xxx xx xx xxxx. Txxx xxx xx xxxxxxxxx xxxx xxx xxxxxxxxx xxx xxx xxxxx xxxxxxx xxx xxx xxx xxxxx. Wxxx xxxx xxxxxxx xxxxx, xx xxxxx xxx xxxxxxxxx <literal moreinfo="none">INSERT</literal> xxxxxxxxx xx xxx xxx xxxxxxxxxx xxx xxxx xxxxxx xxxx xxxx x <literal moreinfo="none">SELECT</literal> xxxxxxxxx xx xxx xxx xxxxxxx:</para> - <programlisting format="linespecific">INSERT INTO xxxxxxxxxxxx -VALUES(ddd, - CONCAT(CHAR(ddd USING xxxxx), - CHAR(ddd USING xxxxx), - CHAR(ddd USING xxxxx))); - -SELECT xxxxx_xx -FROM xxxxxxxxxxxx -WHERE xxxx_xx = ddd; - -+----------+ -| xxxxx_xx | -+----------+ -| ? ? ? | -+----------+</programlisting> - <remark>[PROD: Cxxxx xx xxxxx xxxx xxxxxx xxxxx xxxx xxxx xxxxxxxxx (xxxxxx xx xxx Dxxxx Sxxxx Px)—DCPS]</remark> - <para>Uxxxx xxx <literal moreinfo="none">CHAR( )</literal> xxxxxxxx xxx xxxxxxx xx x xxxxx xxxxxxx xxx Gxxxx xxxxxxxx, xx xxxxxx xxx xxx ASCII xxxxxx xxx xxxx xx xxx xxxxx Gxxxx xxxxxxx xxx xxx xxxxxxxxxx, Dxxxx-Sxxxx-Px. Ix xx xxx x Gxxxx xxxxxxxx, xx xxxxx xxxx xxxx xxxx. Ix xx xxxx x xxxxx xxxxxxxxx xxxxxx xx x xxxxxxxxx xxxxxxx, xx xxxxx xxxx xxxx xxx xxxxx xxxx xxxx xxx <literal moreinfo="none">xxxxx</literal> xxxxxx. Uxxxx xxx <literal moreinfo="none">CONCAT( )</literal> xxxxxxxx, xx xxx xxx xxxxxxx xx xxxx xxxxxxxx xx xxxxxx xxx xxxx xxxx xxx xxxxxx xx xxx xxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch11-77013"> - <refmeta> - <refentrytitle>CHAR_LENGTH( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>CHAR_LENGTH( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">CHAR_LENGTH(<replaceable>xxxxxx</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch11-07-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-11-ITERM-3110" significance="normal"><primary>CHAR_LENGTH( ) xxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-11-ITERM-3111" significance="normal"><primary>CHARACTER_LENGTH() xxxxxxxx</primary></indexterm> -Txxx xxxxxxxx xxxxxxx xxx xxxxxx xx xxxxxxxxxx xx x xxxxx xxxxxx. Txxx xx xxxxxxxxxx xxxx <literal moreinfo="none">CHARACTER_LENGTH()</literal>. A xxxxxxxx-xxxx xxxxxxxxx xx xxxxxxx xx xxx xxxxxxxxx. Uxx <literal moreinfo="none">LENGTH()</literal> xx xxx xxxx xxxx xxxx xx xx xxxxxxx.</para> - <programlisting format="linespecific">SELECT xxxxxx_xx, - CASE - WHEN CHAR_LENGTH(xxxxxx_xxxx) > dd - THEN CONCAT(SUBSTRING(xxxxxx_xxxx, d, dd), '...') - ELSE xxxxxx_xxxx - END AS Dxxxxxxxxxx -FROM xxxxxxx;</programlisting> - <para><indexterm id="mysqlian-CHP-11-ITERM-3112" significance="normal"><primary>CHAR_LENGTH( ) xxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-11-ITERM-3113" significance="normal"><primary>SUBSTRING( ) xxxxxxxx</primary></indexterm> -Ix xxxx xxxxxxx, x -<literal moreinfo="none">CASE</literal> xxxxxxx xxxxxxxxx xx xxxx xx xxxxxxx -xxxxxxxxx xxxxxxx xxxxxxx xxxxx xx x xxxxxxxxx. Uxxxx xxx -<literal moreinfo="none">CHAR_LENGTH()</literal> xxxxxxxx, MxSQL xxxxxxxxxx xxxxxxx xxx -xxxxxxx xx <literal moreinfo="none">xxxxxx_xxxx</literal> xx xxxxxx xxxx dd xxxxxxxxxx. Ix xx xx, xxx <literal moreinfo="none">SUBSTRING()</literal> xxxxxxxx xxxxxxxx xxx xxxxx dd xxxxxxxxxx xxx xxx <literal moreinfo="none">CONCAT()</literal> xxxxxxxx xxxx xxxxxxxx xxxxxx xx xxx xxx xx xxx xxxxxxxxx xxxx xx xxxxxxxx xxxx xxxxx xx xxxx xxxx. Oxxxxxxxx, xxx xxxx xxxxxxxx xx <literal moreinfo="none">xxxxxx_xxxx</literal> xxx xxxxxxxxx. Sxx xxx <literal moreinfo="none">CHARACTER_LENGTH()</literal> xxxxxxxxxxx xxx xxxxxxx xxxxxxx xx xxx <literal moreinfo="none">CHAR_LENGTH()</literal> xxx xx xxxx.</para> - </refsect1> - </refentry> - <refentry id="ch11-77014"> - <refmeta> - <refentrytitle>CHARACTER_LENGTH( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>CHARACTER_LENGTH( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">CHARACTER_LENGTH(<replaceable>xxxxxx</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch11-08-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-11-ITERM-3114" significance="normal"><primary>CHARACTER_LENGTH( ) xxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-11-ITERM-3115" significance="normal"><primary>CHAR_LENGTH( ) xxxxxxxx</primary></indexterm> -Txxx xxxxxxxx xxxxxxx xxx xxxxxx xx xxxxxxxxxx xx x xxxxx xxxxxx. A xxxxxxxx-xxxx xxxxxxxxx xx xxxxxxx xx xxx xxxxxxxxx. Ix’x xxxxxxxxxx xxxx <literal moreinfo="none">CHAR_LENGTH( )</literal>. -</para> - <para>Ax xxxxxxx xxxxxxx xx xxx xxxx xxxxxxxx xx <literal moreinfo="none">CHAR_LENGTH( )</literal> xxxxx xx xxxx, xxxxxxx xxxx xx x xxxxxxx’x xxxxx xxxxxxxxxx xxxxxxxx xxxxx xx xxxxxx xxxx xxx xxxxx xx xxxx xxxxxxxx xxx xxxxxxxxx xxxxxxx. Wx xxxxxxx xxxx xx xxxxxxx xx xxxxx’x xxxxxxxx xxx xxx-Lxxxx xxxxxxxxxx. Wx xxxxx xxxxx xx SQL xxxxxxxxx xxxx xxx xxxxxxxxx xx xxxx xxxxxxxx xxxx xxx xxxxx xxxxxxx xxxxxxxxxx xxxxx-xxxx xxxxxxxxxx:</para> - <programlisting format="linespecific">SELECT xxxxxxx_xx, -CONCAT(xxxx_xxxxx, SPACE(d), xxxx_xxxx) AS Nxxx -FROM xxxxxxxx -WHERE CHARACTER_LENGTH(xxxx_xxxxx) != LENGTH(xxxx_xxxxx) -OR CHARACTER_LENGTH(xxxx_xxxx) != LENGTH(xxxx_xxxx);</programlisting> - <para>Ix xxxx xxxxxxx, xx xxx <literal moreinfo="none">WHERE</literal> xxxxxx xx’xx xxxxx <literal moreinfo="none">CHARACTER_LENGTH( )</literal> xx xxx xxx xxxxxx xx xxxxx xxx <literal moreinfo="none">LENGTH( )</literal> xx xxx xxx xxxxxx xx xxxxxxxxxx xxx xxxx xxxx xxx xxxx xxxxxxxxx xxxx xxxx xxx <literal moreinfo="none">!=</literal> xxxxxxxx xx xxxxxx xxxx xxxx xxxxx xxx xxx xxxxxxx xx xxxxxxxxxx xxx’x xxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch11-77015"> - <refmeta> - <refentrytitle>CHARSET( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>CHARSET( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">CHARSET(<replaceable>xxxxxx</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch11-09-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-11-ITERM-3498" significance="normal"><primary>CHARSET( ) xxxxxxxx</primary></indexterm> -Txxx xxxxxxxx xxxxxxx xxx xxxxxxxxx xxx xxxx xx x xxxxx xxxxxx. Ix’x xx xxxxxxxxx xx xx xxxxxxx d.d.d xx MxSQL.</para> - <remark>[PROD: Cxxx xxxxx Rxx xxxxx xxxxx xxxxxxxxx—DCPS]</remark> - <programlisting format="linespecific">SELECT CHARSET('Rxx') -AS 'Sxx xxx Mx Nxxx'; - -+-----------------+ -| Sxx xxx Mx Nxxx | -+-----------------+ -| xxxd | -+-----------------+</programlisting> - </refsect1> - </refentry> - <refentry id="ch11-77016"> - <refmeta> - <refentrytitle>COALESCE( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>COALESCE( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">COALESCE(<replaceable>xxxxxx</replaceable>[, . . . ])</synopsis> - </refsynopsisdiv> - <refsect1 id="ch11-10-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-11-ITERM-3499" significance="normal"><primary>COALESCE( ) xxxxxxxx</primary></indexterm> -Txxx xxxxxxxx xxxxxxx xxx xxxxxxxx xxx-NULL xxxxxx xx xxxxxx xx x xxxxx-xxxxxxxxx xxxx. Ix xxx xxxxxxxx xxx NULL, xxx xxxxxxxx xxxxxxx NULL.</para> - <programlisting format="linespecific">SELECT CONCAT(xxxx_xxxxx, ' ', xxxx_xxxx) - AS Sxxxxxx, -COALESCE(xxxxx_xxxx, xxxxx_xxxx, 'Nx Txxxxxxxx Nxxxxx') - AS Txxxxxxxx -FROM xxxxxxxx;</programlisting> - <para>Ix xxxx xxxxxxx, xxx xxxxxxx xxxx xxxx xxx xxxxxxx’x xxxxxxxxx xxxxxxxxx xxxxxx xx xxxxx xx xxx (x.x., xx xxx xxxxxxx xxxxx xx xxx xxxxxxxxx). Ix xxx, xx xxxx xxxx xxx xxxxxxx’x xxxx xxxxxxxxx xxxxxx (x.x., xxxxx xxx xxxxxx’x xxxxx). Oxxxxxxxx, xx xxxx xxxxxx xxx xxxxxx xxxxx, xxxxxxxxxx xxxx xxxxx xx xx xxxxxxxxx xxxxxx xxx xxx xxxxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch11-77017"> - <refmeta> - <refentrytitle>COERCIBILITY( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>COERCIBILITY( )</refname> - <refpurpose/> - </refnamediv> - <refsect1> - <title/> - <programlisting format="linespecific">COERCIBILITY(<replaceable>xxxxxx</replaceable>)</programlisting> - <para><indexterm id="mysqlian-CHP-11-ITERM-3500" significance="normal"><primary>COERCIBILITY( ) xxxxxxxx</primary></indexterm> -Txxx xxxxxxxx xxxxxxx xx xxxxxxxx xxxxx xxxxx xx xxx <firstterm>xxxxxxxxxxxx</firstterm> xx x xxxxx xxxxxx xx xxxxx xxxx, xxxxxxxxxx xxx xxxxxx xxxx xxxx xx xx xxxxxxxxx xxx xxxxxxxxx xxxx xx xx xxxxxxxxxx. MxSQL xxxxxxxxx xxxxx xx xxxxxx xxxxx xxxxxxxxx xx xxx xxxx xxxxxxx xx xx SQL xxxxxxxxx xxxxxxx xxxxxxxxx xxxxx xx xxxx. Pxxxxxxx xxxxxx xxxxxx xxxx xxxx xxxxxxxx xxx: -</para> - <variablelist> - <varlistentry> - <term>d</term> - <listitem> - <para> -Cxxxxxxxx xxx xxxx xxxxxxxxxx xxxxxxxxx (x.x., x xxxxxxxxx xxxxx <literal moreinfo="none">COLLATE</literal>). -</para> - </listitem> - </varlistentry> - <varlistentry> - <term>d</term> - <listitem> - <para> -Txx xxxxxxxx xxxxxx xxxxxx xx xxxxxxxxx xxxxxxxxxx. -</para> - </listitem> - </varlistentry> - <varlistentry> - <term>d</term> - <listitem> - <para> -Txx xxxxxxxx xxx xx xxxxxxxx xxxxxxxxx (x.x., x xxxxxx xxx xxxxx). -</para> - </listitem> - </varlistentry> - <varlistentry> - <term>d</term> - <listitem> - <para> -Txx xxxxxxxx xx x xxxxxx xxxxxxxx, xxxx xx x xxxxxx xxxxxxxx xx x xxxxxxxx xxxx xxxxxxx xxxxxxxxx xxxxxxx. -</para> - </listitem> - </varlistentry> - <varlistentry> - <term>d</term> - <listitem> - <para> -Txx xxxxxxxx xx x xxxxxxx xxxxxx. -</para> - </listitem> - </varlistentry> - <varlistentry> - <term>d</term> - <listitem> - <para> -Txx xxxxxxxx xx NULL xx xx xxxxxxxxxx xxxxxxx xxxx x NULL xxxxx. -</para> - </listitem> - </varlistentry> - </variablelist> - <para>Lxxxx xxxxxxxxxxxx xxxxxx xxxx xxxxxxxxxx xxxx xxxxxx xxxx xxxx xxx xxxxxx xx xxxxxxxxxxx xxxx xxxxxxxxx xx xxx. Txxx xxxxxxxx xx xxxxxxxxx xx xx xxxxxxx d.d.d xx MxSQL. Ax xxxxxxx xxxxxxx:</para> - <programlisting format="linespecific">SELECT COERCIBILITY('Rxxxxxx') -AS 'Mx Sxxxx'; - -+----------+ -| Mx Sxxxx | -+----------+ -| d | -+----------+</programlisting> - </refsect1> - </refentry> - <refentry id="ch11-77018"> - <refmeta> - <refentrytitle>COLLATION( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>COLLATION( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">COLLATION(<replaceable>xxxxxx</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch11-11-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-11-ITERM-3501" significance="normal"><primary>COLLATION( ) xxxxxxxx</primary></indexterm> -Txxx xxxxxxxx xxxxxxx xxx xxxxxxxxx xxx xxx xxxxxxxxx xxx xx x xxxxx xxxxxx. Txxx xxxxxxxx xx xxxxxxxxx xx xx xxxxxxx d.d.d xx MxSQL.</para> - <remark>[PROD: Cxxx xxxxx Rxx xxxxx xxxxx xxxxxxxxx—DCPS]</remark> - <programlisting format="linespecific">SELECT COLLATION('Rxx'); - -+--------------------+ -| COLLATION('Rxx') | -+--------------------+ -| xxxd_xxxxxxx_xx | -+--------------------+</programlisting> - </refsect1> - </refentry> - <refentry id="ch11-77019"> - <refmeta> - <refentrytitle>COMPRESS( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>COMPRESS( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">COMPRESS(<replaceable>xxxxxx</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch11-12-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-11-ITERM-3116" significance="normal"><primary>COMPRESS( ) xxxxxxxx</primary></indexterm> -Txxx xxxxxxxx xxxxxxx x xxxxx xxxxxx xxxxx xxxxxxxxxxx xx. Ix xxxxxxxx MxSQL xx xxxx xxxx xxxxxxxx xxxx x xxxxxxxxxxx xxxxxxx (x.x., <literal moreinfo="none">xxxx</literal>). Ix xx xxxx’x, x NULL xxxxx xxxx xx xxxxxxxx. Txxx xxxxxxxxx xx xxxxxxxxx xx xx xxxxxxx d.d xx MxSQL.</para> - <programlisting format="linespecific">UPDATE xxxxxxxx_xxxxxxx -SET xxxxxxxx_xxxxx = -(SELECT COMPRESS(xxxxx) - FROM xxxxxxx_xxxxxxxxxxxx - WHERE xxxxxxxxx_xx = 'dddd') AS xxxxxxxd -WHERE xxxxxxx_xx = 'ddddddddd';</programlisting> - <para>Ix xxx xxxx xx xxxxx x xxxxx xxxx xxx xxxxxxxxxx xxxx xxxx xxxxxxxx, xx’x xxxx xx xxxxx xx xx x <literal moreinfo="none">BLOB</literal> xxxxxx xxxxx xxx xxxxxxx xxx xxxxxx. Uxx <literal moreinfo="none">UNCOMPRESS()</literal> xx xxxxxxxxxx x xxxxxx xxxx xxx xxxxxxxxxx xxxx xxxx xxxxxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch11-77020"> - <refmeta> - <refentrytitle>CONCAT( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>CONCAT( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">CONCAT(<replaceable>xxxxxx</replaceable>, . . . )</synopsis> - </refsynopsisdiv> - <refsect1 id="ch11-13-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-11-ITERM-3117" significance="normal"><primary>CONCAT( ) xxxxxxxx</primary></indexterm> -Wxxx xxxx xxxxxxxx, xxxxxxx xx xxxxxxx xxx xx xxxxxxxxxxxx xx xxxxxx xxxxxxxx xxxx xxx xxxxxxxxx xxxxx. Axx xxxxxx xx xxxxxxx xxx xx xxxxxxxxx, xxxx xxxx xxxxxxxx xxxxxxxxx xx x xxxxx. Ix xxx xx xxx xxxxxx xxxxx xxx NULL, x NULL xxxxx xx xxxxxxxx.</para> - <programlisting format="linespecific">SELECT CONCAT(xxxx_xxxxx, ' ', xxxx_xxxx) AS Sxxxxxx -FROM xxxxxxxx WHERE xxxx_xxxx = 'Dxxx'; - -+-------------------+ -| Sxxxxxx | -+-------------------+ -| Kxxxxxx Dxxx | -| Gxxxxxxx Dxxx | -| Mxxxx Dxxx | -| NULL | -+-------------------+</programlisting> - <para>Ix xxxx xxxxxxx, xxx xxxxxxxx xxxxxxxxx xxxx xxxxxxxx xxxx xxx xxxx -xxxx <emphasis>Dxxx</emphasis>, xxx xxx xxx xx xxxx xxxxx xxx x NULL xxxxx xx xxx <emphasis>xxxx_xxxxx</emphasis> xxxxxx. Wxxxxx xxx xxxxxxxxxxx xx xxx xxxxxxxx, xxxxxx xxxx x xxxxx xx xxxxx xxxxxx xxxxxx xx xxx xxxxxx xxxxxxx xx xxxx xxx xxxxxxx xxxx x xxxxx xxxxxxx xxxx xxxxxxx’x xxxxx xxx xxxx xxxx.</para> - <para>Axxxxxx xxx xxx <literal moreinfo="none">CONCAT( )</literal> xx xx xxxxxxx xxxxxxx xxxxxx xx x xxxxx xxxxxx xx xxxxxxx. Txxx xxx xx xxxxxx xxxx xxxxxxx xxxx xx API xxxx Pxxx xxx xxxx xxxxx <literal moreinfo="none">UNION</literal> xx xxx xxxx xxxx xxx xxxxxxxxx xxxx xxxxx. Bxxxx xx xx xxxxxxx xx xxxx:</para> - <programlisting format="linespecific">SELECT CONCAT(xxxx_xx) AS xx, xxxx AS xxxxx - FROM xxxxx -UNION -SELECT xxxxx_xx AS xx, xxxxx AS xxxxx - FROM xxxxxx;</programlisting> - <para>Ix xxxx xxxxxxx, xxx xxxxxx <literal moreinfo="none">xxxx_xx</literal> xx xx <literal moreinfo="none">INT</literal>. Wxxxxxx, xxx xxxxxx <literal moreinfo="none">xxxxx_xx</literal> xx x <literal moreinfo="none">CHAR</literal> xxxxxx. Fxx MxSQL, xxx xxxxxxx xxx xx xxxxx. Hxxxxxx, xx xxxx SQL xxxxxxxxx xx xxxx xx xxxxxx x xxxx xx xxxx xx Pxxx xx xxxxxxx API xxxxxxxx, xxx xxx xxxxxxxxx xxxxxxxx xx xxxxxxxxxx xxxx xxxxxxxx. Sx xxxx xxx xxxx xx xxx xxxxxxx xxxxx, xxx <literal moreinfo="none">CONCAT( )</literal> xxxxxxxx xx xxxx xx xxxxxxx xxx xxxxxxx xxxxxx xx xxxxx xxxxxx xxxxxxxxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch11-77021"> - <refmeta> - <refentrytitle>CONCAT_WS( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>CONCAT_WS( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">CONCAT_WS(<replaceable>xxxxxxxxx</replaceable>, <replaceable>xxxxxx</replaceable>, ...)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch11-14-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-11-ITERM-3118" significance="normal"><primary>CONCAT_WS( ) xxxxxxxx</primary></indexterm> -Txxx xxxxxxxx xxxxxxxx xxxxxxx xx xxxx xxx xxxxxxx, xxxxxxxxx xx xxx xxxxxx xxxxxxxxx xx xxx xxxxx xxxxxxxx. Axx xxxxxx xx xxxxxxx xxx xx xxxxxxxxx xxxxx xxx xxxxx xxxxxxxx, xxxx xxxx xxxxxxxx xxxxxxxxx xx x xxxxx. Nxxx xxxxxx xxx xxxxxxx.</para> - <programlisting format="linespecific">SELECT CONCAT_WS('|', xxxxxxx_xx, xxxx_xxxx, xxxx_xxxxx) -AS 'Dxxx Sxxxxxxx' -FROM xxxxxxxx -WHERE xxxx_xxxx='Dxxx'; - -+------------------------+ -| Dxxx Sxxxxxxx | -+------------------------+ -| ddddddddd|Dxxx|Rxxxxxx | -| ddddddddd|Dxxx|Mxxxx | -+------------------------+</programlisting> - <para>Hxxx xxx xxxxxxxx xxx xx xxxx xx xxxxxxxx xxx xxxxxxx. Txxx xxxxxxxx xxx xx xxxxxx xxx xxxxxxxxx xxxx xx xxxxxxx xxxxxxxxxx xx xxxxx xxxxxxxx. Yxx xxxxx xxxxxxxxxxx xxxxxxxxx xxxx xxxx xxxx xx API xxxxxxx, xx xxxx xxxxxxx xx xxxx xxx xxxxxxx-xxxx xxxxx xxx <literal moreinfo="none">xxxxx</literal> xxxxxx xxxx xxxx:</para> - <programlisting format="linespecific"><userinput moreinfo="none">xxxxx -x xxxx -x \ --x "SELECT CONCAT_WS('|', xxxxxxx_xx, xxxx_xxxx, xxxx_xxxxx) -AS '# Dxxx Sxxxxxxx #' FROM xxxxxxx.xxxxxxxx -WHERE xxxx_xxxx='Dxxx';" > xxxx_xxxxxxxx.xxx - -xxx xxxx_xxxxxxxx.xxx</userinput> - -# Dxxx Sxxxxxxx # -ddddddddd|Dxxx|Rxxxxxx -ddddddddd|Dxxx|Mxxxx -</programlisting> - <para>Txx <literal moreinfo="none">-x</literal> xxxxxx xx xxx <literal moreinfo="none">xxxxx</literal> xxxxxx xxxxxxxxx xx xx xxxxxxx xxxx xx xxxxxxxxx xx xxxxxx. Txx xxxxxx <literal moreinfo="none">xxxxx</literal> xxxxxxxxx xx xxxxxxxx xx x > xxxx xx xxxxxxxx xxxxxx xx x xxxx xxxx. Axxxxxxxx, xxx <literal moreinfo="none">xxx</literal> xxxxxxx xxxxx xxx xxxxxxxx xx xxxx xxxx. Nxxxxx xxxx xxx xxxxx ASCII xxxxx xxxxxx xx xxx xxxxxxxx. Txxx xxxxx xxx xxxx xxxx xx xxxxxx xxxx xxxxx xxxxxxxxxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch11-77023"> - <refmeta> - <refentrytitle>CONVERT( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>CONVERT( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">CONVERT([_<replaceable>xxxxxxxxx_xxx</replaceable>]<replaceable>xxxxxx</replaceable> USING <replaceable>xxxxxxxxx_xxx</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch11-15-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-11-ITERM-3503" significance="normal"><primary>CONVERT( ) xxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-11-ITERM-3504" significance="normal"><primary>CONVERT( ) USING xxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-11-ITERM-3505" significance="normal"><primary>UNSIGNED INTEGER xxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-11-ITERM-3506" significance="normal"><primary>TIME xxxxxxxx</primary><secondary>CONVERT( ) xxxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-11-ITERM-3507" significance="normal"><primary>SIGNED INTEGER xxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-11-ITERM-3508" significance="normal"><primary>DATETIME xxxxxxxx</primary><secondary>CONVERT( ) xxxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-11-ITERM-3509" significance="normal"><primary>DATE xxxxxxxx</primary><secondary>CONVERT( ) xxxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-11-ITERM-3510" significance="normal"><primary>CHAR xxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-11-ITERM-3511" significance="normal"><primary>BINARY xxxxxxxx</primary></indexterm> -Uxx xxxx xxxxxxxx xx xxxxxxx xxx xxxxxxxxx xxx xx x xxxxx xxxxxx xx xxxxxxx xxxxxxxxx xxx xxxxxxxxx xxxx xxx <literal moreinfo="none">USING</literal> xxxxxxx. Txxx xxxxxxxx xx xxxxxxxxx xx xx xxxxxxx d.d.d xx MxSQL. Txx xxxxxxxx xxx xxxx xxxxxxxxxxxx xx <literal moreinfo="none">CAST( )</literal>. Ix xxx xxxxxxxxx xxx xxx xxx xxxxx xxxxxx xx xxx xxx xxxx xx xxx xxxxxxx, xxx xxx xxxxxxx xxx xxxxxxxxx xxx xx xxxxxxx xx xxxxxxxxxxx xxxxxx xxx xxxxxx xxx xxxxxxxx xx xx xxxxxxxxxx: -</para> - <remark>[PROD: Cxxx xxxxx Rxx xxxxx xxxxx xxxxxxxxx—DCPS]</remark> - <programlisting format="linespecific">UPDATE xxxxxxxx SET xxxx_xxxxx = -CONVERT(_xxxxxd'Rxx' USING xxxd) -WHERE xxxxxxx_xx = ddddddddd;</programlisting> - <para>Ix xxxx xxxxxxx, xx’xx xxxxxxxx xxx xxxxxxx’x xxxxx xxxx xxxx xxx xxxxxxxx xxxxxxxxx xxxx x xxxxxx xxxxxx xx xxx xxxxxx xxxx xxxx UTFd. Nxxxxx xxxx xxx xxxxxxxxx xxx xxxxx xxx xxx xxxxxx xx xxxxxxxxx xx xx xxxxxxxxxx xxx xxxxx xxx xx xxxxxx xxxxxx xxx xxxxx xxxx xxx xxx xxxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch11-77024"> - <refmeta> - <refentrytitle>CRCdd( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>CRCdd( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">CRCdd(<replaceable>xxxxxx</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch11-16-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-11-ITERM-3408" significance="normal"><primary>xxxxxx xxxxxxxxxx xxxxx</primary></indexterm><indexterm id="mysqlian-CHP-11-ITERM-3409" significance="normal"><primary>CRCdd( ) xxxxxxxx</primary></indexterm> -Txxx xxxxxxxx xxxxxxx xxx xxxxx xxxxxx’x xxxxxx xxxxxxxxxx xxxxx xxxxx xx x dd-xxx xxxxxxxx xxxxx. Ix’x xxxxxxxxx xx xx xxxxxxx d.d xx MxSQL. Ix xxxxxxx NULL xx xxxxx x NULL xxxxx. Exxx xx x xxxxxxx xxxxx xx xxxxx, xx xxxxxx xxx xxxxx xx x xxxxxx.</para> - <programlisting format="linespecific">SELECT CRCdd('xxxx'); - -+---------------+ -| CRCdd('xxxx') | -+---------------+ -| dddddddddd | -+---------------+</programlisting> - </refsect1> - </refentry> - <refentry id="ch11-77025"> - <refmeta> - <refentrytitle>ELT( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>ELT( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">ELT(<replaceable>xxxxx</replaceable>, <replaceable>xxxxxx</replaceable>, ...)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch11-17-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-11-ITERM-3132" significance="normal"><primary>ELT( ) xxxxxxxx</primary></indexterm> -Txxx xxxxxxxx xxxxxxx xxx <literal moreinfo="none">xxxxx</literal> xxxxxxx xxxx xxx xxxx xx xxxxxxx xxxxx, xxxxx xxx xxxx xx xxxxxxxx xxxxxxxx xxxx d. Ix xxx xxxxxx xxxxx xx xxxx xxxx d xx xx xxx xxxxxx xx xxxxxxxx xx xxxx xxxx xxx xxxxxx xxxxx, xxxx xxxxxxxxx xxxxxxx NULL.</para> - <programlisting format="linespecific">SELECT xxxxxxx_xx, -CONCAT(xxxx_xxxxx, SPACE(d), xxxx_xxxx) - AS Nxxx, -ELT(xxxxxxx_xxxxx, xxxxx_xxxx, xxxxx_xxxx, xxxxx_xxxx) - AS Txxxxxxxx -FROM xxxxxxxx;</programlisting> - <para>Ix xxxx SQL xxxxxxxxx, xx’xx xxxxx xxx xxxxx xx xxx <replaceable>xxxxxxx_xxxxx</replaceable> xxxxxx xx xxxxxxx xxx xxxxx xxx <literal moreinfo="none">ELT( )</literal>. Txxx xxxxxx xx xx <literal moreinfo="none">ENUM</literal> xxxxxx xxxx xxxxxxx xxxxx xx xxx xxxxx xxxxxxxxx xxxxxxx xx xxx xxxxxxx’x xxxxxxx xxxxxxxxx xxxxxx. Txx xxxxxxxx xxxx xxxxxx xxx xxxxx xxx xxx xxxxxx xxxxxxxx xxxxx xx xxx xxxxx. Ax x xxxxxx, xxx SQL xxxxxxxxx xxxx xxxx x xxxx xx xxxxxxxx xxx xxxxx xxxxxxx xxxxxxxxx xxxxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch11-77026"> - <refmeta> - <refentrytitle>EXPORT_SET( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>EXPORT_SET( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">EXPORT_SET(<replaceable>xxxxxx</replaceable>, <replaceable>xx</replaceable>, <replaceable>xxx</replaceable>[, <replaceable>xxxxxxxxx</replaceable>,[<replaceable>xxxxx</replaceable>]])</synopsis> - </refsynopsisdiv> - <refsect1 id="ch11-18-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-11-ITERM-3138" significance="normal"><primary>EXPORT_SET( ) xxxxxxxx</primary></indexterm> -Txxx xxxxxxxx xxxxxxx x xxxxxx xx xxxxxxx xx xxxxx xxxx xxxxxxxxx xxxx xxx xx x xxxxx <replaceable>xxxxxx</replaceable>. Txx xxxxxx xxxxxxxx xxxxxxxxx x xxxxxx xx xxxxxxxxx xxxx xxxx xxx d (xx <emphasis>xx</emphasis> xxx) xxx xxx xxxxx xxxxxxxx xxxxxxxxx x xxxxxx xx xxxxxxxxx xxxx xxxx xxx d (xx <emphasis>xxx</emphasis> xxx). A xxxxxxxxx xxx xx xxxxxxxxx xx xxx xxxxxx xxxxxxxx, xxx x xxxxxx xx xxx xxxxxxxxxxx xx xxxxxxx xxx xxx xxxx xxxxxxxx. Txx xxxxxxx xxxxxxxxx xx x xxxxx.</para> - <programlisting format="linespecific">SELECT BIN(d) AS 'Bxxxxx Nxxxxx', -EXPORT_SET(d, 'xx', 'xxx', '-', d) -AS 'Vxxxxx Exxxxxxxxx'; - -+---------------+--------------------------------+ -| Bxxxxx Nxxxxx | Vxxxxx Exxxxxxxxx | -+---------------+--------------------------------+ -| ddd | xxx-xxx-xx-xxx-xxx-xxx-xxx-xxx | -+---------------+--------------------------------+</programlisting> - <para><indexterm id="mysqlian-CHP-11-ITERM-3139" significance="normal"><primary>EXPORT_SET() xxxxxxxx</primary></indexterm> -Nxxxxx xxxx xxx xxxxxx-xxxxx xxx xx xxxxxxxxx xxxxx, xx xxx xxxxxxxxxx xx xxx xxxxxx xxxxxxxxxx xx d xx xxxxxxxxx xx <literal moreinfo="none">EXPORT_SET()</literal> xx xxxx xxx xxxxx xxxxxxxx xxxxxxx xxxxx, xxxx xxxxx xx xxxx: xxx ddd, xxx ddd (xx xx xxxx xx d xxxx, dddddddd).</para> - </refsect1> - </refentry> - <refentry id="ch11-77027"> - <refmeta> - <refentrytitle>FIELD( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>FIELD( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">FIELD(<replaceable>xxxxxx</replaceable>, <replaceable>xxxxxx</replaceable>[, ...])</synopsis> - </refsynopsisdiv> - <refsect1 id="ch11-19-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-11-ITERM-3140" significance="normal"><primary>FIELD( ) xxxxxxxx</primary></indexterm> -Txxx xxxxxxxx xxxxxxxx xxx xxx xxxxx xxxxxx xxxxx xx xxx xxxxxxxxx xxxx xx xxxxxxx xxx xxxxxxx xxx xxxxxxx xxxxxxxx xx xxx xxxxx xxxxxx xx xxx xxxx xxxx xxxxxxx. Txx xxxxx xxxxxxx xx d xxxxx xxx xxxxxxxxx xxxxx xxxxxxxx. Ix xxx xxxxxx xxxxxx xx xxx xxxxx xx xx NULL, d xx xxxxxxxx.</para> - <para>Ax xx xxxxxxx xx xxxx xxxxxxxx, xxxxxxx xxxx xx x xxxxx xxxxxxxxxx xxxxxxxxx xxxxxxx xx xxxxxxxx xx x xxxxxxx, xxxxx xxx xxxxx xxxxxxx xxx xxxxxxxxx xxxxxxx (xxxxxxxxx, xxxx, xxx xxxx xxxxxxx). Sxxxxxx xxxxxxx xxxx xxxxxxx xxxxxx xx xxxx xx xxxxxxxx xxxxx xxxxxx xxxxxxxx xxx xxxxxxx xxxxxxxxx xxxxxx xx xxx xxxxxxx. Hxxxxxx, xx xxxxxxx xxxx xxx xxxx xxxx xxxx <replaceable>xxxxxxx_xxxxx</replaceable> xxxxxx xx NULL. Sx, xx xxxxxx xx xxxx x xxxxx xx xx xxxxx xx xxx xxxxxxx xxxxxxxxx xxxxxx xx xxxxx xxx <literal moreinfo="none">FIELD()</literal> xxxxxxxx xxxxx xxxx x xxxxxxxx:</para> - <programlisting format="linespecific">UPDATE xxxxxxxx -JOIN - (SELECT xxxxxxx_xx, - FIELD(d, xxxxx_xxxx IS TRUE, - xxxxx_xxxx IS TRUE, - xxxxx_xxxx IS TRUE) - AS xxxxx_xxxxx_xxxxx - FROM xxxxxxxx - WHERE xxxxxxx_xxxxx IS NULL) AS xxx_xxxxx - USING (xxxxxxx_xx) -SET xxxxxxx_xxxxx = xxxxx_xxxxx_xxxxx;</programlisting> - <para>Nxxxxx xxxx xx xxx xxxxxxxx, xxxxxx xxx <literal moreinfo="none">FIELD( )</literal> xxxxxxxx, xx’xx xxxxxxx xxx x xxxxx xx d (xxx xxxxx xxxxxxxxx xx xxx xxxxxxxx). Fxx xxx xxxxx xxxxxxxxxx xxxxx, xxxx xxxxxxxxx xxxxxx xxxx xx xxxxxxxx xxxxx xxx <literal moreinfo="none">IS TRUE</literal> xxxxxxxx: xx xxxx xxxxxx xxxx xx xxxxxx d xx xxx xxxxxx xx xxx NULL. Txx <literal moreinfo="none">FIELD( )</literal> xxxxxxxx xxxx xxxxxx xxx xxxxxx xx xxx xxxxxxx xx xxx xxxx xxxx xx xxxxxxx d (xxxxxxx xx xxxxxx). Sx xx <replaceable>xxxxx_xxxx</replaceable> xx NULL, xxx <replaceable>xxxxx_xxxx</replaceable> xxx x xxxxxxxxx xxxxxx xx xx, xxx xxxxxxxx xxxx xxxxxx x xxxxx xx d xxxx xx <replaceable>xxxxx_xxxx</replaceable> xxxx xxxxxxxx x xxxxxx. Txx <literal moreinfo="none">JOIN</literal> xxxx xxx xxxxxxx xx xxxxxx xxxx xxxxxxx xxxxxx xxxx xxx x NULL xxxxx xxx <replaceable>xxxxxxx_xxxxx</replaceable> xxxx xxx xxxxx xx xxx <replaceable>xxxxx_xxxxx_xxxxx</replaceable> xxxxx xx xxx xxxxxxx xx xxx xxxxxxxx.</para> - <remark>[PROD: Cxxx xxxxx “xxx xxxxxxxx xxxx xxxxxx x xxxxx xx d” xxxxx xxxxx xxxxxxxxx—DCPS]</remark> - </refsect1> - </refentry> - <refentry id="ch11-77028"> - <refmeta> - <refentrytitle>FIND_IN_SET( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>FIND_IN_SET( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">FIND_IN_SET(<replaceable>xxxxxx</replaceable>, <replaceable>xxxxxx_xxxx</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch11-20-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-11-ITERM-3142" significance="normal"><primary>FIND_IN_SET( ) xxxxxxxx</primary></indexterm> -Txxx xxxxxxxx xxxxxxx xxx xxxxxxxx xx xxx xxxxx xxxxxxxx xxxxxx x xxxxx-xxxxxxxxx xxxx xxxx xx xxxxxx xx x xxxxxx xxxxxxxx xxx xxxxxx xxxxxxxx. Txx xxxxx xxxxxxx xx xxx xxxx xx d. A d xx xxxxxxxx xx xxx xxxxxx xx xxx xxxxx xx xxx xxx xx xx xxx xxxxxx xxxx xx xxxxx. Ix xxxxxxx NULL xx xxxxxx xxxxxxxx xx NULL.</para> - <para>Ax xx xxxxxxx xx xxx xxxx xxxxxxxx xxxxx xx xxxx, xxxxxxx xxxx xx x xxxxx xx xxx xxxxxxx xxxxxxxxxxx xxxxxxxx xxx xxxxxxx xx x xxxxxx xxxx xxxxxxxx xxxx xx xxx xxxxxxx’x xxx xxxx. Oxx xx xxx xxxxxxx, <replaceable>xxxxxxxx_xxxxxxxxxx</replaceable>, xxxxxxxx x xxxx xx xxxxxxxxxx xxxx xxxx xxxxxxx xxxx xx xxx xxxxxxxx xxx xx xxx xxxxx xxxx xxx xxxx xxxx xxx xxxxxxxx xxxxx xxxxx. Txx xxxx xx xxx xxxxxx xxxx xxxx x xxx xxxx xxxxx xxxxxxxx xxxxxxx x xxxxxx xxxxxxx xxxx xxxxxxxx xxxx xxxx xxxx; xxxx xxxx xxxxx xxx xxxx xxxx xxxx xxx’x xx. Sx xxxx xxxxxx xxx xxxx xxxxxxxxx xx xxxxxx xxx xxxxxx (x.x., <emphasis>‘xxxx xxxxxx, xxxxxxx, xxxxxxxx’</emphasis>). Hxxx’x xxx xxxx xxxxxxxx xxxxx xx xxxx xx xxxxx x xxxx xx xxxxxxxx xxx xxxx xxxx <emphasis>xxxxxxx</emphasis> xx xxx xx xxxxx xxxxxxxx xxxxxxxxxx:</para> - <remark>[PROD: Cxxx xxxxx “xx xxx xxxxx xxxx xxx xxxx xxxx” xxxxx xxxxx xxxxxxxxx—DCPS]</remark> - <programlisting format="linespecific">SELECT xxxxxxx_xx, -FIND_IN_SET('xxxxxxx', - REPLACE(xxxxxxxx_xxxxxxxxxx, SPACE(d), '') ) - AS xxxxxxx_xxxx -FROM xxxxxxx_xxxxxxx -WHERE xxxxxx_xx = ddd -AND xxxxxxxx_xxxxxxxxxx LIKE '%xxxxxxx%' -ORDER BY xxxxxxx_xxxx;</programlisting> - <para>Wx xxx xxx <literal moreinfo="none">WHERE</literal> xxxxxx xx xxxxxx xxx xxxxxxx xxxxxx xxx xxx <literal moreinfo="none">LIKE</literal> xxxxxxxx xx xxxxxx xxxx xxxx xxxxx xxx xxxxxx <replaceable>xxxxxxxx_xxxxxxxxxx</replaceable> xxxxxxxx xxx xxxxx <emphasis>xxxxxxx</emphasis>. Txxx xxxx xxxxxxxxx xxxxx xxxxxxxx xxx xxxx’x xxxx xxxxxxx xx x xxxxxxxx xxxxxxxx xxxx xxx xxxxxxx. <literal moreinfo="none">FIND_IN_SET()</literal> xxx’x xxxxx xxxxxx, xxxxxxx xxxx xxxxxxx xx. Sx xx xxxx xx xxxxxx xxxxxx xxxx xxx xxxx xx xxx <replaceable>xxxxxxxx_xxxxxxxxxx</replaceable> xxxxxx. Txxx, xx xxxx xx x xxxx xx <literal moreinfo="none">REPLACE()</literal> xx xxxxxxx xxx xxxxx xxxxx xxxx xx xxxxx xxxxxx. Wxxx xxxx xxxx, <literal moreinfo="none">FIND_IN_SET()</literal> xxxx xxxxxx xxx xxxxxxx xxxx xxxxxxx xxxx xxx <emphasis>xxxxxxx</emphasis>. Txx <literal moreinfo="none">ORDER BY</literal> xxxxxx xxxxxx xxxxx xxxxxxx xx <replaceable>xxxxxxx_xxxx</replaceable>xxx xxxxx xxxxx xxx xxx xxxxxx xxxxx xxxx xxx <literal moreinfo="none">AS</literal> xxxxxx.</para> - <remark>[PROD: Cxxx xxxxxx “xxx xxxxx xxxxx xxx xxx xxxxxx xxxxx " xxxxx xxxxx xxxxxxxxx—DCPS]</remark> - </refsect1> - </refentry> - <refentry id="ch11-77029"> - <refmeta> - <refentrytitle>HEX( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>HEX( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">HEX(<replaceable>xxxxxx</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch11-21-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-11-ITERM-3143" significance="normal"><primary>HEX( ) xxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-11-ITERM-3144" significance="normal"><primary>xxxxxxxxxxx xxxxxxx</primary></indexterm> -Txx xxxxx xxxxxxx xx xxxx xxxxxxxx xxxxxxx x xxxxxx xxx xxxxxxx xxx xxxxxxxxx xxxxx, xx xxxxxxxxxxx, xx xx xx xxxxxxxxxxx xx xxx xxxxxxxxxx xxxxxxxxx xxx. Txx xxxxxx xxxxxxx xxxxxxx x xxxxxxx xxxxxxx xxx xxxxxxx xxx xxxxxxxxxxx xxxxxxxxxx. Txx xxxxxxxx xxxxxxx NULL xx xxxxx x NULL xxxxx. -</para> - <para>Fxx xx xxxxxxx, xxxxxxx xxxx x xxxxxxx xxx xxxxxxxxx x xxxxxxx xxxxxx xxxxxxx xx xxxxxxxxxxx xxxx xxx xxxxxxx xxxxx x xxxxxx xx xxxxxxxxxx xxxxxxxxxx xx xxxxxxx xxxxxxxxxx xxxxx xxxxxxxxxxx xxxxxxxxxxx: xxx xxxxxxxx, x xxx xxxxxxx xx <literal moreinfo="none">dd</literal>, xxx xx xxxx xx xxxxxxx xxxx xxxxxxxx xxxx xx xxxxxx xxx. Axxxxxxx xx xxxxx xx xxxx xxxx x xxxxxxxx xxxxxxxxxxx xxxxxxxx, xx’x xxxx xx xxx x xxxxxxxx xxxx xxxxxxxx xxxxxxxx xxxx xxxxx xx xxxx xxxx xxxx xxxxxxxxx xxxxxxxxxx xxxx xxxxxx xxxx xxxx xxxxxxx. xx x xxxxxxxxxx xxxxxx. -</para> - <para> -Oxx xxxxxxxx, xxxxxxxx xxx xxxxxxxxx xx xxx xxxxxx <replaceable>xxxxxxx_xxxxxxx</replaceable>, xx xx xxxxxxx:</para> - <programlisting format="linespecific">UPDATE xxxxxxx_xxxxxxx -SET xxxxxxx = REPLACE(xxxxxxx, HEX('\x'), UNHEX(HEX('\x'))) -WHERE xxxxxx_xx = ddd;</programlisting> - <para><indexterm id="mysqlian-CHP-11-ITERM-3145" significance="normal"><primary>HEX( ) xxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-11-ITERM-3146" significance="normal"><primary>xxxxxxxxxxx xxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-11-ITERM-3147" significance="normal"><primary>xxxxxxxxxx</primary><secondary>RGB xxxxxx</secondary></indexterm> -Ix xxxx SQL xxxxxxxxx, <literal moreinfo="none">HEX( )</literal> xx xxxx xx xxxxxx xxx xxxxxxxxxxx xxxxx xx xxx, xxxxxxxxxxx xx <literal moreinfo="none">\x</literal>. Txxx xxxxx xx xxxxx xx <literal moreinfo="none">REPLACE( )</literal> xx xxx xxxxxx xxx xxxxx xx xx xx xxxxxxx. Txxx xxxxx <literal moreinfo="none">HEX( )</literal> xxxxx, xxx xxxxxxx xx <literal moreinfo="none">UNHEX( )</literal> xx xxxxxx xxx xxxxxx xxxxxxxxx xxx xxx, xx’xx xxxxxxxxx <literal moreinfo="none">REPLACE( )</literal> xxxx xxx xxxxxxxxxxx xxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch11-77032"> - <refmeta> - <refentrytitle>INSERT( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>INSERT( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">INSERT(<replaceable>xxxxxx</replaceable>, <replaceable>xxxxxxxx</replaceable>, <replaceable>xxxxxx</replaceable>, <replaceable>xxx_xxxxxx</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch11-22-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-11-ITERM-3156" significance="normal"><primary>INSERT( ) xxxxxxxx</primary></indexterm> -Txxx xxxxxxxx xxxxxxx xxx xxxxxx xxxx xxx xxxxx xxxxxxxx xxxx xxx xxxxxx xxxxxxxxx xx xxx xxxxx xxxxxxxx, xx xxx xxxxxxxxx xxxxxxxx. Ix <replaceable>xxxxxx</replaceable> xx xxxxxxx xxxx d, xxx xxxxxxxx xxxxxxxxxx xxxx xxxxxx xx xxxxxxxxxx, xx xxxx xxx xxx xxxxxx xxxxxxxx xxxx xx xxx xxxxxxxx. Txx xxxxxxxx xxxxxxx NULL xx xxx xx xxx xxxxxxxxx xxx NULL. Txx xxxxx xxxxxxxx xx d. Dxx’x xxxxxxx xxxx xxxxxxxx xxxx xxx SQL <literal moreinfo="none">INSERT</literal> xxxxxxxxx.</para> - <programlisting format="linespecific">UPDATE xxxxxxx -SET xxxxxx_xxxx = -INSERT(xxxxxx_xxxx, INSTR(xxxxxx_xxxx, 'Exx.'), d, 'Exxxxxx') -WHERE xxxxxx_xxxx LIKE "%Exx.%";</programlisting> - <para><indexterm id="mysqlian-CHP-11-ITERM-3157" significance="normal"><primary>INSTR( ) xxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-11-ITERM-3158" significance="normal"><primary>INSERT( ) xxxxxxxx</primary></indexterm> -Ix xxxx xxxxxxx, xx xxx xxxxxxxxxx xxxx xxxx xxxxxx xxxxx xxxx xxx xxxx <replaceable>Exxxxxx</replaceable> xxxxxxxxxxx xx <replaceable>Exx.</replaceable> Txxx SQL xxxxxxxxx xxxxxxxxxx xxx xxxx xxxxxxxxxxx xxxx xxx xxxx <replaceable>Exxxxxx</replaceable>. Ix xxxx xxx <literal moreinfo="none">INSTR( )</literal> xxxxxxxx xx xxxx xxx xxxxxxxx xxxxx xx xxx xxxxxxxxxxxx. Txx xxxxxx xxxxx xx xxxxxxx xx xxxx xx xxx xxxxxxxx xxxxxxxx xxx xxx <literal moreinfo="none">INSERT( )</literal> xxxxxxxx. Ix xx’x xxx xxxxx, xxx xxxxxx xxxx xxxx xxx xx xxxxxxx xxxxxxx x xxxxx xx d xxxx xx xxxxxxxx xx <literal moreinfo="none">INSTR( )</literal>, xxx xxx <literal moreinfo="none">INSERT( )</literal> xxxxxxxx xxxxxxx xxx xxxxxxx xx xxxxx <replaceable>xxxxxxxx</replaceable> xxxx xxxxxxx xxx xxxxxx xx xxx xxxxxxxx xxxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch11-77033"> - <refmeta> - <refentrytitle>INSTR( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>INSTR( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">INSTR(<replaceable>xxxxxx</replaceable>, <replaceable>xxxxxxxxx</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch11-23-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-11-ITERM-3159" significance="normal"><primary>INSTR( ) xxxxxxxx</primary></indexterm> -Txxx xxxxxxxx xxxxxxx xxx xxxxxxxx xxxxxxxx xx xxx xxxxx xxxxxxxxxx xx xxx xxxxxxxxx xx xxx xxxxxx xxxxx xx xxx xxxxx xxxxxxxx. Txx xxxxx xx xxx xxxxx xxxxxxxx xx d. Txxx xxxxxxxx xx xxxx-xxxxxxxxxxx xxxxxx xxx xx xxx xxxxxxxxx xxxxx xx x xxxxxx xxxxxx. Fxx xx xxxxxxx xx xxxx xxxxxxxx, xxx xxx xxxxxxx xx xxx xxxxxxxxxxx xx <literal moreinfo="none">INSERT( )</literal>. <literal moreinfo="none">INSTR( )</literal> xx xxxxxxx xx xxx xxx xx xxx xxxxxxxx xx <literal moreinfo="none">LOCATE( )</literal>, xxx xxx xxxxxxxxxx xxx xxxxx xx x xxxxxxxxx xxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch11-77034"> - <refmeta> - <refentrytitle>INTERVAL( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>INTERVAL( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">INTERVAL(<replaceable>xxxxxx_xxxxx</replaceable>, <replaceable>xxxxxxx_xxxxx</replaceable>, . . . )</synopsis> - </refsynopsisdiv> - <refsect1 id="ch11-24-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-11-ITERM-3521" significance="normal"><primary>INTERVAL() xxxxxxxx</primary></indexterm> -Txxx xxxxxxxx xxxxxxx xxx xxxxxxxx xxxxx <replaceable>xxxxxx_xxxxx</replaceable> xxxxx xx xxxxxxx xx x xxxxx-xxxxxxxxx xxxx xx <replaceable>xxxxxxx_xxxxx</replaceable> xxxxxxxxx. Ix xxxxx xxxxx, xxx xxxxxxxx xxxxxxx xxx xxxxx <replaceable>xxxxxxx_xxxxx</replaceable> xxxx xx xxxx xxxx xx xxxxx xx <replaceable>xxxxxx_xxxxx</replaceable>. Axx xxxxxxxxx xxx xxxxxxx xx xxxxxxxx, xxx xxx xxxxxx xxxx xxxx xxx <replaceable>xxxxxxx_xxxxx</replaceable> xxxxxxxxx xx xxxxxxxxxx xxxxx. Ix <replaceable>xxxxxx_xxxxx</replaceable> xxxxx xx xxxxxxx xxxxxx xxx xxxxx xxxxxxx xxxxx, d xx xxxxxxxx. Ix <replaceable>xxxxxx_xxxxx</replaceable> xxxxx xx xxxxxxx xxxxx xxx xxxx xxxxxxx xxxxx, xxx xxxxxxxx xx xxxx xxxxx xx xxxxxxxx.</para> - <para>Fxx xxxxxxx, xxxxxxx xxxx x xxxxxxxxx xx xxx xxxxxxxxxx xxxxxxx xxx xxxxx xxx xxxx xxx xxxxx xxxxx xxxxxxxx xxx xxx xxxx xxxx xxxxxxxxx. Sxxxxxx xxxx xx xxx x xxxxx xxxxxxxxxx x xxx xxx xxxx xxxxxxxx, xxxxxxxxxx x xxxxxx xxx xxxx xxxx xxxx xxxxxxxx xxx xxxxxxx xx xxxxxxx xxxxxx xxx xxx xxxxxxxx. Nxx xxx xxxxxxxxx xxxxx xx xxxx xxx xxx xxxxxxx xxxxx xxx xxx xxxx xxxx xxx xxx xxxxxxx xxxxxxxx xxxxxxxx xxxxxxx xxx xxxxxxxx xxxxxxxxx: xx xxxxx xx xxxx xxx xxx xxxxxxxx xx xxxxxxx xxxx xx xxxxxxxxxx. Wx xxxxx xxxx xxxx xxxxxx xx xxxxxxx xxx xxxxxxxxx SQL xxxxxxxxx:</para> - <programlisting format="linespecific">SELECT INTERVAL( - (SELECT AVG(xxxxd) FROM xxxxxxx_xxxxx), - Sd,Sd,Sd,Sd) AS Rxxxxxx -FROM - (SELECT - (SELECT xxxxd_xxx FROM xxxxxxx_xxxxx_xxxx - ORDER BY xxxxd_xxx LIMIT d,d) AS Sd, - (SELECT xxxxd_xxx FROM xxxxxxx_xxxxx_xxxx - ORDER BY xxxxd_xxx LIMIT d,d) AS Sd, - (SELECT xxxxd_xxx FROM xxxxxxx_xxxxx_xxxx - ORDER BY xxxxd_xxx LIMIT d,d) AS Sd, - (SELECT xxxxd_xxx FROM xxxxxxx_xxxxx_xxxx - ORDER BY xxxxd_xxx LIMIT d,d) AS Sd) AS xxxxd_xxxxx;</programlisting> - <para>Ix xxxx xxxxxxx xxxxxxx, xx’xx xxxxxxx xxxx xxxxxxxxxx xx xxx xxx xxxxxxx xxxx xxxxx xxxxxx (<replaceable>Sd</replaceable>, <replaceable>Sd</replaceable>, <replaceable>Sd</replaceable>, xxx <replaceable>Sd</replaceable>) xx xxx xxxx xxxxxx xxx xxx xxxx xxxxxxxxx xxx xxxxx xx xxxx xxxx. Txxx xx’xx xxxxxxx xxxx xx xxxxx xxxxxx xxxx xxx xxx xx x xxxxxxx xxxxx (<replaceable>xxxxd_xxxxx</replaceable>). Wx xxxx xxxx xxxxxx xxxx xxxxxx xx xxxx xxxxxxx xxxxxxx xxxxx xxx xxx xxxxxxx xx xxxxxxx xxxxxxx xx xxx <literal moreinfo="none">INTERVAL()</literal> xxxxxxxx. Fxx xxx xxxxx xxxxxxxxx xx xxxx xxxxxxxx, xxxxxx, xx’xx xxxxxxx xxx xxxxxxx xxxxxxxx xx xxxxxxxxx xxx xxxxxxx xxxxxx xx xxxxxxxx xxx xxx xxxx xxxx xxx xxx xxxxxxx xxxxxxxx. Txx xxxxxxx xxxx xx x xxxxxx xxxx d xx d, xxxxxxxxx xx xxx xxxx xxxxxxxx’x xxxxxxx xxxxxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch11-77035"> - <refmeta> - <refentrytitle>LCASE( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>LCASE( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">LCASE(<replaceable>xxxxxx</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch11-25-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-11-ITERM-3160" significance="normal"><primary>LCASE( ) xxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-11-ITERM-3161" significance="normal"><primary>LOWER( ) xxxxxxxx</primary></indexterm> -Txxx xxxxxxxx xxxxxxxx x xxxxxx xxxxx xx xxx xxxxxxxxx xxxxxxx. Ix’x xx xxxxx xx <literal moreinfo="none">LOWER( )</literal>. -</para> - <programlisting format="linespecific">SELECT xxxxxxx_xx, -CONCAT(LEFT(UCASE(xxxx_xxxx), d), -SUBSTRING(LCASE(xxxx_xxxx), d)) -AS Txxxxxx -FROM xxxxxxxx;</programlisting> - <para><indexterm id="mysqlian-CHP-11-ITERM-3162" significance="normal"><primary>SUBSTRING( ) xxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-11-ITERM-3163" significance="normal"><primary>UCASE( ) xxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-11-ITERM-3164" significance="normal"><primary>LEFT( ) xxxxxxxx</primary></indexterm> -Ix xxxx xxxxxxx, xx’xx xxxxx x xxxxxxxxxxx xx <literal moreinfo="none">LEFT( )</literal> xxxxxx xxxx <literal moreinfo="none">UCASE( )</literal> xxx <literal moreinfo="none">SUBSTRING( )</literal> xxxxxx xxxx <literal moreinfo="none">LCASE( )</literal> xx xxxxxx xxxx xxx xxxxx xxxxxx xx xxx xxxxxxx’x xxxx xx xxxxxxxxx xx xxxxxxxxx xxx xxx xxxx xx xxx xxxx xx xx xxxxxxxxx xxxxxxx. -</para> - </refsect1> - </refentry> - <refentry id="ch11-77036"> - <refmeta> - <refentrytitle>LEFT( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>LEFT( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">LEFT(<replaceable>xxxxxx</replaceable>, <replaceable>xxxxxx</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch11-26-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-11-ITERM-3165" significance="normal"><primary>LEFT( ) xxxxxxxx</primary></indexterm> -Txxx xxxxxxxx xxxxxxx xxx xxxxx <replaceable>xxxxxx</replaceable> xxxxxxxxxx xxxx x xxxxxx. Ix xxx xxxx xx xxxxxxx xxx xxx xx xxx xxxxxx xxxxxxx xx xxx xxxxxxxxx, xxx xxx <literal moreinfo="none">RIGHT( )</literal> xxxxxxxx. Bxxx xxx xxxxx-xxxx xxxx.</para> - <programlisting format="linespecific">SELECT LEFT(xxxxx_xxxx, d) AS 'Axxx Cxxx', -COUNT(*) -FROM xxxxxxxx -GROUP BY LEFT(xxxxx_xxxx, d);</programlisting> - <para><indexterm id="mysqlian-CHP-11-ITERM-3166" significance="normal"><primary>LEFT() xxxxxxxx</primary></indexterm> -Uxxxx xxx <literal moreinfo="none">LEFT()</literal> xxxxxxxx, xxxx xxxxxxxxx xxxxxxxx xxx xxxxx xxxxx xxxxxx xx <replaceable>xxxxx_xxxx</replaceable> xxx xxxx xxx, xxxxx xx xxx xxxxxxxxx xxxx xxxx (x.x., xxxx xxxx). Ix xxxx xxxxxx xxx xxxxxxx, xxxxx xxx xxxx xxxxxxxx xx xxx <literal moreinfo="none">WHERE</literal> xxxxxx. Txxx xxxxxxx x xxxxx xx xxx xxxxxx xx xxxxxxxx xxxxxx xx xxxx xxxxxxxxx xxxx xxxx.</para> - </refsect1> - </refentry> - <refentry id="ch11-77037"> - <refmeta> - <refentrytitle>LENGTH( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>LENGTH( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">LENGTH(<replaceable>xxxxxx</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch11-27-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-11-ITERM-3167" significance="normal"><primary>LENGTH( ) xxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-11-ITERM-3168" significance="normal"><primary>OCTET_LENGTH() xxxxxxxx</primary></indexterm> -Txxx xxxxxxxx xxxxxxx xxx xxxxxx xx xxxxx xxxxxxxxx xx x xxxxx xxxxxx. Ix xx xxx xxxxx xx xxxxx-xxxx xxxxxxxxxx, xx xx xxxxxx xxxxx xxx xxxxx xxxx xx x xxxx xxx xxx xxxx xx x xxxxxxxxx. <literal moreinfo="none">OCTET_LENGTH()</literal> xx xx xxxxx. Ix xxx xxxx xx xxx xxx xxxxxx xx xxxxxxxxxx xxxxxxxxxx xx xxxxxxx x xxxxxxxx xx xxxxx-xxxx xx xxx, xxx <literal moreinfo="none">CHARACTER_LENGTH()</literal>. -</para> - <para>Ax xx xxxxxxx, xxxxxxx xxxx xx xxxxxx xx xx xxxxxx xxxxxx xxxx xxxx xxx xxxxxx xxxxxxxxxx xxxx xxxx xxxxxxx xxxx xxx xxxx xxxxxxx xxx xxx xxxxxxxxx--xxxxxxxx xxxx x xxxx xxxxxxx. Tx xxxxxx xxx xxxx xx xxxx, xx xxx xxxxx xxx xxxxxxxxx xxxxxxxxx xx xxxx xxx xxxx xxxx xxxx xxxxxx xxxxxxxxxx xx xxxxx xxxxxxx xxxx xxxx xxx xxx xxxx:</para> - <programlisting format="linespecific">SELECT xxxxxxxxxx_xx -FROM xxxxxx -WHERE CHARACTER_LENGTH(xxxxxxd) != LENGTH(xxxxxxd) -OR CHARACTER_LENGTH(xxxxxxd) != LENGTH(xxxxxxd) -OR CHARACTER_LENGTH(xxxxxxd) != LENGTH(xxxxxxd) -xxxxxx_xx = ddd;</programlisting> - <para>Ix xxxx xxxxxxx, xxx <literal moreinfo="none">WHERE</literal> xxxxxx xxxxxxx <literal moreinfo="none">CHARACTER_LENGTH( )</literal> xx xxx xxx xxxxxx xx xxxxx xxx <literal moreinfo="none">LENGTH( )</literal> xx xxx xxx xxxxxx xx xxxxxxxxxx xxx xxxx xxxxxx xxxxxxxxxx x xxxxxxxxxx’x xxxxxxx xx xxx xxxxxx xxxxxxxxx. Wx’xx xxxx xxxxxxxxx xxxx xxxx xxx <literal moreinfo="none">!=</literal> xxxxxxxx xx xxxxxx xxxx xxxx xxxxx xxx xxx xxxxxxx xx xxxxxxxxxx xxx’x xxxxx. Txx <literal moreinfo="none">LENGTH( )</literal> xxxx xxxxxx x xxxxxxx xxxxx xxx xxxxx-xxxx xxxxxxxxxx, xxxxxxx <literal moreinfo="none">CHARACTER_LENGTH( )</literal> xxxx xxxxxx d xxx xxxx xxxxxxxxx xxxxxxx xx’x x xxxxx-xxxx xxxxxxxxx xx xxx.</para> - </refsect1> - </refentry> - <refentry id="ch11-77038"> - <refmeta> - <refentrytitle>LOAD_FILE( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>LOAD_FILE( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">LOAD_FILE(<replaceable>xxxxxxxx</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch11-28-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-11-ITERM-3169" significance="normal"><primary>LOAD_FILE( ) xxxxxxxx</primary></indexterm> -Txxx xxxxxxxx xxxxx xxx xxxxxxxx xx x xxxx xxx xxxxxxx xx xx x xxxxxx xxxx xxx xx xxxx xx MxSQL xxxxxxxxxx xxx xxxxxxxxx. Txx xxxx xxxx xxxx <literal moreinfo="none">FILE</literal> xxxxxxxxxx xx MxSQL, xxx xxx xxxx xxxx xx xxxxxxxx xx xxx xxxxx xx xxx xxxxxxxxxx. Ix xxxxxxx NULL xx xxx xxxx xxxxx’x xxxxx, xx xxx xxxx xxxxx’x xxxx xxxxxx xxxxxxxxxxx, xx xx xxx xxxx xx xxxxxxxxx xxxxxxxxxx. Txx xxxx xxxx xx xxxxx xxxx xx xxxx xxxx xxx xxxxxx xxxxxxxxx xx xxx xxxxxx xxxxxxxx <literal moreinfo="none">xxx_xxxxxxx_xxxxxx</literal>. Sxxxxxxx xxxx xxxxxxx d.d.d, xxx xxxxxx xxxxxxxx <literal moreinfo="none">xxxxxxxxx_xxx_xxxxxxxxxx</literal> xx xxxx xx xxxxxxx xxxxxxxxx xx xxx xxxxxxxxx xxx xxxxxxxxxx xx xxx xxxxxxxxxx xxxxxxxxxx.</para> - <programlisting format="linespecific">UPDATE xxxxxxxxxxxx -SET xxxxx = LOAD_FILE('/xxx/xxxxxxxxx_dddd.xxx'), -xxxxxxx_xxxxx = LOAD_FILE('/xxx/xxxxxxxxx_dddd.xxxx') -WHERE xxxxxxxxx_xx = 'dddd';</programlisting> - <para>Ix xxxx xxxxxxx, xx xxxxx xxxxxxx xx xxxxxxx xxx xx xxxxxxxx xxx xxxxxxxxx xx xxx xxxxxxx xx xxxxxx xxxx xxx <emphasis>xxxxx</emphasis> xxxxxx (xxxxx xx x <literal moreinfo="none">TEXT</literal> xxxxxxxx) xx xxx xxx xxx xxx xxxxxxxxx xx xxx <emphasis>xxxxxxxxxxxx</emphasis> xxxxx. Txx xxxxxx xxxxxxxx xx xxx xxxx, xxxxxxxxx xxx xxxxxx xxxx (x.x., xxxx xxxxxxx xxx xxxx), xxx xxxxxx xxxx xxx xxxx xxxx xxx xxxxx. Axxxxxxxxxxx, xx xxxxx xxxx xxxxxxxxxx xxx xxxxxxx’x xxxxxxxxxx xx xxxxxx xxxx xxxxxxx xxxxxx xx xxx xxxx xxxxx, xxx xx x <literal moreinfo="none">BLOB</literal> xxxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch11-77039"> - <refmeta> - <refentrytitle>LOCATE( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>LOCATE( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">LOCATE(<replaceable>xxxxxxxxx,</replaceable> <replaceable>xxxxxx[, xxxxx_xxxxxxxx]</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch11-29-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-11-ITERM-3170" significance="normal"><primary>LOCATE( ) xxxxxxxx</primary></indexterm> -Txxx xxxxxxxx xxxxxxx xxx xxxxxxx xxxxxxxx xxxxx xx xxx xxxxx xxxxxxxxxx xx x xxxxxxxxx xx xxx xxxxxx xxxxxxxx xx x xxxxxx xxxxxxxx. A xxxxxxxx xxxxxxxx xxx xxxxxxxxx xxx xx xxxxxxxxx xx x xxxxx xxxxxxxx. Ix’x xxx xxxx-xxxxxxxxx xxxxxx xxx xx xxx xxxxxxx xxxxx xx x xxxxxx xxxxxx. Txx xxxxxxxx xx xxxxx-xxxx xxxx.</para> - <para>Ax xx xxxxxxx xx xxxx xxxxxxxx’x xxxxxxxxx, xxxxxxxx xxxx x xxxxx xxx x xxxxxxx xxxxxxxx x xxxx xx xxxxxxx xxx xxxx xxx xx xxx xxxxxxx (<replaceable>xxxxxx_xxxx</replaceable>) xxxxxxxx xxx xxxxxxxxxxx xx xxx xxxxxxx. A xxxxxxx xxxxxx xxxxxx xxxx xxxx: -<programlisting format="linespecific"> -Vxxxxxxxx Lxxxxxxxxx [ddxx Cxxx. Exxx. Lxx.]: Txxx xxxxxx xxxxxx Exxx. xxxxxx xxx Exxx. xxxxx-xxxxxxx... -</programlisting> -Wx xxxx xx xxxxxxx xxx xxxxxxxxxx xx xxx xxxxxxxxxxxx <replaceable>Exxx.</replaceable> xxxx <replaceable>Exxxxxx</replaceable> xxxxxx xx xxx xxxxxxxx xx xxx xxxxxxx xxxxx xxx xxxxxxxxxxxx xx xxxxxxxxx xx xxxxxx xxxxxxxx xx xxxxx xxxx. Tx xx xxxx, xx xxxxx xxxxx xx SQL xxxxxxxxx xxxx xxxx:</para> - <programlisting format="linespecific">UPDATE xxxxxxx -SET xxxxxx_xxxx = -INSERT(xxxxxx_xxxx, LOCATE('Exxx.', xxxxxx_xxxx, LOCATE(']', xxxxxx_xxxx)), d, 'Exxxxxx') -WHERE xxxxxx_xxxx LIKE '%Exxx.%'; -</programlisting> - <para><indexterm id="mysqlian-CHP-11-ITERM-3171" significance="normal"><primary>LOCATE() xxxxxxxx</primary></indexterm> -Ix xxxx xxxxxxxxx, xx’xx xxxxx xxx <literal moreinfo="none">LOCATE()</literal> xxxxxxxx xx xxxxxx xxx xxxxx xxxxxxxxx xx xxx xxxxxxx xxxxxx xxxxxxx. Fxxx xxxxx xx’xx xxxxx <literal moreinfo="none">LOCATE()</literal> xxxxx xx xxxx xxx xxxxx xxxxxxxxx xx <replaceable>Exxx.</replaceable>. Wxxx xxx <literal moreinfo="none">INSERT()</literal> xxxxxxxx (xxx xxx <literal moreinfo="none">INSERT</literal> xxxxxxxxx), xx’xx xxxxxxxx xxx xxxx xxxxxxxxxx xxxxxxxx xxxx xxxx xxxxx xxxxxxx xxxxx xxx xxxxxxx xxxxxx xxxxxxx xxx xxxxxxxxx xxx xxxx <replaceable>Exxxxxx</replaceable>. Txxx xx x xxx xxxxxxx, xxx xx xxxxxxxxx xxxxx. Hxxxxxx, xx xxxx xxxxxxxx xxx xxxxxxxxx xx xxx xxxx xx’xx xxxxxx xx xxxxxxx, xxxxxxx xx xxx xxxxxx xxxx xxxxx xxxxx xxx xx xxxxx xxx xxxxxxxxxx xx <replaceable>Exxx.</replaceable> xxxxx xxx xxxxxxxx. Wx xxxxx xxxx xxxxxxx xxxx SQL xxxxxxxxx xxxxx xx xxxxxxx xxxx xxx. A xxxxxx xxxxxx xxxxx xx xx xxx xxxx SQL xxxxxxxxx xxxxxxx:</para> - <programlisting format="linespecific">UPDATE xxxxxxx -SET xxxxxx_xxxx = -CONCAT( - SUBSTRING_INDEX(xxxxxx_xxxx, ']', d), - REPLACE( SUBSTR(xxxxxx_xxxx, LOCATE(']', xxxxxx_xxxx)), - 'Exxx.', 'Exxxxxx') -) -WHERE xxxxxx_xxxx LIKE '%Exxx.%';</programlisting> - <para>Ix xxxx xxxxxxxxx, xx’xx xxxxx <literal moreinfo="none">SUBSTRING_INDEX( )</literal> xx xxxxxxx xxx xxxxxxx xxxx xx xxxxx xxx xxxxx xxxxxxx xxxxxxx. Wx’xx xxxx xxxxx <literal moreinfo="none">LOCATE( )</literal> xx xxxxxx xxx xxxxxxx xxxxxxx, <literal moreinfo="none">SUBSTR( )</literal> xx xxxxxxx xxx xxxx xxxx xxxx xxxxx xxxxxxx, xxx xxxx <literal moreinfo="none">REPLACE( )</literal> xx xxxxxxx xxx xxxxxxxxxx xx <replaceable>Exxx.</replaceable> xx xxxx xxxxxxxxx. Fxxxxxx, <literal moreinfo="none">CONCAT( )</literal> xxxxxx xxx xxxxxxx xxxx xxxx xx xxxxxxxxx xxx xxxxxxxx xxxx xxx xxxxxxxxxxx xxxxxxxxx xxxxxxxx xxxx xxx xxxxxxx xxxx.</para> - </refsect1> - </refentry> - <refentry id="ch11-77040"> - <refmeta> - <refentrytitle>LOWER( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>LOWER( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">LOWER(<replaceable>xxxxxx</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch11-30-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-11-ITERM-3172" significance="normal"><primary>LOWER( ) xxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-11-ITERM-3173" significance="normal"><primary>LCASE( ) xxxxxxxx</primary></indexterm> -Txxx xxxxxxxx xxxxxxxx x xxxxxx xxxxx xx xxx xxxxxxxxx xxxxxxx. Ix xx xx xxxxx xx <literal moreinfo="none">LCASE( )</literal>. -</para> - <programlisting format="linespecific">SELECT xxxxxx_xx AS 'Cxxxxx ID', -LOWER(xxxxxx_xxxx) AS Cxxxxx -FROM xxxxxxx;</programlisting> - <para>Txxx xxxxxxxxx xxxxxxxx xxx xxxx xx xxxx xxxxxx xx xxx xxxxxxxxx xxxxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch11-77041"> - <refmeta> - <refentrytitle>LPAD( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>LPAD( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">LPAD(<replaceable>xxxxxx</replaceable>, <replaceable>xxxxxx</replaceable>, <replaceable>xxxxxxx</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch11-31-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-11-ITERM-3174" significance="normal"><primary>LPAD( ) xxxxxxxx</primary></indexterm> -Txxx xxxxxxxx xxxx <replaceable>xxxxxxx</replaceable> xx xxx xxxx xxx xx <replaceable>xxxxxx</replaceable>, xxxxxxxx xx xxx xxxxxxxxxxx xx <replaceable>xxxxxx</replaceable> xxx xxx xxxxx xxxxxxx xxxxx <replaceable>xxxxxx</replaceable> xxxxxxxxxx. Ix <replaceable>xxxxxx</replaceable> xx xxxxxxx xxxx xxx xxxxxx xx xxx xxxxxx, xxx xxxxxx xxxx xx xxxxxxxxx xxxxxxxx xxxx xxx xxxx xx xxxxxx xxxx xxx xxxxxx xxxxxxxxxx. Txx xxxxxxx xxx xx xxx xxxxxxxxx.</para> - <programlisting format="linespecific">SELECT LPAD(xxxxxx_xxxx, dd, '.') AS Cxxxxxx -FROM xxxxxxx -WHERE xxxxxx_xxxx LIKE 'ENGL%' -LIMIT d; - -+---------------------------+ -| Cxxxxxx | -+---------------------------+ -| .........Cxxxxxxx Wxxxxxx | -| .....Pxxxxxxxxxxx Wxxxxxx | -| ......Axxxxxxx Lxxxxxxxxx | -+---------------------------+</programlisting> - <para>Ix xxxx xxxxxxx, x xxxx xx xxxxx xxxxxxx xx xxxxxxxxx xxx xxx xxxxxxx xxx xxxxxx xxxx xxxx xx xxx xxxx xx xxx xxxxxx xxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch11-77042"> - <refmeta> - <refentrytitle>LTRIM( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>LTRIM( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">LTRIM(<replaceable>xxxxxx</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch11-32-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-11-ITERM-3175" significance="normal"><primary>LTRIM( ) xxxxxxxx</primary></indexterm> -Txxx xxxxxxxx xxxxxxx xxx xxxxx xxxxxx xxxx xxx xxxxxxx xxxxxx xxxxxxx. Wxxx xxxxx xxxx xx SQL xxxxxxxxx xxxx xx <literal moreinfo="none">UPDATE</literal>, xxxx xxxx xx xxx xxxxxxx xxxxxxx xxxxxx xxxx xxx xx xxxxxxx. Txxx xxxxxxxx xx xxxxx-xxxx xxxx. Tx xxxx xxxxxxxx xxxxxx, xxx <literal moreinfo="none">RTRIM()</literal>; xxx <literal moreinfo="none">TRIM()</literal> xx xxxx xxxx xxxxxxx xxx xxxxxxxx xxxxxx.</para> - <programlisting format="linespecific">UPDATE xxxxxxxx -SET xxxx_xxxx = LTRIM(xxxx_xxxx);</programlisting> - <para><indexterm id="mysqlian-CHP-11-ITERM-3176" significance="normal"><primary>LTRIM( ) xxxxxxxx</primary></indexterm> -Ix xxxx xxxxxxx, xxx xxxx xxxxx xx xxxxxxx xxxxxxxx xxxx xxxx xxxxxxx xxxxxxxxxxxxx xxxx x xxxxx xx xxxxx xx xxx xxxxx. Txxx SQL xxxxxxxxx xxxxxxx xxx xxxxxxx xxxxxx xxxx xxxx xxxx xxxxxxxxx xxxx xxxxxxxx xxxxxxx xxxxxx xxx xxxx xxxxxx xxx xxxxxxx xxxx xxxx xxx xxxxxxxx xxxx.</para> - </refsect1> - </refentry> - <refentry id="ch11-77043"> - <refmeta> - <refentrytitle>MAKE_SET()</refentrytitle> - </refmeta> - <refnamediv> - <refname>MAKE_SET()</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">MAKE_SET(<replaceable>xxxx</replaceable>, <replaceable>xxxxxxd</replaceable>, <replaceable>xxxxxxd</replaceable>, ...)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch11-33-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-11-ITERM-3177" significance="normal"><primary>MAKE_SET() xxxxxxxx</primary></indexterm> -Txxx xxxxxxxx xxxxxxxx xxx xxxxxxx xxxxxx xx <replaceable>xxxx</replaceable> xx xxxxxx xxx xxxxxxx x xxxxx-xxxxxxxxx xxxx xx xxxxxx xxx xxx xxx xxxx xxx xx xxx xx xxxx xxxxxx, xxxxx <replaceable>xxxxxxd</replaceable> xxx xxx xxx-xxxxx xxx, <replaceable>xxxxxxd</replaceable> xxx xxx xxxx xxxxxx xxx, xxx.</para> - <programlisting format="linespecific">SELECT BIN(d) AS 'Bxxxxx d', -MAKE_SET(ddd, 'A','B','C','D') -AS Sxx; - -+----------+------+ -| Bxxxxx d | Sxx | -+----------+------+ -| dddd | A,D | -+----------+------+</programlisting> - <para>Txx xxxxxx xxxxxxxxxx xx d xx dddd. Txx xxxxx xxx xxxxxxxx xxxx xxx xxxxx xx xxx xxxxxx xxxxxx xxxxx xx d (xx <emphasis>xx</emphasis>), xx xxx xxxxx xxxxxx xx xxx xxxx xx xxx xxxx xxx xxxxxxx. Txx xxxxxx xxx xxxxx xxxx xx xxx xxxxxx xxxxxx xxx d, xx xxx xxxxxx xxx xxxxx xxxxxxx (<literal moreinfo="none">'B'</literal> xxx <literal moreinfo="none">'C'</literal>) xxx xxxx xxx xx xxx xxxxxxx. Txx xxxxxx xxx xxxxxxxx xxxx xxx xxxxx xx d, xx xxx xxxxxx xxxxxx xx xxx xxxx xx xxxxx xx xxx xxxxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch11-77044"> - <refmeta> - <refentrytitle>MATCH ( ) AGAINST( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>MATCH ( ) AGAINST( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">MATCH(<replaceable>xxxxxx[, ...]</replaceable>) AGAINST (<replaceable>xxxxxx</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch11-34-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-11-ITERM-3178" significance="normal"><primary>MATCH( ) AGAINST( ) xxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-11-ITERM-3179" significance="normal"><primary>FULLTEXT xxxxxxx</primary></indexterm> - -Txxx xxxxxxxx xx xxxx xxxx xxx xxxxxxx xxxxxxx xx x <literal moreinfo="none">FULLTEXT</literal> xxxxx, xxx xxxx xx <literal moreinfo="none">WHERE</literal> xxxxxxx. Ix xxxxx xxxxxxx, xx xxx xx x xxxxxxxxx xxxx xx xxxxxx xxxxxxx xxx x xxxxx xxxxxx. Txxx xx xxx xxxxxx xxxxxxxxxx xxxxxx xx xxxxxx xxxx xxxxxxxx xxxxx, xx x xxxxxx xxxxxxx xx xx xxxxxxxx xx xxxxx xxx xxxx. Sxxxx xxxxx (d xxxxxxxxxx xx xxxx) xxx xxxxxxx.</para> - <programlisting format="linespecific">SELECT xxxxxxxxx_xx -FROM xxxxxxxxxxxx -WHERE MATCH (xxxxx) AGAINST ('Exxxxxx');</programlisting> - <para>Txxx SQL xxxxxxxxx xxxxxxxx xxx xxxxx xxxxxxxxxx xxxx xx xxxxxx xxxxxxxx xxx xxxxxxxxx xx xxx xxxxxxx. Txx <emphasis>xxxxx</emphasis> xxxxxx xxxxxxxx x xxxx xx xxx xxxxxxxxx’x xxxxxxxxx xxxxx. Txx xxxxxx xx xxxxxxxx xxx xxxxxxxxxx xxx xxxxxxx xxx xxxx <replaceable>Exxxxxx</replaceable> xx xxxx x xxxx xx xxxxxxxxxx xxxx xxxx xxxxxx xx xxxxxxxx xx xxx Exxxxxx xxxxxxx xxxx xx xxxxxxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch11-77045"> - <refmeta> - <refentrytitle>MID()</refentrytitle> - </refmeta> - <refnamediv> - <refname>MID()</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">MID(<replaceable>xxxxxx</replaceable>, <replaceable>xxxxxxxx</replaceable>[, <replaceable>xxxxxx</replaceable>])</synopsis> - </refsynopsisdiv> - <refsect1 id="ch11-35-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-11-ITERM-3182" significance="normal"><primary>MID() xxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-11-ITERM-3183" significance="normal"><primary>SUBSTRING( ) xxxxxxxx</primary></indexterm> -Txxx xxxxxxxx xxxxxxx xxx xxxxxxxxxx xx x xxxxx xxxxxx, xxxxxxxx xxxx xxx xxxxxxxx xxxxxxxxx xx xxx xxxxxx xxxxxxxx. Txx xxxxx xxxxxxxxx xx xxxxxxxx d. Yxx xxx xxxxx xxx xxxxxx xx xxx xxxxxx xxxxxxxxx xx xxxxxxxxxx x xxxxx xx xxx xxxxx xxxxxxxx. Txxx xxxxxxxx xx xxxxxxx xx <literal moreinfo="none">SUBSTRING( )</literal>.</para> - <para>Ax xx xxxxxxx xx xxxx xxxxxxxx, xxxxxxx xxxx x xxxxx xx xxxxxxxxxxx xx xxxxxxxx xxxxxxxx x xxxxxx xxxxxxx xxxxx xxxx xxxxxxxxx xxxxxxx. Txxx xxxxxx xx xx x xxxxxx xxxx xxx xxxxxxx, xxx xxxxxxx xx xxxxx xxxxxxxxxx (x.x., <replaceable>ddddddddddd</replaceable>). Sxxxxxx xxxxxxx xxxx xx xxxxxx xx xxx xxx xxxxxxx xxxx xxx xxxxxxx xx x xxxxxxx U.S. xxxxxx (x.x., <replaceable>+d-ddd-ddd-ddddd</replaceable>) xxxxxxx xxx xxx xxxxxxxx xxxx xx xxx U.S., xxx xx’xx xxxxx xx xxxxxxx x xxxxx xxxxxx xx x xxxxxxxxx xxxxxxx. Wx xxxxx xxxx xxxxx xxxxxxx xxxx xx:</para> - <programlisting format="linespecific">UPDATE xxxxxxxx -SET xxxxx_xxxx = -CONCAT_WS('-', '+d', - LEFT(xxxxx_xxxx, d), - MID(xxxxx_xxxx, d, d), - MID(xxxxx_xxxx, d) );</programlisting> - <para>Txxx xxxxxxxxxx SQL xxxxxxxxx xxxxxxxx xxxx xxxxxxxxx xx xxx xxxxxxxxx xxxxxx xxxx xxx <literal moreinfo="none">LEFT( )</literal> xxx <literal moreinfo="none">MID( )</literal> xxxxxxxxx. Uxxxx <literal moreinfo="none">CONCAT_WS( )</literal>, xxx xxxx xx xxxxxx xxxx xxxxxxxx xxxxx xxxx xxx xxxxxxx xxxx xx xxx xxxxxxxxx. Cxxxxxxxxx xx xxx xxxxxx xxxxx xxx xxxxxxxxx xxxx x xxxxxx, xxxxx xx xxxxx xx xxx xxxxx xxxxxxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch11-77047"> - <refmeta> - <refentrytitle>OCTET_LENGTH( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>OCTET_LENGTH( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">OCTET_LENGTH(<replaceable>xxxxxx</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch11-36-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-11-ITERM-3185" significance="normal"><primary>OCTET_LENGTH( ) xxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-11-ITERM-3186" significance="normal"><primary>LENGTH() xxxxxxxx</primary></indexterm> -Txxx xxxxxxxx xxxxxxx xxx xxxxxx xx xxxxx xxxxxxxxx xx xxx xxxxx xxxxxx. Ix xx xxx xxxxx xx xxxxx-xxxx xxxxxxxxxx, xx xx xxxxxx xxxxx xxx xxxxx xxxx xx x xxxx xxx xxx xxxx xx x xxxxxxxxx. Ax <emphasis>xxxxx</emphasis> xx xxxxxxxxxx xxxx <emphasis>xxxx</emphasis> xx xxxx xxxxxxxx xxxxxxxx, xx xxxx xxxxxxxx xx xx xxxxx xx <literal moreinfo="none">LENGTH( )</literal>. Sxx xxx xxxxxxxxxxx xx xxxx xxxxxxxx xx xxxx xxxxxxx xxx xxxxxxxx xx xxx xxx.</para> - </refsect1> - </refentry> - <refentry id="ch11-77048"> - <refmeta> - <refentrytitle>ORD( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>ORD( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">ORD(<replaceable>xxxxxx</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch11-37-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-11-ITERM-3189" significance="normal"><primary>ORD( ) xxxxxxxx</primary></indexterm> -Txxx xxxxxxxx xxxxxxx xx xxxxxxx xxxxx, xxx xxxxxxxx xx x xxxxxxxxx xx xxx ASCII xxxxxxxxx xxx xx xxx xxxx-xxxx xxxxxxxxx xx x xxxxx xxxxxx. Fxx xxxxx-xxxx xxxxxxxxxx, xx xxxxxxx x xxxxxxx xx xxxxxxxxx xxx xxxxxxx: xxxxd + (xxxxd * ddd) + (xxxxd *ddd<superscript>d</superscript>)...</para> - <programlisting format="linespecific">SELECT ORD('A'), ORD('x'); - -+----------+----------+ -| ORD('A') | ORD('x') | -+----------+----------+ -| dd | dd | -+----------+----------+</programlisting> - </refsect1> - </refentry> - <refentry id="ch11-77049"> - <refmeta> - <refentrytitle>POSITION( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>POSITION( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">POSITION(<replaceable>xxxxxxxxx</replaceable> IN <replaceable>xxxxxx</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch11-38-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-11-ITERM-3193" significance="normal"><primary>POSITION( ) xxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-11-ITERM-3194" significance="normal"><primary>LOCATE() xxxxxxxx</primary></indexterm> -Txxx xxxxxxxx xxxxxxx xxxxx xx xxx xxxxxxxxx xx <replaceable>xxxxxx</replaceable> xxxxx <replaceable>xxxxxxxxx</replaceable> xxxxx xxxxxxx. Txx xxxxx xxxxxxxxx xx <replaceable>xxxxxx</replaceable> xx xxxxxxxx d. Txxx xxxxxxxx xx xxxx <literal moreinfo="none">LOCATE( )</literal>, xxxxxx xxxx xxx xxxxxxx <literal moreinfo="none">IN</literal> xx xxxx xxxxxxx xx x xxxxx xx xxxxxxxx xxx xxxxxxxxx xxx xxxxxxxxxx xxxxxx. Axxx, xxxx xxxxxxxx xxxx xxx xxxxxxx x xxxxxxxx xxxxx xx xxxxx xxx xxxxxx, xx xxxx xxxxx xxxx xxx xxxx-xxxx xxxxxxxxx.</para> - <programlisting format="linespecific">UPDATE xxxxxxx -SET xxxxxx_xxxx = -INSERT(xxxxxx_xxxx, POSITION('Exx.' IN xxxxxx_xxxx), d, 'Exxxxxx') -WHERE xxxxxx_xxxx LIKE "%Exx.%";</programlisting> - <para>Ix xxxx xxxxxxx, xx xxx xxxxxxxxxx xxxx xxxx xxxxxx xxxxx xxxx xxx xxxx <replaceable>Exxxxxx</replaceable> xxxxxxxxxxx xx <replaceable>Exx.</replaceable> Txxx SQL xxxxxxxxx xxxxxxxxxx xxx xxxx xxxxxxxxxxx xxxx xxx xxxx <replaceable>Exxxxxx</replaceable>. Ix xxxx xxx <literal moreinfo="none">POSITION()</literal> xxxxxxxx xx xxxx xxx xxxxxxxx xxxxx xx xxx xxxxxxxxxxxx. Txx xxxxxxxxx xxxxx xx xxxxxxx xx xxxx xxxx xx xxx xxxxxxxx xxxxxxxx xxx xxx <literal moreinfo="none">INSERT()</literal> xxxxxxxx (xxx xxx <literal moreinfo="none">INSERT</literal> xxxxxxxxx). Ix xx’x xxx xxxxx, xxx xxxxxx xxxx xxxx xxx xx xxxxxxx xxxxxxx x xxxxx xx d xxxx xx xxxxxxxx xx <literal moreinfo="none">POSITION()</literal>, xxx xxx <literal moreinfo="none">INSERT()</literal> xxxxxxxx xxxxxxx xxx xxxxxxx xx xxxxx <replaceable>xxxxxxxx</replaceable> xxxx xxxxxxx xxx xxxxxx xx xxx xxxxxxxx xxxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch11-77050"> - <refmeta> - <refentrytitle>QUOTE( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>QUOTE( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">QUOTE(<replaceable>xxxxxx</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch11-39-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-11-ITERM-3195" significance="normal"><primary>QUOTE( ) xxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-11-ITERM-3196" significance="normal"><primary>xxxxxxxxx (\\\\)</primary></indexterm><indexterm id="mysqlian-CHP-11-ITERM-3197" significance="normal"><primary>\\\\ (xxxxxxxxx)</primary></indexterm><indexterm id="mysqlian-CHP-11-ITERM-3198" significance="normal"><primary>xxxxxxxxx xxxxx (“)</primary><secondary>QUOTE( ) xxxxxxxx</secondary></indexterm> -Txxx xxxxxxxx xxxxxxx x xxxxxx xxxxxxxx xx xxxxxx xxxxxx xxx xxxxxxx x xxxxxx xxxx xx xxxx xx xxxxxxxxxx xxxx SQL xxxxxxxxxx. Sxxxxx xxxxxx, xxxxxxxxxxx, ASCII NULLx, xxx Cxxx-Zx xxxxxxxxx xx xxx xxxxxx xxx xxxxxxx xxxx x xxxxxxxxx. Txxx xx x xxxxxx xxxxxxxx xxxxxxx xxxx xxxxxxxxx xxxxxx xxxx x xxxxxx xxx xxxxxxxxx.</para> - <programlisting format="linespecific">SELECT QUOTE(xxxxxx_xxxx) AS Cxxxxxx -FROM xxxxxxx -WHERE xxxxxx_xxxx = 'ENGL-ddd'; - -+---------------------+ -| Cxxxxxx | -+---------------------+ -| 'Wxxxx xx O\'Hxxxx' | -+---------------------+</programlisting> - <para><indexterm id="mysqlian-CHP-11-ITERM-3199" significance="normal"><primary>xxxxxxx xxxx (%)</primary></indexterm><indexterm id="mysqlian-CHP-11-ITERM-3200" significance="normal"><primary>xxxxxxxxx</primary><secondary>xxxxxxx xxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-11-ITERM-3201" significance="normal"><primary>LIKE xxxxxxxx</primary></indexterm> -Nxxxxx xx xxx xxxxxxx xxxx xxxxxxx xx xxx <literal moreinfo="none">QUOTE()</literal> xxxxxxxx, xxx xxxxxx xxxxxxxx xx xxxxxxxx xx xxxxxx xxxxxx, xxx xxx xxxxxx xxxxx xxxxxx xxx xxxx xxxxxxxx xx xxxxxxx xxxx x xxxxxxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch11-77051"> - <refmeta> - <refentrytitle>REPEAT( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>REPEAT( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">REPEAT(<replaceable>xxxxxx</replaceable>,<replaceable> xxxxx</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch11-40-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-11-ITERM-3202" significance="normal"><primary>REPEAT( ) xxxxxxxx</primary></indexterm> -Txxx xxxxxxxx xxxxxxx xxx xxxxxx xxxxx xx xxx xxxxx xxxxxxxx xx xxx xxxxxxxx, xx xxxx xxxxx xx xxxxxxxxx xx xxx xxxxxx xxxxxxxx. Ix xxxxxxx xx xxxxx xxxxxx xx <replaceable>xxxxx</replaceable> xx xxxx xxxx d. Ix xxxxxxx NULL xx xxxxxx xxxxxxxx xx NULL.</para> - <programlisting format="linespecific">SELECT REPEAT('Uxxxxx! ', d) -AS 'Wxxxxxx Mxxxxxx';</programlisting> - </refsect1> - </refentry> - <refentry id="ch11-77052"> - <refmeta> - <refentrytitle>REPLACE( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>REPLACE( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">REPLACE(<replaceable>xxxxxx</replaceable>, <replaceable>xxx_xxxxxxx</replaceable>, <replaceable>xxx_xxxxxxx</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch11-41-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-11-ITERM-3203" significance="normal"><primary>REPLACE( ) xxxxxxxx</primary></indexterm> -Txxx xxxxxxxx xxxx xxxxxxx xxx xxxxx xxxxxxxx xxx xxxxxxx x xxxxxx xx xxxxx xxxxx xxxxxxxxxx xx xxx xxxxxx xxxxxxxx xx xxxxxxxx xxxx xxxxx xxxxxxxx.</para> - <programlisting format="linespecific">UPDATE xxxxxxxx, -REPLACE(xxxxx, 'Mxx.', 'Mx.');</programlisting> - <para>Txxx SQL xxxxxxxxx xxxx xxxxxxxx xxxx xxxxxxx’x xxxxx xxx xxxxxxx xxx xxxxxxxxxxx xx “Mxx.” xxxx “Mx.” <literal moreinfo="none">UPDATE</literal> xxxx xxxxxx xxxx xxx xxxx xxxxx xxx xxxxxxxxxxx xxx xxxx.</para> - </refsect1> - </refentry> - <refentry id="ch11-77053"> - <refmeta> - <refentrytitle>REVERSE( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>REVERSE( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">REVERSE(<replaceable>xxxxxx</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch11-42-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-11-ITERM-3204" significance="normal"><primary>REVERSE( ) xxxxxxxx</primary></indexterm> -Txxx xxxxxxxx xxxxxxx xxx xxxxxxxxxx xx <replaceable>xxxxxx</replaceable> xx xxxxxxx xxxxx. Ix’x xxxxx-xxxx xxxx.</para> - <programlisting format="linespecific">SELECT REVERSE('MUD'); - -+----------------+ -| REVERSE('MUD') | -+----------------+ -| DUM | -+----------------+</programlisting> - </refsect1> - </refentry> - <refentry id="ch11-77054"> - <refmeta> - <refentrytitle>RIGHT( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>RIGHT( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">RIGHT(<replaceable>xxxxxx</replaceable>, <replaceable>xxxxxx</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch11-43-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-11-ITERM-3205" significance="normal"><primary>RIGHT( ) xxxxxxxx</primary></indexterm> -Txxx xxxxxxxx xxxxxxx xxx xxxxx <replaceable>xxxxxx</replaceable> xxxxxxxxxx xxxx x xxxxxx. Ix xxx xxxx xx xxxxxxx xxx xxxxxxxxx xx xxx xxxxxx xxxxxxx xx xxx xxx, xxx xxx <literal moreinfo="none">LEFT( )</literal> xxxxxxxx. Bxxx xxx xxxxx-xxxx xxxx.</para> - <programlisting format="linespecific">SELECT RIGHT(xxx_xxx, d) -FROM xxxxxxxx -WHERE xxxxxxx_xx = 'ddddddddddd';</programlisting> - <para>Txxx xxxxxxxxx xxxxxxxxx xxx xxxx xxxx xxxxxx xx xxx xxxxxxx’x Sxxxxx Sxxxxxxx xxxxxx xx xx xxxxxxxx xxxxxxxxxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch11-77055"> - <refmeta> - <refentrytitle>RPAD( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>RPAD( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">RPAD(<replaceable>xxxxxx</replaceable>, <replaceable>xxxxxx</replaceable>, <replaceable>xxxxxxx</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch11-44-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-11-ITERM-3206" significance="normal"><primary>RPAD( ) xxxxxxxx</primary></indexterm> -Txxx xxxxxxxx xxxx <replaceable>xxxxxxx</replaceable> xx xxx xxxxx xxx xx <replaceable>xxxxxx</replaceable>, xxxxxxxx xx xxx xxxxxxxxxxx xx <replaceable>xxxxxx</replaceable> xxx xxx xxxxx xxxxxxx xxxxx <replaceable>xxxxxx</replaceable> xxxxxxxxxx. Ix xxx xxxxxx xxxxx xx xxxxxxx xxxx xxx xxxxxx xx xxx xxxxxx, xxx xxxxxx xxxx xx xxxxxxxxx xx xxxxxx xxxx xxx xxxxxx xxxxxxxxxx. Txx xxxxxxx xxx xx xxx xxxxxxxxx.</para> - <programlisting format="linespecific">SELECT RPAD(xxxxxx_xxxx, dd, '.') AS Cxxxxxx -FROM xxxxxxx -WHERE xxxxxx_xxxx LIKE 'ENGL%' -LIMIT d; - -+---------------------------+ -| Cxxxxxx | -+---------------------------+ -| Cxxxxxxx Wxxxxxx......... | -| Pxxxxxxxxxxx Wxxxxxx..... | -| Axxxxxxx Lxxxxxxxxx...... | -+---------------------------+</programlisting> - <para>Txxx xxxxxxxxx xxxxxxxx x xxxx xx xxxxx xxxxxx xxxxx xxxx xxx xxxxxxxxx. Exxx xxx xx xxx xxxxxxx xx xxxxxx xxxx xxxx xx xxx xxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch11-77056"> - <refmeta> - <refentrytitle>RTRIM( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>RTRIM( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">RTRIM(<replaceable>xxxxxx</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch11-45-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-11-ITERM-3207" significance="normal"><primary>RTRIM( ) xxxxxxxx</primary></indexterm> -Txxx xxxxxxxx xxxxxxx xxx xxxxx xxxxxx xxxx xxx xxxxxxxx xxxxxx xxxxxxx. Wxxx xxxxx xxxx xx SQL xxxxxxxxx xxxx <literal moreinfo="none">UPDATE</literal>, xxxx xxxx xx xxx xxxxxxx xxxxxxxx xxxxxx xxxx xxx xx xxxxxxx. Txxx xxxxxxxx xx xxxxx-xxxx xxxx. Tx xxxx xxxxxxx xxxxxx, xxx <literal moreinfo="none">LTRIM( )</literal>; xxx <literal moreinfo="none">TRIM( )</literal> xx xxxx xxxx xxxxxxx xxx xxxxxxxx xxxxxx.</para> - <programlisting format="linespecific">UPDATE xxxxxxxx -SET xxxx_xxxx = RTRIM(xxxx_xxxx);</programlisting> - <para>Ix xxxx xxxxxxx, xxx xxxx xxxxx xx xxxxxxx xxxxxxxx xxxx xxxx xxxxxxx xxxxxxxxxxxxx xxxx x xxxxx xx xxx xxx xx xxx xxxxx. Txxx SQL xxxxxxxxx xxxxxxx xxx xxxxxxxx xxxxxx xxxx xxxx xxxx xxxxxxxxx xxxx xxxxxxxx xxxxxxxx xxxxxx xxx xxxx xxxxxx xxx xxxxxxx xxxx xxxx xxx xxxxxxxx xxxx.</para> - </refsect1> - </refentry> - <refentry id="ch11-77057"> - <refmeta> - <refentrytitle>SOUNDEX( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>SOUNDEX( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">SOUNDEX(<replaceable>xxxxxx</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch11-46-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-11-ITERM-3212" significance="normal"><primary>SOUNDEX( ) xxxxxxxx</primary></indexterm> -Txxx xxxxxxxx xxxxxxx xxx xxxxxxx xx x xxxxxxx xxxxxxxxx xxxx xxx xx xxxx xx xxxxxxx xxx xxxxxxx xxxxxxx.</para> - <programlisting format="linespecific">SELECT IF(SOUNDEX('xxx') = SOUNDEX('xxxx'), -'Sxxxxx Axxxx', 'Dxxx xxx xxxxx xxxxx') -AS 'Sxxxx Cxxxxxxxxx'; - -+------------------+ -| Sxxxx Cxxxxxxxxx | -+------------------+ -| Sxxxxx Axxxx | -+------------------+</programlisting> - <para><literal moreinfo="none">SOUNDEX( )</literal> xxx xxxxxxxx xx xxxxx xxxxxxxxxxx -xxxxxxx xxxxx xxxxx, xxx xx’x xxxxxx xxxx.</para> - </refsect1> - </refentry> - <refentry id="ch11-77058"> - <refmeta> - <refentrytitle>SPACE( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>SPACE( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">SPACE(<replaceable>xxxxx</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch11-47-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-11-ITERM-3213" significance="normal"><primary>SPACE( ) xxxxxxxx</primary></indexterm> -Txxx xxxxxxxx xxxxxxx x xxxxxx xx xxxxxx. Txx xxxxxx xx xxxxxx xxxxxxxx xx xxx xx xxx xxxxxxxx.</para> - <programlisting format="linespecific">SELECT CONCAT(xxxx_xxxxx, SPACE(d), xxxx_xxxx) -AS Nxxx -FROM xxxxxxxx LIMIT d; - -+------------------+ -| Nxxx | -+------------------+ -| Rxxxxxx Sxxxxxxx | -+------------------+</programlisting> - <para><indexterm id="mysqlian-CHP-11-ITERM-3214" significance="normal"><primary>RPAD() xxxxxxxx</primary></indexterm> -Axxxxxxx xxxx xxxxxxx xxxxxxxx x xxx xxxx xxxxxx xxxx xxxx xxxxxxx x xxxxx xxxxxx xxxxxx, xx’x xxxx xxxxxxxx xxxx xxxxxxxx xx xx xxxx x xxxxx xx xx xx xxxxxxxx. Fxx xxxxxxxx xx xxxxxxxx xxxxxx, xxx xxxxx xxxxxxxxxx xxx xxxxx xxxx xxxxxxx xxxxxxxx xx xxxxxxxxx xxx xxxxxx xx xxxxxx xxxxxx xxxxx xx xxxx xxxx x xxxxx, xxx xxxxxx xx xxxxx xxxxxx, xx xxxx xxxxx xxxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch11-77059"> - <refmeta> - <refentrytitle>STRCMP( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>STRCMP( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">STRCMP(<replaceable>xxxxxx</replaceable>, <replaceable>xxxxxx</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch11-48-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-11-ITERM-3215" significance="normal"><primary>STRCMP( ) xxxxxxxx</primary></indexterm> -Txxx xxxxxxxx xxxxxxxx xxx xxxxxxx xx xxxxxxxxx xxxxxxx xxx xxxxx xxxxxx xx xxxxxx xx xxxxx xxx xxxxxx xxxxxx xx ASCII xxxxxxxx. Ix xxx xxxxx xxxxxx xxxxxxxx xxx xxxxxx, -d xx xxxxxxxx. Ix xx xxxxxxx xxx xxxxxx, d xx xxxxxxxx. Ix xxxx xxx xxxxx, d xx xxxxxxxx. Txxx xxxxxxxx xx xxxxx xxxx xxx xxxxxxxxxxxx xxxxxxxxxxx, xxx xx xxxx xxxxxxxxxxx xxxxxx xx xxxxx xxx xx xxx xxxxxxx xxxxx xxx xxxxxx.</para> - <programlisting format="linespecific">SELECT * FROM -(SELECT STRCMP( - SUBSTR(xxx_xxx, d, d), - SUBSTR(xxx_xxx, dd, d)) -AS Cxxxxxxxxx -FROM xxxxxxx) AS xxxxxxxd -WHERE Cxxxxxxxxx = d;</programlisting> - <para>Ix xxxx xxxxxxx, xxxxxxx xxxxxx xxxxx xxx xxx xxxxx xxxxxxxxxx xxxx, xx’xx xxxxx <literal moreinfo="none">SUBSTR( )</literal> xx xxxxxxx xxx xxxxx xxx xxxxxx xxxx xxxxxxx. Uxxxx <literal moreinfo="none">STRCMP( )</literal>, xx xxxxxxx xxx xxx xxxxxx xxxxx xx xxx xx xxxx’xx xx xxxxxxxx. Tx xxxx xxx xxx xxxxxxx xxxxx xxx xxxxxxx xxx xxx xx xxxxxxxx, xx’xx xxxxx x xxxxxxxx xxxx x <literal moreinfo="none">WHERE</literal> xxxxxx xx xxxxxx xxxx xxxx xxx xxxxx xxx <literal moreinfo="none">STRCMP( )</literal> xxxxxxx x -d xxxxx, xxxxxxxx xxx xxx xxxxxxx xxx xxx xx xxxxxxxx.</para> - <para>Txx xxxxxxx xxxx xxxx xxxxxxxxx xx xxxx xxxx xxxxxxx xxxx xxxx xxxx xxx xxxxxxxxxxxxx. Wx xxxxx xxxx xx xxxxxx xxxx xxxxxxxxx xx xxxxxxxxx xxxx. Hxxxxxx, xxxx xxxxx’x xxxxxxx xxx xxxxxxx xxxxxx. Ix xxxx xxxxxxxx xxxx xxxxxxxxxxx xx xxxx xx xxxx. Tx xxxxxxx xxx xxxx, xx xxxxx xx xxxxxx xx xxxxxx x xxxxxx xxxxxx xxxxx xxx xx xxx APIx xx xxxxxxx, xxxxxxx, xxx xxxx xxxxxxx xxx xxxxxx xxxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch11-77060"> - <refmeta> - <refentrytitle>SUBSTR( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>SUBSTR( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">SUBSTRING(<replaceable>xxxxxx</replaceable>, <replaceable>xxxxxxxx</replaceable>[, <replaceable>xxxxxx</replaceable>]) -SUBSTRING(<replaceable>xxxxxx</replaceable> FROM <replaceable>xxxxxxxx</replaceable> FOR <replaceable>xxxxxx</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch11-49-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-11-ITERM-3216" significance="normal"><primary>SUBSTR( ) xxxxxxxx</primary></indexterm> -Txxx xxxxxxxx xx xx xxxxx xx <literal moreinfo="none">SUBSTRING()</literal>. Sxx xxx xxxxxxxxxxx xxx xxxxxxx xxx xx xxxxxxx xx xxx xxx.</para> - </refsect1> - </refentry> - <refentry id="ch11-77061"> - <refmeta> - <refentrytitle>SUBSTRING( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>SUBSTRING( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">SUBSTRING(<replaceable>xxxxxx</replaceable>, <replaceable>xxxxxxxx</replaceable>[, <replaceable>xxxxxx</replaceable>]) -SUBSTRING(<replaceable>xxxxxx</replaceable> FROM <replaceable>xxxxxxxx</replaceable>[ FOR <replaceable>xxxxxx</replaceable>])</synopsis> - </refsynopsisdiv> - <refsect1 id="ch11-50-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-11-ITERM-3216a" significance="normal"><primary>SUBSTRING( ) xxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-11-ITERM-3217" significance="normal"><primary>MID() xxxxxxxx</primary></indexterm> -Txxx xxxxxxxx xxxxxxx xxx xxxxxxxxxx xx x xxxxx xxxxxx, xxxxxxxx xxxx xxx xxxxxxxx xxxxx. Txx xxxxx xxxxxxxxx xx xxxxxxxx d. Yxx xxx xxxxxxxx xxx xxxxxx xx xxx xxxxxx xxxxxxxxx xx xxxxxxxxxx x xxxxx. Txx xxxxxxxx xx xxxxxxx xx <literal moreinfo="none">MID()</literal>.</para> - <programlisting format="linespecific">SELECT CONCAT_WS('-', - SUBSTRING(xxx_xxx, d, d), - SUBSTRING(xxx_xxx FROM d FOR d), - SUBSTRING(xxx_xxx FROM d) -) -AS 'Sxxxxx Sxxxxxxx Nxx.' -FROM xxxxxxxx LIMIT d; - -+----------------------+ -| Sxxxxx Sxxxxxxx Nxx. | -+----------------------+ -| ddd-dd-dddd | -+----------------------+</programlisting> - <para>Txxx xxxxxxx xxxxx xxx xxx xxxxxxxx xx <literal moreinfo="none">SUBSTRING()</literal> xxx xxxxxxxxxxxx x Sxxxxx Sxxxxxxx xxxxxx (xxx U.S. xxxxxxx xxx xxxxxxxxxxxxxx xxxxxx) xxxxxx xxxxxxx xxxxxx. Ix xxxx <literal moreinfo="none">CONCAT_WS()</literal> xx xxx xxx xxxxx xxxxxx xx xxxx xxxxxxxx, xxxxxxxxx xx xxx xxxxxx xxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch11-77062"> - <refmeta> - <refentrytitle>SUBSTRING_INDEX( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>SUBSTRING_INDEX( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">SUBSTRING_INDEX(<replaceable>xxxxxx</replaceable>, <replaceable>xxxxxxxxx</replaceable>, <replaceable>xxxxx</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch11-51-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-11-ITERM-3218" significance="normal"><primary>SUBSTRING_INDEX( ) xxxxxxxx</primary></indexterm> -Txxx xxxxxxxx xxxxxxx x xxxxxxxxx xx <replaceable>xxxxxx</replaceable>, xxxxx <replaceable>xxxxxxxxx</replaceable> xx xxxxxxxx xxxxxxxxxx xxx <replaceable>xxxxx</replaceable> xx xxxxxxxxx xxxxx xx xxx xxxxxxxxxx xx xxxxxx. Txxx, x <replaceable>xxxxx</replaceable> xx d xxxxxxx xxx xxxxx xxxxxxxxx, d xxxxxxx xxx xxxxxx, xxx xx xx. A xxxxxxxx xxxxxx xxxxxxxxx xxx xxxxxxxx xx xxxxx xxxx xxx xxxxx xxx.</para> - <programlisting format="linespecific">SELECT SUBSTRING_INDEX(xxx_xxx, '|', -d) -AS 'Lxxx Pxxxxxxxxxxx', -xxx_xxx AS 'Axx Pxxxxxxxxxxxx' -FROM xxxxxxx WHERE xxxxxx_xx = 'dddd'; - -+--------------------+----------------------------+ -| Lxxx Pxxxxxxxxxxx | Axx Pxxxxxxxxxxxx | -+--------------------+----------------------------+ -| ENGL-ddd | ENGL-ddd|ENGL-ddd|ENGL-ddd | -+--------------------+----------------------------+</programlisting> - <para>Ix xxxx xxxxxxx, xxx <literal moreinfo="none">xxx_xxx</literal> xxxxxx xxx xxxx xxxxxx xxxxxxxx xxx-xxxxxxxxx xxxxxxx xxxxxxxxx xx xxxxxxxx xxxx. Txx xxxxxxxxx xxxxxxxx xxx xxxx xxxxxxxxxxxx, xxxxxxx -d xxx xxxxxxx xxx xxx xxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch11-77063"> - <refmeta> - <refentrytitle>TRIM( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>TRIM( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">TRIM([[BOTH|LEADING|TRAILING] [<replaceable>xxxxxxx</replaceable>] FROM] <replaceable>xxxxxx</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch11-52-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-11-ITERM-3219" significance="normal"><primary>TRIM( ) xxxxxxxx</primary></indexterm> -Txxx xxxxxxxx xxxxxxx xxx xxxxx xxxxxx xxxx xxx xxxxxxxx xx xxxxxxx xxxxxxx xxxxxxx, xxxxxxxxx xx xxxxx xx xxxxxxxxx. Ix xxxxxxx xx xxxxxxxxx, <literal moreinfo="none">BOTH</literal> xx xxx xxxxxxx, xxxxxxx xxxx xxxxxxx xxx xxxxxxxx xxxxxxx xx xx xxxxxxx. Txx xxxxxxx xxxxxxx xx x xxxxx xx xxxx xx xxxxxxxxx. Txx xxxxxxxx xx xxxxx-xxxx xxxx.</para> - <para>Ax xx xxxxxxx, xx x xxxxx xxxxxxxxxx xxx xxxxxxx xx x xxxxxxx xxxxxx xx xxxxxx xxxx xxx xx xxx xxxxxxx xxxx xxxxx xxxx xxxxxxx’x xxxxxxxx xxxxxxxxxx xxxxxxxx xxxxx xxxxxx xx xxx xxx xx xxx xxxxx-xxxxxxxxx xxxx xx xxxxxxxxxx. Txxx xxx xxxx xxxx xxxxxx xx x xxxxxxx xx xxx xxx xxxxxxxxx, xxxxx xxxxxxx xxx xxxxxxxxxx xxxx x xxxxxxx xxxx’x xxxxxx xx xxxxx xxxxxx xxxxxxxxx xx xxxxxx xx xxx xxx (x.x., <literal moreinfo="none">xxxxxx,xxxxxxx,,,,</literal>).</para> - <programlisting format="linespecific">UPDATE xxxxxxx_xxxxxxx -SET xxxxxxxx_xxxxxxxxxx = -TRIM(LEADING SPACE(d) FROM TRIM(TRAILING ',' FROM xxxxxxxx_xxxxxxxxxx));</programlisting> - <para>Ix xxxx xxxxxxx, xx’xx xxxxx <literal moreinfo="none">TRIM()</literal> xxxxx: xxxx xx xxxxxx xxx xxxxxxxx xxxxxx xxxx xxx xxxxxx <emphasis>xxxxxxxx_xxxxxxxxxx</emphasis> xxx xxxx xxxxx xx xxxxx xxxxxxx xx xxxxxx xxxxxx xxxxxxx xxxxxx. Sxxxx xxx xxxxxxxxx xxx xxxx xx xx <emphasis>UPDATE</emphasis> xxxxxxxxx, xxx xxxxxx xxxxxxx xxxxxxx xxx xxxxx xxxx xx xxx xxxxx xxx xxx xxx xxx xxxxx xxx xxxx xxx xxxx. Txxx xx xxxx xxxxxxx xxxx xx xxxxx xx xx, xxxxxx. Bxxxxxx x xxxxx xx xxx xxxxxxx xxxxxxx, xx xxx’x xxxx xx xxxxxxx xx. Axxx, xxxxxxx xx xxxx xx xxxxxx xxxx xxxxxxx xx xxxxxxxx xxxxxx xxx xxxxxx xxxx xxx xxxx, xx xxx’x xxxx xx xxxxxxx <literal moreinfo="none">LEADING</literal> xx <literal moreinfo="none">TRAILING</literal> xxx xxx xxxxx xxx xxxxxxx xx <literal moreinfo="none">BOTH</literal> xx xx xxxx. Mxxxxx xxxxx xxxxxxxxxxx, xx xxx xxxx xxxxxxx SQL xxxxxxxxx:</para> - <programlisting format="linespecific">UPDATE xxxxxxx_xxxxxxx -SET xxxxxxxx_xxxxxxxxxx = -TRIM(TRIM(',' FROM xxxxxxxx_xxxxxxxxxx));</programlisting> - <para>Ix xx xxxxxxxxx xxxx xxx xxxxxx xxx xxxx xxxx xxxxx xxxxx xxxxxx xxxxxxx xxx xxxx (xxx xxxx xx xxx xxx), xx xxxxx xxxx xxxxx xxxxxxxxxx xxxx xx <literal moreinfo="none">TRIM()</literal> xxxxxx <literal moreinfo="none">REPLACE()</literal> xx xxxxxxx xxx xxxxxxxxxx xx xxxxxxxxxxx xxxxxx xxxx x xxxxxx xxxxx:</para> - <programlisting format="linespecific">UPDATE xxxxxxx_xxxxxxx -SET xxxxxxxx_xxxxxxxxxx = -REPLACE(TRIM(TRIM(',' FROM xxxxxxxx_xxxxxxxxxx)), ',,', ',');</programlisting> - </refsect1> - </refentry> - <refentry id="ch11-77064"> - <refmeta> - <refentrytitle>UCASE( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>UCASE( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">UCASE(<replaceable>xxxxxx</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch11-53-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-11-ITERM-3220" significance="normal"><primary>UCASE( ) xxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-11-ITERM-3221" significance="normal"><primary>UPPER( ) xxxxxxxx</primary></indexterm> -Txxx xxxxxxxx xxxxxxxx x xxxxxx xxxxx xx xxx xxxxxxxxx xxxxxxx. Ix’x xx xxxxx xx <literal moreinfo="none">UPPER( )</literal>. -</para> - <programlisting format="linespecific">SELECT xxxxxx_xx AS 'Cxxxxx ID', -UCASE(xxxxxx_xxxx) AS Cxxxxx -FROM xxxxxxx LIMIT d; - -+-----------+----------------------+ -| Cxxxxx ID | Cxxxxx | -+-----------+----------------------+ -| dddd | CREATIVE WRITING | -| dddd | PROFESSIONAL WRITING | -| dddd | AMERICAN LITERATURE | -+-----------+----------------------+</programlisting> - </refsect1> - </refentry> - <refentry id="ch11-77065"> - <refmeta> - <refentrytitle>UNCOMPRESS( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>UNCOMPRESS( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">UNCOMPRESS(<replaceable>xxxxxx</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch11-54-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-11-ITERM-3222" significance="normal"><primary>UNCOMPRESS( ) xxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-11-ITERM-3223" significance="normal"><primary>COMPRESS( ) xxxxxxxx</primary></indexterm> -Txxx xxxxxxxx xxxxxxx xxx xxxxxxxxxxxx xxxxxx xxxxxxxxxxxxx xx xxx xxxxxxxxxx xxxxxx xxxxx, xxxxxxxxx xxx xxxxxxx xx xxx <literal moreinfo="none">COMPRESS( )</literal> xxxxxxxx. Ix xxxxxxxx MxSQL xx xxxx xxxx xxxxxxxx xxxx x xxxxxxxxxxx xxxxxxx (x.x., <literal moreinfo="none">xxxx</literal>). Ix xxxxxxx NULL xx xxx xxxxxx xx xxx xxxxxxxxxx xx xx MxSQL xxxx’x xxxxxxxx xxxx <literal moreinfo="none">xxxx</literal>. Txxx xxxxxxxx xx xxxxxxxxx xx xx xxxxxxx d.d.d xx MxSQL. -</para> - <programlisting format="linespecific">SELECT UNCOMPRESS(xxxxx) -FROM xxxxxxxxxxxx_xxxxxxx -WHERE xxxxxxxxx_xx = 'dddd';</programlisting> - </refsect1> - </refentry> - <refentry id="ch11-77066"> - <refmeta> - <refentrytitle>UNCOMPRESSED_LENGTH( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>UNCOMPRESSED_LENGTH( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">UNCOMPRESSED_LENGTH(<replaceable>xxxxxx</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch11-55-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-11-ITERM-3225" significance="normal"><primary>UNCOMPRESSED_LENGTH( ) xxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-11-ITERM-3224" significance="normal"><primary>COMPRESS( ) xxxxxxxx</primary></indexterm> -Txxx xxxxxxxx xxxxxxx xxx xxxxxx xx xxxxxxxxxx xxxxxxxxx xx xxx xxxxx xxxxxxxxxx xxxxxx xxxxxx xx xxx xxxxxxxxxx. Yxx xxx xxxxxxxx xxxxxxx xxxxx xxx <literal moreinfo="none">COMPRESS( )</literal> xxxxxxxx. Txxx xxxxxxxx xx xxxxxxxxx xx xx xxxxxxx d.d xx MxSQL.</para> - <programlisting format="linespecific">SELECT UNCOMPRESSED_LENGTH(COMPRESS(xxxxx)) -FROM xxxxxxx_xxxxxxxxxxxx -WHERE xxxxxxxxx_xx = 'dddd';</programlisting> - </refsect1> - </refentry> - <refentry id="ch11-77067"> - <refmeta> - <refentrytitle>UNHEX( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>UNHEX( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">UNHEX(<replaceable>xxxxxx</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch11-56-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-11-ITERM-3226" significance="normal"><primary>UNHEX( ) xxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-11-ITERM-3227" significance="normal"><primary>HEX( ) xxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-11-ITERM-3228" significance="normal"><primary>xxxxxxxxxxx xxxxxxx</primary></indexterm> -Txxx xxxxxxxx xxxxxxxx xxxxxxxxxxx xxxxxxx xx xxxxx xxxxxxxxx xxxxxxxxxxx. Ix xxxxxxxx xxx xxxxxxx xx xxx <literal moreinfo="none">HEX()</literal> xxxxxxxx xxx xx xxxxxxxxx xx xx xxxxxxx d.d.d xx MxSQL.</para> - <para>Tx xxxxxxxxxx xxx xxx, xxxxxxx xxxx xx x xxxxx xx xxxx x xxxxxx xxxx x xxxxxx xxxxxxxxx xx xxx xxxx: xxxxxxxxxxxx, xxxx xxxx xxxxxxx xxxxxxx x xxx xxxxxxxxx xxxxx xx API. Hxxxxxx, xxx xxxxxx xx x <literal moreinfo="none">VARCHAR</literal> xxxx xxxx. Txx xxxxxxx xx xxxx xxxx xxx xxxx xx xxxxxxxxx, xx xxxx xx xxxx xx xxx xxx xxxxxxx xx xxx xxxxxxx xx xxxxxxxx xxx xxxxxx xx xxxx xxxxxx, xxx x xxx xxxxx xxx xxxxxxx xxxx xxxxxx xx xxxxxxxxxx. Sx xx xxxx xx xxx xxx xxxx. Wx xxx xxx <literal moreinfo="none">UNHEX()</literal> xx xxxxxx xxxx xxxxxxxxxx xxx xxxxxx xxxxxxxxx xxx xxxx xxxxxxx xx xxxx xxxxxx xxxxxxx:</para> - <programlisting format="linespecific">UPDATE xxxxxxxx -SET xxxxxxxx = REPLACE(xxxxxxxx, UNHEX(dd), SPACE(d)) -WHERE LOCATE(UNHEX(dd), xxxxxxxx);</programlisting> - <para>Wx’xx xxxxxx xx xx ASCII xxxxx xxx xxxx xxxx x xxx xx xxxxxxxxxxx xx xxx xxxxxxxxxxx xxxxxx dd. Kxxxxxx xxxx xxx xx xxxxxxxxxxx, xx xxx <literal moreinfo="none">WHERE</literal> xxxxxx xx’xx xxxxxxx xxxx xxxxx xx <literal moreinfo="none">UNHEX()</literal> xx xxxxxx xxx xxxxxx xxxxxxxxx xxx x xxx, xxxxxxxx xxx xxxxxx xxxxxx xxxx xxxxx <literal moreinfo="none">LOCATE()</literal> xxxx xxxxxx xxx xxxxxx <replaceable>xxxxxxxx</replaceable>. Ix xx xxxxx’x xxxx x xxx xx xxx xxxxxx xxx x xxx, xx xxxx xxxxxx d. Txxxx xxxx xxxx xxx xx xxxxxxxx xx xxx xxxxxx xxxxxxx. Txx xxxx xxxx xx xxxxxxx xxxx xxxx xxxx x xxxxx xx d xx xxxxxxx xxx xxxxxxxxx xxxx xx xxxxxxxx xx xxx xxxxxxx. Uxxxx <literal moreinfo="none">UNHEX()</literal> xxxxx xxxx <literal moreinfo="none">REPLACE()</literal> xx xxx <literal moreinfo="none">SET</literal> xxxxxx, xx xxxxxxx xxx xxxx xxxxx xxxx xxxx xxxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch11-77068"> - <refmeta> - <refentrytitle>UPPER( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>UPPER( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">UPPER(<replaceable>xxxxxx</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch11-57-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-11-ITERM-3231" significance="normal"><primary>UPPER( ) xxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-11-ITERM-3232" significance="normal"><primary>UCASE() xxxxxxxx</primary></indexterm> -Txxx xxxxxxxx xxxxxxxx x xxxxx xxxxxx xx xxx xxxxxxxxx xxxxxxx. Ix’x xx xxxxx xx <literal moreinfo="none">UCASE( )</literal>. Sxx xxxx xxxxxxxx’x xxxxxxxxxxx xxx xx xxxxxxx. -<indexterm class="endofrange" startref="mysqlian-CHP-11-ITERM-3094" id="mysqlian-CHP-11-ITERM-3233" significance="normal"/><indexterm class="endofrange" startref="mysqlian-CHP-11-ITERM-3093" id="mysqlian-CHP-11-ITERM-3234" significance="normal"/> -</para> - </refsect1> - </refentry> - </sect1> - </chapter> - <chapter id="mysqlian-CHP-12" xml:base="ch12.xml"> - <title>Dxxx xxx Txxx Fxxxxxxxx - Uxxx xxxxx xxxxYEAR xxxxxxxxTIMESTAMP xxxxxxxxxxxxxxDATETIME xxxxxxxxxxxxxxTIME xxxxxxxxxxxxxxDATE xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx -Bx xxxxx xxxxxxxx xxxx xxxx xxxxxxx, xxx xxx xxx xxxxxxx xxxxx-xx xxxxxxxxx xxxxxxx xx MxSQL. Txxx xxxxxxx xxxxxxxx xxxxx xxxxxxxxx. Cxxxxxxxx, xxxx xxxxxxxx xxxxxxxxx xxx xxxxxxxxx: DATE, TIME, DATETIME, TIMESTAMP, xxx YEAR. Yxx xxxxx xxx x xxxxxx xx xxx xx xxxxx xxxx xxxxx xxxx xxxxxxxx xx xxxxxxxx x xxxxx. Sxx xxx xxxxxxxxxxxx xx CREATE TABLE xxx ALTER TABLE xx xxx xxxx xxxxxxx. Txx DATE xxxxxx xxxx xxx xx xxxx xxx xxxxxxxxx xxxx xxx xxxx. Ix xxxx xxx xxxx-xx-xx xxxxxx. Txx TIME xxxxxx xxxx xx xxx xxxxxxxxx xxxx xx xxx xxx:xx:xx xxxxxx. Tx xxxxxx x xxxxxxxxxxx xx xxxx xxx xxxx, xxx DATETIME: xxxx-xx-xx xx:xx:xx. Txx TIMESTAMP xxxxxx xx xxxxxxx xx DATETIME, xxx xx x xxxxxx xxxxxxx xx xxx xxxxx xx xxxxxxxxx xxxx: xx xxxxxx xx xxx Uxxx xxxxx xxxx (x.x., dddd-dd-dd) xxx xxxx xx xxx xxx xx dddd. Pxxx, xx xxx xxx xxxxxxxxxxx xx xxxxxxxx xxx xxxxx xxxxxxxxxxxxx xxxx xxx xxx xx xxxxx xx xx xxxxxxxxx xx xxxxxxx, xxxxxx xxx xxxxxxxxxx xxxxxxxx MxSQL xxxxxxxxx. Fxxxxxx, xxx YEAR xxxx xxxx xx xxxx xxxx xxx xxxxxxxxx xxx xxxx xx x xxxxxx. Fxx xxxx xxxxxxxxxxx xx xxxx xxx xxxx xxxxxxxxx, xxx . - Axx xxxxxxxx xxxx xxxxx xxx x xxxx xx x xxxx xxxx xxxx xxxx xxxx xxxxxx x xxxxxxxx xxxxxxxx xxxx xxxx. MxSQL xxxxxxxx xxxx xxxxxx xxxxx xxxx d xx dd xxx xxxx xxxxx xxxx d xx dd. Txxxxxxxx, x xxxx xxxx xx Fxxxxxxx dd xxxxx xx xxxxxxxx xxxxx xx xxxxxxx d.d.d xx MxSQL. Bxxxxxxxx xx xxxxxxx d.d.d, MxSQL xxxxxx xxxx xxxxxxx xxxxxxxxxx xxxx xxxxx xxxxxx xxxx x xxxx. Hxxxxxx, xxxx xxxx xxxxxxxxx xxxxxx d xxx xxxx xx xxx xxxxxxxxxx xx x xxxx, xx xxxxxxxxxx xxxx xxxxxxxxxxx (x.x., ’dddd-dd-dd'). Ax x xxxxxxx xxxx, xxx xxxx xxx xxxx xxxxxxxxx xxxx xxxxxxx xxxx xx x xxxx xxxxx xxxxxxx xxxxxx xxxxxxxxxx xxxxx, xxx xxxx xxx xxxx xxxxxxxxx xxxx xxxxxxx xxxxxxxx xxxx xxxxxxxxxxx xxxxxx NULL xxxx xxxxx xx xxxxxxxxxx xxxx. Txx xxxxxxxxxxxx xx xxxxx xxxxxxxxx xx xxxx xxxxxxx xxxxxxxx xxxxx xxxxxxx xxxxx xxxxx xxx xxxxx xxx’x, xx xxxx xx xxxxx xxxxxx d xx NULL xxx xxxxxxx xxxxx. - Txx xxxx xx xxxx xxxxxxx xxxxxxxx xx xx xxxxxxxxxxxx xxxxxxx xx xxxx xxx xxxx xxxxxxxxx, xxxx xxxxxxxxxxxx xx xxxx. Axx xx xxx xxxxxxxxxxxx xxxxxxx xx xxxxxxx xx xxx xxxxxxxx’x xxx, xxxxx xxxx x xxxxxxxxx xxxxxxx, xx xxx. Fxx xxx xxxxxxxx xx xxxx xxxxxxx, I xxxx xxx xxxxxxxx xx x xxxxxxxxxxxx xxxxxxxx xxxx (x.x., x xxx xxxx xx xx xxxxxxxxxx xxxxxxxx xxxx) xxxx xxxxxx xxxxxxxxxxxx xxx xxxxxxxx xx MxSQL. Fxx xxxx xx xxxxxxxx xxx xxxxxxxxxxx xxxxxxxx, xxx xxx xxxx xxxxxxx xx xxx xxxxx xx xxx xxxx xx xxxx xxxx. - - Dxxx xxx Txxx Fxxxxxxxx Gxxxxxx xx Txxx - Fxxxxxxxx xx x xxxxxxx xx xxxx xxx xxxx xxxxxxxxx, xxxxxxx xxxxxxxxx xx xxxxx xxxxxxx: xx xxxxxxxx xxx xxxx xx xxxx, xx xxxxxxx xx xxxxxxx xxxx x xxxxx xxxx xx xxxx, xx xx xxxxxxx xxxxxxxxxxxx xx xxxxx xxxxx xx xxxxx. - - Dxxxxxxxxxx xxx Dxxx xx Txxx - CURDATE( ), CURRENT_DATE( ), CURTIME( ), CURRENT_TIME( ), CURRENT_TIMESTAMP( ), LOCALTIME( ), LOCALTIMESTAMP( ), NOW( ), SYSDATE( ), UNIX_TIMESTAMP( ), UTC_DATE( ), UTC_TIME( ), UTC_TIMESTAMP( ). - - - Exxxxxxxxx xxx Fxxxxxxxxx xxx Dxxx xx Txxx - DATE( ), DATE_FORMAT( ), DAY( ), DAYNAME( ), DAYOFMONTH( ), DAYOFWEEK( ), DAYOFYEAR( ), EXTRACT( ), GET_FORMAT( ), HOUR( ), LAST_DAY( ), MAKEDATE( ), MAKETIME( ), MICROSECOND( ), MINUTE( ), MONTH( ), MONTHNAME( ), QUARTER( ), SECOND( ), STR_TO_DATE( ), TIME( ), TIME_FORMAT( ), TIMESTAMP( ), WEEK( ), WEEKDAY( ), WEEKOFYEAR( ), YEAR( ), YEARWEEK( ). - - - Cxxxxxxxxxx xxx Mxxxxxxxx xxx Dxxx xx Txxx - ADDDATE( ), ADDTIME( ), CONVERT_TZ( ), DATE_ADD( ), DATE_SUB( ), DATEDIFF( ), FROM_DAYS( ), FROM_UNIXTIME( ), PERIOD_ADD( ), PERIOD_DIFF( ), SEC_TO_TIME( ), SLEEP( ), SUBDATE( ), SUBTIME( ), TIME_TO_SEC( ), TIMEDIFF( ), TIMESTAMPADD( ), TIMESTAMPDIFF( ), TO_DAYS( ). - - - - Dxxx xxx Txxx Fxxxxxxxx xx Axxxxxxxxxxx Oxxxx - xxxxxxxxxxxxx/xxxxxxxxxxxxxxxx xxxxxxxxx xxxxxxxxxxxxx xxxxxxxxx -Txx xxxx xx xxx xxxxxxx xxxxx xxxx xxxxxxxx xx xxxxxxxxxxxx xxxxx. - - - - ADDDATE( ) - - - ADDDATE( ) - - - - ADDDATE(xxxx, INTERVAL xxxxx xxxx) -ADDDATE(xxxx, xxxx) - - - - <para><indexterm id="mysqlian-CHP-12-ITERM-3246" significance="normal"><primary>ADDDATE( ) xxxxxxxx</primary></indexterm> -Txxx xxxxxxxx xxxx xxx xxxxx xxxxxxxx xx xxxx xx xxx xxxx xx xxxx xxxxxxxx. Txxx xx x xxxxxxx xxx <literal moreinfo="none">DATE_ADD()</literal>; xxx xxx xxxxxxxxxx xxx xxxxxxx xxx xxxxxxxx xxxxx. Txx xxxxxx, xxxxxxx xxxxxx xx xxxxxxxxx xx xx xxxxxxx d.d xx MxSQL. Txxx xxxxx-xxxx xxxxxx xxxx xxx xxxx, xxxxxx, xxxx <literal moreinfo="none">DATE_ADD()</literal>.</para> - <programlisting format="linespecific">UPDATE xxxxxxxx -SET xxxxxxx_xxxx = ADDDATE(xxxxxxx_xxxx, INTERVAL d MONTH) -WHERE xxxxxxx_xxxx = 'dddd-dd-dd'; - -UPDATE xxxxxxxx -SET xxxxxxx_xxxx = ADDDATE(xxxxxxx_xxxx, d) -WHERE xxxxxxx_xxxx = 'dddd-dd-dd';</programlisting> - <para>Txx xxxxx SQL xxxxxxxxx xxxxxxxxx x xxxxxxx xxxx xxx xxxxxxxxx xxx Dxxxxxxx d, dddd xx x xxxxx xxxxx, xx Jxxxxxx d, dddd. Txx xxxxxx xxxxxxxxx xxxxxxxxx xxx xxxxxxx xx Dxxxxxxx dd xx Dxxxxxxx dd, xxxxx xxxx xxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch12-77012"> - <refmeta> - <refentrytitle>ADDTIME( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>ADDTIME( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">ADDTIME(<replaceable>xxxxxxxx</replaceable>, <replaceable>xxxxxxxx</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch12-0-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-12-ITERM-3247" significance="normal"><primary>ADDTIME( ) xxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-12-ITERM-3248" significance="normal"><primary>SUBTIME( ) xxxxxxxx</primary></indexterm> -Txxx xxxxxxxx xxxxxxx xxx xxxx xxx xxxx xxx x xxxxx xxxxxx xx xxxxxx (xx <emphasis>xxxx</emphasis> xx <emphasis>xxxxxxxx</emphasis> xxxxxx), xxxxxxxxxxx xx xxx xxxx xxxxx xx xxx xxxxxx xxxxxxxx. Ix x xxxxxxxx xxxxxx xx xxxxx, xxx xxxx xx xxxxxxxxxx. Ix xxxx xxxx, xxx xxxxxxxx xx xxx xxxxxxxxxx xx <literal moreinfo="none">SUBTIME( )</literal>. Txxx xxxxxxxx xx xxxxxxxxx xx xx xxxxxxx d.d.d xx MxSQL. -</para> - <programlisting format="linespecific">SELECT NOW( ) AS Nxx, -ADDTIME(NOW( ), 'd:dd:dd.dd') AS 'Hxxx Lxxxx'; - -+---------------------+---------------------+ -| Nxx | Hxxx Lxxxx | -+---------------------+---------------------+ -| dddd-dd-dd dd:dd:dd | dddd-dd-dd dd:dd:dd | -+---------------------+---------------------+</programlisting> - <para>Nxxxxx xxxx xxx xxxx xxx xxxxxxxxx xx xxx, xxx xxxxxxx xxx xxxx xx xxxx xxxxxxxx, xxx xxxxxxxx xxxxxx xxx xxxx xx xx xxxxxxx xx xxx xxx, xx xxxx. Tx xxxxxxxx xxx xxxx, xxx xxx xxxxxx xx xxxx xxxxxx xxx xxxx (xxxxxxxxx xx x xxxxx) xxxx xx:</para> - <programlisting format="linespecific">SELECT NOW( ) AS Nxx, -ADDTIME(NOW( ), 'dd d:d:d') AS 'Txxxxx Dxxx Lxxxx'; - -+---------------------+---------------------+ -| NOW( ) | Txxxxx Dxxx Lxxxx | -+---------------------+---------------------+ -| dddd-dd-dd dd:dd:dd | dddd-dd-dd dd:dd:dd | -+---------------------+---------------------+</programlisting> - </refsect1> - </refentry> - <refentry id="ch12-77013"> - <refmeta> - <refentrytitle>CONVERT_TZ( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>CONVERT_TZ( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">CONVERT_TZ(<replaceable>xxxxxxxx</replaceable>, <replaceable>xxxx_xxxx</replaceable>, <replaceable>xxxx_xxxx</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch12-03-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-12-ITERM-3249" significance="normal"><primary>CONVERT_TZ( ) xxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-12-ITERM-3250" significance="normal"><primary>xxxxxxxxxx</primary><secondary>xxxx xxxxx</secondary></indexterm> -Txxx xxxxxxxx xxxxxxxx x xxxxx xxxx xxx xxxx xxxx xxx xxxxx xxxx xxxx xxxxx xx xxx xxxxxx. Ix xxxxxxxx xxxx-xxxx xxxxxx xx xx xxxxxxxxx xx xxx <emphasis>xxxxx</emphasis> xxxxxxxx. Ix xxxx’xx xxx xxxxxxx xxxxxxxxx xx xxxx xxxxxx, xx xx MxSQL AB’x xxxx (<ulink url="http://dev.mysql.com/downloads/timezones.html"/>) xx xxxxxxxx xxx xxxxxx. Cxxx xxxx xxxx xxx <emphasis>xxxxx</emphasis> xxxxxxxxxxxx xx xxx <emphasis>xxxx</emphasis> xxxxxxxxx xx MxSQL. Cxxxxx xxx xxxxxxxxx xx xxx <emphasis>xxxxx</emphasis> xxxxxx xxxx xxx xxx xxxx xxxxxxxxxxx xxxx xxxxxx xxxxxxxx xxxx xx <emphasis>xxxxx</emphasis> xxx <emphasis>xxxxx</emphasis>, xxx xxxxxxx xxx xxxxxx. Txxx xxxxxxxx xx xxxxxxxxx xx xx xxxxxxx d.d.d xx MxSQL. -</para> - <programlisting format="linespecific">SELECT NOW() AS 'Nxx Oxxxxxx', -CONVERT_TZ(NOW(), 'US/Cxxxxxx', 'Exxxxx/Rxxx') -x') -AS Mxxxx; - -+---------------------+---------------------+ -| Nxx Oxxxxxx | Mxxxx | -+---------------------+-------------------| dddd-dd-dd dd:dd:dd | dddd-dd-dd dd:dd:dd | -+---------------------+---------------------+</programlisting> - <para>Txxx xxxxxxx xxxxxxxxx xxx xxxxxxx xxxx xx xxx xxxxxx, xxxxx xxx xxx xxxx xx xxxx xxxxxxx xx xxxxxxx xx Nxx Oxxxxxx, xxx xxxxxxxx xxxx xxxx xx xxx xxxx xx Mxxxx. Nxxxxx xxxx xx’xx xxxxx xxx xxxxx xxxx xxxx xx <literal moreinfo="none">Exxxxx/Rxxx</literal>. Txxxx’x xxx’x x <literal moreinfo="none">Exxxxx/Mxxxx</literal> xxxxxx. Ix x xxxxx xxxx xxxx xxxx xxxxx’x xxxxx xx xxxxx, x NULL xxxxx xx xxxxxxxx xxx xxxx xxxxx. Tx xxxx xxx xxxxx xxxx xxxxx xxxxxxxxx, xxxxx xxx <literal moreinfo="none">xxxx_xxxx_xxxx</literal> xxxxx xx xxx <literal moreinfo="none">xxxxx</literal> xxxxxxxx.</para> - <programlisting format="linespecific">SELECT Nxxx -FROM xxxxx.xxxx_xxxx_xxxx -xx -WHERE Nxxx LIKE '%Exxxxx%';</programlisting> - <para>Txxx xxxx xxxx xxx xx xxx xxxx xxxx xxxxx xxx Exxxxx. Fxxx xxxx xxx xxx xxxx xxx xxxx xxx xxx xx xxx xxxx xxxx xxx xxxxx xx xxx xxxx xxxx xxx xxxx. Ixxxxxxxxxxx, xx xxx’xx xxxxxxxxxx xxxxx xxxx xxxx xxxxxxxx xxx xxxxxx xxx’xx xxxxxx, xxx <literal moreinfo="none">xxxx_xxxx_xxxx</literal> xxxxx xxxx xxxx xx xx xxxxxx, xxx.</para> - </refsect1> - </refentry> - <refentry id="ch12-77014"> - <refmeta> - <refentrytitle>CURDATE()</refentrytitle> - </refmeta> - <refnamediv> - <refname>CURDATE()</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">CURDATE()</synopsis> - </refsynopsisdiv> - <refsect1 id="ch12-04-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-12-ITERM-3251" significance="normal"><primary>CURDATE() xxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-12-ITERM-3252" significance="normal"><primary>CURRENT_DATE() xxxxxxxx</primary></indexterm> -Txxx xxxxxxxx xxxxxxx xxx xxxxxxx xxxxxx xxxx xx <replaceable>xxxx-xx-xx</replaceable> xxxxxx. Ix xxxx xxxxxx xxx xxxx xx x <replaceable>xxxxxxxx</replaceable> xxxxxx, xx x xxxxxxx xxxxxx xx xx’x xxxx xx xxxx xx x xxxxxxx xxxxxxxxxxx (xxx xxxxxxx). Yxx xxx xxx xxx xxxxxxxx xx <literal moreinfo="none">SELECT</literal> xxxxxxxxxx xx xxxxx xxxx, xx <literal moreinfo="none">INSERT</literal> xxx <literal moreinfo="none">UPDATE</literal> xxxxxxxxxx xx xxx x xxxxx, xx xx x <literal moreinfo="none">WHERE</literal> xxxxxx. <literal moreinfo="none">CURDATE()</literal> xx xxxxxxxxxx xxxx <literal moreinfo="none">CURRENT_DATE()</literal>; xxx xxx xxxxxxxxxx xxx xxxx xxxxxxx. -</para> - <programlisting format="linespecific">SELECT CURDATE() AS Txxxx, -CURDATE() + d AS Txxxxxxx; -xx; - -+------------+----------+ -| Txxxx | Txxxxxxx | -+------------+----------+ -| dddd-dd-dd | dddddddd | -+------------+----------+</programlisting> - <para>Bxxxxxx xxx xxxxxx xxx xx xxx xxxxxxxx xxxx xxxxxxxx x xxxxxxx xxxxxxxxxxx, xxxxxxxx’x xxxx xx xxxxxxxxx xxxxxxx xxxxxx. Ix xxx xxxx xxxx xx xxxxxxx x xxxx xx xxx xxxxxxx xxxxxx, xxxx xxx d. Tx xxxx xxx xxxxxx xxx xxxx, xxx xxxx xxxxxxxx xxxxxxxx xxxx x xxxxxxxx xxxx xx <literal moreinfo="none">ADDDATE( )</literal></para> - </refsect1> - </refentry> - <refentry id="ch12-77015"> - <refmeta> - <refentrytitle>CURRENT_DATE( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>CURRENT_DATE( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">CURRENT_DATE( )</synopsis> - </refsynopsisdiv> - <refsect1 id="ch12-05-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-12-ITERM-3253" significance="normal"><primary>CURRENT_DATE( ) xxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-12-ITERM-3254" significance="normal"><primary>CURDATE( ) xxxxxxxx</primary></indexterm> -Txxx xxxxxxxx xxxxxxx xxx xxxxxxx xxxx. Txx xxxxx xxxxxxxxxxx xxx xxx xxxxxxxx. Ix’x xxxxxxxxxx xxxx <literal moreinfo="none">CURDATE( )</literal>. Yxx xxx xxx xxxx xx <literal moreinfo="none">SELECT</literal> xxxxxxxxxx, xx xxxx xx <literal moreinfo="none">INSERT</literal> xxx <literal moreinfo="none">UPDATE</literal> xxxxxxxxxx xx xxxxxxxxxxx xxx xxxxxx, xx xx <literal moreinfo="none">WHERE</literal> xxxxxxx. -</para> - <programlisting format="linespecific">UPDATE xxxxxxxxxxx -SET xxxx_xxxx = CURRENT_DATE( ) -WHERE xxxx_xx = 'dddd';</programlisting> - <para>Txxx xxxxxxxxx xxxxxxx xxx xxxxxxxxxxx xxxx xxx x xxxxxx xxxx xxxx xx xxxxx, xxxxxxxxxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch12-77016"> - <refmeta> - <refentrytitle>CURRENT_TIME( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>CURRENT_TIME( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">CURRENT_TIME()</synopsis> - </refsynopsisdiv> - <refsect1 id="ch12-06-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-12-ITERM-3255" significance="normal"><primary>CURRENT_TIME() xxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-12-ITERM-3256" significance="normal"><primary>CURTIME() xxxxxxxx</primary></indexterm> -Txxx xxxxxxxx xxxxxxx xxx xxxxxxx xxxx xx <replaceable>xx:xx:xx</replaceable> xxxxxx. Ix xxxx xxxxxx xxx xxxx xx xxx <replaceable>xxxxxx</replaceable> xxxxxx, xx xxxxxxx xxxxxx xx xx’x xxxx xx xxxx xx x xxxxxxx xxxxxxxxxxx. Txx xxxxxxxxxxx xxx xxx xxxxxxxx. Ix’x xxxxxxxxxx xxxx <literal moreinfo="none">CURTIME()</literal>. -x>. -</para> - <programlisting format="linespecific">INSERT INTO xxxxxxxxxxxx -(xxxxxx_xx, xxxx_xxxx, xxxxx_xxxx) -VALUES('dddd', CURRENT_DATE( ), CURRENT_TIME);</programlisting> - <para>Ix xxxx xxxxxxx, xx’xx xxxxxxx xx xxxxxxxxxxx xxxxxxxxxxx xxxx xxx xxxx xxxxx xx xxxx xx xxx xxxx xxx xxxxxx xxxxx. Ox xxxxxx, xx’x xxxx xxxxxx xx xxx xxx <emphasis>xxxxxxxx</emphasis> xxxxxx xxxx xxx <literal moreinfo="none">NOW( )</literal> xxxxxxxx xxx xxxxxxxxx xxxx, xxx xxxxx xxxxxxxxx xxx xxxxxxxxxx xxxxxxxx xxxxxxxxxx xxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch12-77017"> - <refmeta> - <refentrytitle>CURRENT_TIMESTAMP()</refentrytitle> - </refmeta> - <refnamediv> - <refname>CURRENT_TIMESTAMP()</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">CURRENT_TIMESTAMP()</synopsis> - </refsynopsisdiv> - <refsect1 id="ch12-07-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-12-ITERM-3257" significance="normal"><primary>CURRENT_TIMESTAMP() xxxxxxxx</primary></indexterm> -Txxx xxxxxxxx xxxxxxx xxx xxxxxxx xxxx xxx xxxx xx <replaceable>xxxx-xx-xx xx:xx:xx</replaceable> xxxxxx. Ix xxxx xxxxxx xxx xxxx xx x <replaceable>xxxxxxxxxxxxxx</replaceable> xxxxxx, xx x xxxxxxx xx xx’x xxxx xx xxxx xx x xxxxxxx xxxxxxxxxxx (xxx xxxxxxx). Pxxxxxxxxxx xxxx’x xxxxxxxx. Ix’x x xxxxxxx xxx <literal moreinfo="none">NOW( )</literal>.</para> - <programlisting format="linespecific">SELECT CURRENT_TIMESTAMP() AS Nxx, -CURRENT_TIMESTAMP() + ddddd AS 'Hxxx Lxxxx'; -x'; - -+---------------------+----------------+ -| Nxx | Hxxx Lxxxx | -+---------------------+----------------+ -| dddd-dd-dd dd:dd:dd | dddddddddddddd | -+---------------------+----------------+</programlisting> - <para>Bx xxxxxx ddddd xx xxx xxxxxxx xxxx, xxx xxxx xx xxxxxxxxx xx d xxx xxx xxxxxxx xxx xxxxxxx xx xxxx xxxx, xxx xxx xxxx xx xxxxxxxxx xx xxx xxxxxx xxxxx xxxxxxx xxxxxx. Txxx xx xx xxxx xxxx xxx <replaceable>xxxxxxxxxxxxxx</replaceable> xxxxxx xxxxxxxx xx xxxxxxx xxxxxxxxxxxx, xxxx xxx xxxxxxx xxxxx xxxxxxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch12-77018"> - <refmeta> - <refentrytitle>CURTIME()</refentrytitle> - </refmeta> - <refnamediv> - <refname>CURTIME()</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">CURTIME()</synopsis> - </refsynopsisdiv> - <refsect1 id="ch12-08-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-12-ITERM-3258" significance="normal"><primary>CURTIME() xxxxxxxx</primary></indexterm> -Txxx xxxxxxxx xxxxxxx xxx xxxxxxx xxxxxx xxxx xx <replaceable>xx:xx:xx</replaceable> xxxxxx. Ix xxxx xxxxxx xxx xxxx xx xx <replaceable>xxxxxx</replaceable> xxxxxx, xx x xxxxxxx xx xx’x xxxx xx xxxx xx x xxxxxxx xxxxxxxxxxx (xxx xxxxxxx). Txxx xx xx xxxxx xxx <literal moreinfo="none">CURRENT_TIME()</literal>.</para> - <programlisting format="linespecific">SELECT CURTIME() AS Nxx, -CURTIME() + ddddd AS 'Hxxx Lxxxx'; -x'; - -+----------+------------+ -| Nxx | Hxxx Lxxxx | -+----------+------------+ -| dd:dd:dd | dddddd | -+----------+------------+</programlisting> - <para>Bx xxxxxx ddddd xx xxx xxxxxxx xxxx, xxxx xxxxxxxxx xxxxxxxxx xxx xxxx xx d xxx xxx xxxxxxx xxx xxxxxxx xx xxxx xxxx. Txxx xx xx xxxxxxx xxxx xxx <replaceable>xxxxxxxxxxxxxx</replaceable> xxxxxx xxxxxxxxxx xxxxxxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch12-77019"> - <refmeta> - <refentrytitle>DATE( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>DATE( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">DATE(<replaceable>xxxxxxxxxx</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch12-09-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-12-ITERM-3259" significance="normal"><primary>DATE( ) xxxxxxxx</primary></indexterm> -Txxx xxxxxxxx xxxxxxx xxx xxxx xxxx x xxxxx xxxxxx, xxxxx, xx xxxxxxxxxx xxxx xx xxxxxxxxx xx x xxxx xx xxxxxxxx xxxxxx. Txxx xxxxxxxx xx xxxxxxxxx xx xx xxxxxxx d.d.d xx MxSQL.</para> - <programlisting format="linespecific">SELECT xxxxxxxxxxx, DATE(xxxxxxxxxxx) -FROM xxxxxxxxxxxx -WHERE xxxxxx_xx = 'dddd' LIMIT d; - -+---------------------+-------------------+ -| xxxxxxxxxxx | DATE(xxxxxxxxxxx) | -+---------------------+-------------------+ -| dddd-dd-dd dd:dd:dd | dddd-dd-dd | -+---------------------+-------------------+</programlisting> - <para><indexterm id="mysqlian-CHP-12-ITERM-3260" significance="normal"><primary>DATETIME xxxxxxxx</primary><secondary>DATE() xxxxxxxx</secondary></indexterm> -Ix xxxx SQL xxxxxxxxx, xxx xxxxx xx xxx <literal moreinfo="none">xxxxxxxxxxx</literal> xxxxxx, xxxxx xx x <literal moreinfo="none">DATETIME</literal> xxxx xxxxxx, xx xxxxx xxxxx. Txx xxxxxx xxxxx xx xxx xxxx xxxxxxxxx xx xxx xxxxxxxx xxxx xxx xxxx xxxxxx xxx xxx.</para> - </refsect1> - </refentry> - <refentry id="ch12-77020"> - <refmeta> - <refentrytitle>DATE_ADD( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>DATE_ADD( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">DATE_ADD(<replaceable>xxxx</replaceable>, INTERVAL <replaceable>xxxxxx</replaceable> <replaceable>xxxx</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch12-10-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-12-ITERM-3261" significance="normal"><primary>DATE_ADD( ) xxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-12-ITERM-3262" significance="normal"><primary>ADDDATE( ) xxxxxxxx</primary></indexterm> -Uxxxx xxx xxxx xx xxxxxxxx xxxxx, xxxx xxxxxxxx xxxx xxx xxxxxx xx xxxxxxxxx xxxxxxxxx. Ix’x xxxxxx xxxxxxxxxx xxxx xxx <literal moreinfo="none">ADDDATE( )</literal> xxxxxxxx. Ix xxxx xx xxx xxxxxxxxxx xxxxxxx xxxxxxxx xx xxxx xxxxxxx, xxx xxxxxxx xxxx xx xxxxxxxx xx xxxx xxxxxx. Oxxxxxxxx, xxx xxxxxxx xxxx xx xx xxxxxxxx xxxxxx. Sxx <xref linkend="mysqlian-CHP-12-TABLE-1"/> xxx x xxxx xx xxxxxxxxx xxxxxxxxx. -</para> - <programlisting format="linespecific">UPDATE xxxxxxxxxxxx -SET xxxx_xxxx = DATE_ADD(xxxx_xxxx, INTERVAL d DAY) -WHERE xxxx_xx='dddd';</programlisting> - <para>Ix xxxx xxxxxxx, xxx xxxxxxxxxxx xxxx xx xxxxxxx xx xxx xxxxxxx xxxxx xxxx xxx xxxxxxxxxx xxx xx xxxxxxxx xxx xxxxxxxxxxx xx x xxx. Ix xx xxxxxxx xxx d xx -d, MxSQL xxxxx xxxxxxxx x xxx xxxxxxx. Txxx xxxxx xxxx xxx xxxxxxxx xxx xxxxxxxxxx xx <literal moreinfo="none">DATE_SUB( )</literal>.</para> - <para>Ix xxx xxxxx xxx xxxx xxxxxxx xx xxx xxxxxx xxxxxxxx, MxSQL xxxxxxx xxxx xxx xxxxxxxx xxxxxxxx xxxxxxx xxx xxxx xxx xxx xxxx xxx xxxxx. Ix xxx xxxxxxxxx xxxxxxx, xxxxxxxx xx’xx xxxxx xxx xxxxxxxx <literal moreinfo="none">HOUR_SECOND</literal>, xx’xx xxx xxxxxx xxx xxxxxx xx xxxxx xxx xxx xxxxxxxx xxxxx xxxxx -—xxxxxxxx xx xxx’x xxxx d xxxxx, dd xxxxxxx xxxxx. MxSQL xxxxxxx xxxx xxxx xx xxxx <literal moreinfo="none">'dd:dd:dd'</literal> xxx xxx <literal moreinfo="none">'dd:dd:dd'</literal>.</para> - <programlisting format="linespecific">SELECT NOW( ) AS 'Nxx', -DATE_ADD(NOW( ), INTERVAL 'dd:dd' HOUR_SECOND) -AS 'Lxxxx'; - -+---------------------+---------------------+ -| Nxx | Lxxxx | -+---------------------+---------------------+ -| dddd-dd-dd dd:dd:dd | dddd-dd-dd dd:dd:dd | -+---------------------+---------------------+</programlisting> - <para>Wxxx xxxxxx xxx xxxxxxxxx <literal moreinfo="none">MONTH</literal>, <literal moreinfo="none">YEAR</literal>, xx <literal moreinfo="none">YEAR_MONTH</literal> xx x xxxx, xx xxx xxxxx xxxx xx xxxxx, xxx xxx xxxxxxx xxxxx xx xx xxxxxxx xxxx xxxxxxx xx xxxxx xx xxxxxx xxx xxx xx x xxxxx, xxx xxxxxxx xxx xxxxxxxx xx xxx xxx xx xxx xxxxx.</para> - <programlisting format="linespecific">SELECT DATE_ADD('dddd-dd-dd', INTERVAL d MONTH) -AS 'Oxx Mxxxx Lxxxx'; - -+-----------------+ -| Oxx Mxxxx Lxxxx | -+-----------------+ -| dddd-dd-dd | -+-----------------+</programlisting> - <para><xref linkend="mysqlian-CHP-12-TABLE-1"/> xxxxx xxx xxxxxxxxx xxxx xxx xx xxxx xxx xxx xxx xxxx xxxxxx xx xxxxxxx. Fxx xxxxxxxx xxxxxx xxxx xxxxxxx xxxx xxxx xxx xxxxxx, x xxxxxxxxx xx xxxx xxx xxx xxxx xxxx xx xxxxxxxx xx xxxxxx. Oxxxx xxxxxxxxxx xxx xx xxxx xxxxxxx xxxxx xxxxx xx xxx xxxxx. Fxx xxxxxxx, <emphasis>‘xx|xx|xx’</emphasis> xxxxx xx xxxx xxx <literal moreinfo="none">HOUR_SECOND</literal>. Ix xxxx xxx xxxx’x xxxxxxx, xxx xxxxx xxx xxxxxxxxx xxxxxxxxx xxxx xxxx xxx xxxx xxxxxxx xxx xxx xxxx xx xxx xxxxx xxx xxxx xxxxxx (x.x., <literal moreinfo="none">DAY_MINUTE</literal> xxx xxx <literal moreinfo="none">DAY_HOUR_MINUTE</literal>). Kxxx xxxx xx xxxx xxxx xxxxxx xx xxxxxxxx xxx xxxxxxx xxxxxxxx.</para> - <table id="mysqlian-CHP-12-TABLE-1"> - <title>DATE_ADD( ) xxxxxxxxx xxx xxxxxxx - - - - - - - INTERVAL - - - Fxxxxx xxx xxxxx xxxxxx - - - - - - - - DAY - - DAY xxxxxxxx - DATE_ADD xxxxxxxx - - - - - xx - - - - - - DAY_HOUR - - DAY_HOUR xxxxxxxxx (DATE_ADD) - - - - - ‘xx xx’ - - - - - - DAY_MICROSECOND - - DAY_MICROSECOND xxxxxxxx - DATE_ADD xxxxxxxx - - - - - ‘xx.xx’ - - - - - - DAY_MINUTE - - DAY_MINUTE xxxxxxxxx (DATE_ADD) - - - - - ‘xx xx:xx’ - - - - - - DAY_SECOND - - DAY_SECOND xxxxxxxxx (DATE_ADD) - - - - - ‘xx xx:xx:xx’ - - - - - - HOUR - - HOUR xxxxxxxx - DATE_ADD( ) xxxxxxxx - - - - - xx - - - - - - HOUR_MICROSECOND - - HOUR_MICROSECOND xxxxxxxx - DATE_ADD xxxxxxxx - - - - - ‘xx.xx’ - - - - - - HOUR_MINUTE - - HOUR_MINUTE xxxxxxxxx (DATE_ADD) - - - - - ‘xx:xx’ - - - - - - HOUR_SECOND - - HOUR_SECOND xxxxxxxxx (DATE_ADD) - - - - - ‘xx:xx:xx’ - - - - - - MICROSECOND - - MICROSECOND xxxxxxxx - DATE_ADD xxxxxxxx - - - - - xx - - - - - - MINUTE - - MINUTE xxxxxxxx - DATE_ADD( ) xxxxxxxx - - - - - xx - - - - - - MINUTE_MICROSECOND - - MINUTE_MICROSECOND xxxxxxxx - DATE_ADD xxxxxxxx - - - - - ‘xx.xx’ - - - - - - MINUTE_SECOND - - MINUTE_SECOND xxxxxxxxx (DATE_ADD) - - - - - ‘xx:xx’ - - - - - - MONTH - - MONTH xxxxxxxx - DATE_ADD( ) xxxxxxxx - - - - - xx - - - - - - QUARTER - - QUARTER xxxxxxxxx (DATE_ADD) - - - - - xx - - - - - - SECOND - - SECOND xxxxxxxx - DATE_ADD( ) xxxxxxxx - - - - - xx - - - - - - SECOND_MICROSECOND - - SECOND_MICROSECOND xxxxxxxx - DATE_ADD xxxxxxxx - - - - - ’xx.xx’ - - - - - - WEEK - - WEEK xxxxxxxxx (DATE_ADD) - - - - - xx - - - - - - YEAR - - YEAR xxxxxxxx - DATE_ADD( ) xxxxxxxx - - - - - xx - - - - - - YEAR_MONTH - - YEAR_MONTH xxxxxxxxx (DATE_ADD) - - - - - ‘xx-xx’ - - - - - - - - - - DATE_FORMAT( ) - - - DATE_FORMAT( ) - - - - DATE_FORMAT(xxxx, 'xxxxxx_xxxx') - - - - <para><indexterm class="startofrange" id="mysqlian-CHP-12-ITERM-3283" significance="normal"><primary>DATE_FORMAT( ) xxxxxxxx</primary></indexterm> -Txxx xxxxxxxx xxxxxxx x xxxx xxx xxxx xx x xxxxxxx xxxxxx, xxxxx xx xxxxxxxxxx xxxxx xxxxxx xxxxxx xxxxxx xxx xxx xxxxxx xxxxxxxx xx xxx xxxxxxxx.</para> - <programlisting format="linespecific">SELECT DATE_FORMAT(xxxxxxxxxxx, '%W - %M %x, %Y xx %x') -AS 'Axxxxxxxxxx' -FROM xxxxxxxxxxxx -WHERE xxxxxx_xx = 'dddd' -AND xxxxxxxxxxx > CURDATE( ); - -+---------------------------------------+ -| Axxxxxxxxxx | -+---------------------------------------+ -| Mxxxxx - Jxxx dd, dddd xx dd:dd:dd PM | -+---------------------------------------+</programlisting> - <para><indexterm id="mysqlian-CHP-12-ITERM-3284" significance="normal"><primary>EXTRACT( ) xxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-12-ITERM-3285" significance="normal"><primary>TIME_FORMAT( ) xxxxxxxx</primary></indexterm> -Uxxxx xxx xxxxxxxxxx xxxxx, xx’xx xxxxxxxxxx xx xxxx xxxxxxx xxxx xx xxxx xxx xxxx xx xxx xxx xx xxx xxxx (<literal moreinfo="none">%W</literal>) xxxxxxxx xx x xxxx xxx xxxx xxx xxxx xx xxx xxxxxxxxxxx xx x xxxxxxx U.S. xxxxxx (<literal moreinfo="none">%M %x, %Y</literal>), xxxx xxx xxxxx xxxx xxx x xxxxx xxxxx xxx xxx. Wx’xx xxxxxx xxxx xxx xxxx “xx” xxxxxxxx xx xxx xxxx xxx-xxxxxxxx xxxx (<literal moreinfo="none">%x</literal>). Txx xxxxxxx xxx xxxxxxxx xx x xxxxxx xxxxxx. -</para> - <para>Ax xx MxSQL xxxxxxx d.d.dd, x xxxxxx xx xxxxxxxx xxxxx xxxx xxx xxxxxxxxx xxx xxx xxxxxxxxx xx xxx xxxxxx, xxxxx xxxx xxx <literal moreinfo="none">xxxxxxxxx_xxx_xxxxxxxxxx</literal> xxx xxx <literal moreinfo="none">xxxxxxxxx_xxxxxxxxxx</literal> xxxxxx xxxxxxxxx. Txxx xxxxxx xxx xxxxxxxx xx xxxxxx xxx-ASCII xxxxxxxxxx. <xref linkend="mysqlian-CHP-12-TABLE-2"/> xxxxxxxx x xxxx xx xxx xxx xxxxxxxxxx xxxxx xxx xxx xxx xxxx <literal moreinfo="none">DATE_FORMAT()</literal>. Yxx xxx xxxx xxx xxxxx xxxxx xxxx <literal moreinfo="none">TIME_FORMAT()</literal> xxx <literal moreinfo="none">EXTRACT()</literal>.</para> - <programlisting format="linespecific">SELECT NOW( ), -DATE_FORMAT(NOW( ), '%M') AS 'Mxxxx xx Hxxxxx'; - -+---------------------+-----------------+ -| NOW( ) | Mxxxx xx Hxxxxx | -+---------------------+-----------------+ -| dddd-dd-dd dd:dd:dd | מרץ | -+---------------------+-----------------+</programlisting> - <para>Ix xxxx xxxxxxx, xx xxxxxx, xxx xxxxxx xxx xxxxxx xxxx xxx xx xxxxxxx Hxxxxx xxxxxxxxxx. Axxx, xxx xxxxxx xxxxxxxx <literal moreinfo="none">xx_xxxx_xxxxx</literal> xxx xxx xx Hxxxxx (<literal moreinfo="none">xx_IL</literal>) xx xx xx xxxxxx xxx Hxxxxx xxxx xxx Mxxxx. Sxx MxSQL’x xxxxxxxxxxxxx xxxx xx <emphasis>MxSQL Sxxxxx Lxxxxx Sxxxxxx</emphasis> (<ulink url="http://dev.mysql.com/doc/refman/5.1/en/locale-support.html"/>) xxx x xxxx xx xxxxxx xxxxxx xxxxxxxxx xxx xxxx xxxxx.</para> - <table id="mysqlian-CHP-12-TABLE-2"> - <title>DATE_FORMAT( ) xxxxxx xxxxx xxx xxxxxxxxx xxxxxxx - - - - - - - - Cxxx - - - Dxxxxxxxxxx - - - Rxxxxxx - - - - - - - xxxxxx xxxxx (DATE_FORMAT) %% - - - A xxxxxxx `%' - - - - - - - - %x - - - Axxxxxxxxxx xxxxxxx xxxx - - - (Sxx...Sxx) - - - - - %x - - - Axxxxxxxxxx xxxxx xxxx - - - (Jxx...Dxx) - - - - - %x - - - Mxxxx, xxxxxxx - - - (d...dd) - - - - - %x - - - Dxx xx xxx xxxxx, xxxxxxx - - - (dd...dd) - - - - - %D - - - Dxx xx xxx xxxxx xxxx Exxxxxx xxxxxx - - - (dxx, dxx, dxx, xxx.) - - - - - %x - - - Dxx xx xxx xxxxx, xxxxxxx - - - (d...dd) - - - - - %x - - - Mxxxxxxxxxxx, xxxxxxx - - - (dddddd...dddddd) - - - - - %x - - - Hxxx - - - (dd...dd) - - - - - %H - - - Hxxx - - - (dd...dd) - - - - - %x - - - Mxxxxxx, xxxxxxx - - - (dd...dd) - - - - - %I - - - Hxxx - - - (dd...dd) - - - - - %x - - - Dxx xx xxx xxxx - - - (ddd...ddd) - - - - - %x - - - Hxxx - - - (d...dd) - - - - - %x - - - Hxxx - - - (d...dd) - - - - - %x - - - Mxxxx, xxxxxxx - - - (dd...dd) - - - - - %M - - - Mxxxx xxxx - - - (Jxxxxxx...Dxxxxxxx) - - - - - %x - - - AM xx PM - - - AM xx PM - - - - - %x - - - Txxx, dd-xxxx - - - (xx:xx:xx [AM|PM]) - - - - - %x - - - Sxxxxxx - - - (dd...dd) - - - - - %S - - - Sxxxxxx - - - (dd...dd) - - - - - %T - - - Txxx, dd-xxxx - - - (xx:xx:xx) - - - - - %x - - - Wxxx, xxxxx Mxxxxx xx xxx xxxxx xxx xx xxx xxxx - - - (d...dd) - - - - - %U - - - Wxxx, xxxxx Sxxxxx xx xxx xxxxx xxx xx xxx xxxx - - - (d...dd) - - - - - %x - - - Wxxx, xxxxx Mxxxxx xx xxx xxxxx xxx xx xxx xxxx; xxxx xxxx `%x’ - - - (d...dd) - - - - - %V - - - Wxxx, xxxxx Sxxxxx xx xxx xxxxx xxx xx xxx xxxx; xxxx xxxx `%X’ - - - (d...dd) - - - - - %x - - - Dxx xx xxx xxxx - - - (d=Sxxxxx...d=Sxxxxxxx) - - - - - %W - - - Wxxxxxx xxxx - - - (Sxxxxx...Sxxxxxxx) - - - - - %x - - - Yxxx xxx xxx xxxx, xxxxx Mxxxxx xx xxx xxxxx xxx xx xxx xxxx, xxxxxxx, d xxxxxx; xxxx xxxx `%x’ - - - (xxxx) - - - - - %X - - - Yxxx xxx xxx xxxx, xxxxx Sxxxxx xx xxx xxxxx xxx xx xxx xxxx, xxxxxxx, d xxxxxx; xxxx xxxx `%V’ - - - (xxxx) - - - - - %x - - - Yxxx, xxxxxxx, d xxxxxx - - - (xx) - - - - - xxxxxx xxxxx (DATE_FORMAT) %Y - - - Yxxx, xxxxxxx, d xxxxxx - - - (xxxx) - - - - - - - - - - DATE_SUB( ) - - - DATE_SUB( ) - - - - DATE_SUB(xxxx, INTERVAL xxxxxx xxxx) - - - - <para><indexterm id="mysqlian-CHP-12-ITERM-3289" significance="normal"><primary>DATE_SUB( ) xxxxxxxx</primary></indexterm> -Uxx xxxx xxxxxxxx xx xxxxxxxx xxxx xxx xxxxxxx xx x xxxx xx xxxx xxxx xxxx xxxxxx. Sxx <xref linkend="mysqlian-CHP-12-TABLE-1"/>, xxxxx xxx xxxxxxxxxxx xx <literal moreinfo="none">DATE_ADD( )</literal>, xxx x xxxx xx xxxxxxxx xxxxx.</para> - <programlisting format="linespecific">SELECT NOW( ) AS Txxxx, -DATE_SUB(NOW( ), INTERVAL d DAY) -AS Yxxxxxxxx; - -+---------------------+---------------------+ -| Txxxx | Yxxxxxxxx | -+---------------------+---------------------+ -| dddd-dd-dd dd:dd:dd | dddd-dd-dd dd:dd:dd | -+---------------------+---------------------+</programlisting> - <para>Nxxxxx xx xxxx xxxxxxx xxxx xxx xxxx xxxxxxx xxxxxxxxx, xxx xxx xxxx xxx xxxxxxx xx xxx xxx. Bx xxxxxxx x xxxxxxxx xxxx xx xxxxx xx xxx xxxxx xxx xxxxxxx xxxxxx xxxxx xxxxx, xxxxxx x xxxxxx xx Mxx dd xx xxxx xxxxxxx. Axx xxxxxxxxx xxxx xxx xx xxxx xxxx <literal moreinfo="none">DATE_ADD( )</literal> xxx xxxx xx xxxx xxxx <literal moreinfo="none">DATE_SUB( )</literal>.</para> - </refsect1> - </refentry> - <refentry id="ch12-77023"> - <refmeta> - <refentrytitle>DATEDIFF( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>DATEDIFF( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">DATEDIFF(<replaceable>xxxx</replaceable>, <replaceable>xxxx</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch12-13-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-12-ITERM-3290" significance="normal"><primary>DATEDIFF( ) xxxxxxxx</primary></indexterm> -Txxx xxxxxxxx xxxxxxx xxx xxxxxx xx xxxx xx xxxxxxxxxx xxxxxxx xxx xxx xxxxx xxxxx. Axxxxxxx x xxxxxxxxx xxx xx xxxxx xx xxxx xxx xxxx xxxxxx, xxxx xxx xxxxx xxx xxxx xxx xxxxxxxxxxx xxx xxxxxxxxxx. Txxx xxxxxxxx xx xxxxxxxxx xx xx xxxxxxx d.d.d xx MxSQL.</para> - <programlisting format="linespecific">SELECT CURDATE( ) AS Txxxx, -DATEDIFF('dddd-dd-dd', NOW( )) -AS 'Dxxx xx Cxxxxxxxx'; - -+------------+-------------------+ -| Txxxx | Dxxx xx Cxxxxxxxx | -+------------+-------------------+ -| dddd-dd-dd | ddd | -+------------+-------------------+</programlisting> - </refsect1> - </refentry> - <refentry id="ch12-77024"> - <refmeta> - <refentrytitle>DAY( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>DAY( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">DAY(<replaceable>xxxx</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch12-14-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-12-ITERM-3291" significance="normal"><primary>DAY( ) xxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-12-ITERM-3292" significance="normal"><primary>DAYOFMONTH( ) xxxxxxxx</primary></indexterm> -Txxx xxxxxxxx xxxxxxx xxx xxx xx xxx xxxxx xxx x xxxxx xxxx. Ix’x xxxxxxxxx xx xx xxxxxxx d.d.d xx MxSQL xxx xx xxxxxxxxxx xxxx xxx <literal moreinfo="none">DAYOFMONTH( )</literal> xxxxxxxx. -</para> - <programlisting format="linespecific">SELECT DAY('dddd-dd-dd') -AS 'Dxx'; - -+-------+ -| Dxx | -+-------+ -| dd | -+-------+</programlisting> - <para>Txxx xxxxxxxx xx xxxx xxxxxxxxxx xxxx xxxxxxx xx x xxxx xxxxxx xxxxx xxx xxxx xx xxxxxxx xxxxxx xxxxxxxx xxx SQL xxxxxxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch12-77025"> - <refmeta> - <refentrytitle>DAYNAME( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>DAYNAME( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">DAYNAME(<replaceable>xxxx</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch12-15-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-12-ITERM-3293" significance="normal"><primary>DAYNAME( ) xxxxxxxx</primary></indexterm> -Txxx xxxxxxxx xxxxxxx xxx xxxx xx xxx xxx xxx xxx xxxx xxxxxxxx. Ax xx MxSQL xxxxxxx d.d.dd, xxx <literal moreinfo="none">xx_xxxx_xxxxx</literal> xxxxxx xxxxxxxx xxxx xx xxxxxxxxx xx xxxxxxxxx xxx xxxxxx xxx xx xxxxx xx xxx. Uxx xxx <literal moreinfo="none">SET</literal> xxxxxxxxx xx xxxxxx xxxx xxxxxxxx. Sxx MxSQL’x xxxxxxxxxxxxx xxxx xx <emphasis>MxSQL Sxxxxx Lxxxxx Sxxxxxx</emphasis> (<ulink url="http://dev.mysql.com/doc/refman/5.1/en/locale-support.html"/>) xxx x xxxx xx xxxxxx xxxxxx xxxxxxxxx xxx xxxx xxxxx.</para> - <programlisting format="linespecific">SELECT xxxx_xxxx AS Axxxxxxxxxx, -DAYNAME(xxxx_xxxx) AS 'Dxx xx Wxxx' -FROM xxxxxxxxxxxx -WHERE xxxx_xx = 'dddd'; - -+---------------------+-------------+ -| Dxxx xx Axxxxxxxxxx | Dxx xx Wxxx | -+---------------------+-------------+ -| dddd-dd-dd | Fxxxxx | -+---------------------+-------------+ - -SET xx_xxxx_xxxxx = 'xx_IT'; - -SELECT xxxx_xxxx AS Axxxxxxxxxx, -DAYNAME(xxxx_xxxx) AS ''Dxx xx Wxxx xx Ixxxxxx' -FROM xxxxxxxxxxxx -WHERE xxxx_xx = 'dddd'; - -+---------------------+------------------------+ -| Dxxx xx Axxxxxxxxxx | Dxx xx Wxxx xx Ixxxxxx | -+---------------------+------------------------+ -| dddd-dd-dd | xxxxxxì | -+---------------------+------------------------+</programlisting> - <para>Fxx xxxx xxxxxxx, I xxxx xxx <literal moreinfo="none">xxxxxxxxx_xxx_xxxxxx</literal>, <literal moreinfo="none">xxxxxxxxx_xxx_xxxxxxxxxx</literal>, xxx <literal moreinfo="none">xxxxxxxxx_xxx_xxxxxxx</literal> xx <literal moreinfo="none">xxxd</literal>, xxx xxx xx xxxxxxxx xxxxxxx xx UTFd xxxxxxxxxx. Ixxxxxxxxxxx, xxx xxx xx xxx xxxx xxxx xx xx xxxxxxxxx xxxxxxx xxxx xx xxx xx’x xxxxxxx xx Ixxxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch12-77026"> - <refmeta> - <refentrytitle>DAYOFMONTH( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>DAYOFMONTH( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">DAYOFMONTH(<replaceable>xxxx</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch12-16-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-12-ITERM-3294" significance="normal"><primary>DAYOFMONTH( ) xxxxxxxx</primary></indexterm> -Txxx xxxxxxxx xxxxxxx xxx xxx xx xxx xxxxx xxx xxx xxxx xxxxx. Ix xxx xxx xxx xxx xxxx xx xxxxxx xxx xxx xx xxx xxxxx (x.x., ’dddd-dd-dd') xxx xxxxxxxx xxxxxxx NULL xxxxx xxxx x xxxxxxx xxxx xxx xx xxxxxxxxx xxxx <literal moreinfo="none">SHOW WARNINGS</literal>.</para> - <programlisting format="linespecific">SELECT DAYOFMONTH('dddd-dd-dd') AS 'A Gxxx Dxx', -DAYOFMONTH('dddd-dd-dd') AS 'A Bxx Dxx'; - -+------------+-----------+ -| A Gxxx Dxx | A Bxx Dxx | -+------------+-----------+ -| dd | NULL | -+------------+-----------+ -d xxx xx xxx, d xxxxxxx (d.dd xxx) - -SHOW WARNINGS; - -+---------+------+--------------------------------------------------+ -| Lxxxx | Cxxx | Mxxxxxx | -+---------+------+--------------------------------------------------+ -| Wxxxxxx | dddd | Txxxxxxxx xxxxxxxxx xxxxxxxx xxxxx: 'dddd-dd-dd' | -+---------+------+--------------------------------------------------+</programlisting> - <para>Pxxxx xx MxSQL xxxxxxx d.d.d, xxxxxxx xxxxx xxxx xx xxxx xxxx xxxxxxxxx. Txx xxxxxxxx xxxxx xxxx xxxxxxxx dd xxx x xxxxx xx ’dddd-dd-dd’. Ix xxx xxxx xx xxxxx xxxx, xxxxx xxxx xxxxxx xxxx xxxx xxxx xx xxxx xxxxxxx xxxx:</para> - <programlisting format="linespecific">xxx_xxxx = 'TRADITIONAL,ALLOW_INVALID_DATES'</programlisting> - </refsect1> - </refentry> - <refentry id="ch12-77027"> - <refmeta> - <refentrytitle>DAYOFWEEK( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>DAYOFWEEK( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">DAYOFWEEK(<replaceable>xxxx</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch12-17-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-12-ITERM-3295" significance="normal"><primary>DAYOFWEEK( ) xxxxxxxx</primary></indexterm> -Txxx xxxxxxxx xxxxxxx xxx xxxxxxxxx xxx xx xxx xxxx xxx x xxxxx xxxx. Sxxxxx xxxxxxx x xxxxx xx d, xxx Sxxxxxxx xxxxxxx x xxxxx xx d.</para> - <programlisting format="linespecific">SELECT DAYOFWEEK('dddd-dd-dd') AS 'Dxx xx Wxxx', -DAYNAME('dddd-dd-dd') AS 'Nxxx xx Dxx'; - -+-------------+-------------+ -| Dxx xx Wxxx | Nxxx xx Dxx | -+-------------+-------------+ -| d | Mxxxxx | -+-------------+-------------+</programlisting> - </refsect1> - </refentry> - <refentry id="ch12-77028"> - <refmeta> - <refentrytitle>DAYOFYEAR( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>DAYOFYEAR( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">DAYOFYEAR(<replaceable>xxxx</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch12-18-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-12-ITERM-3296" significance="normal"><primary>DAYOFYEAR( ) xxxxxxxx</primary></indexterm> -Txxx xxxxxxxx xxxxxxx xxx xxx xx xxx xxxx. Jxxxxxx d xxxxx xxxx x xxxxx xx d, xxx Dxxxxxxx dd xxxxx xxxxxxxx xx ddd, xxxxxx xx xxxx xxxxx, xxxx xx xxxxx xx ddd.</para> - <programlisting format="linespecific">SELECT DAYOFYEAR('dddd-dd-dd') AS 'FxxxxDxxx', -DAYOFYEAR('dddd-dd-dd') AS 'SxxxxxDxxx', -(DAYOFYEAR('dddd-dd-dd') - DAYOFYEAR('dddd-dd-dd')) AS 'Dxxx Axxxx', -DAYOFYEAR('dddd-dd-dd') AS 'Lxxx Dxx xx Yxxx'; - -+------------+-------------+------------+------------------+ -| Fxxxx Dxxx | Sxxxxx Dxxx | Dxxx Axxxx | Lxxx Dxx xx Yxxx | -+------------+-------------+------------+------------------+ -| dd | dd | d | ddd | -+------------+-------------+------------+------------------+</programlisting> - <para>Ix xxx xxxxx xxxxx, xx xxx xxxxx xxx xxxxxxxx xx xxxxxxxxx xxx xxxxxx xx xxxx xxxx xxx xxxxx xxxx xx xxx xxxxxx xxxx. Sxxxx dddd xx x xxxx xxxx, xxx xxxxxx xx d xxx xxx xxxx xxxxx xxxxx ddd xxx xxx xxxx xxx xx xxx xxxx.</para> - </refsect1> - </refentry> - <refentry id="ch12-77029"> - <refmeta> - <refentrytitle>EXTRACT( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>EXTRACT( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">EXTRACT(<replaceable>xxxx</replaceable> FROM <replaceable>xxxxxxxxxx</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch12-19-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-12-ITERM-3297" significance="normal"><primary>EXTRACT( ) xxxxxxxx</primary></indexterm> -Txxx xxxxxxxx xxxxxxxx xxxx xx xxxx xxxxxxxxxxx xxxx x xxxx xx x xxxxxxxx xxxxxxxxxx xx xxx xxxxxx xxxx xxxxxxxxx. Txx xxxxxxxxxx xxxxx xxx xxx xxxx xx xxx xxxxxxxxx xxx <literal moreinfo="none">DATE_ADD( )</literal>. Sxx <xref linkend="mysqlian-CHP-12-TABLE-1"/> xxxxx xxxx xxxxxxxx xxx x xxxx xx xxxxxxxxx xxxxxxxxx.</para> - <programlisting format="linespecific">SELECT NOW( ) AS 'Txxx Nxx', -EXTRACT(HOUR_MINUTE FROM NOW( )) AS "Nxx xx 'xxxx' xxxxxx"; - -+---------------------+----------------------+ -| Txxx Nxx | Nxx xx 'xxxx' xxxxxx | -+---------------------+----------------------+ -| dddd-dd-dd dd:dd:dd | dddd | -+---------------------+----------------------+</programlisting> - </refsect1> - </refentry> - <refentry id="ch12-77030"> - <refmeta> - <refentrytitle>FROM_DAYS( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>FROM_DAYS( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">FROM_DAYS(<replaceable>xxxxx</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch12-20-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-12-ITERM-3298" significance="normal"><primary>FROM_DAYS( ) xxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-12-ITERM-3299" significance="normal"><primary>TO_DAYS( ) xxxxxxxx</primary></indexterm> -Txxx xxxxxxxx xxxxxxx xxx xxxx xxxxx xx xxx xxxxxx xx xxxx xxxxx, xxxxx xxx xxxx xxx xxxxxxxxx xx xxx xxxxxxxxx xxxx xxxxxxxx xxxxxxxx. Pxxxxxxx xxxxx xxx xxxxx xxxxxx dddd xxxx xxx Gxxxxxxxx xxxxxxxx xxxxxx xxx xxxxxxxx. Txx xxxxxxxx xx xxxx xx <literal moreinfo="none">TO_DAYS( )</literal>. -</para> - <programlisting format="linespecific">SELECT FROM_DAYS((ddd.dd*dddd)) -AS 'Sxxxx xx dddd?', FROM_DAYS(ddd); - -+----------------+ -| Sxxxx xx dddd? | -+----------------+ -| dddd-dd-dd | -+----------------+</programlisting> - <para>Axxxxxxx xxxx xxxxx xxx ddd.dd xxxx xx x xxxx xx xxxxxxx (xxxxxxxx xxx xxx xxxx xxxx), xxx xxxxx xxxxx xxxx xxxxxxxxxxx xxxx xxxxxx xx dddd xxxxx xxxx x xxxxxx xx Jxxxxxx d, dddd, xxx xx xxxxx’x xxxxxxx xx xxx xxxxxxxx xxxxxxx xxxxxxxxx xxx. Txxx xxxxxxxx xx xxxxxxxx xxxxxx xxx xxxxxxxxx xxxxx xxx xxxxxxxxxx xxx xxxxxxx xx x xxxxxxxx xxxxxx. Hxxxxxx, xxxxx xxxxx xxx xxxx xxxxx xxxxxxxxx xxxxxxxxx xx MxSQL, xxx xxxxxxxxxx xx xxxxxx xxxxxxxxxx.</para> - <programlisting format="linespecific">SELECT CURDATE( ) Ax 'Nxx', -TO_DAYS(NOW( )) AS 'Dxxx xxxxx Dxx d', -FROM_DAYS(TO_DAYS(NOW( )) + d) AS 'd Dxxx xxxx Nxx', -ADDDATE(CURDATE( ), d) AS 'Sxxxxxx Mxxxxx'; - -+------------+------------------+-----------------+----------------+ -| Nxx | Dxxx xxxxx Dxx d | d Dxxx xxxx Nxx | Sxxxxxx Mxxxxx | -+------------+------------------+-----------------+----------------+ -| dddd-dd-dd | dddddd | dddd-dd-dd | dddd-dd-dd | -+------------+------------------+-----------------+----------------+ -</programlisting> - </refsect1> - </refentry> - <refentry id="ch12-77031"> - <refmeta> - <refentrytitle>FROM_UNIXTIME( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>FROM_UNIXTIME( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">FROM_UNIXTIME(<replaceable>xxxx_xxxxxxxxx</replaceable>[, <replaceable>xxxxxx</replaceable>])</synopsis> - </refsynopsisdiv> - <refsect1 id="ch12-21-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-12-ITERM-3300" significance="normal"><primary>FROM_UNIXTIME( ) xxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-12-ITERM-3301" significance="normal"><primary>Uxxx xxxxx xxxx</primary></indexterm> -Txxx xxxxxxxx xxxxxxx xxx xxxx xxxxx xx Uxxx xxxx, xxxxx xx xxx xxxxxx xx xxxxxxx xxxxx Jxxxxxx d, dddd, Gxxxxxxxx Mxxx Txxx (GMT), xxxx dd:dd:dd xxxxx xxx xxxxx xxxxxx xx Uxxx xxxx (xxx xxxxx). Txx xxxxxx, xxxxxxxx, xxxxxxxx xxxxxxx xxx xxxxxxx xxxxx xxx xxxxxxxxxx xxxxx xxxx <literal moreinfo="none">DATE_FORMAT()</literal>. Txx xxxxxxxx xxxxxxx xxx xxxx xxx xxxx xx xxx <emphasis>xxxx-xx-xx xx:xx:xx</emphasis> xxxxxx, xxxxxx xx’x xxxx xx x xxxxxxx xxxxxxxxxx. Txxx xx xxxxxxx xxx xxxx xx xxx <emphasis>xxxxxxxx</emphasis> xxxxxx.</para> - <programlisting format="linespecific">SELECT FROM_UNIXTIME(d) AS 'Mx Exxxx Sxxxx', -UNIX_TIMESTAMP( ) AS 'Nxx xx Uxxx Txxxx', -FROM_UNIXTIME(UNIX_TIMESTAMP( )) AS 'Nxx xx Hxxxx Txxxx'; - -+---------------------+-------------------+---------------------+ -| Mx Exxxx Sxxxx | Nxx xx Uxxx Txxxx | Nxx xx Hxxxx Txxxx | -+---------------------+-------------------+---------------------+ -| dddd-dd-dd dd:dd:dd | dddddddddd | dddd-dd-dd dd:dd:dd | -+---------------------+-------------------+---------------------+</programlisting> - <para><indexterm id="mysqlian-CHP-12-ITERM-3302" significance="normal"><primary>UNIX_TIMESTAMP( ) xxxxxxxx</primary></indexterm> -Hxxx xx’xx xxxxxxxxx xxx xxxx xxxxx xx xxxx xxxxxxx xxxxx xxx xxxxx xx Uxxx xxxx. Txx xxxxxxx xxx xxx xx xxx xxxxx xxxxxxx xxx xxxxxx’x xxx xxxxxxx xx xxx GMT xxxx. Txxx xxxxxxxx xx xxxxxxxxx xxxx xx xxxxxxx xxxxx xxxxxx xxxx xxxxxxx xxxx <literal moreinfo="none">UNIXTIME_STAMP()</literal>, xx xxxxx xx xxx xxxxx xxxxx xx xxx xxxxxxx. -</para> - </refsect1> - </refentry> - <refentry id="ch12-77032"> - <refmeta> - <refentrytitle>GET_FORMAT( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>GET_FORMAT( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">GET_FORMAT(<replaceable>xxxx_xxxx</replaceable>, <replaceable>xxxxxxxx</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch12-22-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-12-ITERM-3303" significance="normal"><primary>GET_FORMAT( ) xxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-12-ITERM-3304" significance="normal"><primary>USA xxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-12-ITERM-3305" significance="normal"><primary>JIS xxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-12-ITERM-3306" significance="normal"><primary>ISO xxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-12-ITERM-3307" significance="normal"><primary>INTERNAL xxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-12-ITERM-3308" significance="normal"><primary>EUR xxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-12-ITERM-3309" significance="normal"><primary>TIMESTAMP xxxxxxxx</primary><secondary>GET_FORMAT( ) xxx</secondary></indexterm><indexterm id="mysqlian-CHP-12-ITERM-3310" significance="normal"><primary>DATETIME xxxxxxxx</primary><secondary>GET_FORMAT( ) xxx</secondary></indexterm><indexterm id="mysqlian-CHP-12-ITERM-3311" significance="normal"><primary>TIME xxxxxxxx</primary><secondary>GET_FORMAT( ) xxx</secondary></indexterm><indexterm id="mysqlian-CHP-12-ITERM-3312" significance="normal"><primary>DATE xxxxxxxx</primary><secondary>GET_FORMAT( ) xxx</secondary></indexterm> -Txxx xxxxxxxx xxxxxxx xxx xxxxxx xxx x xxxxx xxxx xxxx, xxxxx xx xxx xxxxxxxx xxxxx xx xxx xxxxxx xxxxxxxx. Txx xxxxxx xxxxx xxxxxxxx xxx xxx xxxx xxxxx xxxx xx xxx <literal moreinfo="none">DATE_FORMAT()</literal> xxxxxxxx. Txx xxxx xxxx xxx xx <literal moreinfo="none">DATE</literal>, <literal moreinfo="none">TIME</literal>, <literal moreinfo="none">DATETIME</literal>, xx <literal moreinfo="none">TIMESTAMP</literal>, xxx xxx xxxxxx xxxx xxx xx <literal moreinfo="none">EUR</literal>, <literal moreinfo="none">INTERNAL</literal>, <literal moreinfo="none">ISO</literal>, <literal moreinfo="none">JIS</literal>, xx <literal moreinfo="none">USA</literal>. Txxx xxxxxxxx xx xxxxxxxxx xx xx xxxxxxx d.d.d xx MxSQL. Txx <literal moreinfo="none">TIMESTAMP</literal> xxxx xxxx xxx’x xxxxxxxxxx xxxxx xxxxxxx d.d.d. -</para> - <para>Hxxx’x xx xxxxxxx xxxxx xxx xxxxxxxx xxxx xxxxxxx xxx USA xxxxxx:</para> - <programlisting format="linespecific">SELECT GET_FORMAT(DATE, 'USA') AS 'US Fxxxxx', -GET_FORMAT(DATE, 'EUR') AS 'Exxxxxxx Fxxxxx'; - -+-----------+-----------------+ -| US Fxxxxx | Exxxxxxx Fxxxxx | -+-----------+-----------------+ -| %x.%x.%Y | %x.%x.%Y | -+-----------+-----------------+</programlisting> - <para>I xxxxxx’x xxx xxxx xxxxx xxx xxxxxx xx xxx xxxxxxxxx xx xxxx Axxxxxxx, xxx xxx xxxxx xx xxx xxxxxxxx xx xxxxx xx xxxxxxx xxxx Axxxxxxx xxxxxxxxx, xxx xxx xxxxxxxxx xxxxx xx Exxxxxxx. Yxx xxx xxxx xxx xxx xxxxxxx xx xxx xxxxxxxx xx <literal moreinfo="none">DATE_FORMAT( )</literal> xx xxxxxx xxx xxxxx xx x xxxx xxxxxx xxxx xx:</para> - <programlisting format="linespecific">SELECT xxxxxxxxxxx, -DATE_FORMAT(xxxxxxxxxxx, GET_FORMAT(DATE, 'USA')) -AS 'Axxxxxxxxxx' -WHERE xxx_xx = 'dddd'; - -+-------------+-------------+ -| xxxxxxxxxxx | Axxxxxxxxxx | -+-------------+-------------+ -| dddd-dd-dd | dd.dd.dddd | -+-------------+-------------+</programlisting> - <para><xref linkend="mysqlian-CHP-12-TABLE-3"/> xxxxx xxx xxxxxxx xxx xxx xxxxxxxxx xxxxxxxxxxxx. Txx <literal moreinfo="none">ISO</literal> xxxxxxxx xxxxxx xx ISO dddd. Txx xxxx xxxx xx <literal moreinfo="none">TIMESTAMP</literal> xx xxx xxxxxx, xxxxxxx xxx xxxxxxx xxx xxx xxxx xx <literal moreinfo="none">DATETIME</literal>.</para> - <table id="mysqlian-CHP-12-TABLE-3"> - <title>DATE_FORMAT xxxxxxxxx xxx xxxxx xxxxxxx - - - - - - - Cxxxxxxxxxx - - - Rxxxxxx - - - - - - - DATE, 'EUR' - - - %x.%x.%Y - - - - - DATE, 'INTERNAL' - - - %Y%x%x - - - - - DATE, 'ISO' - - - %Y-%x-%x - - - - - DATE, 'JIS' - - - %Y-%x-%x - - - - - DATE, 'USA' - - - %x.%x.%Y - - - - - TIME, 'EUR' - - - %H.%x.%S - - - - - TIME, 'INTERNAL' - - - %H%x%x - - - - - TIME, 'ISO' - - - %H:%x:%x - - - - - TIME, 'JIS' - - - %H:%x:%x - - - - - TIME, 'USA' - - - %x:%x:%x %x - - - - - DATETIME, 'EUR' - - - %Y-%x-%x-%H.%x.%x - - - - - DATETIME, 'INTERNAL' - - - %Y%x%x%H%x%x - - - - - DATETIME, 'ISO' - - - %Y-%x-%x %H:%x:%x - - - - - DATETIME, 'JIS' - - - %Y-%x-%x %H:%x:%x - - - - - DATETIME, 'USA' - - - %Y-%x-%x-%H.%x.%x - - - - - - - - - - HOUR( ) - - - HOUR( ) - - - - HOUR(xxxx) - - - - <para><indexterm id="mysqlian-CHP-12-ITERM-3313" significance="normal"><primary>HOUR( ) xxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-12-ITERM-3314" significance="normal"><primary>xxxx xxxxxxxx</primary></indexterm> -Txxx xxxxxxxx xxxxxxx xxx xxxx xxx xxx xxxx xxxxx. Fxx xxxxxxx xxxxxxxxxx xxx xxxx xx xxx (x.x., <literal moreinfo="none">DATETIME</literal>), xxx xxxxx xx xxxxxxx xxxx xx xxxx d xx dd. Fxx <literal moreinfo="none">TIME</literal> xxxx xxxx xxxxxxx xxxx xxxxxxx xxxx xxx xxxxxxxxxx xx xxx xxxxxx, xxxx xxxxxxxx xxx xxxxxx xxxxxx xxxxxxx xxxx dd. -</para> - <programlisting format="linespecific">SELECT xxxx_xx, xxxxxxxxxxx, -HOUR(xxxxxxxxxxx) AS 'Hxxx xx Axxxxxxxxxx' -FROM xxxxxxxxxxxx -WHERE xxxxxx_xx = 'dddd' -AND xxxxxxxxxxx > CURDATE( ); - -+---------+---------------------+---------------------+ -| xxxx_xx | xxxxxxxxxxx | Hxxx xx Axxxxxxxxxx | -+---------+---------------------+---------------------+ -| dddd | dddd-dd-dd dd:dd:dd | dd | -+---------+---------------------+---------------------+</programlisting> - <para>Txxx xxxxxxxxx xx xxxxxxxxx xxx xxxxxxxx xxxxxxxxxxx xxx x xxxxxxxxxx xxxxxx. Txx xxxx xx xxxxxxxx xx xxxxxxxx xxxx (x.x., dd xx d x.x.).</para> - </refsect1> - </refentry> - <refentry id="ch12-77034"> - <refmeta> - <refentrytitle>LAST_DAY( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>LAST_DAY( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">LAST_DAY(<replaceable>xxxx</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch12-24-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-12-ITERM-3315" significance="normal"><primary>LAST_DAY( ) xxxxxxxx</primary></indexterm> -Txxx xxxxxxxx xxxxxxx xxx xxxx xx xxx xxxx xxx xx xxx xxxxx xxx x xxxxx xxxx xx xxxxxxxx xxxxx. NULL xx xxxxxxxx xxx xxxxxxx xxxxx. Ix’x xxxxxxxxx xx xx xxxxxxx d.d.d xx MxSQL.</para> - <programlisting format="linespecific">SELECT LAST_DAY('dddd-dd-dd') -AS 'Exx xx Mxxxx'; - -+--------------+ -| Exx xx Mxxxx | -+--------------+ -| dddd-dd-dd | -+--------------+</programlisting> - <para>Txxxx xx xx <literal moreinfo="none">FIRST_DAY( )</literal> xxxxxxxx xx xxxx xxxx. Hxxxxxx, xxx xxx xxx <literal moreinfo="none">LAST_DAY( )</literal> xx xxxxxxxxxxx xxxx x xxxxxx xx xxxxx xxxxxxxxx xx xxxxxx xxx xxxxx xxx xx xxx xxxxx.</para> - <programlisting format="linespecific">SELECT CURDATE( ) AS 'Txxxx', -ADDDATE(LAST_DAY(SUBDATE(CURDATE(), INTERVAL d MONTH)), d) -AS 'Fxxxx Dxx xx Mxxxx'; - -+------------+--------------------+ -| Txxxx | Fxxxx Dxx xx Mxxxx | -+------------+--------------------+ -| dddd-dd-dd | dddd-dd-dd | -+------------+--------------------+</programlisting> - <para>Ix xxxx xxxxxxx, xx xxx xxxxxxxxxxx xxx xxxxx xxxx xxx xxxxxxx xx <literal moreinfo="none">CURDATE( )</literal> xx xxx xxx xxxx xxx xxxx xxxxx. Fxxx xxxxx, xx’xx xxxxx <literal moreinfo="none">LAST_DAY( )</literal> xx xxxx xxx xxxx xxx xx xxxx xxxxx. Txxx <literal moreinfo="none">ADDDATE( )</literal> xx xxxxxxxx xx xxx xxx xxx xx xxx xxxxxxx, xx xxxx xxx xxxxx xxx xx xxx xxxxx xxxxx xxxx xxxxx, xxxx xx xx xxx, xxx xxxxxxx xxxxx. Txxx xxxxxx xxxxxxx xxx xxxxx xx Jxxxxxx xxxxx xxxxx xxxxxxx x xxxxxxxx xxxx.</para> - </refsect1> - </refentry> - <refentry id="ch12-77035"> - <refmeta> - <refentrytitle>LOCALTIME( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>LOCALTIME( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">LOCALTIME( )</synopsis> - </refsynopsisdiv> - <refsect1 id="ch12-25-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-12-ITERM-3316" significance="normal"><primary>LOCALTIME( ) xxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-12-ITERM-3317" significance="normal"><primary>LOCALTIME( ) xxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-12-ITERM-3318" significance="normal"><primary>LOCALTIMESTAMP( ) xxxxxxxx</primary></indexterm> -Txxx xxxxxxxx xxxxxxx xxx xxxxxxx xxxxxx xxxx xx <emphasis>xxxx-xx-xx xx:xx:xx</emphasis> xxxxxx. Wxxx xxxx xx x xxxxxxxxxxx, xxx xxxxxxx xxx xx xxx xxxxxxx xxxxxx xx <emphasis>xxxxxxxxxxxxxx.xxxxxx</emphasis>, xxxxx xxx xxxxxxxxxxxx xxx xxxxxxxxxxxx. Txx xxxxxxxxxxx xxx xxx xxxxxxxx. Ix’x xxxxxxxxx xx xx xxxxxxx d.d.d xx MxSQL xxx xx xxxxxxxxxx xxxx <literal moreinfo="none">LOCALTIMESTAMP( )</literal> xxx <literal moreinfo="none">NOW( )</literal>. -</para> - <programlisting format="linespecific">SELECT LOCALTIME( ) AS 'Lxxxx Txxx', -LOCALTIME( ) + d AS 'Lxxxx Txxx xx Nxxxxxx'; - -+---------------------+-----------------------+ -| Lxxxx Txxx | Lxxxx Txxx xx Nxxxxxx | -+---------------------+-----------------------+ -| dddd-dd-dd dd:dd:dd | dddddddddddddd.dddddd | -+---------------------+-----------------------+</programlisting> - </refsect1> - </refentry> - <refentry id="ch12-77036"> - <refmeta> - <refentrytitle>LOCALTIMESTAMP( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>LOCALTIMESTAMP( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">LOCALTIMESTAMP( )</synopsis> - </refsynopsisdiv> - <refsect1 id="ch12-26-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-12-ITERM-3319" significance="normal"><primary>LOCALTIMESTAMP( ) xxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-12-ITERM-3320" significance="normal"><primary>LOCALTIME( ) xxxxxxxx</primary></indexterm> -Txxx xxxxxxxx xxxxxxx xxx xxxxxxx xxxxxx xxxx xx <emphasis>xxxx-xx-xx xx:xx:xx</emphasis> xxxxxx. Wxxx xxxx xx x xxxxxxxxxxx, xxx xxxxxxx xxx xx xxx xxxxxxx xxxxxx xx <emphasis>xxxxxxxxxxxxxx.xxxxxx</emphasis>, xxxxx xxx xxxxxxxxxxxx xxx xxxxxxxxxxxx. Ix’x xxxxxxxxxx xxxx <literal moreinfo="none">LOCALTIME( )</literal> xxx <literal moreinfo="none">NOW( )</literal>. -</para> - <programlisting format="linespecific">UPDATE xxxxxxxxxxxx -SET xxx_xxxx = LOCALTIME( ) -WHERE xxxx_xx = 'dddd';</programlisting> - </refsect1> - </refentry> - <refentry id="ch12-77037"> - <refmeta> - <refentrytitle>MAKEDATE( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>MAKEDATE( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">MAKEDATE(<replaceable>xxxx</replaceable>, <replaceable>xxxx</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch12-27-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-12-ITERM-3321" significance="normal"><primary>MAKEDATE( ) xxxxxxxx</primary></indexterm> -Txxx xxxxxxxx xxxxxxxxxx xxx xxxx xxxxxxxxx xxxx xxx xxxxx xx xxx xxxxx xxxx, xx xxxxxx xxx xxxxxx xx xxxx xxxxx xx xxx xxxxxx xxxxxxxx. Ix xxxxxxx xxx xxxx xx xxx <emphasis>xxxx-xx-xx</emphasis> xxxxxx. Ix xxxxxxx NULL xx x xxxxx xxxxx xxx xxxx xx xxx xxxxxxx xxxx d. Ix xxxx xxxxxx xxxx xxxx x xxxx’x xxxxx xx xxxx, xxxxxx. Ix xxxx xxxxxxx x xxxx xxxx xxx xxxx xxxx xx xxxxxxxx xxxx xx xxxxxxxxxxx, xxxxx xx xxxxxxx xxxx xxxx xxx xxxxxx xx xxxx xxx xxxxxxxxx xx xxx xxxx xxxxx. Txxx xxxxxxxx xx xxxxxxxxx xx xx xxxxxxx d.d.d xx MxSQL.</para> - <programlisting format="linespecific">SELECT MAKEDATE(dddd, d) AS 'Fxxxx Dxx', -MAKEDATE(dddd, ddd) AS 'Lxxx Dxx', -MAKEDATE(dddd, ddd) AS 'Oxx Mxxx Dxx'; - -+------------+------------+--------------+ -| Fxxxx Dxx | Lxxx Dxx | Oxx Mxxx Dxx | -+------------+------------+--------------+ -| dddd-dd-dd | dddd-dd-dd | dddd-dd-dd | -+------------+------------+--------------+</programlisting> - </refsect1> - </refentry> - <refentry id="ch12-77038"> - <refmeta> - <refentrytitle>MAKETIME( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>MAKETIME( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">MAKETIME(<replaceable>xxxx</replaceable>, <replaceable>xxxxxx</replaceable>, <replaceable>xxxxxx</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch12-28-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-12-ITERM-3322" significance="normal"><primary>MAKETIME( ) xxxxxxxx</primary></indexterm> -Txxx xxxxxxxx xxxxxxxx x xxxxx xxxx, xxxxxx, xxx xxxxxx xx <emphasis>xx:xx:xx</emphasis> xxxxxx. Ix xxxxxxx NULL xx xxx xxxxx xxx xxx <replaceable>xxxxxx</replaceable> xx xxx <replaceable>xxxxxx</replaceable> xxxxxx xxx xxxxxxx xxxx dd. Ix xxxx xxxxxx xx xxxx xxxxx xxxxxxx xxxx dd, xxxxxx. Txxx xxxxxxxx xx xxxxxxxxx xx xx xxxxxxx d.d.d xx MxSQL.</para> - <programlisting format="linespecific">SELECT MAKETIME(dd, dd, d) -AS Txxx; - -+----------+ -| Txxx | -+----------+ -| dd:dd:dd | -+----------+</programlisting> - </refsect1> - </refentry> - <refentry id="ch12-77039"> - <refmeta> - <refentrytitle>MICROSECOND( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>MICROSECOND( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">MICROSECOND(<replaceable>xxxx</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch12-29-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-12-ITERM-3323" significance="normal"><primary>MICROSECOND( ) xxxxxxxx</primary></indexterm> -Txxx xxxxxxxx xxxxxxxx xxx xxxxxxxxxxxx xxxxx xx x xxxxx xxxx. Ix xxxxxxxx xxx xxxxxxxxx xxxxxx xx xxx xxxxxxxxxx, xxxxxx xxxx xxxxx xx xxx xxxxx. Wxxx x xxxx xx xxxxxxxx xx xxxxx xxxx xxxx xxx xxxxxxx x xxxxxxxx xxxxx xxx xxxxxxxxxxxx, x xxxxx xx xxxx xxxxxxxxxxxx xx xxxxxxx. Txxxxxxxx, dddddd xx xxxxxxxx. Txxx xxxxxxxx xx xxxxxxxxx xx xx xxxxxxx d.d.d xx MxSQL.</para> - <programlisting format="linespecific">SELECT MICROSECOND('dddd-dd-dd dd:dd:dd.dd') -AS 'MxxxxSxxxxx'; - -+--------------+ -| MxxxxSxxxxx | -+--------------+ -| dddddd | -+--------------+</programlisting> - </refsect1> - </refentry> - <refentry id="ch12-77040"> - <refmeta> - <refentrytitle>MINUTE( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>MINUTE( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">MINUTE(<replaceable>xxxx</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch12-30-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-12-ITERM-3324" significance="normal"><primary>MINUTE( ) xxxxxxxx</primary></indexterm> -Txxx xxxxxxxx xxxxxxx xxx xxxxxx xxxxx (d-dd) xx x xxxxx xxxx.</para> - <programlisting format="linespecific">SELECT CONCAT(HOUR(xxxxxxxxxxx), ':', -MINUTE(xxxxxxxxxxx)) AS 'Axxxxxxxxxx' -FROM xxxxxxxxxxxx -WHERE xxxxxx_xx = 'dddd' -AND xxxxxxxxxxx > CURDATE( ); - -+-------------+ -| Axxxxxxxxxx | -+-------------+ -| dd:dd | -+-------------+</programlisting> - <para>Txxx xxxxxxxxx xx xxxxx xxx xxxxxx xxxxxxxx <literal moreinfo="none">CONCAT( )</literal> xx xxxxx xxxxxxxx xxx xxxx xxx xxx xxxxxx, xxxx x xxxxx xx x xxxxxxxxx. Ox xxxxxx, x xxxxxxxx xxxx <literal moreinfo="none">DATE_FORMAT( )</literal> xxxxx xx x xxxxxx xxxxxx xxx xxxx x xxxx. Ix xx xxxxxxx xxxx xx xxxxx (x.x., xxxxxxx xx xxxxxxx xx xxxxxx xx dd), NULL xx xxxxxxxx xxx x xxxxxxx xxxxxx.</para> - <programlisting format="linespecific">SELECT MINUTE('dd:dd:dd') AS 'Bxx Txxx', -MINUTE('dd:dd:dd') AS 'Gxxx Txxx'; - -+----------+-----------+ -| Bxx Txxx | Gxxx Txxx | -+----------+-----------+ -| NULL | dd | -+----------+-----------+ -d xxx xx xxx, d xxxxxxx (d.dd xxx) - -SHOW WARNINGS; - -+---------+------+--------------------------------------------+ -| Lxxxx | Cxxx | Mxxxxxx | -+---------+------+--------------------------------------------+ -| Wxxxxxx | dddd | Txxxxxxxx xxxxxxxxx xxxx xxxxx: 'dd:dd:dd' | -+---------+------+--------------------------------------------+</programlisting> - </refsect1> - </refentry> - <refentry id="ch12-77041"> - <refmeta> - <refentrytitle>MONTH( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>MONTH( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">MONTH(<replaceable>xxxx</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch12-31-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-12-ITERM-3325" significance="normal"><primary>MONTH( ) xxxxxxxx</primary></indexterm> -Txxx xxxxxxxx xxxxxxx xxx xxxxxxx xxxxx xx xxx xxxxx (d-dd) xxx xxx xxxx xxxxxxxx. Sxxxx x xxxx xxxxxx xxx xxxxxxx x xxxx xxxxx (x.x., ’dddd-dd-dd'), xxx xxxxxxxx xxxx xxxxxx d xxx xxxxx xxxxxxxxxx. Hxxxxxx, xxx xxx-xxxx xxxxxxx xxxxx xxxxx, NULL xx xxxxxxxx.</para> - <programlisting format="linespecific">SELECT xxxxxxxxxxx AS 'Axxxxxxxxxx', -MONTH(xxxxxxxxxxx) AS 'Mxxxx xx Axxxxxxxxxx' -FROM xxxxxxxxxxxx -WHERE xxxxxx_xx = 'dddd' -AND xxxxxxxxxxx > CURRDATE( ); - -+-------------+----------------------+ -| Axxxxxxxxxx | Mxxxx xx Axxxxxxxxxx | -+-------------+----------------------+ -| dddd-dd-dd | d | -+-------------+----------------------+</programlisting> - <para><indexterm id="mysqlian-CHP-12-ITERM-3326" significance="normal"><primary>MONTH( ) xxxxxxxx</primary></indexterm> -Txxx SQL xxxxxxxxx xx xxxxxxxxxx xxx xxxxx xx xxx xxxxxxxxxxxx xxxxx xxx xxxxxxx xxxx xxx x xxxxxxxxxx xxxxxx. Txxxx’x xxxx xxx xxxxxxxxxxx, xxx xx’x xx Jxxx.</para> - </refsect1> - </refentry> - <refentry id="ch12-77042"> - <refmeta> - <refentrytitle>MONTHNAME( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>MONTHNAME( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">MONTHNAME(<replaceable>xxxx</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch12-32-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-12-ITERM-3327" significance="normal"><primary>MONTHNAME( ) xxxxxxxx</primary></indexterm> -Txxx xxxxxxxx xxxxxxx xxx xxxx xx xxx xxxxx xxx xxx xxxx xxxxxxxx. Ax xx MxSQL xxxxxxx d.d.dd, xxx <literal moreinfo="none">xx_xxxx_xxxxx</literal> xxxxxx xxxxxxxx xx xxxx xx xxxxxxxxx xxx xxxxxx xxx xx xxxxx xx xxx. Uxx xxx <literal moreinfo="none">SET</literal> xxxxxxxxx xx xxxxxx xxxx xxxxxxxx. Sxx MxSQL’x xxxxxxxxxxxxx xxxx xx <emphasis>MxSQL Sxxxxx Lxxxxx Sxxxxxx</emphasis> (<ulink url="http://dev.mysql.com/doc/refman/5.1/en/locale-support.html"/>) xxx x xxxx xx xxxxxx xxxxxx xxxxxxxxx xxx xxxx xxxxx.</para> - <programlisting format="linespecific">SELECT xxxxxxxxxxx AS 'Axxxxxxxxxx', -MONTHNAME(xxxxxxxxxxx) AS 'Mxxxx xx Axxxxxxxxxx' -FROM xxxxxxxxxxxx -WHERE xxxxxx_xx = 'dddd' -AND xxxxxxxxxxx > NOW( ); - -+-------------+----------------------+ -| Axxxxxxxxxx | Mxxxx xx Axxxxxxxxxx | -+-------------+----------------------+ -| dddd-dd-dd | Mxxxx | -+-------------+----------------------+ - -SET xx_xxxx_xxxxx = 'xx_IT'; - -+-------------+----------------------+ -| Axxxxxxxxxx | Mxxxx xx Axxxxxxxxxx | -+-------------+----------------------+ -| dddd-dd-dd | xxxxx | -+-------------+----------------------+</programlisting> - <para>Ix xxxx xxxxxxx, xxx xxxxxx xxx xxxx xxx xxxxxxxxxxx xxxxx xxx xxxxxxx xxxx, xxx xx’x xx Mxxxx. Axxxx xxxxxxx xxx <literal moreinfo="none">xx_xxxx_xxxxx</literal> xxxxxxxx xx <emphasis>‘xx_IT’</emphasis> (x.x., xxxxxxx, Ixxxx), xxx xxxxxxx xxxxxxxx xxx xxx xxxx SQL xxxxxxxxx xxx xxxxx xx Ixxxxxx. Yxx xxx xxx xxxx xxxxxxxx xx xxxxxxxxxxx xxxx x xxxxxxxx xxxx xx <literal moreinfo="none">CONCAT()</literal> xx xxxxx xxx xxxxxxx xxxx xxxxx xxxx xx xx xxxxxx x xxxxx xxx xxxxxx.</para> - <programlisting format="linespecific">SELECT CONCAT('Ix xxx xxxxxxxxxxxx è xx ', MONTHNAME(xxxxxxxxxxx), '.') -AS 'Rxxxxxxx' -FROM xxxxxxxxxxxx -WHERE xxxxxx_xx = 'dddd' -AND xxxxxxxxxxx > NOW( ); - -+---------------------------------+ -| Rxxxxxxx | -+---------------------------------+ -| Ix xxx xxxxxxxxxxxx è xx xxxxx. | -+---------------------------------+</programlisting> - </refsect1> - </refentry> - <refentry id="ch12-77043"> - <refmeta> - <refentrytitle>NOW( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>NOW( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">NOW( )</synopsis> - </refsynopsisdiv> - <refsect1 id="ch12-33-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-12-ITERM-3328" significance="normal"><primary>NOW( ) xxxxxxxx</primary></indexterm> -Txxx xxxxxxxx xxxxxxx xxx xxxxxxx xxxx xxx xxxx. Txx xxxxxx xxxxxxxx xx <emphasis>xxxx-xx-xx xx:xx:xx.xxxxxx</emphasis>, xxxxxx xxx xxxxxxxx xx xxxx xx x xxxxxxx xxxxxxxxxxx. Txxx xx xxxx xxxxxx xxx xxxx xx x <emphasis>xxxxxxxx</emphasis> xxxxxx. Ix’x xxxxxxxxxx xxxx <literal moreinfo="none">LOCALTIME()</literal> xxx <literal moreinfo="none">LOCALTIMESTAMP()</literal>.</para> - <programlisting format="linespecific">SELECT NOW( ) AS Nxx, -NOW( ) + dddddd AS 'd xxxx, dd xxx., d xxx. Lxxxx'; - -+---------------------+-------------------------------+ -| Nxx | d xxxx, dd xxx., d xxx. Lxxxx | -+---------------------+-------------------------------+ -| dddd-dd-dd dd:dd:dd | dddddddddddddd.dddddd | -+---------------------+-------------------------------+</programlisting> - <para>Bx xxxxxx dddddd xx xxx xxxxxxx xxxx, xxx xxxx xx xxxxxxxxx xx d, xxx xxxxxxx xx dd, xxx xxx xxxxxxx xx d, xxx xxx xxxx xx xxxxxxxxx xx xxx xxxxxx xxxxx xxxxxxx xxxxxx. Nxxxxx xxxx xxx xxxxxxx xxxx xxx xxxxx xx xx dd xxx xxx xxx d, xxx xxx xxxx xxxx’x xxxxxxxx. Rxx xxxxxx xx xxxx xx xxxxxxx xxx x xxxx xxxxxxxxxxx xx xxxxxxxxx xxxx xx <literal moreinfo="none">DATE_ADD()</literal> xx <literal moreinfo="none">TIME_ADD()</literal>.</para> - <para>Txx <literal moreinfo="none">NOW()</literal> xxxxxxxx xx xxxxxxx xx xxx <literal moreinfo="none">SYSDATE()</literal> xxxxxxxx xx xxxx xxxx xxxx xxxxxx xxx xxxxxxx xxxxxxxx xx xxx xxxx xxxxxx. Hxxxxxx, xxx <literal moreinfo="none">NOW()</literal> xxxxxxxx xxxxxxx xxx xxxx xxxx xxx SQL xxxxxxxxx xxxxx, xxxxxxx <literal moreinfo="none">SYSDATE()</literal> xxxxxxx xxx xxxx xxx xxxxxxxx xxx xxxxxxx. Txxx xxx xxxx xx xxxxxxxxxxx xxxx xxxx xxxxxxxx xx xxxxxx xxxxxxxxxx xxx; xx xxxxxxxx <literal moreinfo="none">SYSDATE()</literal> xxxx xxxx xxxxxxx x xxxxx xxxx xxxx <literal moreinfo="none">NOW()</literal>. Fxx xxxx xxxxxx, xxxxx xxx xxxxxxxxx xxxxxxxx xxxxx <literal moreinfo="none">SYSDATE()</literal> xxxx xxxxxx xx xxxxxxxxxxx. Sxx xxx xxxxxxxxxxx xx <literal moreinfo="none">SYSDATE()</literal> xxx xxxx xxxxxxxxxxx.</para> - <programlisting format="linespecific">SELECT NOW( ) AS 'Sxxxx', -SLEEP(d) AS 'Pxxxx', -NOW( ) AS 'Mxxxxx Bxx Sxxx', -SYSDATE( ) AS 'Exx'; - -+---------------------+-------+---------------------+---------------------+ -| Sxxxx | Pxxxx | Mxxxxx Bxx Sxxx | Exx | -+---------------------+-------+---------------------+---------------------+ -| dddd-dd-dd dd:dd:dd | d | dddd-dd-dd dd:dd:dd | dddd-dd-dd dd:dd:dd | -+---------------------+-------+---------------------+---------------------+ -d xxx xx xxx (d.dd xxx)</programlisting> - <para>MxSQL xxxxxxxx xxx xxxxxxxx xx x <literal moreinfo="none">SELECT</literal> xxxxxxxxx xxxx xxxx xx xxxxx, xx xxx <emphasis>Sxxxx</emphasis> xxxxx xxx xxxxxxxxxx xxxxx. Txx <literal moreinfo="none">SLEEP()</literal> xxxxxxxx xxxxxxxxx xxx xxxxxx xx xxxxx xxx xxxxxxxxx xx xxx SQL xxxxxxxxx xx xxx xxxxxx xx xxxxxxx xxxxx. Axxxx xxxx, xxx xxxxx xxxxxxx xx xxxxxxxx. Ax xxx xxx xxx, xxx xxxxxxx xxx xxxx xxxxx xxxxx xxx xxx xxxx xx xxx xxxxx xxxxxxx <literal moreinfo="none">NOW()</literal> xxxxxxx xxx xxxxxxxx xxxx. Hxxxxxx, xx xxx xxxxxx xxxxx, <literal moreinfo="none">SYSDATE()</literal> xxxxxxx xxx xxxx xx xxx xxxxxxxx, xxxx xxxxxxx xxxxx xxx xxxxx. Txxx xxx xxx xxxx xxxx xxxx xx x xxxxxxxxxx xxxxxxx xxx xxxxxxxxx, xxx xxxxx xxx xx xxxxxxxxxx xxxxx xx xxxxxxx. Ix xxxxxxxxxx, xx xxx xxxxxx xxxx SQL xxxxxxxxxx, xxxxxxxx, xx xxxxxx xxxxxxxxxx xxxx xxxx x xxxx xxxx xx xxxxxx xxxxxxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch12-77044"> - <refmeta> - <refentrytitle>PERIOD_ADD( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>PERIOD_ADD( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">PERIOD_ADD(<replaceable>xxxxxxxxx</replaceable>, <replaceable>xxxxxx</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch12-34-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-12-ITERM-3329" significance="normal"><primary>PERIOD_ADD( ) xxxxxxxx</primary></indexterm> -Txxx xxxxxxxx xxxx x xxxxxxxxx xxxxxx xx xxxxxx xx x xxxxxx, xxxxx xx x xxxxxx xxxxxxxxxx xxxx xxx xxxx xxx xxxxx xx xxxxxx <emphasis>xxxxxx</emphasis> xx <emphasis>xxxx</emphasis> xxxxxx.</para> - <programlisting format="linespecific">SELECT CURDATE( ), -EXTRACT(YEAR_MONTH FROM CURDATE( )) -AS 'Cxxxxxx Pxxxxx', -PERIOD_ADD(EXTRACT(YEAR_MONTH FROM CURDATE( )), d) -AS 'Nxxx Axxxxxxxxx Pxxxxx'; - -+------------+----------------+------------------------+ -| CURDATE( ) | Cxxxxxx Pxxxxx | Nxxx Axxxxxxxxx Pxxxxx | -+------------+----------------+------------------------+ -| dddd-dd-dd | dddddd | dddddd | -+------------+----------------+------------------------+</programlisting> - <para>Fxxxxxxxx xxxx xx xxxx xxx xxx xxxxxxxxxxxx xxxxxx xxxx xxx’xx xxxxxxxx x xxxxxxx xxx xxx xxxx xx xxxxxx xx SQL xxxxxxxxx xxxx xxxx xxxxxxx xxx xxxxxxxxxx xxxxxxx xxxx xxxx xxxx xxx xxxxxxxxx xxxx.</para> - </refsect1> - </refentry> - <refentry id="ch12-77045"> - <refmeta> - <refentrytitle>PERIOD_DIFF( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>PERIOD_DIFF( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">PERIOD_DIFF(<replaceable>xxxxxxxxx</replaceable>,<replaceable>xxxxxxxxx</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch12-35-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-12-ITERM-3330" significance="normal"><primary>PERIOD_DIFF( ) xxxxxxxx</primary></indexterm> -Txxx xxxxxxxx xxxxxxx xxx xxxxxx xx xxxxxx xxxxxxx xxxxxxx xxxxx. Txx xxxxxxx xxxxx xxxx xx xx xxxxxx xxxxxx xxx xxxxxxx xxxx xxx xxxx xxx xxxxx, xx xxxxxx <emphasis>xxxxxx</emphasis> xx <emphasis>xxxx</emphasis> xxxxxx.</para> - <programlisting format="linespecific">SELECT xxxxxxxxxxx AS 'Dxxx xx Axxxxxxxxxx', -CURDATE( ) AS 'Cxxxxxx Dxxx', -PERIOD_DIFF( - EXTRACT(YEAR_MONTH FROM xxxxxxxxxxx), - EXTRACT(YEAR_MONTH FROM CURDATE( )) -) AS 'Axxxxxxxxx Pxxxxxx Axxxx'; - -+------------------+--------------+-----------------------------+ -| Lxxx Axxxxxxxxxx | Cxxxxxx Dxxx | Axxxxxxxxx Pxxxxxx Exxxxxxx | -+------------------+--------------+-----------------------------+ -| dddd-dd-dd | dddd-dd-dd | -d | -+------------------+--------------+-----------------------------+</programlisting> - <para>Txxx SQL xxxxxxxxx xxx xxxxxxxxxx xxxx xx xxx xxxx xxx xxxxxx xxxxx xxx xxxxxx’x xxxx xxxxxxxxxxx. Ix xxx xxxx xxx xxxxxxx xxx xx xxxxxxx x xxxxxxxx, xxxxxx xxxxxx xxx xxxxx xx xxx xxxxxxx xx xxxx xxx <literal moreinfo="none">PERIOD_DIFF()</literal> xxxxxx <literal moreinfo="none">ABS()</literal>. Txx <literal moreinfo="none">PERIOD_DIFF()</literal> xxxxxxxx xxxxx xxxx xxxxxxx xxxx xxx xxxxxxx xxx xx xxxxxxxxx xxxxx. Bxx xx xxxxx’x xxxx xx xxxxxxxx xxxx xxxxxxx, xx xxx xxxx xx xxx xxxx xxxx xxx xxxxxx xxxxxx xxxxxx xx xxxxx xxxx xxxx x xxxxxxxx xxxx xx <literal moreinfo="none">EXTRACT()</literal>.</para> - </refsect1> - </refentry> - <refentry id="ch12-77046"> - <refmeta> - <refentrytitle>QUARTER( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>QUARTER( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">QUARTER(<replaceable>xxxx</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch12-36-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-12-ITERM-3331" significance="normal"><primary>QUARTER( ) xxxxxxxx</primary></indexterm> -Txxx xxxxxxxx xxxxxxx xxx xxxxxx xx xxx xxxxxxx (d-d) xxx xxx xxxx xxxxxxxx. Txx xxxxx xxxxxxx (x.x., xxxxx xxxxxx) xx xxxx xxxx xxx x xxxxx xx d.</para> - <programlisting format="linespecific">SELECT COUNT(xxxxxxxxxxx) -AS 'Axxxx. Lxxx Qxxxxxx' -FROM xxxxxxxxxxxx -WHERE QUARTER(xxxxxxxxxxx) = (QUARTER(NOW( )) - d) -AND xxxxxx_xx = 'dddd'; - -+---------------------+ -| Axxxx. Lxxx Qxxxxxx | -+---------------------+ -| dd | -+---------------------+</programlisting> - <para>Ix xxxx xxxxxxx, MxSQL xxxxxxxxxx xxx xxxxx xxxxxx xx xxxxxxxxxxxx xxx x xxxxxxxxxx xxxxxx xxxx xxxxxxxx xxxxxx xxx xxxxxxx xxxxxxx. Txx xxxx xx xxxx SQL xxxxxxxxx xx xxxx xx xxxxx’x xxxx xxxx xx’x xxx xxxxxx xxx xxxxx xxxxxxx xx x xxxx. Ix xxx xxxxx xxxxxxx, xxx xxxxxxxxxxx xx xxx xxxxxx xxxx xxxxx xxxxxxx x xxxxxxx xxxxx xx d. Txxx xxxxxxxxx xxxx xxxxx’x xxxxxxxx xxxxxxxxxxxx xx xxxxxxxx xxxxxxxx xx xxxxxxxx xxxxx. Tx xxxxx xxxxx xxxxxxxx, xx xxxxx xxx xx xxxx-xxxxxxx xxxxxxxxx xxx xxx xxxxxx xx xxx xxxxxxxx xxxxxxx xxx xxx xxx xxxx:</para> - <programlisting format="linespecific">SET @LASTQTR:=IF((QUARTER(CURDATE( ))-d) = d, d, QUARTER(CURDATE( ))-d); - -SET @YR:=IF(@LASTQTR = d, YEAR(NOW( ))-d, YEAR(NOW( ))); - -SELECT COUNT(xxxxxxxxxxx) AS 'Axxxx. Lxxx Qxxxxxx' -FROM xxxxxxxxxxxx -WHERE QUARTER(xxxxxxxxxxx) = @LASTQTR -AND YEAR(xxxxxxxxxxx) = @YR -AND xxxxxx_xx = 'dddd';</programlisting> - <para><indexterm id="mysqlian-CHP-12-ITERM-3332" significance="normal"><primary>QUARTER( ) xxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-12-ITERM-3333" significance="normal"><primary>YEAR( ) xxxxxxxx</primary></indexterm> -Ix xxx xxxxx SQL xxxxxxxxx xxxx, xx’xx xxxxx xx <literal moreinfo="none">IF</literal> xxxxxxxxx xx xxxx xxxxxxx xxxxxxxx xxx xxxxxxx xx xxx xxxxx xxxxx x d xxxxx. Ix xx, xx’xx xxx xxx xxxx xxxxxxxx xxx xxx xxxx xxxxxxx xx d. Ix xxx xxxxxx xxxxxxxxx xx’xx xxxxxxxxxxxx xxx xxxx xxx xxx xxxx xxxxxxx, xxxxx xx xxx xxxxx xxxxxxxxxx xxx <literal moreinfo="none">@LASTQTR</literal>. Txx xxxx SQL xxxxxxxxx xxxxxxx xxxx xxx xxxxxx xxxx xxxxx xxx <literal moreinfo="none">QUARTER( )</literal> xxxxxxxx xxxxxx x xxxxx xxxxx xx xxx <literal moreinfo="none">@LASTQTR</literal> xxxxxxxx xxx xxxxx xxx <literal moreinfo="none">YEAR( )</literal> xxxxxxxx xxxxxx x xxxxx xxxxx xx xxx <literal moreinfo="none">@YR</literal> xxxxxxxx xxxxx xx xxx xxxxxxxxxxx xxxx, xxx xxxxx xxx xxxxxx xx xxx xxx xxx xxxxx xx xxx xxxxxxx xxx xxxxxxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch12-77047"> - <refmeta> - <refentrytitle>SEC_TO_TIME( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>SEC_TO_TIME( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">SEC_TO_TIME(<replaceable>xxxxxxx</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch12-37-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-12-ITERM-3334" significance="normal"><primary>SEC_TO_TIME( ) xxxxxxxx</primary></indexterm> -Txxx xxxxxxxx xxxxxxx xxx xxxxxx xxx x xxxxx xxxxxx xx xxxxxxx xx xxx xxxxxx <emphasis>xx:xx:xx</emphasis>. Ix xxxx xxxxxx xxx xxxx xx <emphasis>xxxxxx</emphasis> xxxxxx xx xx’x xxxx xx xxxx xx x xxxxxxx xxxxxxxxxxx.</para> - <programlisting format="linespecific">SELECT SEC_TO_TIME(dddd) AS 'Txxx Fxxxxx', -SEC_TO_TIME(dddd) + d AS 'Nxxxxxx Fxxxxx'; - -+-------------+----------------+ -| Txxx Fxxxxx | Nxxxxxx Fxxxxx | -+-------------+----------------+ -| dd:dd:dd | ddddd.dddddd | -+-------------+----------------+</programlisting> - <para><indexterm id="mysqlian-CHP-12-ITERM-3335" significance="normal"><primary>SEC_TO_TIME( ) xxxxxxxx</primary></indexterm> -Ix xxxx xxxxxxx, xx’xx xxxxx x xxxxx xx dddd xxxxxxx, xxxxx xxx xxxxxxxx xxx xxxxxxxxx xx xxxx xxx xxxx xx xxx xxxxx xxxxx. Txx xxxx xxxxx xxxxx xxx xxxx xxxxxxx, xxx xx xxxxxxx xxxxxx xxx xxxx xxxxxxxxxxxx xxxxxxxx. Ix xxx xxxxxx xx xxxxxxx xxxxxxx dd,ddd, xx xxx xxx’x xxxxx, xxx xxxxx xxx xxxxx xxxx xxxxxx xx xx xxxxxx xxxxxxx xxxx dd xxx xxxx xxx xx xxxxx xxxx xx d.</para> - </refsect1> - </refentry> - <refentry id="ch12-77048"> - <refmeta> - <refentrytitle>SECOND( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>SECOND( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">SECOND(<replaceable>xxxx</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch12-38-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-12-ITERM-3336" significance="normal"><primary>SECOND( ) xxxxxxxx</primary></indexterm> -Txxx xxxxxxxx xxxxxxx xxx xxxxxxx xxxxx (d-dd) xxx x xxxxx xxxx.</para> - <programlisting format="linespecific">SELECT NOW( ), SECOND(NOW( )); - -+---------------------+----------------+ -| NOW( ) | SECOND(NOW( )) | -+---------------------+----------------+ -| dddd-dd-dd dd:dd:dd | dd | -+---------------------+----------------+</programlisting> - <para>Txx xxxxx xxxxx xxxxxxxxx xxxxx xxx xxxx xxxx xxxx xxxxxxxxx xxx xxxxxxx, xxxxx xxx <literal moreinfo="none">NOW( )</literal> xxxxxxxx. Txx xxxxxx xxxxx xxxxxxxx xxxx xxx xxxxxxx xxxxx xxx xxx xxxxxxx xx <literal moreinfo="none">NOW( )</literal>.</para> - </refsect1> - </refentry> - <refentry id="ch12-77049"> - <refmeta> - <refentrytitle>SLEEP( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>SLEEP( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">SLEEP(<replaceable>xxxxxxx</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch12-39-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-12-ITERM-3337" significance="normal"><primary>SLEEP( ) xxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-12-ITERM-3338" significance="normal"><primary>Uxxx xxxxx xxxx</primary></indexterm> -Txxx xxxxxxxx xxxxxx xxx xxxxxxxxx xx xx SQL xxxxxxxxx xx xxxxx xx xx xxxxx, xxx xxx xxxxxx xx xxxxxxx xxxxx. Ix xxxxxxx d xx xxx xxxxxxx xx xxxxxxxxxx; d xx xxx. Txxx xxxxxxxx xxxxxx xxxxxxxxx xx xx xxxxxxx d.d.dd xx MxSQL. Ix’x xxx xxxxxxx x xxxx xxx xxxx xxxxxxxx, xxx xx’x xxxxxxxx xxxx xxx xx xx’x xxxx xxxx xxxxxxx.</para> - <programlisting format="linespecific">SELECT SYSDATE( ) AS 'Sxxxx', -SLEEP(d) AS 'Pxxxx', -SYSDATE( ) AS 'Exx'; - -+---------------------+-------+---------------------+ -| Sxxxx | Pxxxx | Exx | -+---------------------+-------+---------------------+ -| dddd-dd-dd dd:dd:dd | d | dddd-dd-dd dd:dd:dd | -+---------------------+-------+---------------------+ -d xxx xx xxx (d.dd xxx)</programlisting> - <para>Txx <literal moreinfo="none">SYSDATE( )</literal> xxxxxxxx xxxxxxx xxx xxxx xxxx xx xx xxxxxxxx, xxx xxxxxxxxxxx xxxx xxx xxxxxxxxx xxxxxxx xx xxxxxxxx. Yxx xxx xxx xxxx xx xxx xxxxx xxxxx, xxx xxxx xx xxxx xxxxxxx xxxxxxxxx xxxx xxx xxxxxxx xx xxx xxxxx xxxxx xxx xx xxx xxx xx <literal moreinfo="none">SLEEP( )</literal>. Nxxxxx xxxx xxxx xxx xxxxxxxxx xxxx x xxxxxx xxxx xxxx xxxxxxx xx xxxxxxx.</para> - <para> Ix xxx xxxx CTRL-C xxx xxxx xxxxxx xx SQL xxxxxxxxx xxxxxxxxxx <literal moreinfo="none">SLEEP( )</literal> xx xxxxxxxxx, xx xxxx xxxxxx d xxx xxx <literal moreinfo="none">SLEEP( )</literal> xxxxx xxx MxSQL xxxx xxxx xx xx xx xxxxxxx xxx xxxx xx xxx SQL xxxxxxxxx. Ix xxxx xxxx, xx xxx xxxxxxxx xxxxxxx, xxx xxxxx xxxxx xxxxx xxxx xxxx xxxx x xxxx-xxxxxx xxxxxxxxxx xxxx xxx xxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch12-77050"> - <refmeta> - <refentrytitle>STR_TO_DATE( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>STR_TO_DATE( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">STR_TO_DATE(<replaceable>xxxxxxxx</replaceable>, '<replaceable>xxxxxx_xxxx</replaceable>')</synopsis> - </refsynopsisdiv> - <refsect1 id="ch12-40-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-12-ITERM-3339" significance="normal"><primary>STR_TO_DATE( ) xxxxxxxx</primary></indexterm> -Txxx xxxxxxxx xxxxxxx xxx xxxx xxx xxxx xx x xxxxx xxxxxx xxx x xxxxx xxxxxx. Txx xxxxxxxx xxxxx x xxxxxx xxxxxxxxxx x xxxx xx xxxx, xx xxxx. Tx xxxxxxx xxx xxxxxx xx xxx xxxxxx xxxxxxxx, x xxxxxxxxxx xxxx xxxxx xx xx xxxxxxxx xx xxx xxxxxx xxxxxxxx. Txx xxxxxxxxxx xxxxx xxx xxx xxxx xxxxx xxxx xx xxx <literal moreinfo="none">DATE_FORMAT()</literal> xxxxxxxx; xxx xxx xxxxxxxxxx xxx x xxxx xx xxxxx xxxxxxx. Txxx xxxxxxxx xx xxxxxxxxx xx xx xxxxxxx d.d.d xx MxSQL.</para> - <programlisting format="linespecific">SELECT STR_TO_DATE( -'Jxxxxxx dd, dddd d:dd PM', -'%M %x, %Y %x:%x %x' -) AS Axxxxxxxxxx; - -+---------------------+ -| Axxxxxxxxxx | -+---------------------+ -| dddd-dd-dd dd:dd:dd | -+---------------------+</programlisting> - <para>Tx xxxxxxxx x xxxxxx xxxxx xxxxxxxx xxx xxxxxxxxx xxxx x xxxx xx xxxx xxxxxx, xxx <emphasis>'%Y-%x-%x’</emphasis> xxx x xxxx xxxxxx xxx <emphasis>'%x:%x:%x’</emphasis> xxx x xxxx xxxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch12-77051"> - <refmeta> - <refentrytitle>SUBDATE( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>SUBDATE( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">SUBDATE(<replaceable>xxxx</replaceable>, INTERVAL <replaceable>xxxxx</replaceable> <replaceable>xxxx</replaceable>) -SUBDATE(<replaceable>xxxx</replaceable> <replaceable>xxxx</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch12-41-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-12-ITERM-3340" significance="normal"><primary>SUBDATE( ) xxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-12-ITERM-3341" significance="normal"><primary>ADDDATE( ) xxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-12-ITERM-3342" significance="normal"><primary>DATE_SUB( ) xxxxxxxx</primary></indexterm> -Uxx xxxx xxxxxxxx xx xxxxxxxx x xxxx xx xxxx xxxxxxxx xxxx xxx xxxxxxx xx x <literal moreinfo="none">DATE</literal> xx <literal moreinfo="none">TIME</literal> xxxx xxxx xxxxxx. Ix’x xx xxxxx xxx <literal moreinfo="none">DATE_SUB( )</literal>. Ix x xxxxxxxx xxxxx xx xxxxx, xxx xxxxxxxx xxxxxxxxx xx xxxxx xxxxxxx xx xxxxxxxxxx. Txxx xx xxxxxxxxxx xx <literal moreinfo="none">ADDDATE( )</literal>. Sxx <xref linkend="mysqlian-CHP-12-TABLE-1"/>, xxxxx <literal moreinfo="none">DATE_ADD( )</literal> xxx x xxxx xx xxxxxxxxx xxxxxxxxx.</para> - <programlisting format="linespecific">SELECT SUBDATE(NOW( ), d) AS 'Yxxxxxxxx', -SUBDATE(NOW( ), INTERVAL -d DAY) AS 'Txxxxxxx'; - -+---------------------+---------------------+ -| Yxxxxxxxx | Txxxxxxx | -+---------------------+---------------------+ -| dddd-dd-dd dd:dd:dd | dddd-dd-dd dd:dd:dd | -+---------------------+---------------------+</programlisting> - <para>Ax xx xxxxxxx d.d xx MxSQL, xxxx xxxxxxxxxxx xxxx, xxx xxx xxxx xxxx xxx xxxxxx xx xxxx xxx xxx xxxxxx xxxxxxxx (x.x., xxxx <literal moreinfo="none">d</literal> xxxxxxx xx <literal moreinfo="none">INTERVAL d</literal> <literal moreinfo="none">DAY</literal>).</para> - </refsect1> - </refentry> - <refentry id="ch12-77052"> - <refmeta> - <refentrytitle>SUBTIME( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>SUBTIME( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">SUBTIME(<replaceable>xxxxxxxx</replaceable>, <replaceable>xxxxxxxx_xxxxx</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch12-42-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-12-ITERM-3343" significance="normal"><primary>SUBTIME( ) xxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-12-ITERM-3344" significance="normal"><primary>ADDTIME( ) xxxxxxxx</primary></indexterm> -Txxx xxxxxxxx xxxxxxx xxx xxxx xxx xxxx xxx xxx xxxxx xxxxxx xx xxxxxx, xxxxxxxxx xx xxx xxxx xxxxx xx xxx xxxxxx xxxxxxxx (<emphasis>x xx:xx:xx</emphasis>). Ix x xxxxxxxx xxxxxx xx xxxxx, xxx xxxx xx xxxxx xxx xxx xxxxxxxx xx xxx xxxxxxxxxx xx <literal moreinfo="none">ADDTIME( )</literal>. Txxx xxxxxxxx xx xxxxxxxxx xx xx xxxxxxx d.d.d xx MxSQL.</para> - <programlisting format="linespecific">SELECT NOW( ) AS Nxx, -SUBTIME(NOW( ), 'd:dd:dd.dddddd') AS 'Hxxx Axx'; - -+---------------------+---------------------+ -| Nxx | Hxxx Axx | -+---------------------+---------------------+ -| dddd-dd-dd dd:dd:dd | dddd-dd-dd dd:dd:dd | -+---------------------+---------------------+</programlisting> - <para>Nxxxxx xxxx xxx xxxx xxx xxxxxxxxx xx xxx, xxx xxxxxxx xxx xxxx xx xxxx xxxxx xxxxxxxx, xxx xxxxxxxx xxxxxx xxx xxxx xx xx xxxxxxx xx xxx xxx, xx xxxx. Ix xxxxxx xxxxxxxx xx xxxxx xxxx x xxxxxxxxxxx xxxxx xxxxx xxxx xxx xxxxx, xxx xxxxxxx xxxx xxxxxxx xxxxxxxxxxxx. Tx xxxxxxxx xxx xxxx, xxxx xxx xxxxxx xx xxxx xxxxxx xxx xxxx (xxxxxxxxx xx x xxxxx) xxxx xx:</para> - <programlisting format="linespecific">SELECT NOW( ) AS Nxx, -SUBTIME(NOW( ), 'dd d:d.d') AS 'Txxxxx Dxxx Axx'; - -+---------------------+---------------------+ -| Nxx | Txxxxx Dxxx Axx | -+---------------------+---------------------+ -| dddd-dd-dd dd:dd:dd | dddd-dd-dd dd:dd:dd | -+---------------------+---------------------+</programlisting> - </refsect1> - </refentry> - <refentry id="ch12-77053"> - <refmeta> - <refentrytitle>SYSDATE( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>SYSDATE( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">SYSDATE( )</synopsis> - </refsynopsisdiv> - <refsect1 id="ch12-43-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-12-ITERM-3345" significance="normal"><primary>SYSDATE( ) xxxxxxxx</primary></indexterm> -Txxx xxxxxxxx xxxxxxx xxx xxxxxx xxxx xx xxx xxxx xx xx xxxxxxxx. Ix xxxx xxxxxx xxx xxxx xxx xxxx xx xxx <emphasis>xxxx-xx-xx xx:xx:xx</emphasis> xxxxxx, xxx xxxx xxxxxx xxx xxxx xx xxx <emphasis>xxxxxxxxxxxxxx</emphasis> xxxxxx xx xx’x xxxx xx xxxx xx x xxxxxxx xxxxxxxxxxx. Ix xxxx xxxxxxx xxx xxxxxxxxxxxx xxxxx xx xxx xxxxxxxxxxx xxxxxxxx x xxxxxxxxxxxx xxxxx.</para> - <programlisting format="linespecific">SELECT SYSDATE( ), -SYSDATE( ) + d AS 'Nxxxxxx Fxxxxx'; - -+---------------------+----------------+ -| SYSDATE( ) | Nxxxxxx Fxxxxx | -+---------------------+----------------+ -| dddd-dd-dd dd:dd:dd | dddddddddddddd | -+---------------------+----------------+</programlisting> - <para>Txxx xxxxxxxx xx xxxxxxx xx xxx <literal moreinfo="none">NOW()</literal> xxxxxxxx xx xxxx xxxx xxxx xxxxxx xxx xxxxxxx xxxxxxxx xxx xx xxx xxxx xxxxxx. Hxxxxxx, xxx <literal moreinfo="none">NOW( )</literal> xxxxxxxx xxxxxxx xxx xxxx xxxx xxx SQL xxxxxxxxx xxxxx, xxxxxxx <literal moreinfo="none">SYSDATE()</literal> xxxxxxx xxx xxxx xxx xxxxxxxx xxx xxxxxxx. Sxx xxx xxxxxxxxxx xx <literal moreinfo="none">NOW( )</literal> xxx xx xxxxxxx xx xxxx xxxxxxxxx xxx xxx xxxxxxxxxxxx.</para> - <para>Ix xxx’xx xxxxx xxxxxxxxxxx, xxx xxxxxx xxx xxxx xxxxxxx <literal moreinfo="none">SET TIMESTAMP</literal> xxxxxxx, xx xxxx xx xxx xxxxxxx x xxxxxxxx xxxx xxx xxxxxx xxx, xxxxxx xxxx <literal moreinfo="none">NOW( )</literal> xxxx xx xxxxxxxx xx xxx xxxx xxxxx xx xxxx xxx xxxxxxxx SQL xxxxxxxxxx xxxx xxxxxxxx. <literal moreinfo="none">SYSDATE( )</literal> xxxxxxx xxx xxxxxxxxxx xx xxxxx <literal moreinfo="none">SET TIMESTAMP</literal> xxxxxxx.</para> - <programlisting format="linespecific">SET @xxxxxxxxx = UNIX_TIMESTAMP(SUBDATE(SYSDATE( ), d)); - -SELECT FROM_UNIXTIME(@xxxxxxxxx); - -+---------------------------+ -| FROM_UNIXTIME(@xxxxxxxxx) | -+---------------------------+ -| dddd-dd-dd dd:dd:dd | -+---------------------------+ - -SET TIMESTAMP = @xxxxxxxxx; - -SELECT NOW( ), SYSDATE( ); - -+---------------------+---------------------+ -| NOW( ) | SYSDATE( ) | -+---------------------+---------------------+ -| dddd-dd-dd dd:dd:dd | dddd-dd-dd dd:dd:dd | -+---------------------+---------------------+</programlisting> - <para>Txxxx xxxxxxxxxx xxx xxxx xxxxxxxx xxxx xxxxxxxxx, xxx xxxx xxxx xx xxxxxxxxxx xx xxxxx. Ix xxx xxxxx SQL xxxxxxxxx, xx xxx xxx <literal moreinfo="none">SET</literal> xxxxxxxxx xx xxx xx x xxxx xxxxxxxx xx xxxx xxx xxxx xxx xxxx xx xxxxxxxxx. Tx xxxxxx xxx <literal moreinfo="none">TIMESTAMP</literal> xxxxxxxx, xx xxxx xxx xxx xxxxxxxx xx xxx Uxxx xxxx xxxxxx, xx xx xxx <literal moreinfo="none">UNIX_TIMESTAMP( )</literal>. Wxxxxx xxxx xxxxxxxx xx’xx xxxxx <literal moreinfo="none">SUBDATE( )</literal> xx xxx xxx xxxxxxxx xxx xxx xxxxxx. Txx xxxxxx xxxxxxxxx xx xxxx xx xx xxx xxx xxx xxxxx xx xxx xxxx xxxxxxxx. Wxxx xxx xxxxx xxxxxxxxx, xx xxx xxx xxxxxx xxxxxxxx xx xxx xxxxx xx xxx xxxx xxxxxxxx xx xxxxxxx. Txx xxxxxx xx xxxx xxxx xx xxx xxx xxxx SQL xxxxxxxxx, xxx <literal moreinfo="none">SELECT( )</literal> xxxx xxxx <literal moreinfo="none">NOW( )</literal> xxx <literal moreinfo="none">SYSDATE( )</literal>, xx xxx xxx xxxx xxx xxxxxxx xxx xxxxxxxxx xx xxx xxx xxx -—xxx xxxx x xxx xxxxxxx. Txx xxxxxxxxxx xx xxxx xxx xxxxx xxx <literal moreinfo="none">NOW( )</literal> xx xxxxxx xxxxxxx xx xxx xxx <literal moreinfo="none">TIMESTAMP</literal> xxxxxxxx.</para> - <para>Ix xxx’xx xxxxxxxxxxx, xxx xxx xxx xxxx xx xxx <literal moreinfo="none">SYSDATE( )</literal> xxx xxxxxxx xxxxxx, xx xxxxx xxxxxxx xxx’x xx xxxxxxxxxx xx xxx xxxxxxx xxx xxxx xxxxx. Ix xx xxxxxxxx xx xxxxxxx xxxx xxxxxxx xx xxxxxxxx xxx xxxxxx xxxx xxx <literal moreinfo="none">--xxxxxxx-xx-xxx</literal> xxxxxx. Txxx xxxx xxxxx <literal moreinfo="none">SYSDATE( )</literal> xx xxxxxxxx xxx xxxx xx <literal moreinfo="none">NOW( )</literal>.</para> - </refsect1> - </refentry> - <refentry id="ch12-77054"> - <refmeta> - <refentrytitle>TIME( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>TIME( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">TIME(<replaceable>xxxx</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch12-44-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-12-ITERM-3346" significance="normal"><primary>TIME( ) xxxxxxxx</primary></indexterm> -Txxx xxxxxxxx xxxxxxx xxx xxxx xxxx x xxxxx xxxxxx xx xxxxxx xxxxxxxxxx xxxx xxx xxxx xxxx. Ix’x xxxxxxxxx xx xx xxxxxxx d.d.d xx MxSQL.</para> - <programlisting format="linespecific">SELECT NOW( ), -TIME(NOW( )) AS 'Txxx xxxx'; - -+---------------------+-----------+ -| NOW( ) | Txxx xxxx | -+---------------------+-----------+ -| dddd-dd-dd dd:dd:dd | dd:dd:dd | -+---------------------+-----------+</programlisting> - </refsect1> - </refentry> - <refentry id="ch12-77055"> - <refmeta> - <refentrytitle>TIME_FORMAT( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>TIME_FORMAT( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">TIME_FORMAT(<replaceable>xxxx</replaceable>, <replaceable>xxxxxx_xxxx</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch12-45-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-12-ITERM-3347" significance="normal"><primary>TIME_FORMAT( ) xxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-12-ITERM-3348" significance="normal"><primary>xxxxxx xxxxx (DATE_FORMAT)</primary></indexterm> -Txxx xxxxxxxx xxxxxxx xxx xxxx xxxxx xx xxx xxxx xxxxxxx xxxxxxxx xxx xxxxxxx xx xxxxxxxxx xx xxxxxxxxxx xxxxx xxxxx xx xxx xxxxxx xxxxxxxx. Sxx <xref linkend="mysqlian-CHP-12-TABLE-1"/>, xxxxx <literal moreinfo="none">DATE_FORMAT( )</literal> xxx xxxxxxxxxx xxxxx, xxx xxxx xxxxx xxxxxxx xx xxxx xxxxxx. Txxx xxxxxxxx xxxx xxxxxx NULL xx d xxx xxx-xxxx xxxxxxxxxx xxxxx.</para> - <programlisting format="linespecific">SELECT TIME_FORMAT(xxxxxxxxxxx, '%x:%x %x') -AS 'Axxx. Txxx' FROM xxxxxxxxxxxx -WHERE xxxxxx_xx = 'dddd' -AND xxxxxxxxxxx > SYSDATE( ); - -+------------+ -| Axxx. Txxx | -+------------+ -| d:dd PM | -+------------+</programlisting> - </refsect1> - </refentry> - <refentry id="ch12-77056"> - <refmeta> - <refentrytitle>TIME_TO_SEC( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>TIME_TO_SEC( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">TIME_TO_SEC(<replaceable>xxxx</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch12-46-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-12-ITERM-3349" significance="normal"><primary>TIME_TO_SEC( ) xxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-12-ITERM-3350" significance="normal"><primary>SEC_TO_TIME( ) xxxxxxxx</primary></indexterm> -Txxx xxxxxxxx xxxxxxx xxx xxxxxx xx xxxxxxx xxxx xxx xxxxx xxxx xxxxxxxxxx. Ix’x xxx xxxxxxx xx <literal moreinfo="none">SEC_TO_TIME( )</literal>.</para> - <programlisting format="linespecific">SELECT TIME_TO_SEC('dd:dd') -AS 'Sxxxxxx xx d x.x.'; - -+-------------------+ -| Sxxxxxx xx d x.x. | -+-------------------+ -| dddd | -+-------------------+</programlisting> - <para>Hxxx xx’xx xxxxxxxxxxx xxx xxxxxx xx xxxxxxx xx xxxxx d AM (x.x., dd xxxxxxx xxxxx dd xxxxxxx) xx xxx xxxx xxxx xxx xxx.</para> - </refsect1> - </refentry> - <refentry id="ch12-77057"> - <refmeta> - <refentrytitle>TIMEDIFF( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>TIMEDIFF( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">TIMEDIFF(<replaceable>xxxx</replaceable>, <replaceable>xxxx</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch12-47-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-12-ITERM-3351" significance="normal"><primary>TIMEDIFF( ) xxxxxxxx</primary></indexterm> -Txxx xxxxxxxx xxxxxxx xxx xxxx xxxxxxxxxx xxxxxxx xxx xxx xxxxx xxxxx. Axxxxxxx xxx xxxxxxxxx xxx xx xxxxx xx xxxx xx xxxxxxxx xxxxxx, xxxx xxxxxxxxx xxxx xx xx xxx xxxx xxxxxxxx. Oxxxxxxxx, NULL xxxx xx xxxxxxxx. Mxxxxxxxxxxx xxx xx xxxxxxxx xx xxx xxxxxx xxxxx. Txxx xxxx xx xxxxxxxx xxxx xxxxx xxx xx xxx xxxxxx xx xxx xxxx xxxxxxxxxxxx. Txxx xxxxxxxx xx xxxxxxxxx xx xx xxxxxxx d.d.d xx MxSQL.</para> - <programlisting format="linespecific">SELECT xxxxxxxxxxx AS Axxxxxxxxxx, -NOW( ) AS 'Txxx Nxx', -TIMEDIFF(xxxxxxxxxxx, NOW( )) AS 'Txxx Rxxxxxxxx' -FROM xxxxxxxxxxxx -WHERE xxx_xx='dddd'; - -+--------------------+--------------------+----------------+ -| Axxxxxxxxxx | Txxx Nxx | Txxx Rxxxxxxxx | -+--------------------+--------------------+----------------+ -| dddd-dd-dd dd:dd:dd| dddd-dd-dd dd:dd:dd| dd:dd:dd | -+--------------------+--------------------+----------------+</programlisting> - </refsect1> - </refentry> - <refentry id="ch12-77058"> - <refmeta> - <refentrytitle>TIMESTAMP( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>TIMESTAMP( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">TIMESTAMP(<replaceable>xxxx</replaceable>, <replaceable>xxxx</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch12-48-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-12-ITERM-3352" significance="normal"><primary>TIMESTAMP( ) xxxxxxxx</primary></indexterm> -Txxx xxxxxxxx xxxxxx xxx xxxx xxx xxxx xxxx xxxxx xxxxxxx xx xxxxxxx xxxx xxxxxxx xxxx xxx xxxx xxxx xxxxxxxxxx; xxx xxxxxx xx xxxxxxxx xx <emphasis>xxxx-xx-xx xx:xx:xx</emphasis> xxxxxx. Ix xxxx xxx xxxx xx xxxx xxx xxxx xx xxxxx, xxx xxxxxxxx xxxx xxxxxx xxxxx xxx xxx xxxxxxx xxxxxxxxx. Ix’x xxxxxxxxx xx xx xxxxxxx d.d.d xx MxSQL.</para> - <programlisting format="linespecific">SELECT TIMESTAMP(xxxx_xxxx, xxxx_xxxx) AS 'Axxxxxxxxxx' -FROM xxxxxxxxxxxx LIMIT d; - -+---------------------+ -| Axxxxxxxxxx | -+---------------------+ -| dddd-dd-dd dd:dd:dd | -+---------------------+</programlisting> - </refsect1> - </refentry> - <refentry id="ch12-77059"> - <refmeta> - <refentrytitle>TIMESTAMPADD( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>TIMESTAMPADD( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">TIMESTAMPADD(<replaceable>xxxxxxxx</replaceable>, <replaceable>xxxxxx,</replaceable> <replaceable>xxxxxxxx</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch12-49-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-12-ITERM-3353" significance="normal"><primary>TIMESTAMPADD( ) xxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-12-ITERM-3354" significance="normal"><primary>YEAR xxxxxxxx</primary><secondary>TIMESTAMPADD( ) xxxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-12-ITERM-3355" significance="normal"><primary>QUARTER xxxxxxxx (TIMESTAMPADD)</primary></indexterm><indexterm id="mysqlian-CHP-12-ITERM-3356" significance="normal"><primary>MONTH xxxxxxxx</primary><secondary>TIMESTAMPADD( ) xxxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-12-ITERM-3357" significance="normal"><primary>WEEK xxxxxxxx (TIMESTAMPADD)</primary></indexterm><indexterm id="mysqlian-CHP-12-ITERM-3358" significance="normal"><primary>DAY xxxxxxxx</primary><secondary>TIMESTAMPADD xxxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-12-ITERM-3359" significance="normal"><primary>HOUR xxxxxxxx</primary><secondary>TIMESTAMPADD( ) xxxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-12-ITERM-3360" significance="normal"><primary>MINUTE xxxxxxxx</primary><secondary>TIMESTAMPADD( ) xxxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-12-ITERM-3361" significance="normal"><primary>SECOND xxxxxxxx</primary><secondary>TIMESTAMPADD( ) xxxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-12-ITERM-3362" significance="normal"><primary>FRAC_SECOND xxxxxxxx (TIMESTAMPADD)</primary></indexterm><indexterm id="mysqlian-CHP-12-ITERM-3363" significance="normal"><primary>DATE_ADD( ) xxxxxxxx</primary></indexterm> -Txxx xxxxxxxx xxxx xxx xxxxx xxxxxx xx xxxxxxxxx xx xxxx xx xxx xxxxx xxxx xx xxxx. Txx xxxxxxxxx xxxxxxxx xxx xxxxxx xx <xref linkend="mysqlian-CHP-12-TABLE-4"/> xxxxx. Fxx xxxxxxxxxxxxx xxxx xxxxx xxxxxxx, xxx xxx xxx xxx <literal moreinfo="none">SQL_TSI_</literal> xxxxxx xx xxxxx xxxxxxxx xxxxx (x.x., <literal moreinfo="none">SQL_TSI_YEAR</literal> xxx <literal moreinfo="none">YEAR</literal>). Txxx xxxxxxxx xx xxxxxxxxx xx xx xxxxxxx d.d.d xx MxSQL xxx xx xxxxxxx xx <literal moreinfo="none">DATE_ADD( )</literal>, xxx xxx xxxx xx xxxxxxxxx xxxxxxxx xx xxx xxxxxxx xxx xxxx.</para> - <programlisting format="linespecific">UPDATE xxxxxxxxxxxx -SET xxxxxxxxxxx = TIMESTAMPADD(HOUR, d, xxxxxxxxxxx) -WHERE xxxx_xx = 'dddd';</programlisting> - <para>Ix xxxx xxxxxxx, xx xxxxxxxxxxx xx xxx xx xx xxxx xxxxx.</para> - <table id="mysqlian-CHP-12-TABLE-4"> - <title>TIMESTAMPADD( ) Ixxxxxxxx - - - - - - - Ixxxxxxx - - - - - - - - - - - FRAC_SECOND - - - - - - - - - - SECOND - - - - - - - - - - MINUTE - - - - - - - - - - HOUR - - - - - - - - - - DAY - - - - - - - - - - WEEK - - - - - - - - - - MONTH - - - - - - - - - - QUARTER - - - - - - - - - - YEAR - - - - - - - - - - - - - - TIMESTAMPDIFF( ) - - - TIMESTAMPDIFF( ) - - - - TIMESTAMPDIFF(xxxxxxxx, xxxxxxxx, xxxxxxxx) - - - - <para><indexterm id="mysqlian-CHP-12-ITERM-3364" significance="normal"><primary>TIMESTAMPDIFF( ) xxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-12-ITERM-3365" significance="normal"><primary>TIMESTAMPADD( ) xxxxxxxx</primary></indexterm> -Txxx xxxxxxxx xxxxxxx xxx xxxx xxxxxxxxxx xxxxxxx xxx xxx xxxxx xxxxx, xxx xxxx xxx xxx xxxxxxxx xxxxx xxxxxxxx. Txx xxxxxxxxx xxxxxxxx xxx xxx xxxx xx xxxxx xxx <literal moreinfo="none">TIMESTAMPADD( )</literal>. Txxx xxxxxxxx xx xxxxxxxxx xx xx xxxxxxx d.d.d xx MxSQL.</para> - <programlisting format="linespecific">SELECT NOW( ) AS Txxxx, -TIMESTAMPDIFF(DAY, NOW( ), LAST_DAY(NOW( ))) -AS 'Dxxx Rxxxxxxxx xx Mxxxx'; - -+---------------------+-------------------------+ -| Txxxx | Dxxx Rxxxxxxxx xx Mxxxx | -+---------------------+-------------------------+ -| dddd-dd-dd dd:dd:dd | dd | -+---------------------+-------------------------+</programlisting> - <para><indexterm id="mysqlian-CHP-12-ITERM-3366" significance="normal"><primary>LAST_DAY( ) xxxxxxxx</primary></indexterm> -Txxx SQL xxxxxxxxx xxxxxxxxx xxx xxxxxxx xxxx xxx xxxx xxx xxxx xxx <literal moreinfo="none">LAST_DAY( )</literal> xxxxxxxx xx xxxxxxxxx xxx xxxx xx xxx xxxx xxx xx xxx xxxxx. Txxx <literal moreinfo="none">TIMESTAMPDIFF( )</literal> xxxxxxxx xxxxxxxxxx xxx xxxxxxxxxx xxxxxxx xxx xxx xx xxx xxxx xxx xxx xxx xxx xxx xxx xxxx xx xxx xxx xx xxx xxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch12-77061"> - <refmeta> - <refentrytitle>TO_DAYS( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>TO_DAYS( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">TO_DAYS(<replaceable>xxxx</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch12-51-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-12-ITERM-3367" significance="normal"><primary>TO_DAYS( ) xxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-12-ITERM-3368" significance="normal"><primary>FROM_DAYS( ) xxxxxxxx</primary></indexterm> -Txxx xxxxxxxx xxxxxxx xxx xxxx xxxxx xx xxx xxxxxx xx xxxx xxxxx, xxxxx xxx xxxx xxx xxxxxxxxx xx xxx xxxxxxxxx xxxx xxxxxxxx xxxxxxxx. Pxxxxxxx xxxxx xxx xxxxx xxxxxx dddd xxxx xxx Gxxxxxxxx xxxxxxxx xxxxxx xxx xxxxxxxx. Txx xxxxxxxx xx xxxx xxxxxxxx xx <literal moreinfo="none">FROM_DAYS( )</literal>.</para> - <programlisting format="linespecific">SELECT CURDATE( ) AS 'Txxxx', -TO_DAYS('dddd-dd-dd'), -TO_DAYS(CURDATE( )), -(TO_DAYS('dddd-dd-dd') - -TO_DAYS(CURDATE( ))) -AS 'Dxxx xx Exx xx Yxxx' \G - -*************************** d. xxx *************************** - Txxxx: dddd-dd-dd -TO_DAYS('dddd-dd-dd'): dddddd - TO_DAYS(CURDATE( )): dddddd - Dxxx xx Exx xx Yxxx: dd</programlisting> - <para><indexterm id="mysqlian-CHP-12-ITERM-3369" significance="normal"><primary>TO_DAYS( ) xxxxxxxx</primary></indexterm> -Ix xxxx xxxxxxx, xxx <literal moreinfo="none">TO_DAYS( )</literal> xxxxxxxx xx xxxxxxxx xx xxxxxxxxx xxx xxxxxxxxxx xx xxx xxxxxx xx xxxx xxxxxxx xxx xxx xxxxx, xxx xxxxxx xx xxxx xxxx xxx xxxxxxx xxxx xxxxx xxx xxxx-xxx. I’xx xxxx xxx <literal moreinfo="none">\G</literal> xxxxxx xxxxxxx xx xxx xxxx-xxxxx xx xx xx xxxx xxxxx xxxxxxxxxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch12-77062"> - <refmeta> - <refentrytitle>UNIX_TIMESTAMP( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>UNIX_TIMESTAMP( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">UNIX_TIMESTAMP([<replaceable>xxxxxxxx</replaceable>])</synopsis> - </refsynopsisdiv> - <refsect1 id="ch12-52-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-12-ITERM-3370" significance="normal"><primary>UNIX_TIMESTAMP( ) xxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-12-ITERM-3371" significance="normal"><primary>Uxxx xxxxx xxxx</primary></indexterm> -Txxx xxxxxxxx xxxxxxx xxx xxxxxx xx xxxxxxx xxxxx xxx xxxxx xx xxx Uxxx xxxxx (Jxxxxxx d, dddd, Gxxxxxxxx Mxxx Txxx). Wxxxxxx x xxxxx xxxx, xxxx xxxxxxxx xxxx xxxxxxx xxx Uxxx xxxx xxx xxx xxxxxxx xxxx xxx xxxx. Oxxxxxxxxx, x xxxx xxx xxxx xxxxx (xxxxxxxx xx xx xxx xx x xxxxxx xxxxx) xxx xx xxxxx xxx xxxxxxxxxx xx Uxxx xxxx xxxx xxxx xxxxxxxx.</para> - <programlisting format="linespecific">SELECT UNIX_TIMESTAMP( ) AS 'Nxx', -UNIX_TIMESTAMP('dddd-dd-dd dd:dd:dd') AS 'Sxxx Txxx xxxx Sxxxxx'; - -+------------+-----------------------+ -| Nxx | Sxxx Txxx xxxx Sxxxxx | -+------------+-----------------------+ -| dddddddddd | dddddddddd | -+------------+-----------------------+</programlisting> - <para>Txx xxxxx xxxxxx xxxx xxx xxxxxxxx xx xxxxxxxxx xxx Uxxx xxxx xxx xxx xxxxxx xxxx xxx xxxxxxxxx xxx xxxxxxx. Txx xxxxxx xxxxxx xxxx xxx xxxx xxxxxxxx xx xxxxxxxxx xxx Uxxx xxxx xxx xxx xxxx xxxx xxx xxxx xxxxxxxx xx x xxxxxx, xxxxxxxx xxxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch12-77063"> - <refmeta> - <refentrytitle>UTC_DATE( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>UTC_DATE( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">UTC_DATE( )</synopsis> - </refsynopsisdiv> - <refsect1 id="ch12-53-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-12-ITERM-3372" significance="normal"><primary>UTC_DATE( ) xxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-12-ITERM-3373" significance="normal"><primary>SELECT xxxxxxxxx</primary><secondary>UTC_DATE( ) xxxxxxxx</secondary></indexterm> -Txxx xxxxxxxx xxxxxxx xxx xxxxxxx Uxxxxxxxx Txxx, Cxxxxxxxxxx (UTC) xxxx xx <emphasis>xxxx-xx-xx</emphasis> xxxxxx, xx xx <emphasis>xxxxxxxx</emphasis> xxxxxx xx xx’x xxxx xx xxxx xx x xxxxxxx xxxxxxxxxxx. Ix’x xxxxxxxxx xx xx xxxxxxx d.d.d xx MxSQL. Txx xxxxxxxxxxx xxx xxxxxxxx. -</para> - <programlisting format="linespecific">SELECT UTC_DATE( ), -UTC_DATE( ) + d AS 'UTC_DATE( ) Nxxxxxx'; - -+-------------+--------------------+ -| UTC_DATE( ) | UTC_DATE( ) Nxxxxxx | -+-------------+--------------------+ -| dddd-dd-dd | dddddddd | -+-------------+--------------------+</programlisting> - </refsect1> - </refentry> - <refentry id="ch12-77064"> - <refmeta> - <refentrytitle>UTC_TIME( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>UTC_TIME( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">UTC_TIME( )</synopsis> - </refsynopsisdiv> - <refsect1 id="ch12-54-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-12-ITERM-3374" significance="normal"><primary>UTC_TIME( ) xxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-12-ITERM-3375" significance="normal"><primary>SELECT xxxxxxxxx</primary><secondary>UTC_TIME( ) xxxxxxxx</secondary></indexterm> -Txxx xxxxxxxx xxxxxxx xxx xxxxxxx Uxxxxxxxx Txxx, Cxxxxxxxxxx (UTC) xxxx xx <emphasis>xx:xx:xx</emphasis> xxxxxx, xx xx <emphasis>xxxxxx</emphasis> xxxxxx xx xx’x xxxx xx xxxx xx x xxxxxxx xxxxxxxxxxx. Ax x xxxxxxx, xxx xxxxxxxxxxxx xxx xxxxxxxx xx xxx xxxxxxx. Ix’x xxxxxxxxx xx xx xxxxxxx d.d.d xx MxSQL. Txx xxxx xx xxxxxxxxxxx xx xxxxxxxx. -</para> - <programlisting format="linespecific">SELECT UTC_TIME( ), -UTC_TIME( ) + d AS 'UTC_TIME( ) Nxxxxxx'; - -+-------------+--------------------+ -| UTC_TIME( ) | UTC_TIME( ) Nxxxxxx | -+-------------+--------------------+ -| dd:dd:dd | dddddd.dddddd | -+-------------+--------------------+</programlisting> - </refsect1> - </refentry> - <refentry id="ch12-77065"> - <refmeta> - <refentrytitle>UTC_TIMESTAMP( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>UTC_TIMESTAMP( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">UTC_TIMESTAMP( )</synopsis> - </refsynopsisdiv> - <refsect1 id="ch12-55-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-12-ITERM-3376" significance="normal"><primary>UTC_TIMESTAMP( ) xxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-12-ITERM-3377" significance="normal"><primary>SELECT xxxxxxxxx</primary><secondary>UTC_TIMESTAMP( ) xxxxxxxx</secondary></indexterm> -Txxx xxxxxxxx xxxxxxx xxx xxxxxxx UTC xxxx xxx xxxx xx <emphasis>xxxx-xx-xx xx:xx:xx</emphasis> xxxxxx. Ix xxxx xxxxxx xxx UTC xxxx xxx xxxx xx x <emphasis>xxxxxxxxxxxxxx</emphasis> xxxxxx xx xx’x xxxx xx xxxx xx x xxxxxxx xxxxxxxxxxx. Ax x xxxxxxx, xxx xxxxxxxxxxxx xxx xxxxxxxx xx xxx xxxxxxx. Txxx xxxxxxxxx xx xxxxxxxxx xx xx xxxxxxx d.d.d xx MxSQL. Txx xxxxxxxxxxx xxx xxxxxxxx. Uxx <literal moreinfo="none">UTC_TIME( )</literal> xx xxx xxxx xxxx xxx UTC xxxx, xxx <literal moreinfo="none">UTC_DATE( )</literal> xx xxx xxxx xxxx xxx UTC xxxx.</para> - <programlisting format="linespecific">SELECT UTC_TIMESTAMP( ), -UTC_TIMESTAMP( ) + d AS 'UTC_TIMESTAMP( ) Nxxxxxx'; - -+---------------------+--------------------------+ -| UTC_TIMESTAMP( ) | UTC_TIMESTAMP( ) Nxxxxxx | -+---------------------+--------------------------+ -| dddd-dd-dd dd:dd:dd | dddddddddddddd.dddddd | -+---------------------+--------------------------+</programlisting> - </refsect1> - </refentry> - <refentry id="ch12-77066"> - <refmeta> - <refentrytitle>WEEK( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>WEEK( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">WEEK(<replaceable>xxxx</replaceable>[, <replaceable>xxxxx</replaceable>])</synopsis> - </refsynopsisdiv> - <refsect1 id="ch12-56-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-12-ITERM-3378" significance="normal"><primary>WEEK( ) xxxxxxxx</primary></indexterm> -Txxx xxxxxxxx xxxxxxx xxx xxxxxx xx xxx xxxx xxxxxxxx xxxx xxx xxxxxxxxx xx xxx xxxx xxx xxx xxxx xxxxxxxx. Txxx xxx xxxx xxxxxx xxxxxx. Hxxxxxx, xx’x xxxxxxx xxxxxxx xxxxx xx xxx xx xxx xxxx xxxx xx x xxxx xxxxxx dd xxxxx (x.x., dd x d = ddd); xxx xxxxx xxx xx xxx xxxx xxxxxxx xxx’x xxx xxxxx xxx xx x xxxx. Wxxx x xxxx xxxxxx xx x Sxxxxx, xx xxx xxxxxxxx Sxxxxx xx xx xxx xxxxx xxx xx xxx xxxx, Jxxxxxx d xx xxxxxxxxxx xxx xxxxx xxxx xx xxx xxxx. Ix xxxx xxxx, xxx xxxxxxxx xxxxxx xxxxxx d xx d xxxxxxxxx xx xxxxxxx xxx xxxxx xx d xx xxx xxxxx xxxxxx xx d. Ix xxx xxxxxxxx Mxxxxx xxx xxxxx xxx xx xxx xxxx, xxxxxx, xxxx xx Jxxxxxx d xx x Sxxxxx, xxx xxxxxxxx xx xxxx xxxxxxx xxx xxxx xxxx xxx xx xx xxxxxxxxxx xx xxxx xx xxx xxxx xxxx xx xxx xxxxxxxx xxxx, xx xxxx xxxx d xx xxxx xxxx xxx xxxx d xxxxxxxxx xxx xxxxx xxxx xxxx xx xxx xxxxxxx xxxx. Axx xx xxxxx xxxxxxxxxxxxx xxx MxSQL xx xxxxxxxx xxxx xxxxxxxxx <literal moreinfo="none">WEEK( )</literal> xxx xxxxxxxxxxx xx xxx xxxx xxx xxxxxxx xx xxx xxxxxx xxxxxxxxx.</para> - <para>Txx xxxxx xx xxxxxx xxxxxxxx xxx xxx xxxxxxxx’x xxxxxx xxxxxxxxx xx d xx d. Exxx xxxxxxx xxxxxxxx xxxx Sxxxxx xx xxx xxxxx xxx xx xxx xxxx; xx xxx xxxxx xxxxxxxxx Mxxxxx xx xxx xxxxx xxx xx xxx xxxx. Cxxxx d, d, d, xxx d xxxxxx xxxxxxx xxxxxxx xxxx d xx dd; xxxxx d, d, d, xxx d xxxxxx xxxxxxx xxxxxxx xxxx d xx dd. Cxxxx d, d, d, xxx d xxxxxxxxx xxxxxxx xx xxx xxxx xxxxx xxxx xxxxxx xx xxx xxxx xxxx xxxxx xxx xxxxx xxx xx xxx xxxx xx xxx xxxx xxxx xxx xxxxx xxx xx xxx xxxx xxxxx xx xx.</para> - <programlisting format="linespecific">SELECT DAYNAME('dddd-dd-dd') AS 'Dxx', -WEEK('dddd-dd-dd', d) AS 'd(S,d)', WEEK('dddd-dd-dd', d) AS 'd(M,d)', -WEEK('dddd-dd-dd', d) AS 'd(S,d)', WEEK('dddd-dd-dd', d) AS 'd(M,d)', -WEEK('dddd-dd-dd', d) AS 'd(S,d)', WEEK('dddd-dd-dd', d) AS 'd(M,d)', -WEEK('dddd-dd-dd', d) AS 'd(S,d)', WEEK('dddd-dd-dd', d) AS 'd(M,d)' UNION ... - -+-----------+--------+--------+--------+--------+--------+--------+--------+--------+ -| Dxx | d(S,d) | d(M,d) | d(S,d) | d(M,d) | d(S,d) | d(M,d) | d(S,d) | d(M,d) | -+-----------+--------+--------+--------+--------+--------+--------+--------+--------+ -| Sxxxxx | d | d | d | dd | d | d | d | dd | -| Mxxxxx | d | d | dd | d | d | d | d | d | -| Txxxxxx | d | d | dd | d | d | d | d | dd | -| Wxxxxxxxx | d | d | dd | d | d | d | d | dd | -| Txxxxxxx | d | d | dd | d | d | d | dd | dd | -| Fxxxxx | d | d | dd | dd | d | d | dd | dd | -| Sxxxxxxx | d | d | dd | dd | d | d | dd | dd | -+-----------+--------+--------+--------+--------+--------+--------+--------+--------+</programlisting> - <para>Txxx xxxxxxx xxx xxx xxxxxxx xxxx xxx <literal moreinfo="none">SELECT</literal> xxxxxxxxx xxxxx xxxxxxxx xxx xxxxx, xxxxxx xxxxxxxx xxxx <literal moreinfo="none">UNION</literal> xx xxxxx xxx xxxxxxx xxxx xxx xxxxxxx xxxxx. Txx xxxx xxx xxxxxxxx xxx xxxx <literal moreinfo="none">SELECT</literal> xxxxxxxxx, xxxxxxx xxxx dddd xx dddd, xxx dddd xxxx xx xxx xxxxxx xxx xxx Wxxxxxxxx xxx xx xxxx xxxx. Txxx xxxxx xxxxx xxx xxxxxxx xx <literal moreinfo="none">WEEK( )</literal> xxx xxxxx xxxxxxxxx xxxxx (xxx xxx xxxx xxx xx xxx xxxx), xxx xxx xxxxx xxx xx xxxxx xxxxxxxxxx xxxxx. Fxx xxxx xxxx, xxxx xxx xxxxx xxx xxxxxxx xxx xxxx xxxxxxxxx xxxxxxxxxxx xxx xxx <literal moreinfo="none">WEEK( )</literal> xxxxxxxx. Txx xxxxxx xxxxxxxx xxxxxxx xxx xxxxxxxxx xxxx, xxxxx xxxx xxxxxxx xxx xxxxxxxxx xxxxxxxxx Sxxxxx xx Mxxxxx (xxxxxxxxx xx S xx M, xxxxxxxxxxxx) xx xx xxx xxxxx xxx xx xxx xxxx. Txx d xxxx xxxxx xxx S xx M xxxxxxxxx xxxx xxxxxxx xxx xxxxx xxxx d xx dd xxxxx; d xxxxxxxxx x xxxxx xx d xx dd. Ix’x x xxxxxxx xxxxx, xxx xxx xxxxxxx xx xxxxxxx xxx xx’x xxxxx xxxx xxxxxx xxx xx xxx xxxxxxxxxxxxx xxxx xxxx xx xxxxxx xx xxxxxxxxxx. <xref linkend="mysqlian-CHP-12-TABLE-5"/> xxxxx xxx xxxx xx xxxxxx xx xxxxxxxx xxx xxxx xxxx xxx xxxx.</para> - <para>Ix xx xxxx xx xxxxxxxxx xxxx xxx <literal moreinfo="none">WEEK( )</literal> xxxxxxxx, xxx xxxxxxx xx xxxx. Txx xxxxxxx xxxxx xx xxxxxx xx xxx xxxxxx xxxxxxxx <literal moreinfo="none">xxxxxxx_xxxx_xxxxxx</literal>. Ix xxx xx xxxxxxx xxxx xxx <literal moreinfo="none">SET</literal> xxxxxxxxx.</para> - <programlisting format="linespecific">SHOW VARIABLES LIKE 'xxxxxxx_xxxx_xxxxxx'; - -+---------------------+-------+ -| Vxxxxxxx_xxxx | Vxxxx | -+---------------------+-------+ -| xxxxxxx_xxxx_xxxxxx | d | -+---------------------+-------+ - -SET xxxxxxx_xxxx_xxxxxx = d;</programlisting> - <para><indexterm id="mysqlian-CHP-12-ITERM-3379" significance="normal"><primary>WEEK( ) xxxxxxxx</primary></indexterm> -Ax xx xxxxxxxxxxx xx <literal moreinfo="none">WEEK( )</literal>, xxx xxx xxx <literal moreinfo="none">YEARWEEK( )</literal>. Ix’x xxxxxxxxxx xxxx <literal moreinfo="none">WEEK( )</literal>, xxx xxxx xxx xxxx xx d xxxx. -</para> - <table id="mysqlian-CHP-12-TABLE-5"> - <title>WEEK( ) Mxxxx - - - - - - - - - Mxxx - - - Bxxxxxxxx xx Wxxx - - - Rxxxx xx Wxxxx - - - Dxxxxxxxxxx xx Wxxx d xx Fxxxx Wxxx - - - - - - - - d - - DAY xxxxxxxx - DATE_ADD xxxxxxxx - - - - - Sxxxxx - - - d-dd - - - Fxxxx Dxx xx Wxxx Cxxxxxxxxx - - - - - - d - - DAY_HOUR xxxxxxxxx (DATE_ADD) - - - - - Mxxxxx - - - d-dd - - - - - - - - - d - - DAY_MICROSECOND xxxxxxxx - DATE_ADD xxxxxxxx - - - - - Sxxxxx - - - d-dd - - - Fxxxx Dxx xx Wxxx Cxxxxxxxxx - - - - - - d - - DAY_MINUTE xxxxxxxxx (DATE_ADD) - - - - - Mxxxxx - - - d-dd - - - - - - - - - d - - DAY_SECOND xxxxxxxxx (DATE_ADD) - - - - - Sxxxxx - - - d-dd - - - - - - - - - d - - HOUR xxxxxxxx - DATE_ADD( ) xxxxxxxx - - - - - Mxxxxx - - - d-dd - - - Fxxxx Dxx xx Wxxx Cxxxxxxxxx - - - - - - d - - HOUR_MICROSECOND xxxxxxxx - DATE_ADD xxxxxxxx - - - - - Sxxxxx - - - d-dd - - - - - - - - - d - - HOUR_MINUTE xxxxxxxxx (DATE_ADD) - - - - - Mxxxxx - - - d-dd - - - Fxxxx Dxx xx Wxxx Cxxxxxxxxx - - - - - - - - - - WEEKDAY( ) - - - WEEKDAY( ) - - - - WEEKDAY(xxxx) - - - - <para><indexterm id="mysqlian-CHP-12-ITERM-3388" significance="normal"><primary>WEEKDAY( ) xxxxxxxx</primary></indexterm> -Txxx xxxxxxxx xxxxxxx xxx xxxxxx xxx xxx xxx xx xxx xxxx. Mxxxxx xx xxxxxxxxxx xxx xxxxx xxx xx xxx xxxx xxx xxxx xxxxxxxx xxx xx xxxxxxx x xxxxx xx d; x Sxxxxx xxxx xxxxxxx d.</para> - <programlisting format="linespecific">SELECT xxxx_xx, xxxxxx_xx -FROM xxxxxxxxxxxx -WHERE WEEKDAY(xxxx) > d AND -EXTRACT(YEAR_MONTH FROM xxxx) = EXTRACT(YEAR_MONTH FROM NOW( ));</programlisting> - <para>Txxx SQL xxxxxxxxx, xxxxx xx xxx <literal moreinfo="none">WHERE</literal> xxxxxx, xxxx xxxxxxxxx x xxxx xx xxxxxxxxxxxx xxxx xxx xx xxx xxxxxxxx xx xxx xxxxxxx xxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch12-77068"> - <refmeta> - <refentrytitle>WEEKOFYEAR( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>WEEKOFYEAR( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">WEEKOFYEAR(<replaceable>xxxx</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch12-58-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-12-ITERM-3389" significance="normal"><primary>WEEKOFYEAR( ) xxxxxxxx</primary></indexterm> -Txxx xxxxxxxx xxxxxxx xxx xxxxxxxx xxxx xx xxx xxxx xxx x xxxxx xxxx. Txxx xxxxxxxx xxx xxxxx xx xxxxxxx d.d.d xx MxSQL. Ix’x xxxxxxxxxx xxxx <literal moreinfo="none">WEEK( )</literal>, xxx xxxx xxx xxxx xx d xxx xxxx xxxxxxxx xxxx. Txxxx’x xx xxx xx xxxxxx xxx xxxx xxx xxxx xxxxxxxx.</para> - <programlisting format="linespecific">SELECT CURDATE( ) AS Dxxx, -WEEKOFYEAR(CURDATE( )) AS Wxxx; - -+------------+------+ -| Dxxx | Wxxx | -+------------+------+ -| dddd-dd-dd | d | -+------------+------+</programlisting> - </refsect1> - </refentry> - <refentry id="ch12-77069"> - <refmeta> - <refentrytitle>YEAR( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>YEAR( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">YEAR(<replaceable>xxxx</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch12-59-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-12-ITERM-3390" significance="normal"><primary>YEAR( ) xxxxxxxx</primary></indexterm> -Txxx xxxxxxxx xxxxxxx xxx xxxx xx xxx xxxx xxxxxxxx. Ix xxxxxxx xxxxxx xxxx dddd xx dddd, xxx xxxxxxx d xxx x xxxx xxxx.</para> - <programlisting format="linespecific">SELECT YEAR('dddd-dd-dd') -AS 'Yxxx'; - -+------+ -| Yxxx | -+------+ -| dddd | -+------+</programlisting> - </refsect1> - </refentry> - <refentry id="ch12-77070"> - <refmeta> - <refentrytitle>YEARWEEK( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>YEARWEEK( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">YEARWEEK(<replaceable>xxxx</replaceable>[, <replaceable>xxxxx</replaceable>])</synopsis> - </refsynopsisdiv> - <refsect1 id="ch12-60-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-12-ITERM-3391" significance="normal"><primary>YEARWEEK( ) xxxxxxxx</primary></indexterm> -Txxx xxxxxxxx xxxxxxx xxx xxxx xxxxxxx xxxx xxx xxxxxx xx xxx xxxx xxxx xxx xxxx: <emphasis>xxxxxx</emphasis>. Bx xxxxxxx, xxx xxxxx xxx xx xxx xxxx xx Sxxxxx xxx xxx xxxxx xx xxx xxxxxxxxxxx. Oxxxxxxxxx, xxx xxx xxx xxxx xx Mxxxxx xx xxx xxxxx xxx xx xxx xxxx xx xxxxxxxx x xxxxx xx d xxx xxx xxxxxx xxxxxxxx. Txxx xxxxxxxx xx xxxxxxxx xxxxxxxxxx xxxx <literal moreinfo="none">WEEK( )</literal>, xxx xxxx xxx xxxx xxxxxxxx xx xxx xxxxxxx xxx xxx xxxx xx d xxx xxxx xxxxxxxx. Ix xxx xxx xxx xxxxxx xxxxxxxxx xx xxxx xxxxxxxx xx d, xx xxxxxxx xxxxxxx xx <literal moreinfo="none">WEEK( )</literal> xxxx xxx xxxx xx d.</para> - <programlisting format="linespecific">SELECT YEARWEEK('dddd-dd-dd') -AS 'YxxxWxxx'; - -+----------+ -| YxxxWxxx | -+----------+ -| dddddd | -+----------+</programlisting> - <para><indexterm id="mysqlian-CHP-12-ITERM-3392" significance="normal"><primary>PERIOD_DIFF( ) xxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-12-ITERM-3393" significance="normal"><primary>PERIOD_ADD( ) xxxxxxxx</primary></indexterm> -Txxx xxxxxxxx xxx xx xxxxxx xx xxxxxxxxxxx xxxx xxx <literal moreinfo="none">PERIOD_ADD( )</literal> xxx <literal moreinfo="none">PERIOD_DIFF( )</literal> xxxxxxxxx. -<indexterm class="endofrange" startref="mysqlian-CHP-12-ITERM-3394" id="mysqlian-CHP-12-ITERM-3394" significance="normal"/> -<indexterm class="endofrange" startref="mysqlian-CHP-12-ITERM-3395" id="mysqlian-CHP-12-ITERM-3395" significance="normal"/> -<indexterm class="endofrange" startref="mysqlian-CHP-12-ITERM-3396" id="mysqlian-CHP-12-ITERM-3396" significance="normal"/> -<indexterm class="endofrange" startref="mysqlian-CHP-12-ITERM-3397" id="mysqlian-CHP-12-ITERM-3397" significance="normal"/> -</para> - </refsect1> - </refentry> - </sect1> - </chapter> - <chapter id="mysqlian-CHP-13" xml:base="ch13.xml"> - <title>Mxxxxxxxxxxx Fxxxxxxxx - xxxxxxxxxxxx xxxxxxxxx -MxSQL xxx xxxx xxxxx-xx xxxxxxxxxxxx xxxxxxxxx xxxx xxx xxx xxx xx SQL xxxxxxxxxx xxx xxxxxxxxxx xxxxxxxxxxxx xx xxxxxx xx xxxxxxxxx. Exxx xxxxxxxx xxxxxxx xxxxxx xxxxxxx xx xxxxxxx xxxxxxx xxx xxxxxxxxx xxxxxx. Axx xxxxxxxxxxxx xxxxxxxxx xxxxxx NULL xx xxxxx. - - Fxxxxxxxx xx Axxxxxxxxxxx Oxxxx - Txx xxxxxxxxx xx x xxxx xx MxSQL xxxxxxxxxxxx xxxxxxxxx xx xxxxxxxxxxxx xxxxx, xxxxx xxxx xxxxxxxxxxxx xx xxxx xxx xxxxxxxx xx xxxxx xxx. - - - ABS( ) - - - ABS( ) - - - - ABS(xxxxxx) - - - - <para><indexterm id="mysqlian-CHP-13-ITERM-3385" significance="normal"><primary>ABS( ) xxxxxxxx</primary></indexterm> -Txxx xxxxxxxx xxxxxxx xxx xxxxxxxx xxxxx xx x xxxxx xxxxxx.</para> - <programlisting format="linespecific">SELECT ABS(-dd); - -+----------+ -| ABS(-dd) | -+----------+ -| dd | -+----------+</programlisting> - </refsect1> - </refentry> - <refentry id="ch13-77005"> - <refmeta> - <refentrytitle>ACOS( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>ACOS( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">ACOS(<replaceable>xxxxxx</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch13-02-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-13-ITERM-3386" significance="normal"><primary>xxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-13-ITERM-3387" significance="normal"><primary>ACOS( ) xxxxxxxx</primary></indexterm> -Txxx xxxxxxxx xxxxxxx xxx xxxxxxxxx, xx xxxxxxx, xx x xxxxx xxxxxx. Fxx xxxxx xxxxxxx xxxx d xx xxxx xxxx -d, NULL xx xxxxxxxx.</para> - <programlisting format="linespecific">SELECT ACOS(.d), ACOS(d.d); - -+----------+-----------+ -| ACOS(.d) | ACOS(d.d) | -+----------+-----------+ -| d.dddddd | NULL | -+----------+-----------+</programlisting> - </refsect1> - </refentry> - <refentry id="ch13-77006"> - <refmeta> - <refentrytitle>ASIN( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>ASIN( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">ASIN(<replaceable>xxxxxx</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch13-03-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-13-ITERM-3388" significance="normal"><primary>xxxx</primary></indexterm><indexterm id="mysqlian-CHP-13-ITERM-3389" significance="normal"><primary>ASIN( ) xxxxxxxx</primary></indexterm> -Txxx xxxxxxxx xxxxxxx xxx xxxxxxx, xx xxxxxxx, xx x xxxxx xxxxxx. Fxx xxxxx xxxxxxx xxxx d xx xxxx xxxx -d, NULL xx xxxxxxxx.</para> - <programlisting format="linespecific">SELECT ASIN(d); - -+----------+ -| ASIN(d) | -+----------+ -| d.dddddd | -+----------+</programlisting> - </refsect1> - </refentry> - <refentry id="ch13-77007"> - <refmeta> - <refentrytitle>ATAN( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>ATAN( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">ATAN(<replaceable>xxxxxx</replaceable>[, . . . ])</synopsis> - </refsynopsisdiv> - <refsect1 id="ch13-04-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-13-ITERM-3390" significance="normal"><primary>xxxxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-13-ITERM-3391" significance="normal"><primary>ATAN( ) xxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-13-ITERM-3392" significance="normal"><primary>ATANd( ) xxxxxxxx</primary></indexterm> -Txxx xxxxxxxx xxxxxxx xxx xxxxxxxxxx, xx xxxxxxx, xx x xxxxx xxxxxx. Tx xxxxxxxxx xxx xxxxxxxxxx xx xxx xxxxxxx (Y xxx X), xxx xxx xxxxxxxx xxxxxx xxxxxxxx xx xxx xxxxxxxx xx xxx <literal moreinfo="none">ATANd( )</literal>. Txx xxxxx xx Y xxx x Cxxxxxxxx xxxxx xx xxxxx xx xxx xxxxx xxxxxxxx xxx X xx xxx xxxxxx. -</para> - <programlisting format="linespecific">SELECT ATAN(d); - -+----------+ -| ATAN(d) | -+----------+ -| d.dddddd | -+----------+</programlisting> - </refsect1> - </refentry> - <refentry id="ch13-77008"> - <refmeta> - <refentrytitle>ATANd( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>ATANd( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">ATANd(<replaceable>xxxxxx</replaceable>, <replaceable>xxxxxx</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch13-05-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-13-ITERM-3393" significance="normal"><primary>TAN( ) xxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-13-ITERM-3394" significance="normal"><primary>ATANd( ) xxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-13-ITERM-3395" significance="normal"><primary>xxxxxxxxxx</primary></indexterm>Txxx xxxxxxxx xxxxxxx xxx xxxxxxxxxx, xx xxxxxxx, xx X xxx Y xxx x xxxxx xx x Cxxxxxxxx xxxxx. Txx xxxxx xxx Y xx xxxxx xx xxx xxxxx xxxxxxxx xxx X xx xxx xxxxxx. Txx xxxxxxx xxxxxxxx xx <literal moreinfo="none">TAN( )</literal>.</para> - <programlisting format="linespecific">SELECT ATANd(dd, d); - -+--------------+ -| ATANd(dd, d) | -+--------------+ -| d.dddddd | -+--------------+</programlisting> - </refsect1> - </refentry> - <refentry id="ch13-77009"> - <refmeta> - <refentrytitle>BIT_COUNT( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>BIT_COUNT( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">BIT_COUNT(<replaceable>xxxxxx</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch13-06-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-13-ITERM-3488" significance="normal"><primary>BIT_COUNT( ) xxxxxxxx</primary></indexterm> -Txxx xxxxxxxx xxxxxxx xxx xxxxxx xx xxxx xxx xx xxx xxxxxxxx, xxxxx xx xx xxxxxxx xxxx xxx xxxxxxxx xxxxxx xx x xxxxxx xxxxxx.</para> - <programlisting format="linespecific">SELECT BIT_COUNT(dd), BIT_COUNT(dd); - -+---------------+---------------+ -| BIT_COUNT(dd) | BIT_COUNT(dd) | -+---------------+---------------+ -| d | d | -+---------------+---------------+</programlisting> - </refsect1> - </refentry> - <refentry id="ch13-77010"> - <refmeta> - <refentrytitle>CEIL( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>CEIL( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">CEIL(<replaceable>xxxxxx</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch13-07-fm2xml"> - <title/> - <para> -Txxx xxxxxxxx xxxxxx x xxxxx xxxxxxxx-xxxxx xxxxxx xx xx xxx xxxx xxxxxx xxxxxxx. Ix’x xx xxxxx xx <literal moreinfo="none">CEILING()</literal>. -<indexterm id="mysqlian-CHP-13-ITERM-3399" significance="normal"><primary>CEILING( ) xxxxxxxx</primary></indexterm> -<indexterm id="mysqlian-CHP-13-ITERM-3400" significance="normal"><primary>CEIL( ) xxxxxxxx</primary></indexterm></para> - <programlisting format="linespecific">SELECT CEIL(d), CEIL(d.d); - -+---------+-----------+ -| CEIL(d) | CEIL(d.d) | -+---------+-----------+ -| d | d | -+---------+-----------+</programlisting> - </refsect1> - </refentry> - <refentry id="ch13-77011"> - <refmeta> - <refentrytitle>CEILING( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>CEILING( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">CEILING(<replaceable>xxxxxx</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch13-08-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-13-ITERM-3401" significance="normal"><primary>CEIL( ) xxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-13-ITERM-3402" significance="normal"><primary>CEILING( ) xxxxxxxx</primary></indexterm> -Txxx xxxxxxxx xxxxxx x xxxxx xxxxxxxx-xxxxx xxxxxx xx xx xxx xxxx xxxxxx xxxxxxx. Ix’x xx xxxxx xx <literal moreinfo="none">CEIL()</literal>. Txxx xxxxxxxx xxx xx xxxxxxxxxxxx xxxxxx xxxx xxx xxxx x xxxxxxx xxxxx xxx x xxxx xxxxxxxx, xxx xxxxxxx xxx xxxxxxx xxxxxx (xxx xxxxxxxxxxxx) xx xxx xxxxxxx:</para> - <programlisting format="linespecific">SELECT NOW(), NOW() + d, CEILING(NOW() + d); - -+---------------------+-----------------------+--------------------+ -| NOW() | NOW() + d | CEILING(NOW() + d) | -+---------------------+-----------------------+--------------------+ -| dddd-dd-dd dd:dd:dd | dddddddddddddd.dddddd | dddddddddddddd | -+---------------------+-----------------------+--------------------+</programlisting> - </refsect1> - </refentry> - <refentry id="ch13-77012"> - <refmeta> - <refentrytitle>COS( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>COS( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">COS(<replaceable>xxxxxx</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch13-09-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-13-ITERM-3404" significance="normal"><primary>COS( ) xxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-13-ITERM-3403" significance="normal"><primary>xxxxxx</primary></indexterm> -Txxx xxxxxxxx xxxxxxx xxx xxxxxx xx <replaceable>xxxxxx</replaceable>, xxxxx <replaceable>xxxxxx</replaceable> xx xxxxxxxxx xx xxxxxxx.</para> - <programlisting format="linespecific">SELECT COS(d * PI( )); - -+----------------+ -| COS(d * PI( )) | -+----------------+ -| d | -+----------------+</programlisting> - </refsect1> - </refentry> - <refentry id="ch13-77013"> - <refmeta> - <refentrytitle>COT( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>COT( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">COT(<replaceable>xxxxxx</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch13-10-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-13-ITERM-3405" significance="normal"><primary>xxxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-13-ITERM-3406" significance="normal"><primary>COT( ) xxxxxxxx</primary></indexterm> -Txxx xxxxxxxx xxxxxxx xxx xxxxxxxxx xx x xxxxxx.</para> - <programlisting format="linespecific">SELECT COT(d); - -+------------+ -| COT(d) | -+------------+ -| d.dddddddd | -+------------+</programlisting> - </refsect1> - </refentry> - <refentry id="ch13-77014"> - <refmeta> - <refentrytitle>CONV( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>CONV( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">CONV(<replaceable>xxxxxx</replaceable>, <replaceable>xxxx_xxxx</replaceable>, <replaceable>xx_xxxx</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch13-11-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-11-ITERM-3119" significance="normal"><primary>CONV( ) xxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-11-ITERM-3120" significance="normal"><primary>xxxxxxxxxx</primary><secondary>xxxxxxx xx xxxx xxxxxxx</secondary></indexterm> -Txxx xxxxxxxx xxxxxxxx x xxxxxx xxxx xxx xxxxxxx xxxx xxxxxx xx xxxxxxx. Txx xxxxxx xx xxxxxxx xx xxxxx xx xxx xxxxx xxxxxxxx, xxx xxxx xxxx xxxxx xx xxxxxxx xxx xxxxxx xx xxx xxxxxx, xxx xxx xxxx xx xxxxx xx xxxxxxx xxx xxxxxx xx xxx xxxxx. Txx xxxxxxx xxxx xxxxxxx xx d xxx xxx xxxxxxx xx dd.</para> - <programlisting format="linespecific">SELECT CONV(d, dd, d) AS 'Bxxx-dd d Cxxxxxxxx', -CONV(ddd, d, dd) AS 'Bxxxxx ddd Cxxxxxxxx'; - -+---------------------+----------------------+ -| Bxxx-dd d Cxxxxxxxx | Bxxxxx ddd Cxxxxxxxx | -+---------------------+----------------------+ -| ddd | d | -+---------------------+----------------------+</programlisting> - <para>Hxxx xxx xxxxxx d xxxxx xxx xxxx dd xxxxxx xx xxxxxxxxx xx xxx -xxxx-xxx xx xxxxxx xxxxxxxxxx xxx xxxx xxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch13-77015"> - <refmeta> - <refentrytitle>DEGREES( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>DEGREES( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">DEGREES(<replaceable>xxxxxx</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch13-12-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-13-ITERM-3410" significance="normal"><primary>DEGREES( ) xxxxxxxx</primary></indexterm> -Txxx xxxxxxxx xxxxxxxx xxxxxxx xx xxxxxxx.</para> - <programlisting format="linespecific">SELECT DEGREES(PI( )); - -+------------------+ -| DEGREES(PI( )) | -+------------------+ -| ddd.dddddd | -+------------------+</programlisting> - </refsect1> - </refentry> - <refentry id="ch13-77016"> - <refmeta> - <refentrytitle>EXP( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>EXP( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">EXP(<replaceable>xxxxxx</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch13-13-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-13-ITERM-3411" significance="normal"><primary>EXP( ) xxxxxxxx</primary></indexterm> -Txxx xxxxxxxx xxxxxxx xxx xxxxx xx xxx xxxxxxx xxxxxxxxx xxxx xxxxxx <emphasis>x</emphasis> xx xxx xxxxx xx xxx xxxxx xxxxxx.</para> - <programlisting format="linespecific">SELECT EXP(d); - -+----------+ -| EXP(d) | -+----------+ -| d.dddddd | -+----------+</programlisting> - </refsect1> - </refentry> - <refentry id="ch13-77017"> - <refmeta> - <refentrytitle>FLOOR( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>FLOOR( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">FLOOR(<replaceable>xxxxxx</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch13-14-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-13-ITERM-3412" significance="normal"><primary>FLOOR( ) xxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-13-ITERM-3413" significance="normal"><primary>CEILING( ) xxxxxxxx</primary></indexterm> -Txxx xxxxxxxx xxxxxx x xxxxx xxxxxxxx-xxxxx xxxxxx xxxx xx xxx xxxx xxxxx xxxxxxx. Ix’x x xxxxxxxxxxx xx <literal moreinfo="none">CEILING()</literal>. -</para> - <programlisting format="linespecific">SELECT CEILING(d.d), FLOOR(d.d); - -+--------------+------------+ -| CEILING(d.d) | FLOOR(d.d) | -+--------------+------------+ -| d | d | -+--------------+------------+</programlisting> - </refsect1> - </refentry> - <refentry id="ch13-77018"> - <refmeta> - <refentrytitle>FORMAT( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>FORMAT( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">FORMAT(<replaceable>xxxxxx</replaceable>, <replaceable>xxxxxxx</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch13-15-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-13-ITERM-3414" significance="normal"><primary>FORMAT( ) xxxxxxxx</primary></indexterm> -Txxx xxxxxxxx xxxxxxx xxx xxxxx xxxxxxxx-xxxxx <replaceable>xxxxxx</replaceable> xxxx x xxxxx xxxxxxxx xxxxxxx xxxxx xxxxx xxxxxx xxx x xxxxxx xxxxxx xxx xxxxxx xx xxxxxxx xxxxxx xxxxxxxxx xx xxx xxxxxx xxxxxxxx.</para> - <programlisting format="linespecific">SELECT FORMAT(dddd.ddd, d) -AS Axxxxx; - -+----------+ -| Axxxxx | -+----------+ -| d,ddd.dd | -+----------+</programlisting> - <para>Nxxxxx xxxx xxx xxxxxxxx xxxxxxx xxx xxxxxx xxxxx xx xxx xxxxxxx xxxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch13-77019"> - <refmeta> - <refentrytitle>GREATEST( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>GREATEST( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">GREATEST(<replaceable>xxxxx</replaceable>, <replaceable>xxxxx</replaceable>, . . . )</synopsis> - </refsynopsisdiv> - <refsect1 id="ch13-16-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-13-ITERM-3415" significance="normal"><primary>REAL xxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-13-ITERM-3416" significance="normal"><primary>INTEGER xxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-13-ITERM-3417" significance="normal"><primary>GREATEST( ) xxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-13-ITERM-3418" significance="normal"><primary>xxxx xxxxxxxxxxx</primary><secondary>GREATEST( ) xxxxxxxx</secondary></indexterm> -Txxx xxxxxxxx xxxxxxxx xxx xx xxxx xxxxxx, xxxxxxxxx xxx xxxxxxxx xxxxx. Ix xx <literal moreinfo="none">INTEGER</literal> xxxxxxxx xxxxxxx, xxx xxxxxx xxx xxxxxxx xx xxxxxxxx xxx xxxxxxxxxx. Ix x <literal moreinfo="none">REAL</literal> xxxxxxxx xxxxxxx, xxx xxxxxx xxx xxxxxxx xx <literal moreinfo="none">REAL</literal> xxxxxx xxx xxxxxxxxxx. Ix xxx xxxxxxxxx xxxxxxxx x xxxx-xxxxxxxxx xxxxxx (x.x., xxxx x <literal moreinfo="none">BINARY</literal> xxxxxxx), xxx xxxxxx xxx xxxxxxxx xx xxxx-xxxxxxxxx xxxxxxx.</para> - <programlisting format="linespecific">SELECT GREATEST(xxxd, xxxd, xxxd);</programlisting> - </refsect1> - </refentry> - <refentry id="ch13-77020"> - <refmeta> - <refentrytitle>INET_ATON( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>INET_ATON( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">INET_ATON(<replaceable>IP_xxxxxxx</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch13-17-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-13-ITERM-3148" significance="normal"><primary>INET_ATON( ) xxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-13-ITERM-3149" significance="normal"><primary>xxxxxxxxxx</primary><secondary>IP xxxxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-13-ITERM-3150" significance="normal"><primary>IP xxxxxxxxx</primary><secondary>xxxxxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-13-ITERM-3151" significance="normal"><primary>INET_NTOA( ) xxxxxxxx</primary></indexterm> -Txxx xxxxxxxx xxxxxxxx xx Ixxxxxxx Pxxxxxxx (IP) xxxxxxx xx xxx-xxxx xxxxxxxx xx xxx xxxxxxx xxxxxxxxxx. Txx xxxxxxxx <literal moreinfo="none">INET_NTOA( )</literal> xxx xx xxxx xx xxxxxxx xxx xxxxxxx.</para> - <programlisting format="linespecific">SELECT INET_ATON('dd.ddd.dd.dd') -AS 'AT&T'; - -+-----------+ -| AT&T | -+-----------+ -| ddddddddd | -+-----------+</programlisting> - <para>Txxx xxxxxxxx xx xxxxxx xx xxxxxxx IP xxxxxxxxx xxxx xxxxxxxxx xxxxx xxx xxxx xxxxxxxx. Fxx xxxxxxxx, xx xxxxxxx xx dd.d.dd.d xxxxx xxxx xxxxx dd.d.d.d xxx xxxxxx dd.d.d.d xxxxx xxxxxx xxxx xxxxxxxxxx xx xx <literal moreinfo="none">ORDER BY</literal> xxxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch13-77021"> - <refmeta> - <refentrytitle>INET_NTOA( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>INET_NTOA( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">INET_NTOA(<replaceable>IP_xxxxxxx</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch13-18-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-13-ITERM-3152" significance="normal"><primary>INET_NTOA( ) xxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-13-ITERM-3153" significance="normal"><primary>xxxxxxxxxx</primary><secondary>IP xxxxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-13-ITERM-3154" significance="normal"><primary>IP xxxxxxxxx</primary><secondary>xxxxxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-13-ITERM-3155" significance="normal"><primary>INET_ATON( ) xxxxxxxx</primary></indexterm> -Txxx xxxxxxxx xxxxxxxx xxx xxxxxxx xxxxxxxxxx xx xx IP xxxxxxx xx xxx xxx-xxxx xxxxxxxx. Txx xxxxxxxx <literal moreinfo="none">INET_ATON( )</literal> xxx xx xxxx xx xxxxxxx xxx xxxxxxx.</para> - <programlisting format="linespecific">SELECT INET_NTOA('ddddddddd') -AS 'AT&T'; - -+--------------+ -| AT&T | -+--------------+ -| dd.ddd.dd.dd | -+--------------+</programlisting> - </refsect1> - </refentry> - <refentry id="ch13-77022"> - <refmeta> - <refentrytitle>LEAST( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>LEAST( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">LEAST(<replaceable>xxxxx</replaceable>, <replaceable>xxxxx</replaceable>, . . . )</synopsis> - </refsynopsisdiv> - <refsect1 id="ch13-19-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-13-ITERM-3426" significance="normal"><primary>xxxx xxxxxxxxxxx</primary><secondary>LEAST( ) xxxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-13-ITERM-3427" significance="normal"><primary>REAL xxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-13-ITERM-3428" significance="normal"><primary>LEAST( ) xxxxxxxx</primary></indexterm> -Uxx xxxx xxxxxxxx xx xxxxxxx xxx xx xxxx xxxxxx xxx xxxxxx xxx xxxxxxxx xxxxx. Ix xx <literal moreinfo="none">INTEGER</literal> xxxxxxxx xxxxxxx, xxx xxxxxx xxx xxxxxxx xx xxxxxxxx xxx xxxxxxxxxx. Ix x <literal moreinfo="none">REAL</literal> xxxx xxxx xxxxxxx, xxx xxxxxx xxx xxxxxxx xx <literal moreinfo="none">REAL</literal> xxxxxx xxx xxxxxxxxxx. Ix xxx xxxxxxxxx xxxxxxxx x xxxx-xxxxxxxxx xxxxxx (x.x., xxxx x <literal moreinfo="none">BINARY</literal> xxxxxxx), xxx xxxxxx xxx xxxxxxxx xx xxxx-xxxxxxxxx xxxxxxx.</para> - <programlisting format="linespecific">SELECT LEAST(xxxd, xxxd, xxxd);</programlisting> - </refsect1> - </refentry> - <refentry id="ch13-77023"> - <refmeta> - <refentrytitle>LN( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>LN( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">LN(<replaceable>xxxxxx</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch13-20-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-13-ITERM-3429" significance="normal"><primary>LN( ) xxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-13-ITERM-3430" significance="normal"><primary>xxxxxxxxx</primary></indexterm> -Txxx xxxxxxxx xxxxxxx xxx xxxxxxx xxxxxxxxx xx xxx xxxxx. -</para> - <programlisting format="linespecific">SELECT LN(d); - -+----------+ -| LN(d) | -+----------+ -| d.dddddd | -+----------+</programlisting> - </refsect1> - </refentry> - <refentry id="ch13-77024"> - <refmeta> - <refentrytitle>LOG( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>LOG( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">LOG(<replaceable>xxxxxx</replaceable>[, <replaceable>xxxx</replaceable>])</synopsis> - </refsynopsisdiv> - <refsect1 id="ch13-21-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-13-ITERM-3431" significance="normal"><primary>xxxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-13-ITERM-3432" significance="normal"><primary>LOG( ) xxxxxxxx</primary></indexterm> -Txxx xxxxxxxx xxxxxxx xxx xxxxxxxxx xx xxx xxxxx xxxxxxxx xx xxx xxxx xxxxxxxxx xx xxx xxxxxx xxxxxxxx. Txxx xx xxx xxxx xx xxxxx <literal moreinfo="none">LOG(</literal><replaceable>xxxxxx</replaceable><literal moreinfo="none">)/LOG(</literal><replaceable>xxxx</replaceable><literal moreinfo="none">)</literal>. Ix xxx xxxxxxxx xx xxxxxx xxxx xxxx xxx xxxxx xxxxxxxx, xxx xxxxxxx xxxxxxxxx xx xxxxxxxx; xxx xxxxxxxx xx xxxxxxxxxx xx <literal moreinfo="none">LN</literal> xx xxxx xxxx.</para> - <programlisting format="linespecific">SELECT LOG(d,d); - -+------------+ -| LOG(d,d) | -+------------+ -| d.dddddddd | -+------------+</programlisting> - </refsect1> - </refentry> - <refentry id="ch13-77025"> - <refmeta> - <refentrytitle>LOGd( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>LOGd( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">LOGd(<replaceable>xxxxxx</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch13-22-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-13-ITERM-3433" significance="normal"><primary>xxxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-13-ITERM-3434" significance="normal"><primary>LOGd( ) xxxxxxxx</primary></indexterm> -Txxx xxxxxxxx xxxxxxx xxx xxxx-xxx xxxxxxxxx xx x xxxxx xxxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch13-77026"> - <refmeta> - <refentrytitle>LOGdd( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>LOGdd( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">LOGdd(<replaceable>xxxxxx</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch13-23-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-13-ITERM-3435" significance="normal"><primary>xxxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-13-ITERM-3436" significance="normal"><primary>LOGdd( ) xxxxxxxx</primary></indexterm> -Txxx xxxxxxxx xxxxxxx xxx xxxx dd xxxxxxxxx xx x xxxxx xxxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch13-77027"> - <refmeta> - <refentrytitle>MOD( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>MOD( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">MOD(<replaceable>xxxxxx</replaceable>, <replaceable>xxxxxx</replaceable>) -<replaceable>xxxxxx</replaceable> MOD <replaceable>xxxxxx</replaceable></synopsis> - </refsynopsisdiv> - <refsect1 id="ch13-24-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-13-ITERM-3439" significance="normal"><primary>xxxxxxx (%) xxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-13-ITERM-3440" significance="normal"><primary>MOD( ) xxxxxxxx</primary></indexterm> -Txxx xxxxxxxx xxxxxxx xxx xxxxxxxxx xx x xxxxxx xxxxx xx xxx xxxxx xxxxxxxx xxxx xxxxxxx xx xxx xxxxxx xxxxx xx xxx xxxxxx xxxxxxxx, xxx xxxxxx. Txx xxxxxxxx xxxxx xxx xxxx xx xxxxx xxx <literal moreinfo="none">%</literal> xxxxxxxx xxxxxxx xxx xxxxx xxxxxxx. Txx xxxxxx xxxxxx xxxxx xx xxxxxxxxx xx xx Vxxxxxx d.d xx MxSQL. Sxxxxxxx xxxx Vxxxxxx d.d.d, xxxxxxxxxx xxxxxx xxx xx xxxxx.</para> - <programlisting format="linespecific">SELECT MOD(dd, d); - -+------------+ -| MOD(dd, d) | -+------------+ -| d | -+------------+</programlisting> - <para>Hxxx’x xx xxxxxxx xx xxx xxxxxxxxx xxxxxx:</para> - <programlisting format="linespecific">SELECT dd MOD d; - -+----------+ -| dd MOD d | -+----------+ -| d | -+----------+</programlisting> - </refsect1> - </refentry> - <refentry id="ch13-77028"> - <refmeta> - <refentrytitle>OCT( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>OCT( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">OCT(<replaceable>xxxxxx</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch13-25-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-11-ITERM-3184" significance="normal"><primary>OCT( ) xxxxxxxx</primary></indexterm> -Txxx xxxxxxxx xxxxxxx xxx xxxxx xx xxxx d xxxxxxx xxxxxx xxxxx xx xxx xxxxx xxxxxx. Ix xxxxxxx NULL xx xxx xxxxxxxx xx NULL.</para> - <programlisting format="linespecific">SELECT OCT(d), OCT(d), OCT(dd); - -+--------+--------+---------+ -| OCT(d) | OCT(d) | OCT(dd) | -+--------+--------+---------+ -| dd | dd | dd | -+--------+--------+---------+</programlisting> - </refsect1> - </refentry> - <refentry id="ch13-77029"> - <refmeta> - <refentrytitle>PI( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>PI( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">PI( )</synopsis> - </refsynopsisdiv> - <refsect1 id="ch13-26-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-13-ITERM-3441" significance="normal"><primary>PI( ) xxxxxxxx</primary></indexterm> -Txxx xxxxxxxx xxxxxxx xx xxxxxxx xxx xxxxx xxxx xxxxxxx xxxxxx xx xxx xxxxxx <emphasis>xx</emphasis>. Yxx xxx xxxxxx xx xx xxxxxxx xxxx xxxxxxx xxxxxx xx xxxxxx x xxxx xx xxx xxx xx xxx xxxxxxxx. Txxxx xx xx xxxxxxxx xxxxxx xxx xxxxxxxxxxx xx xxx xxxxxxxx.</para> - <programlisting format="linespecific">SELECT PI( ), PI( ) + d.dddddddddd; - -+----------+----------------------+ -| PI( ) | PI( ) + d.dddddddddd | -+----------+----------------------+ -| d.dddddd | d.dddddddddd | -+----------+----------------------+</programlisting> - </refsect1> - </refentry> - <refentry id="ch13-77030"> - <refmeta> - <refentrytitle>POW( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>POW( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">POW(<replaceable>xxxxxx</replaceable>, <replaceable>xxxxxxxx</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch13-27-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-13-ITERM-3442" significance="normal"><primary>POWER( ) xxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-13-ITERM-3443" significance="normal"><primary>POW( ) xxxxxxxx</primary></indexterm> -Txxx xxxxxxxx xxxxxxx xxx xxxxxx xx xxxxxxx xxx xxxxxx xxxxx xx xxx xxxxx xxxxxxxx xx xxx xxxxxxxx xxxxx xx xxx xxxxxx xxxxxxxx. Ix’x xx xxxxx xxx <literal moreinfo="none">POWER( )</literal>.</para> - <programlisting format="linespecific">SELECT POW(d, d); - -+-----------+ -| POW(d, d) | -+-----------+ -| dd.dddddd | -+-----------+</programlisting> - </refsect1> - </refentry> - <refentry id="ch13-77031"> - <refmeta> - <refentrytitle>POWER( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>POWER( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">POWER(<replaceable>xxxxxx</replaceable>, <replaceable>xxxxxxxx</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch13-28-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-13-ITERM-3444" significance="normal"><primary>POW( ) xxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-13-ITERM-3445" significance="normal"><primary>POWER( ) xxxxxxxx</primary></indexterm> -Txxx xxxxxxxx xxxxxxx xxx xxxxxx xx xxxxxxx xxx xxxxxx xxxxx xx xxx xxxxx xxxxxxxx xx xxx xxxxx xx xxx xxxxxx xxxxx xx xxx xxxxxx xxxxxxxx. Ix’x xx xxxxx xxx <literal moreinfo="none">POW()</literal>.</para> - </refsect1> - </refentry> - <refentry id="ch13-77032"> - <refmeta> - <refentrytitle>RADIANS( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>RADIANS( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">RADIANS( )</synopsis> - </refsynopsisdiv> - <refsect1 id="ch13-29-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-13-ITERM-3446" significance="normal"><primary>RADIANS( ) xxxxxxxx</primary></indexterm> -Txxx xxxxxxxx xxxxxxxx xxxxxxx xx xxxxxxx.</para> - <programlisting format="linespecific">SELECT RADIANS(ddd); - -+-----------------+ -| RADIANS(ddd) | -+-----------------+ -| d.ddddddddddddd | -+-----------------+</programlisting> - </refsect1> - </refentry> - <refentry id="ch13-77033"> - <refmeta> - <refentrytitle>RAND( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>RAND( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">RAND([<replaceable>xxxx</replaceable>])</synopsis> - </refsynopsisdiv> - <refsect1 id="ch13-30-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-13-ITERM-3447" significance="normal"><primary>RAND( ) xxxxxxxx</primary></indexterm> -Txxx xxxxxxxx xxxxxxx x xxxxxx xxxxxxxx-xxxxx xxxxxx xxxx d xx d. A xxxx xxxxxx xxx xx xxxxxx xx xx xxxxxxxx xx xxxxx xxx xxxxxxxx xx xxxxxx xxxxxxx xx x xxxxxxxxx xxxxx.</para> - <programlisting format="linespecific">SELECT RAND( ), RAND( ); - -+------------------+------------------+ -| RAND( ) | RAND( ) | -+------------------+------------------+ -| d.dddddddddddddd | d.dddddddddddddd | -+------------------+------------------+</programlisting> - <para>Nxxx xxxx xxxxxxxxx xxxx xxxxxxxxx xxxx xxx xxxx xxxx xxxx xxxxxxx xxx xxxx xxxxxxx. Txxx xxxx xx xxxxxxxx xx xxxxxxxx xxxxx xx x xxxxxxxxxxxx xxxxxx xxxxxxxxx, xxx xx xxxxxxxxx xxx xxxxxxxxxx xxxxxx xxxxxx xxx xxxxxxxx xxxxxxxx, xxx xxxxxxxx xxx xxxxxx xxxxxx xxxxxxx xxxxx x xxx xx xxxxxxxxxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch13-77034"> - <refmeta> - <refentrytitle>ROUND( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>ROUND( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">ROUND(<replaceable>xxxxxx</replaceable>[, <replaceable>xxxxxxxxx</replaceable>])</synopsis> - </refsynopsisdiv> - <refsect1 id="ch13-31-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-13-ITERM-3448" significance="normal"><primary>ROUND( ) xxxxxxxx</primary></indexterm> -Txxx xxxxxxxx xxxxxx x xxxxxx xxxxx xx xxx xxxxx xxxxxxxx xx xxx xxxxxxx xxxxxxx. Txx xxxxxx xxx xx xxxxxxx xx xxx xxxxxx xx xxxxxxx xxxxxx xxxxx xx xxx xxxxxx xxxxxxxx.</para> - <programlisting format="linespecific">SELECT ROUND(d.ddd), ROUND(d.ddd, d); - -+--------------+-----------------+ -| ROUND(d.ddd) | ROUND(d.ddd, d) | -+--------------+-----------------+ -| d | d.dd | -+--------------+-----------------+</programlisting> - </refsect1> - </refentry> - <refentry id="ch13-77035"> - <refmeta> - <refentrytitle>SIGN( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>SIGN( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">SIGN(<replaceable>xxxxxx</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch13-32-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-13-ITERM-3449" significance="normal"><primary>SIGN( ) xxxxxxxx</primary></indexterm> -Txxx xxxxxxxx xxxxxxx -d xx xxx xxxxx xxxxxx xx x xxxxxxxx, d xx xx xx xxxx, xxx d xx xx xx xxxxxxxx.</para> - <programlisting format="linespecific">SELECT SIGN(-d); - -+----------+ -| SIGN(-d) | -+----------+ -| -d | -+----------+</programlisting> - </refsect1> - </refentry> - <refentry id="ch13-77036"> - <refmeta> - <refentrytitle>SIN( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>SIN( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">SIN(<replaceable>xxxxxx</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch13-33-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-13-ITERM-3450" significance="normal"><primary>SIN( ) xxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-13-ITERM-3451" significance="normal"><primary>xxxx</primary></indexterm> -Txxx xxxxxxxx xxxxxxx xxx xxxx xx xxx xxxxxx xxxxx, xxxxx <replaceable>xxxxxx</replaceable> xx xxxxxxxxx xx xxxxxxx.</para> - <programlisting format="linespecific"> SELECT SIN(.d * PI( )); - -+-----------------+ -| SIN(.d * PI( )) | -+-----------------+ -| d | -+-----------------+</programlisting> - </refsect1> - </refentry> - <refentry id="ch13-77037"> - <refmeta> - <refentrytitle>SQRT( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>SQRT( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">SQRT(<replaceable>xxxxxx</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch13-34-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-13-ITERM-3452" significance="normal"><primary>SQRT( ) xxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-13-ITERM-3453" significance="normal"><primary>xxxxxx xxxx</primary></indexterm> -Txxx xxxxxxxx xxxxxxx xxx xxxxxx xxxx xx xxx xxxxx, xxxxx xxxx xx x xxxxxxxx xxxxxx.</para> - <programlisting format="linespecific">SELECT SQRT(dd); - -+----------+ -| SQRT(dd) | -+----------+ -| d.dddddd | -+----------+</programlisting> - </refsect1> - </refentry> - <refentry id="ch13-77038"> - <refmeta> - <refentrytitle>TAN( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>TAN( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">TAN(<replaceable>xxxxxx</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch13-35-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-13-ITERM-3460" significance="normal"><primary>xxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-13-ITERM-3461" significance="normal"><primary>TAN( ) xxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-13-ITERM-3462" significance="normal"><primary>ATANd( ) xxxxxxxx</primary></indexterm> -Txxx xxxxxxxx xxxxxxx xxx xxxxxxx xx xx xxxxx, xxxxx <replaceable>xxxxxx</replaceable> xx xxxxxxxxx xx xxxxxxx. Ix’x xxx xxxxxxx xx <literal moreinfo="none">ATANd()</literal>.</para> - <programlisting format="linespecific">SELECT ATANd(d), TAN(d.dddddd); - -+----------+---------------+ -| ATANd(d) | TAN(d.dddddd) | -+----------+---------------+ -| d.dddddd | d.dddddd | -+----------+---------------+</programlisting> - </refsect1> - </refentry> - <refentry id="ch13-77039"> - <refmeta> - <refentrytitle>TRUNCATE( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>TRUNCATE( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">TRUNCATE(<replaceable>xxxxxx</replaceable>, <replaceable>xxxxxx</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch13-36-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-13-ITERM-3463" significance="normal"><primary>ROUND( ) xxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-13-ITERM-3464" significance="normal"><primary>TRUNCATE( ) xxxxxxxx</primary></indexterm> -Txxx xxxxxxxx xxxxxxx x xxxxxx xxxxxxxxxx xx xxx xxxxx xxxxxxxx, xxxxxxxx xxx xxxxxx xxxxxx xxx xxxxxx xx xxxxxxx xxxxxx xxxxxxxxx xx xxx xxxxxx xxxxxxxx. Txx xxxxxxxx xxxx xxx xxxxx xxx xxxxxx; xxx xxx <literal moreinfo="none">ROUND( )</literal> xxxxxxxx xxxxxxx. Ix d xx xxxxx xxx xxx xxxxxx xxxxxxxx, xxx xxxxxxx xxxxx xxx xxx xxxxxxxxxx xxxxx xxx xxxxxxx. Ix x xxxxxxxx xxxxxx xx xxxxx xx xxx xxxxxx xxxxxxxx, xxx xxxxxxx xxxxx xxx xxx xxxxxxxxxx xxxxx xx xxxxxxx, xxx xxx xxxxxx xx xxxxxxxxx xxxxx xx xxxxxx xxx xx xxx xxxxxxxxx xxxxxxx.</para> - <programlisting format="linespecific">SELECT TRUNCATE(ddd.dddd, d) AS '+d', -TRUNCATE(ddd.dddd, d) AS 'd', -TRUNCATE(ddd.dddd, -d) AS '-d'; - -+--------+-----+-----+ -| +d | d | -d | -+--------+-----+-----+ -| ddd.dd | ddd | ddd | -+--------+-----+-----+</programlisting> - <para><indexterm id="mysqlian-CHP-13-ITERM-3465" significance="normal"><primary>TRUNCATE( ) xxxxxxxx</primary></indexterm> -Nxxxxx xxxx xxx xxx xxxxx xxxxx xx xxx xxxxxxx, xxx xxxx xxx xxxxxxx xxxxxx xxx xxxxxxx. Fxx xxx xxxxxx xxxxx, xxx xxxxxxx xxxxx xxx xxx xx xxx xxxxxxxxxx xxxxx xxx xxxxxxx. Fxx xxx xxxxx xxxxx, xxx xxxxxxx xxxxx xxx xxx xxxxxxxxxx xxxxx xxx xxxxxxx, xxx xxxxxxx xxx xxxxxx xxxxxxxxx xx -d, xxx xxx xxxxx xxxxxxxxxxx xxxxx (xxxxxxxx xxxx xxx xxxxx) xx xxx xxxxxxx xxx xxxxxxx xx xxxxx. -<!--indexterm class="endofrange" startref="mysqlian-CHP-13-ITERM-3381" id="mysqlian-CHP-13-ITERM-3467"/--> -<indexterm class="endofrange" startref="mysqlian-CHP-13-ITERM-3382" id="mysqlian-CHP-13-ITERM-3468" significance="normal"/> -<!--indexterm class="endofrange" startref="mysqlian-CHP-13-ITERM-3383" id="mysqlian-CHP-13-ITERM-3469"/--> -</para> - </refsect1> - </refentry> - </sect1> - </chapter> - <chapter id="mysqlian-CHP-14" xml:base="ch14.xml"> - <title>Fxxx Cxxxxxx Fxxxxxxxx - xxxx xxxxxxx xxxxxxxxxxxxxxxxxxxxxx xxxxxxx -MxSQL xxx x xxx xxxxx-xx xxxx xxxxxxx xxxxxxxxx xxxx xxx xxx xxx xx -SQL xxxxxxxxxx xxx xxxx xxxxxxx xxx xxxxxxxx xxxxxxx. Txxx xxxxxxx -xxxxxxxx xxx xxxxxx xx xxxxxxxx xxx xxxxx xxxxxxxx xx xxxxx xxx. Fxx xxx xxxxxxxx xx xxxx xxxxxxx, x xxxxxxxxxx xxxxxxxx xxx x xxxxx xxxxxx xx xxxx. - - - Fxxxxxxxx xx Axxxxxxxxxxx Oxxxx - Txx xxxxxxxxx xxx xxx MxSQL xxxx xxxxxxx xxxxxxxxx xxxxxx xxxxxxxxxxxxxx. - - - CASE - - - CASE - - - - CASE xxxxx - WHEN [xxxxx] THEN xxxxxx - . . . - [ELSE xxxxxx] -END - -CASE - WHEN [xxxxxxxxx] THEN xxxxxx - . . . - [ELSE xxxxxx] -END - - - - <para><indexterm id="mysqlian-CHP-14-ITERM-3472" significance="normal"><primary>CASE xxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-14-ITERM-3473" significance="normal"><primary>IF( ) xxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-14-ITERM-3474" significance="normal"><primary>WHEN xxxxxx (CASE)</primary></indexterm> -Txxx xxxxxxxx xxxxxxxx xxxxxxx xxxx xxxx xxxxx xx -xxxxx <replaceable>xxxxxxxxx</replaceable> xx xxxx. Ix xx xxxxxxx xx xxx <literal moreinfo="none">IF( )</literal> xxxxxxxx xxxxxx xxxx xxxxxxxx xxxxxxxxxx xxx xxxxxxx xxx xx xxxxxx xxxxxxxx. Ix xxx xxxxx xxxxxx xxxxx, xxx <replaceable>xxxxx</replaceable> xxxxx xxxxx <literal moreinfo="none">CASE</literal> xx xxxxxxxx xx xxxx <literal moreinfo="none">WHEN</literal> xxxxx. Ix x xxxxx xx xxxxx, xxx <replaceable>xxxxxx</replaceable> xxxxx xxx xxx <literal moreinfo="none">THEN</literal> xx xxxxxxxx. Txx xxxxxx xxxxxx xxxxx xxxx xxxxxxxxx xxxxxxxxxxxxx, xxx xxxx xxx xxx xxxxx xx x xxxxxx xxxxx. Fxx xxxx xxxxxxxx, xx xx xxxxx xx xxxxx xxx xx <literal moreinfo="none">ELSE</literal> xxxxxx xx xxxxxxxx, xxx xxxxxx xxxxx xxx xxx <literal moreinfo="none">ELSE</literal> xxxxxx xx xxxxxxxx. Ix xxxxx xx xx xxxxx xxx xx <literal moreinfo="none">ELSE</literal> xxxxxx xx xxxxx, NULL xx xxxxxxxx. -</para> - <para>xx - xxx xxxxxx <replaceable>xxxxxx</replaceable> xx x xxxxxx, xx xx xxxxxxxx xx - x xxxxxx xxxx xxxx. Ix <replaceable>xxxxxx</replaceable> xx xxxxxxx, xxx xxxxxx xxx xx xxxxxxxx xx x xxxxxxx, xxxx, xx xxxxxxx xxxxx.</para> - <para>Hxxx’x xx xxxxxxx xx xxx xxxxx xxxxxx xxxxx:</para> - <programlisting format="linespecific">SELECT CONCAT(xxxx_xxxxx, SPACE(d), xxxx_xxxx) AS Cxxxxx, -xxxxxxxxx_xxxx AS Txxxxxxxx, -CASE xxxx - WHEN 'RET' THEN 'Rxxxxxxxxx Axxxxxx' - WHEN 'REG' THEN 'Rxxxxxx Axxxxxx' - WHEN 'CUS' THEN 'Mxxxx Axxxxxx' -END AS 'Axxxxxx Txxx' -FROM xxxxxxx;</programlisting> - <para><indexterm id="mysqlian-CHP-14-ITERM-3475" significance="normal"><primary>CASE( ) xxxxxxxx</primary></indexterm> -Txxx SQL xxxxxxxxx xxxxxxxxx x xxxx xx xxxxxxx xxx xxxxx xxxxxxxxx xxxxxxx, xxxxx xxxx x xxxxxxxxxxx xx xxxxx xxxxxxx xxxx. Hxxxxxx, xxx xxxxxxx xxxx xx x xxxxx-xxxxxx xxxxxxxxxxxx, xx <literal moreinfo="none">CASE( )</literal> xx xxxx xx xxxxxxxxxx xxxx xxxx xxxx x xxxx xxxxxxxxxxx xxxx. -</para> - <para>Txx xxxxxxxx xxxxxxx xxxx xxx xxxxxx xx xxxxx x xxxxxx xxxxxxxxx xx xxxxxxxxx xx xxxxxxxxx xxx xxxxxxxx xxxxxx. Txx xxxxxxxxx SQL xxxxxxxxx xxxxxxxx xxx xxxxx xxxxxx xxx xxx xxxxxxxx:</para> - <programlisting format="linespecific">SELECT CONCAT(xxxx_xxxx, SPACE(d), xxxx_xxxxx) AS Pxxxxxxx, -CASE - WHEN YEAR(NOW( )) - YEAR(xxxxx_xxxx) ≤ dd THEN 'Mxxxx' - WHEN YEAR(NOW( )) - YEAR(xxxxx_xxxx) > dd < dd THEN 'Txx Yxxxx' - WHEN YEAR(NOW( )) - YEAR(xxxxx_xxxx) > dd THEN 'Exxxxxx' - ELSE xxxx_xxxxxxxxx; -END -AS Txxxxxxxx -FROM xxxxxxxxx;</programlisting> - <para><indexterm id="mysqlian-CHP-14-ITERM-3476" significance="normal"><primary>CASE( ) xxxxxxxx</primary></indexterm> -Ix xxxx xxxxxxx, xxx SQL xxxxxxxxx xxxxxxxx x xxxxx xxxxxxxxxx x xxxx -xx xxxxxx xxxx xxx xxxxxx xxxxx xxxx xx xxx xx xxxxxxxxxx. Txx xxxxx -xxxxxxxx xxx xxxxx xxxxx xxx xxx xxxxxxxxx xxxxxxx xx xxxx -xxxxxxxx. Txx SQL xxxxxxxxx xxxxxxxx xxx xxxxxxxxx xxxxxxx xxxx xxx -xxxxxxxxx xxxx dd xx dd, xxxxxxx xxxxxx xxxxxxx xx xxxxx xxxxx xxx xx xxxxxxxx xxx xxxx xxxxxxxxxx xxxxxxxxxx. Hxxxxxx, x xxxxxxx xxx xxxx xxxxxxxx xxxx xx xxxxxxxxxxxx xx xxxxx xxxxx xx xxx xxxxxxx xx xxx <literal moreinfo="none">CASE()</literal> xxxxxxxxx. -</para> - <para>Wxxx xxxxx x <literal moreinfo="none">CASE</literal> xxxxxxxxx xxxxxx x xxxxxx xxxxxxxxx, xx xxxxxx xx xxxx x NULL xxxxx xxx xxx <literal moreinfo="none">ELSE</literal> xxxxxx. Axxx, x <literal moreinfo="none">CASE</literal> xxxxxxxxx xxxx xxxx <literal moreinfo="none">END CASE</literal>.</para> - </refsect1> - </refentry> - <refentry id="ch14-77003"> - <refmeta> - <refentrytitle>IF( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>IF( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">IF(<replaceable>xxxxxxxxx</replaceable>, <replaceable>xxxxxx</replaceable>, <replaceable>xxxxxx</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch14-02-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-14-ITERM-3477" significance="normal"><primary>IF( ) xxxxxxxx</primary></indexterm>Txxx xxxxxxxx xxxxxxx xxx <replaceable>xxxxxx</replaceable> - xxxxx xx xxx xxxxxx xxxxxxxx xx - xxx <replaceable>xxxxxxxxx</replaceable> xxxxx xx xxx xxxxx xxxxxxxx - xx xxx (x.x., xxx <replaceable>xxxxxxxxx</replaceable> xxxx xxx - xxxxx d xx NULL). Ix xxx xxxxxxxxx xxxx xxxxx d xx NULL, xxx xxxxxxxx xxxxxxx xxx <replaceable>xxxxxx</replaceable> xxxxx xx xxx xxxxx xxxxxxxx. Nxxx xxxx xxx xxxxx xx <replaceable>xxxxxxxxx</replaceable> xx xxxxxxxxx xx xx xxxxxxx. Txxxxxxxx, xxx x xxxxxxxxxx xxxxxxxx xxxx xxxxxx xx xxxxx x xxxxxx xx x xxxxxxxx xxxxx xxxxx. Txx xxxxxxxx xxxxxxx x xxxxxxx xx x xxxxxx xxxxx xxxxxxxxx xx xxx xxx. Ax xx Vxxxxxx d.d.d xx MxSQL, xx xxx xxxxxx xx xxx xxxxx xxxxxxxx xx NULL, xxx xxxx (x.x., xxxxxx, xxxxx, xx xxxxxxx) xx xxx xxxxx xxx-NULL xxxxxxxx xxxx xx xxxxxxxx.</para> - <programlisting format="linespecific">SELECT xxxxxxx.xxxxxx_xx AS ID, -CONCAT(xxxx_xxxxx, SPACE(d), xxxx_xxxx) AS Cxxxxx, -xxxxxxxxx_xxxx AS Txxxxxxxx, SUM(xxx) AS Sxxxxx, -IF( - (SELECT SUM(xxx * xxxxx) - FROM xxxxxxxxxxx, xxxxx_xxxxxx - WHERE xxxxx_xxxxxx = xxxxxx - AND xxxxxx_xx = ID ) - > dddddd, 'Lxxxx', 'Sxxxx') AS 'Sxxx' -FROM xxxxxxx, xxxxxxxxxxx -WHERE xxxxx_xxxxxx = 'GT' -AND xxxxxxx.xxxxxx_xx = xxxxxxxxxxx.xxxxxx_xx -GROUP BY xxxxxxx.xxxxxx_xx LIMIT d; - -+------+----------------+-----------+--------+-------+ -| ID | Cxxxxx | Txxxxxxxx | Sxxxxx | Sxxx | -+------+--------------+-------------+--------+-------+ -| dddd | Jxxxx Nxxxxxxx | ddd-dddd | ddd | Lxxxx | -| dddd | Rxxxx Oxxxxxx | ddd-dddd | ddd | Sxxxx | -+------+--------------+--------------+--------+------+</programlisting> - <para><indexterm id="mysqlian-CHP-14-ITERM-3478" significance="normal"><primary>IF( ) xxxxxxxx</primary></indexterm> -Txxx SQL xxxxxxxxx xx xxxxxxxx xx xxxxxxxx xxx xxxxx xxx xxxxxxxxx xxxxxxx xx xxxxxxx xxx xxx Gxxxxxxx xxxxx (xxx xxxxx xxxxxx xx <emphasis>GT</emphasis>), xxxxxxx xxx xxxxxx xxxxx xx xxxx xxxx xx xxxxxxxxx xxxx xxxx xxxx xx. Txx xxxxxxx xxxxxxxx x xxxxxxxx (xxxxxxxxx xx xx Vxxxxxx d.d) xx xxxxx xxx xxxxx xx xxx xxx xxxxxx’x xxxxxx xxxxx (xxx xxxx Gxxxxxxx xxxxx), xx x xxxxxxxxx xx xxx <literal moreinfo="none">IF( )</literal> xxxxxxxx. Ix xxxx xxxx xx xxxxxxx xxx <emphasis>xxxxxxxxxxx</emphasis> xxxxx (xxxxx xxxxxxxx x xxx xxx xxxx xxxxx xxxxxxxx xxx xxxx) xxx xxx <emphasis>xxxxx_xxxxxx</emphasis> xxxxx (xxxxx xxxxxxxx xxxxxxx xxxxxx xxx xxx xxxxxx). Ix xxx xxx xx xxx xxxxx xx xxx xxxxxx xxxxx xx xxx xxxxxx (xxx xxxxxxx xx xxx xxxxxxxx) xx xxxx xxxx $ddd,ddd, x xxxxx xx <emphasis>Lxxxx</emphasis> xx xxxxxxxx xx xxx <emphasis>Sxxx</emphasis> xxxxxx. Oxxxxxxxx, xxx xxxxxx xx xxxxxxx <emphasis>Sxxxx</emphasis>. Txx xxxxxx xxxxx xx xxxx xxx xxxxx xxxxxxx xxxxx. Nxxxxx xx xxx xxxxxxx xxxxx xxxx xxxx xxxxxxx xxx xxx xxxx xxxxxx xx xxxxxx xx Gxxxxxxx, xxx xxx xxx x xxxxx xxxxxxxxx. -</para> - <para>Nxxx xxxx xxx <literal moreinfo="none">IF</literal> xxxxxxxxx xxxx xx xxxxxx xxxxxxxxxx xxx x xxxxxxxxx xxxxxx xxxx xxx <literal moreinfo="none">IF( )</literal> xxxxxxxx xxxxxxxxx xxxx. Sxx <xref linkend="mysqlian-CHP-9"/> xxx xxxx xxxxxxxxxxx xx xxx <literal moreinfo="none">IF</literal> xxxxxxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch14-77004"> - <refmeta> - <refentrytitle>IFNULL( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>IFNULL( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">IFNULL(<replaceable>xxxxxxxxx</replaceable>, <replaceable>xxxxxx</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch14-03-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-14-ITERM-3479" significance="normal"><primary>IFNULL( ) xxxxxxxx</primary></indexterm> -Txxx xxxxxxxx xxxxxxx xxx xxxxxxx xx xxx <replaceable>xxxxxxxxx</replaceable> xxxxx xx xxx xxxxx xxxxxxxx xx xxx xxxxxxxx xx xxx xxxxxxx xxx xxx NULL. Ix xxx xxxxxxxxx xxxxxxx xxx NULL, xxx xxxxxxx xx xxx xxxxxxxxxx xx xxxxxx xxxxx xx xxx xxxxxx xxxxxxxx xxx xxxxxxxx. Ix xxxx xxxxxx x xxxxxxx xx x xxxxxx xxxxx xxxxxxxxx xx xxx xxxxxxx.</para> - <programlisting format="linespecific">SELECT CONCAT(xxxx_xxxxx, SPACE(d), xxxx_xxxx) AS Cxxxxx, -xxxxxxxxx_xxxx AS Txxxxxxxx, -IFNULL(xxxxx, 'Nx Gxxxx Gxxxx') AS Gxxxx -FROM xxxxxxx LIMIT d; - -+----------------+-----------+----------------+ -| Cxxxxx | Txxxxxxxx | Gxxxx | -+----------------+-----------+----------------+ -| Jxxxxx Sxxxxx | ddd-dddd | Nx Gxxxx Gxxxx | -| Kxxxxxx Bxxxxx | ddd-dddd | Lxxx Txxx | -+----------------+-----------+----------------+</programlisting> - <para>Txxx SQL xxxxxxxxx xxxxxxxx x xxxx xx xxxxxxx xxx xxxxx xxxxxxxxx xxxxxxx, xxxxx xxxx xxxxx xxxxxxxxxx xxxxx. Ix xxx xxxxxx xxxxx xxxx xxx xxxxxx xx xx xxxxxxxxxx xxxx (x.x., xxx <emphasis>xxxxx</emphasis> xxxxxx xx NULL), xxx xxxx “Nx Gxxxx Gxxxx” xx xxxxxxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch14-77021"> - <refmeta> - <refentrytitle>ISNULL( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>ISNULL( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">ISNULL(<replaceable>xxxxxx</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch14-04-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-14-ITERM-3526" significance="normal"><primary>ISNULL( ) xxxxxxxx</primary></indexterm> -Uxx xxxx xxxxxxxx xx xxxxxxxxx xxxxxxx xxx xxxxx xx xxx xxxxxxxx - xxxxx xx xxxxxxxxxxx xx NULL. Ix xxxxxxx d xx xxx xxxxx xx NULL xxx d xx xx xx xxx NULL.</para> - <programlisting format="linespecific">SELECT CONCAT(xxxx_xxxxx, SPACE(d), xxxx_xxxx) AS Cxxxxx, -xxxxxxxxx_xxxx AS 'Wxxx Txxxxxxxx' -FROM xxxxxxx -WHERE ISNULL(xxxxxxxxx_xxxx);</programlisting> - <para>Ix xxxx xxxxxxx, xxxxx xxxxxxxxx xxxx xx xxx’x xxxx xxxx xxxxxxxxx xxxxxxx xxx xxxxxxx xx xxx xxxxxxx, xx xxx xxx <literal moreinfo="none">ISNULL( )</literal> xxxxxxxx xx xxx <literal moreinfo="none">WHERE</literal> xxxxxx xx x <literal moreinfo="none">SELECT</literal> xxxxxxxxx xx xxxx xxxxxx xxxxx xxx xxxxx xxxx xxxxxxxxx xxxxxxx xx xxxx xx xxx xxxx xxxx xx xxx xxxxx xxxx xxxxxxxxx xxxxxxx. Oxxx xxxx xx xxxxx xxx <literal moreinfo="none">xxxx_xxxxxxxxx</literal> xxxxxx xx NULL xxxx xxxxxx xx x xxxxx xx d xxx xxxxxxxxx xxxx xx xxxxx xx xxx xxxxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch14-77005"> - <refmeta> - <refentrytitle>NULLIF( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>NULLIF( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">NULLIF(<replaceable>xxxxxxxxxd</replaceable>, <replaceable>xxxxxxxxxd</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch14-05-fm2xml"> - <title/> - <para>Txxx xxxxxxxx xxxxxxx NULL xx xxx xxx xxxxxxxxx xxxxx xxx xxxxx. Oxxxxxxxx, xx xxxxxxx xxx xxxxx xx xxxxxxx xx xxx xxxxx xxxxxxxx.</para> - <programlisting format="linespecific">SELECT xxxxxxx.xxxxxx_xx AS ID, -CONCAT(xxxx_xxxxx, SPACE(d), xxxx_xxxx) AS Cxxxxx, -xxxxxxxxx_xxxx AS Txxxxxxxx, -NULLIF( - (SELECT SUM(xxx * xxxxx) - FROM xxxxxxxxxxx, xxxxx_xxxxxx - WHERE xxxxx_xxxxxx = xxxxxx - AND xxxxxx_xx = ID ), d) -AS Vxxxx -FROM xxxxxxx, xxxxxxxxxxx -WHERE xxxxxxx.xxxxxx_xx = xxxxxxxxxxx.xxxxxx_xx -GROUP BY xxxxxxx.xxxxxx_xx;</programlisting> - <para>Ix xxxx xxxxxxx, NULL xx xxxxxxxx xxx xxx <emphasis>Vxxxx</emphasis> xxxxxx xx xxx xxxxx xx xxx xxxxxx’x xxxxxx xx d (x.x., xxx xxxxxx xxx xxxxxx xxx xxxx xxxx xxx). Ix xxxxx xx x xxxxx xx xxx xxxxxx, xxxxxxx, xxx xxx xx xxxxx xxxxxx xx xxxxxxxxx.<indexterm class="endofrange" startref="mysqlian-CHP-14-ITERM-3470" id="mysqlian-CHP-14-ITERM-3481" significance="normal"/> -<indexterm class="endofrange" startref="mysqlian-CHP-14-ITERM-3471" id="mysqlian-CHP-14-ITERM-3482" significance="normal"/> -</para> - </refsect1> - </refentry> - </sect1> - </chapter> - </part> - <part id="mysqlian-PART-3" xml:base="part3.xml"> - <title>MxSQL Sxxxxx xxx Cxxxxx Txxxx - - - -Txxx xxxx xx xxx xxxx xxxxx xxx xx xxxxxx xxx xxxxxxxx xxxxxxxxxx -MxSQL: xxx xxxx xxxxxx xxxxxx, xxxxxxx xxxxxxxx xxx -xxxx xxxxxx, xxx xxxxx xxxxxxx-xxxx xxxxxx, xxx -xxxxxx xxxxxxxxxxxxxx xxxxxxxxx. Txxxx xxxxxxxx xxx xxxxxxxxxx xx -xxxxxxx xxxx xxx xx xxxxxxxx xx xxx xxxxxxx xxxx xx xx xxx MxSQL -xxxxxxxxxxxxx xxxx (xx.xxx xx -xx.xxx, xxxxxxxxx xx xxxx xxxxxx). - - - - - MxSQL Sxxxxx xxx Cxxxxx - Txx xxxxxxx xxxxxxxxxx xxxx xxxxxx xx xxx MxSQL xxxxxx xx xxx xxxxxx xxxxxx, xxxxx xxxxxxx xxx xxxxxxxx xxxx xxxxxxx xxx xxxxxxxxx xxxx. Txx xxxxxxx-xxxxxxx xxxxxx xxxxxxxx xxxx MxSQL xx xxx xxxxx xxxxxxx. Txxx xxxxxxx xxxxxxxx xxx xxxx xxxxxxx xxxxxxxxx xxx xxxx xxx xxxxxx MxSQL xxxxxx xxx xxx xxxxx xxxxxx. A xxx xxxxxxx xxxxxxxx xxxx MxSQL xxxx xxx xxxx xx xxxxx xxx xxxxxx (xxxxxx_xxxxx xxx xxxxxx_xxxx) xxx xxxx xxxxxxxxx. Txx xxxxxxx xxx xxxxxxx xxx xxxxxx xx xxxxxxxxxxxx xxxxx. - - xxxxx Cxxxxx - - - xxxxx - - - xxxxx - - - - xxxxx xxxxxxx [xxxxxxxx] - - - - <para><indexterm class="startofrange" id="ch15-idx-986670-1" significance="normal"><primary>xxxxx xxxxxx</primary><secondary>xxxxxxxx</secondary></indexterm> -Txx <literal moreinfo="none">xxxxx</literal> xxxxxx xxx xx xxxx xx xxxxxxxx xxxx MxSQL xx xxxxxxxx xx xxxxxxx xxxx. Tx xxxxx xxxxxxx xxxx, xxxxx xxxxxxxxx xxxx xxx xxxxxxxxx xxxx xxx xxxxxxx xxxx:</para> - <programlisting format="linespecific">xxxxx -x xxxxxxx -x</programlisting> - <para>Ix xxx MxSQL xxxxxx xx xxxxxxx, xxx xxxxxx xxxx xxxxxx xxx xxxx xxx x xxxxxxxx (xxxxxx xx xxx <literal moreinfo="none">-x</literal> xxxxxx). Oxxx xx xxxxxxx xxxx, xxx xxx xxxxx SQL xxxxxxxxxx xx xxxx xx xx xxxxxx xxxx, xx xxxx xx xxx xxxxxx xx xxx xxxxxx.</para> - <para>Ax xx xxxxxxxxxxx xx xxxxxxx xxxx, xxxx xxxxxxxxxx xxxxxxxxxxxxxxx xxxxx xx MxSQL, xxx xxx xxxxx xxx xxx <literal moreinfo="none">xxxxx</literal> xxxxxx xxxx xxx xxxxxxx xxxx. Fxx xxxxxxxx, xx xxxxxxx x xxxxx xxxx xxxx xxxxxxxx xxxxxxx SQL xxxxxxxxxx xxxx xxxx xxxxxx xxxx xxxx x xxxxxxxx, xxx xxxxx xx xxxxxxxxx xxxx xxxx:</para> - <programlisting format="linespecific">xxxxx -x xxxxxxx -x<replaceable>xx_xxx</replaceable> xxd < xxxxx.xxx</programlisting> - <para>Ix xxxx xxxxxxx xxx xxxxxxxx xx xxxxx xx xxxx xxx xxxx xxx’x xxxxxxxx. Ix’x xxxxxxx xxxxxxxxxxx xxxxx xxx <literal moreinfo="none">-x</literal> xxxxxx xxxxxxx x xxxxx xx xxxxxxx. Axxxxxxx xxxxxxxxx xxx xxxxxxxx xx xxx xxxxxxx xxxx xxxxx x xxxxxxxx xxxx xxx xxxxxxxxxxx xxx, xx’x x xxxxxxxx xxxxxxx xxx xxxxx <literal moreinfo="none">xxxxx</literal> xx xxxxxxx.</para> - <para>Nxxx, xxx xxxxxxxx xxxx <emphasis>xxd</emphasis> xx xxxxx. Txx Uxxx xxxxxxxx (xxx xxxx-xxxx xxxx) xxxxx xxx xxxxx xx xxxxx xxx xxxx xxxx <emphasis>xxxxx.xxx</emphasis> xx xxx xxxxxxx. Wxxx xxx xxxxxx xxx xxxxxxxx xxxxxxxxxx xxx xxxx xxxx, xxx xxxx xx xxxxxxxx xx xxx xxxxxxx xxxxxx.</para> - <para>Tx xxxxxx xxxx xxxxxxx xxxxx, xxx xxx xxxxxxx x xxxxxx SQL xxxxxxx xxxxxxx xxx xxxxxxxx xx xxxxxxx <literal moreinfo="none">xxxxx</literal> xxxx xxx <literal moreinfo="none">--xxxxxxx</literal> xx <literal moreinfo="none">-x</literal> xxxxxx.</para> - <para>Sxxxxxx xxxxxxx xxx xx xxxxx xxxx xxxxxxx xxx <literal moreinfo="none">xxxxx</literal> xxxxxx xx xxx xxxxxxx xxxx. Txxx xxx xxxx xx xxxxxxxx xx xxx xxxxxxx xxxx (<filename moreinfo="none">xx.xxx</filename> xx <filename moreinfo="none">xx.xxx</filename>, xxxxxxxxx xx xxxx xxxxxx) xxxxx xxx xxxxx xxxxxxx xx <literal moreinfo="none">[xxxxxx]</literal>. Ix xxxx xx xxx xxxxxxx xxxx, xxx xxxxxxx xxxxxx-xxxxxx xxx xxx xxxxxxxx. Txx xxxxxxx xxx xxxxxx xxxxxxxxxxxxxx xxxx.</para> - </refsect1> - <refsect1 id="ch15-1-fm2xml"> - <title>Cxxxxx Oxxxxxx - - - - --xxxx-xxxxxx - - - Gxxxxxxxx x xxxx xx xxxxx xxx xxxxxx xxxxx xx xxxxxxxx xxx xxxxx xxx xxxxx xxxx xxxxxx xx xxxxxxx xxxx; xxxxx xxxxxx xxxx-xxxxxxxxxx xx xxxxxxxx xxx xxx-xxx xxxxx xxxxxx xxxxxxx xxx xxxxx xxx xxxxxxx xx xxx xxxx. - - - - - --xxxxx, -B - - - Cxxxxx xxx xxxxxx xx xxxxxxx xxxx xxxxxxxx xxxx xxxxxx xxxxxxxxx xx xxxx, xxx xxxx xx xxxxxxxx-xxxxxxx. Txx xxxxxx xxx’x xxxxxx xxx xxxx, xxx’x xxxxxxx xxxxx xxxxxxxx xx xxx xxxxxx, xxx xxx’x xxxx xx xxx xxxxxxx xxxx. - - - - - --xxxxxxxxx-xxxx-xxx= - xxxx - - - Sxxxxxxxx xxx xxxxx xxxxxxxxx xxxxxxxxxx xxxxxxxxx xxxx xxx xxx xxxxxx xx xxx. - - - - - --xxxxxx-xxxxx - - - Ixxxxxxxx xxx xxxxxx xx xxxxxx xxx xxxxx xx xxxxxxx xx x xxxxxxx xxx. Txxx xx xxxx xxxxxxxx xxxx xxxxxxxxx SQL xxxxxxxxxx xxxx xxx xxxxxxx xxxx xxxx xxx xx xxxxxxx xxxx. - - - - - --xxxxxx-xxxx-xxxx, -x - - - Ixxxxxxx xxx xxxxxx xx xxxxxx xxx xxxxxxxx xxx xxxxxxx xx x xxxxxxx xxx. Txxx xxxxxx xx xxxxxxxxx xx xx xxxxxxx d.d.dd; xxx xxxxx xxxx xx xx xxxxxxx d.d.dd. - - - - - --xxxxxxxx, -C - - - Ixxxxxxxx xxx xxxxxx xx xxxxxxxx xxxx xxxxxx xxxxxxx xx xxx xxx xxxxxx xx xxxxxxxxx. - - - - - --xxxxxxxx=xxxxxxxx, -D xxxxxxxx - - - Sxxx xxx xxxxxxx xxxxxxxx xxx xxx xxxxxx xx xxx. Txxx xx xxxxxxxxxx xx xxxxxxxxx xxx USE xxxxxxxxx. - - - - - --xxxxx[=xxxxxxx], -#[xxxxxxx] - - - Ixxxxxxxx xxx xxxxxx xx xxxxxx xxxxxxxxx xxxxxxxxxxx xx xxx xxx xxxx xxxxxxxxx. Txx xxx xx xxxxx xxxx xx xxxxxxx xx x:x:x,xxxxxxx. Sxx xx xxx xxx xx xxx xxxx xx xxxxxxx xxx xxxxxxxxx xx xxx xxxx xxxxxxx xxx xx xxxxxxxxxxx xx xxxxx xxxxx xxx xxxxxx xxxx xxx xx xxxx. - - - - - --xxxxx-xxxxx - - - Txxx xxxx xxxxx xxx xxxxxx xx xxxxxxx xxxxxxxxx xxxxxxxxxxx xxxx xxxxxxxx. Txxx xxxxxx xx xxxxxxxxx xx xx xxxxxxx d.d.dd. - - - - - --xxxxx-xxxx, -T - - - Axxx xxxxxxxxx, CPU xxxxx, xxx xxxxxx xxxxx xxxxxxxxxxx xx xxx xxx xxxx xxx xxxxxxx xxxx. - - - - - --xxxxxxx-xxxxxxxxx-xxxx-xxx=xxxx - - - Sxxxxxxxx xxx xxxxx xxxxxxxxx xxxx xxxxxxxx xxx xxxxxxx xxxxxxxxx xxxx xxx xxx xxxxxx xx xxx. Exxxx SHOW CHARACTER SET; xx xxx xxxxxx xxx x xxxx xx xxxxxxxxx xxxx xxxxxxxxx. - - - - - --xxxxxxxx-xxxxx-xxxxxx=xxxxx - - - Txx xxxxxx xxxxx xxx xxxxxxx xx xxx xxxxxxx xxxx xxxxx xxx xxxxx xxxxxxxx xx [xxxxx] xxx [xxxxxx]. Uxx xxxx xxxxxx xx xxxxxxx xxxxxx xxxxxx xxxx xxx xxxxxx xx xx xxx, xxxxx xx xxxxx xxxxxx. Fxx xxxxxxxx, xxx xxxxx xxxxx xxxxx xx xxxx _xxxxxxx xx xxxx x xxxxxx xxxx [xxxxx_xxxxxxx] xxx [xxxxxx_xxxxxxx] xxxx xx xxxxxxxx. - - - - - --xxxxxxxxx=xxxxxx, -F xxxxxx - - - Uxx xxxx xxxxxx xx xxxxxxx xxx xxxxxxxxx xxxx xx xxxxxxxxx xxxx SQL xxxxxxxxx xxxx xxxxxxx xx xxx xxxxxx. Bx xxxxxxx, xxx xxxxxx xxxxxxx x xxxx-xxxxx. - - - - - --xxxxxxx='xxxxxxxxx', -x 'xxxxxxxxx' - - - Exxxxxxx xxx SQL xxxxxxxxx xxxxxxxxx xx xxxxxx- xx xxxxxx-xxxxxx, xxxx xxxxxxxxxx xxx xxxxxx. - - - - - --xxxxx, -x - - - Mxxxx xxx xxxxxx xxxxxxxx xxxxxxxxx xx xxxxxxxxxx x xxxxxxxxx xxxx xx xxxxx xxx SQL xxxxxx. - - - - - --xxxx, -? - - - Dxxxxxxx xxxxx xxxx xxxxxxxxxxx. - - - - - --xxxxxxxx=xxxx, -x xxxx - - - Sxxxxxxxx xxx xxxx xxxx xx IP xxxxxxx xx xxx MxSQL xxxxxx. Txx xxxxxxx xx xxxxxxxxx, xxxxx xxxxxxxx xx x xxxxxx xx xxx xxxx xxxxxx xx xxx xxxxxx. - - - - - --xxxx, -H - - - Ixxxxxxxx xxx xxxxxx xx xxxxxx xxxxxxx xx xx HTML xxxxxx xxxx xxxxxxxxx xx SQL xxxxxxxxx xx xxx xxxxxxx xxxx xx x xxxx xxxxxxxxxx SQL xxxxxxxxxx. - - - - - --xxxxxx-xxxxxx, -x - - - Ixxxxxxxx xxx xxxxxx xx xxxxxx xxxxxx xxxxx xxxxxxxx xxxxx (x.x., CUR_DATE ()) xxxx xxxxxxxxx SQL xxxxxxxxxx xx xxx xxxxxxx xxxx xx xxxx x xxxx xxxx xxxxxxxxxx SQL xxxxxxxxxx. - - - - - --xxxx-xxxxxxx - - - Wxxx xxx xxxxxx xx xxxxxxxxx SQL xxxxxxxxxx xxxx xx xxxxx xxxx, xxxx xxxxxx xxxxxxxxx xxx xxxxxx xx xxxxxxx xxx xxxx xxxxxx xx xx SQL xxxxxxxxx xxxx xxx xxxxxxxx xx xxxxx. Txxx xx xxx xxxxxxx xxxxxx; xxx --xxxx-xxxx-xxxxxxx xx xxxxxxx xxxx xxxxxx. - - - - - --xxxxx-xxxxxx[={d|d}] - - - Txx SQL xxxxxxxxx LOAD DATA INFILE xxxxxxx xxxx xxxx x xxxxxxxx xxxx x xxxx. Txxx xxxx xxxxx xx xxxxxxx xx xxx xxxxxx xx xx xxx xxxxxxxx xx xxxxx xxx xxxxxx xx xxxxxxx (x.x., xxxxxxx). Tx xxxxxxxx xx x xxxx xx xxxxx, xxx xxxxx xxx xxx LOCAL xxxx xx xxxx xxxxxxxxx. Txxx xxxxxx xxxx xxxx xxxx: x xxxxx xx d xxxxxxx xxx LOCAL xxxxxxx x xxxxx xx d xxxxxxxxx xxxx xxx xxxx xx xx xxx xxxxxx. Ix xxx xxxxxx xx xxx xx xx xxxxxxx xxxx xxxx xxxx xxxxx xx xxx xxxxxx, xxxx xxxxxx xxxx xxxx xx xxxxxx. - - - - - --xxxxx-xxxxxxxx, -G - - - Pxxxxxx xxxxx xxxxxxxx xx xxx xxxxxx. Sxx xxx xxxx xxxxxxx xxx xxxx xxxxxx xxxxxxx xxx x xxxxxxxxxxx xx xxxxxxxx. Exxxx xxxx xx \x xxxx xxx xxxxx xxxxxx xx xxx x xxxx xx xxxx. Txxx xxxxxx xx xxxxxxx xx xxxxxxx. Tx xxxxxxx xx, xxx xxx --xxxx-xxxxx-xxxxxxxx xxxxxx. - - - - - --xx-xxxx-xxxxxx, -A - - - Axxxxxxxx xxxxxxxxx xx xxxxxxxx xxxx xx xxx xxx xxxx xxxxxxxx xxxxx xxx xxxxxx xxxxx xxxx xxxxxx xx xxxxxxx xxxx xx xxxxxxxx xxx xxx-xxx xxxxx xxxxxx xxxxxxx xxx xxxxx xxx xxxxxxx xx xxx xxxx. Txxx xxxxxx xxxxxxxx xxxx-xxxxxxxxxx xxx xxxxxxx xxxxxxxxx xxx xxxxx-xx xxxx xx xxx xxxxxx. Txxx xxxxxx xx xxxxxxxxxx xx xx xxxxxxx d xx MxSQL. - - - - - --xx-xxxx - - - Ixxxxxxxx xxxxxx xxx xx xxxx x xxxxxxx xxxxx xxx xxxxxx. - - - - - --xx-xxxxx-xxxxxxxx - - - Dxxxxxxx xxxxx xxxxxxxx xx xxx xxxxxx, xxxxxx xxxx xx xxx xxxxx xx x xxxx (x.x., xxxxx xxxxxxxx xxxxxx xxxxxx xx xxx xxxxxx xx xx SQL xxxxxxxxx). Txxx xxxxxx xx xxxxxxx xx xxxxxxx. Sxx xxx xxxxxxxxxxx xx xxx --xxxxx-xxxxxxxx xxxxxx xxx xxx xxxxxxxxx xxxxxxx xxx xxxx xxxxxxxxxxx. - - - - - --xx-xxx - - - Txxx xxxxxx xxxxxxxxx xxx xxxxxx xxx xx xxxxx xxxxxxx xx x xxxx. - - - - - --xxx-xxxxxxxx, -x - - - Ixxxxxxxx xxx xxxxxx xx xxxxxxx SQL xxxxxxxxxx xxxx xxx xxx xxxxxxx xxxxxxxx (xxx xx xxx --xxxxxxxx xxxxxx) xxx xx xxxxxx SQL xxxxxxxxxx xxx xxxxx xxxxxxxxx. - - - - - --xxxxx[=xxxxxxx] - - - Wxxx xxxx xxxxxx, xx x Uxxx xxxx xx xxxxxx, xxx xxx xxxx xxx xxxxxxx xx xx SQL xxxxxxxxx xxxxxxxx xxxx xxx xxxxxxx xxxx xx x xxxxx xxxxxxx (x.x., xxxx) xxxx xxxx xxxxx xxx xx xxxx xxx xxxxxxx xxx xxxx xx x xxxx xxx xxxxxxxx xxxxxx xx xxx xxxx xxxxxxx xxx xxxxxxx. Ix xxxx xxxxxx xx xxxxx xxxxxxx xxxxxxxxxx x xxxxxxxxxx xxxxx xxxxxxx, xxx xxxxx xx xxx xxxxxxxxxxx xxxxxxxx PAGER xxxx xx xxxx. Txxx xxxxxx xx xxxxxxx xx xxxxxxx. Uxx xxx --xxxx-xxxxx xxxxxx xx xxxxxxx xx. - - - - - --xxxxxxxx[=xxxxxxxx], -x[xxxxxxxx] - - - Pxxxxxx xxx xxxxxxxx xx xxxx xx xxx MxSQL xxxxxx. Nx xxxxxx xxx xxxxxxx xxxxxxx xxx -x xxx xxx xxxxxxxx. Ix xxxx xxxxxx xx xxxxxxx xxxxxxx x xxxxxxxx, xxx xxxx xxxx xx xxxxxxxx xxx xxx. - - - - - --xxxx=xxxx, -P xxxx - - - Sxxxxxxxx xxx xxxxxx xxxx xx xxx xxx xxxxxxxxxx xx xxx xxxxxx. Txx xxxxxxx xx dddd. Ix xxx xxx xxxxxxxx xxxxxxx xxx xxxxxxx xx xxxxx xxxxxxxx, xxx xxx xxx xxxxxxxxx xxxxx xxx xxxx xx xxxxxxx xxxx xxxxxx. - - - - - --xxxxxx=xxxxxx - - - Sxxx xxx xxxxxx xxx xxxxxxx xxxx xx xxx xxxxx xxxxxx. Bx xxxxxxx xx’x xxx xx xxxxx>. - - - - - --xxxxxxxx=xxxxxxxx - - - Sxxxxxxxx xxx xxxxxxxx xx xxx xxxx xxxxxxxxxx xx xxx xxxxxx. Txx xxxxxxx xxx TCP, SOCKET, PIPE, xxx MEMORY. - - - - - --xxxxx, -x - - - Cxxxxx xxx xxxxxx xx xxxxxxxx xxx xxxxxxx xxxx xxx xxx xx x xxxx xxxxxxx xx xxxxxxxxx xxx xxxxxx xxxxxxx xxx xxxxxx xxxxxxxxxx xxxx. Wxxx xxxx xxxxxx, xxx xxxxxxx xxxx xxx’x xxxx xxx xx xxx xxxx xxx xxxxxx xx xxx xxxxxx xx xxxxxxxxx. - - - - - --xxx, -x - - - Fxx xxxx xxxx xxx xxxxxxx xxxxxxxxxx xxxx xxxxx xxxxxxxx xx xxxxxxxxx xx xxxxx xxxx xx xx xxxxxx-xxxxxxxx xxxxxxxxxx (x.x., xxxxxxx xx \x), xxxx xxxxxx xxx xx xxxx xx xxxx xxx xxxxxx xxxxx xxx xxx xxxxxxxxxx xxxxxxx xxxxxxxxxx xxxx. - - - - - --xxxxxxxxx - - - Ixxxxxxxx xxx xxxxxx xx xxxxxxx xx xxxxxxxxx xx xxx xxxxxx xx xxx xxxxxxxxxx xx xxxx. Txx xxxxxx xxxxx xxxx xxxx, xxxxxx. Txxx xx xxxxxxx xx xxxxxxx. Tx xxxxxxx xx, xxx --xxxx-xxxxxxxxx. Tx xxxx xxx xxxxxx xxxx xxxxx xxx xxxxxx xx xxxxxxxxx, xxx --xxxx. - - - - - --xxxx-xxxxxxx, -U - - - Txxx xxxxxx xx xxxxxx xx xxxxxxx xx xxxxxxx xxxxxxxxxxx xxxxxxxx xx xxxxxxxx xxx xxxxxxxx xxx xxxx xx x xxxxx. Ix xxxxxxxx xxxx xxxx xxx DELETE xx UPDATE xxxxxxxxxx xxx xxxx, x WHERE xxxxxx xx xxxxx xxxx x xxx xxxxxx xxx xxxxx. Ix xxxx xxxxxx xx xxxxxxxx xx xxx xxxxxxx xxxx, xxxxx xx xx xxx xxxxxxx xxxx xxxx xxxxxxxx xxx xxxxxx xxxx xxxxxxx xx. - - - - - --xxxxxx-xxxx - - - Pxxxxxxx xxxxxxxxxxxxxx xx xxxxx xxxx xxxxxxxxx xxxxxxx xxxxx xx Vxxxxxx d.d xx MxSQL xx xxxxxxxxxx xx xxxxxxx xxxx xxxxxx xxx xxx xxxxxx. - - - - - --xxx-xxxxxxxx xxx=xxxxx, -x xxx=xxxxx - - - Txxx xxxxxx xx xxxx xx xxx x xxxxxx xxxxxxxx. Exxxx xxxxx --xxxx xxx xxx xxxxxxx xxxxxx xxx x xxxxxxxxxx xxxxxx’x xxxxxxxxx. - - - - - --xxxx-xxxxxxxx - - - Ixxxxxxxx xxx xxxxxx xxx xx xxxxxxx xxxxxxx xxxxxxxx, xxx xx xxxxxxx xxxx xxxxx xx SQL xxxxxxxxx xx xxxxxxxx xx xxxxx x xxxxxxx xx xxxxxxxxx, xxxx xx xxxxx xxx xx xxxxx. - - - - - --xxxxxx, -x - - - Sxxxxxxxxx xxx xxxxxxxx xxxxxx xxx xxxxx xxxxxxxx. Exxxx xxx xxxxxx xxxxxxxx xxxxx xx xxxxxxx xxxxxx xxx xxxxx xx xxxxxxxx xxxxxxxx. - - - - - --xxxx-xxxxxx-xxxxx - - - Ixxxxxxxx xxx xxxxxx xxx xx xxxxxx xxxxxx xxxxx xx xxx xxxxxxx. - - - - - --xxxx-xxxx-xxxxxxx - - - Wxxx xxx xxxxxx xx xxxxxxxxx SQL xxxxxxxxxx xxxx xx xxxxx xxxx, xxxx xxxxxx xxxxxxxxx xxx xxxxxx xxx xx xxxxxxx xxx xxxx xxxxxx xx xx SQL xxxxxxxxx xxxx xxx xxxxxxxx xx xxxxx. Txxx xxxxxxxx --xxxx-xxxxxxx, xxx xxxxxxx. - - - - - --xxxx-xxxxx-xxxxxxxx - - - Dxxxxxxx xxxxx xxxxxxxx xx xxx xxxxxx. Sxx xxx xxxxxxxxxxx xx xxx --xxxxx-xxxxxxxx xxxxxx xxx xxx xxxxxxxxx xxxxxxx xxx xxxx xxxxxxxxxxx. - - - - - --xxxx-xxxxx - - - Dxxxxxxx xxxxx xxxxxxx xx Uxxx xxxxx xx xxxxxxx. Sxx xxx --xxxxx xxxxxx xxx xxxx xxxxxxxxxxx. - - - - - --xxxx-xxxxxxxxx - - - Ixxxxxxxx xxx xxxxxx xxx xx xxxxxxx xx xxxxxxxxx xx xxx xxxxxx xx xxx xxxxxxxxxx xx xxxx. Ix xxxxxxxx xxx xxxxxxx xxxxxx --xxxxxxxxx. - - - - - --xxxx-xxx - - - Sxxxxxxxx xxxx xx SSL xxxxxxxxxx xxxxxx xxx xx xxxx, xx SSL xx xxxxxxx xx xxxxxxx. - - - - - --xxxxxx=xxxxxx, -S xxxxxx - - - Pxxxxxxx xxx xxxx xxx xxxx xx xxx xxxxxx’x xxxxxx xxxx xx Uxxx xxxxxxx; xxx xxxxx xxxxx xx Wxxxxxx xxxxxxx. - - - - - --xxx - - - Sxxxxxxxx xxxx xx SSL xxxxxxxxxx xxxxxx xx xxxx. Rxxxxxxx xxx xxxxxx xx xxxx SSL xxxxxxx. Ix xxxx xxxxxx xx xxxxxxx xx xxx xxxxxxx xx xxxxxxx, xxx --xxxx-xxx xx xxxxxxx xx. - - - - - --xxx-xx=xxx_xxxx - - - Sxxxxxxxx xxx xxxx xx xxx xxxx (x.x., xxx xxx xxxx) xxxxxxxxxx x xxxx xx xxxxxxx SSL CAx. - - - - - --xxx-xxxxxx=xxxx - - - Sxxxxxxxx xxx xxxx xx xxx xxxxxxx xxxxxxxxxxxx xxxx (x.x., xxx xxx xxxx). - - - - - --xxx-xxxx=xxxxxxxx - - - Sxxxxxxxx xxx xxxx xx xxx SSL xxxxxxxxxxx xxxx xx xxx xxx SSL xxxxxxxxxxx. - - - - - --xxx-xxxxxx=xxxxxxx - - - Gxxxx x xxxx xx xxxxxxx xxxx xxx xx xxxx xxx SSL xxxxxxxxxx - - - - - --xxx-xxx=xxxxxxxx - - - Sxxxxxxxx xxx SSL xxx xxxx xx xxx xxx xxxxxx xxxxxxxxxxx. - - - - - --xxx-xxxxxx-xxxxxx-xxxx - - - Vxxxxxxx xxx xxxxxx’x xxxxxxxxxxx xxxxxxx xxx xxxxxx’x xxxxxxxxxxx xxx xxx xxxxxx xx xxxxx-xx. Ix xx xxxxxxxxx xx xx xxxxxxx d.d.dd. - - - - - --xxxxx, -x - - - Dxxxxxxx xxxxxxx xxxx x xxxxx xx ASCII xxxxxx, xxxxx xx xxx xxxxxx xxxxxxxx xxxx xx xxxxxxx xxxx. Txx xxxxxxxxxxx xx xxx --xxx xxxxxx. - - - - - --xxx=xxxxxxxx - - - Ixxxxxxxx xxx xxxxxx xx xxxxx xxxxxxx xx xxx xxxxx xxxx. Yxx xxx xxxxxxx xx xxxxxxxx xx xxxxxxxx xxxxxxxx, xx x xxxxxx xxxxxxxx. Txxx xxxxxx xxxxx’x xxxx xx xxxxx xxxx. - - - - - --xxxxxxxxxx, -x - - - Fxxxxxx xxx xxxxxx xxxxxx xxxxx xxxx xxxxx xx xxxxxxxxx. - - - - - --xxxx=xxxx, -x xxxx - - - Ixxxxxxxx xxx xxxxxx xx xxxxxx MxSQL xxxx x xxxxxxxx xxxxxxxxx xxxx xxx xxxxxxx xxxxxx xxxx. - - - - - --xxxxxxx, -x - - - Dxxxxxxx xxxx xxxxxxxxxxx. Uxx -xx xx -xxx xx xxxxxxxx xxxxxxxxx. - - - - - --xxxxxxx, -V - - - Dxxxxxxx xxx xxxxxxx xx xxx xxxxxxx. - - - - - --xxxxxxxx - - - Dxxxxxxx xxxxxxx xx x xxxxxxxx xxxxxx xxxxxxx xx xxxxxxx xxxx xxx xx xxxx xx x xxxxxx xxxx. Txxx xx xxxxxxx xx xxxxx xxx xxx xx \G xx xx SQL xxxxxxxxx xx xxxxxxx xxxx. - - - - - --xxxx, -x - - - Ix xxx xxxxxx xxxxxx xxxxxxx xx xxx xxxxxx, xxxx xxxxxx xxxxx xxx xxxxxx xx xxxx xxx xxxxx xxxxxxxxxx xxxxx xx xxx xxxxxxx. - - - - - --xxx, -X - - - Exxxxxx xxxxxxx xx xx XML xxxxxx. - - - - - - - - xxxxxx Sxxxxx - - - xxxxxx - - - - xxxxxx [xxxxxxx] - - - - <para><indexterm class="startofrange" id="ch15-idx-986674-1" significance="normal"><primary>xxxxxx xxxxxx</primary><secondary>xxxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-15-ITERM-3574" significance="normal"><primary>xxxxxxxxxxxxx</primary><secondary>xxxxxx xxxxxxx xxx</secondary></indexterm> -Wxxx <literal moreinfo="none">xxxxxx</literal> xxxxxx, xxxxxxx xxxxxxx xxx xx xxxx xx xxxxx xxx xxxxxx’x xxxxxxxx. Axxxxxxx xxx xxxx xxx xxxx xxx xx xxx xxxxxx xxxxxxx xxxxxxxxx xx xxx xxxx—xxxxx xxxxx xxx xxxxxxx xxxxxxxx xxx xxxx—xx x xxxxxxxx xxxxxxxxxxxxx, xx’x xxxxxx xx xxxx xxxx xxxxxxx xxxxx xxx xxxxxxx xxxxxxxxxx xxxx xxx xx xxxxxxx xx xxxx xxxxx.</para> - <para>Oxxxxxx xxx xx xxxxx xx xxx xxxxxxx xxxx xxxx xxxxxxxx xx xxxxxxxxxx xxx xxxxxx. Hxxxxxx, xx’x xxxxxx xxxxxxxx xx xxxxx xxxx xxxx x xxxxxxxxxxxxx xxxx. Ox Uxxx-xxxxx xxxxxxx, xxx xxxx xxxxxxxxxxxxx xxxx xxxxxxxxx xx <filename moreinfo="none">/xxx/xx.xxx</filename>. Fxx Wxxxxxx xxxxxxx, xxx xxxx xxxx xx xxxxxxx xxxxxx <filename moreinfo="none">x:\xxxxxxx\xx.xxx</filename> xx <filename moreinfo="none">x:\xx.xxxx</filename>. Oxxxxxx xxx xxxxxxx xx xxxxxxxx xxxxx xxx xxxxxx x <replaceable>xxxxxxxx=xxxxx</replaceable> xxxxxx. Sxxx xxxxxxx xxx xxxxxx, xxx xxx xx xxxxxxx xx xxxx xxxxxxxxx xxx xxxxxx xx xxx xxxxxxx xxxx xxxx xxxxxxxx xxx xxxxxx xx xx xxx xxxxxxx xxxx xxxx xx xxxxx (xx xx xxxxxx-xxxx xxxxxxxx xx xx xxxxx).</para> - <para>Wxxxxx xxx xxxxxxx xxxx, xxxxxxx xxx xxxxxxx xxxxx xxxxxxxx xxxxxxxxx xxxxxx xxxxxx xxxxxxxx. Txx <literal moreinfo="none">xxxxxx</literal> xxxxxx xxxxx xxxxxxx xxxx xxx xxxxxxxxxxxxx xxxx xxxxx xxx xxxxxxxx xx <literal moreinfo="none">[xxxxxx]</literal> xxx <literal moreinfo="none">[xxxxxx]</literal> xx xx’x xxxxxxx. Fxx xxxx xxxxxx xxxxxxxx xx MxSQL xxxxxx, xxx xxxxx <literal moreinfo="none">[xxxxxx-d.d]</literal> xx xxxx xxxx. Gxxxxx xxx xxxx xx xxx xxxxx xxxxxxxxx xxxx xxx xxx xxxx xxxxxxx xxx xx xxxxxx xxxx xx xxx xxx xxxx. Tx xxx x xxxx xx xxxxxxx xxxx <literal moreinfo="none">xxxxxx</literal> xx xxxxx xx x xxxxxxxxxx xxxxxx, xxxxx xxx xxxxxxxxx xxxx xxxx xxx xxxxxxx xxxx (xxxxxxx xxxxxx):</para> - <programlisting format="linespecific">$ <userinput moreinfo="none">xxxxxx --xxxxx-xxxxxxxx</userinput> -/xxx/xxxxxxx/xxxxxx xxxxx xxxx xxxx xxxxxxx xxxx xxx xxxxxxxxx xxxxxxxxx: ---xxxxxxx=/xxxx/xxxxx --xxxxxx=/xxx/xxx/xxxxx/xxxxx.xxxx ---xxx-xxxxxxxxx=d</programlisting> - <para>Ax xxx xxxxxxxxx xxxxxxxx xxxxxxxxx, xxx <literal moreinfo="none">--xxxxx-xxxxxxxx</literal> xxxxxxx xxxxx xxxxxxxxxxx xxxx xxx xxxxxxx xxxxx xxx xxxxxxxxx xxx xxxxxxx xxx xxxx xxxxx xxxxxx xxxxx xx xx xxx MxSQL xxxxxx xxxx xxxxxxxxx. Hxxxxxx, xx xxx xxxxxxx xxxxx xxxx xxxxxxx xxxxx MxSQL xxx xxxxxxx, xx xx MxSQL xxx xxxxxxx xxxx xxx xxxxxxx xxxx, xx xxxx xxxxxxx-xxxx xxxxxxx xxxx x xxxxxx xx xxx xxxxxx, xxxx xxxxxx xxxx xxx xxxxxxx xxxxx xxxxxxx. Bxxxxxxxx, xxx xxxxxxx xx <literal moreinfo="none">--xxxxx-xxxxxxxx</literal> xx xxx xxxxxxx xxx xxxxxxx xxxxxxxx, xxxx xxx xxxxxxx xx xxxxx xx xxx xxxxxxx xxxxx xxx xxx xxxxxxxx xxxxxx xxxxxx. Tx xxxxxxxxx xxx xxxxxxx xxxxxx xxxxxxx xxxx xxxx xxxx xxxx—xxxxx xxxx xxx xxxxxxx xxxxxxx—xxxxx x xxxxxx xx xxxxxxx, xxxx x Uxxx xxxxxx xxx xxx xxxxx xxx xxxxxxxxx xxxxxxx (xxxxxx xxxxxxx xxxxxx):</para> - <programlisting format="linespecific">$ <userinput moreinfo="none">xx xxx | xxxx xxxxx</userinput> - -xxxxx ddddd d.d d.d dddddd ddddd ? Sx Axxdd dd:dd -/xxx/xxxxxxx/xxxxxx --xxxxxxxx-xxxx=/xxx/xx.xxx --xxxxxxx=/xxx ---xxxxxxx=/xxxx/xxxxx --xxxx=xxxxx --xxx-xxxx=/xxx/xxx/xxxxxx/xxxxxx.xxx ---xxxx-xxxxxxx --xxxxxx=/xxx/xxx/xxxxx/xxxxx.xxxx</programlisting> - <para>Ix xxx xxx xx xxxxxx xxxx xxx xxx’x xxx xx xxxx xxxxxxx xxxxxxx xxxx, xx xxx xx xxxxxx xxxx x xxxxxxxxx xxxxxxx xxxx. Yxx xxx xxxx xx xxxxxxx x xxxxxxxxx xxxxxxxxxxxx xx <literal moreinfo="none">xxxxxx</literal> xxxx xxx xxxxx. Ix xxxx x xxxxxxxxx, xxx xxxxx xxxx xx xxxxxxx xxx xxxx xx xxx <literal moreinfo="none">xxxxxx</literal> xxx xxxx xx xxx xxxx xxxxxxxx xxx xxxxxx.</para> - <para>Ix xxx xxxxxxxxx xxxxxxxx xx xxxx xxxxxxx, xxxxxxx xxx xxxxxxx xx xxxxx xxx:</para> - <variablelist> - <varlistentry> - <term>Lxxxxxxx</term> - <listitem> - <para> -Oxxxxxx xxxxxxxxxx xxxxx xxx xxxxxx xxx xxxx xxxxx xxx xxxxxxxxxxx xx xxxxx -</para> - </listitem> - </varlistentry> - <varlistentry> - <term>Sxxxxxxx xxx xxxxxxxxxx</term> - <listitem> - <para> -Oxxxxxx xxxxxxx xx xxxx xxx xxxxxxxx xxxxxxxx, xxxxxx xx xxxxxxxxxxx, xxx xxx xxxxxxx xxxxxxx xx xxx xxxxxx -</para> - </listitem> - </varlistentry> - <varlistentry> - <term>Gxxxxx</term> - <listitem> - <para> -Oxxxxxx xxxx xxxxxx xxxxxx xxxxxxxx, xxxxx xxx xxxxxx xx xxxxxx xxxxxxxxx -</para> - </listitem> - </varlistentry> - <varlistentry> - <term>Lxxx</term> - <listitem> - <para> -Oxxxxxx xxxx xxxxxx xx xxxxxx xxxx -</para> - </listitem> - </varlistentry> - <varlistentry> - <term>Pxxxxxxxxxx xxxxxxxxxxxx</term> - <listitem> - <para> -Cxxxxxxx xxxxxxx xxxxxxx xxxx xxxxx xx xxxxxxxx xx xxxxx xxxxxxxxxx, xxx xxx xxxxx xxxxxxxxxxx xxxxxxxx xxxxxxx xxxx xxx xxxxxx xxx xxxxx xx xxx xxxxxxxx -</para> - </listitem> - </varlistentry> - <varlistentry> - <term>Rxxxxxxxxxx</term> - <listitem> - <para> -Oxxxxxx xxxxxxxx xxxxxxx xx xxxxxxxxxxx -</para> - </listitem> - </varlistentry> - <varlistentry> - <term>Sxxxxxx xxxxxx xxxxxxxx xxxxxxx</term> - <listitem> - <para> -Oxxxxxx xxxxxxxxxx xxxxxxx xxxxxxx (xxxxxxxx xxxxx xx xxxxx xxxxx) xxxxxxx xxxx xxxxxxxxxxx xxxxx xx xxx xxxxxxxx xxxxxxx xxxxxx xx xxxxx xxxx xxxxxx -</para> - </listitem> - </varlistentry> - </variablelist> - <para>Sxxx xxxxxxx xxx xxxxxx xx xxxx xxxx xxx xxxxxxx xxxxxxx xxxx xxxx xxxx xxxx xxx xxx xxxxxxxx xx xxx xxxxxxxx xxxxxx.</para> - <para>Txx xxxxxxx xxx xxxxx xx xxxx xxxxx xx xxxxxxx xxxx xxx xxxxxxx xxxx. Ix xx xxxxxx xx xxxx xx x xxxxxxxxxxxxx xxxx, xxx xxxx xxxx xxxxxx xx xxxx xxx xxx xxxxxx-xxxx xxxxxx xxxxxx xx xxxxxxx. Fxx xxxxxxx, <literal moreinfo="none">--xxxxxxx=/xxxx/xxxxx</literal> xxxxx xx xxxxxxx xxxx xxx xxxxxxx xxxx. Hxxxxxx, xx x xxxxxxxxxxxxx xxxx xxx xxxx xxxxxx xxxxx xxxx xx <literal moreinfo="none">xxxxxxx=/xxxx/xxxxx</literal> xx xxx xxx xxxxxxxx xxxx.</para> - <para>Txx xxxxxx xxx xxxxxxx xxxxxxx xx:</para> - <variablelist> - <varlistentry> - <term> - <replaceable>--xxxxxx=xxxxx</replaceable> - </term> - <listitem> - <para> -Ax xxxxxx xxxx xxxxxxxx x xxxxx -</para> - </listitem> - </varlistentry> - <varlistentry> - <term> - <replaceable>--xxxxxx[=xxxxx]</replaceable> - </term> - <listitem> - <para> -Ax xxxxxx xxxx xxx xxxx x xxxxx, xxx xxxx xxx xxxxxxx xxx -</para> - </listitem> - </varlistentry> - <varlistentry> - <term> - <replaceable>--xxxxxx[=xxxxx]</replaceable> - </term> - <listitem> - <para> -A xxxxxx xxxxxx xxxx xx xx xx xxxxx xxxxxxx x xxxxx -</para> - </listitem> - </varlistentry> - </variablelist> - <para>A xxx xxxxxxx xxxx xxxxxx-xxxxxx xxxxxxxxxxxxx, xxxx xxxxxx xxxxx xxxxx. Txx xxxxx xxxx xx xxxxx xx xxxxxxxxxxx xxxxx xxx xxxx xxxx.</para> - <para>Ax xxx xxxxxxxx xx MxSQL xxx xxxxxxxx, xxxx xxxxxxx xxx xx xxxxx. Tx xxx x xxxx xxx xxxx xxxxxxx, xxxx <literal moreinfo="none">xxxxxx --xxxxxxx --xxxx</literal> xxxx xxx xxxxxxx xxxx xx xxx xxxxxx xxxx.</para> - <para>Fxx xxxx xx xxx xxxxxxx, xxxxx xx x xxxxxx xxxxxxxx xxxx xxx xxxx xxxx xx xxx xxxxxx, xxx xxxxxxx xxx xxxxxxx xxxxxx-xxxxxx. Fxx xxxx, xxx xxxxxx xxxxxx xxx xxxx xxxx xxxx xx xx xxxxxxx xx xxxxxxxxxxx (x.x., xxx xxxxxxxx xxxxxxxxxx xxxx <literal moreinfo="none">--xxxxxxx-xxxxxxx</literal> xxxxx xx <literal moreinfo="none">xxxxxxx_xxxxxxx</literal>). Bxxxxx xxxxxxxx xxx xxxxx xx xxxxxxx xx x xxxxxxxx, xx’x xxxxx x xxxx xxxx xx xxx xxxx xxx xxxxxxxx xx xxx xx. Yxx xxx xx xxxx xx xxxxxxxx x xxxxxxxxx xxxx xxxx:</para> - <programlisting format="linespecific">SHOW VARIABLES LIKE 'xxxxxxx_xxxxxxx';</programlisting> - </refsect1> - <refsect1 id="ch15-2-fm2xml"> - <title>Lxxxxxxx - Sxxx xxxxxx xxxxxxx xxxxx xxx xx xxxxxxxx MxSQL xxxxx xxxxx xxx xxxxxxx xxx xxxx xxxxxxxxxx xxxxxxxx xxxxxx xx xxxx xxxx xxxxxxx xxxxxxx xx xx xxxxxxxx. Ax xxxxxxxxxxxx xxxx xx xxxx xxxxxxx, xxxxx xxxx xxx xxxxxx xxx xx xxxxxxxxxxx xx xxxx. Txxx xxxx xxxx xxx xxxxxxx xxxxxxx xxxxxx xxxxxxxx xxxxxxx xxxxxxx xx xxxx xxxxx. Sxx xxx xxxxxxx xxx xxx xxxxxxxxxx xxxxxxx xxxxxx’x xxxxxxx xxxxx xx xxxx xxxxxxx. - - - - --xxxxxxx=xxxx, -x xxxx - - - Ix xxx’xx xxxxxxxxx xxxx xxxx xxx xxxxxxx xx MxSQL xx xxxx xxxxxx xx xx xxx xxxx xxxxx xxx xxxxxx xxxxx xxx MxSQL, xxx xxxx xxxx xx xxxxxxx xxx xxxx xxxxxxxxx xxx xxx MxSQL xxxxxxxxxxxx. Txxx xxxxxx xx xxxxxxxxxxxx xxxxxxxxx xx xxx’xx xxxxx xxxxxx_xxxx xx xxxx xxx xxxxxx xxxxxx xxxxxxx; xxxx xxxx xxxxxx xxxxx xxx [xxxxxx_xxxx] xxxxx xxxxxxx. - - - - - --xxxxxxxxx-xxxx-xxx=xxxx - - - Sxxxxxxxx xxx xxxxxxxx xxxx xx xxx xxxxxxxxx xxxxxxxxxx xxxxxxxxx xxxx. Bx xxxxxxx, xxxx xxxxxxxxx xx xx xxx xxxxxxxxxxxx xxxxxxxx xx xxx xxxxxxxxx xxxxx MxSQL xx xxxxxxxxx (x.x., /xxx/xxxxx/xxxxx/xxxxxxxx/). - - - - - --xxxxxxx=xxxx, -x xxxx - - - Ix xxx xxxx xx xxx xxxx xxxx xxxxx xxx MxSQL (x.x., xxxxxxxx xxxxxxxxxxx xxx xxxxx xxxxx) xx x xxxxxxxxx xxxxxxxxx xxxx xxx xxxxxxx, xxx xxxx xx xxx xxxx xxxxxx. Txxx xx xxxxxx xxxxxxxxxx xx xxx xxxx xxx xxxx xx x xxxxxxxxx xxxx xxxxx. Wxxxxx xxx xxxxxxxxx xxxx xxx xxxx, MxSQL xxxx xxxxxx xxxxxxxxxxxxxx xxx xxxx xxxxxxxx. Ix xxx xxx xxxx xxxxxx, xx xxxx xxxx xxx xxxxx xxxx xx xxx xxxxxxxxxx xxx xxxxxxxxxxx xx xxxx xxx xxxxx xx xxx xxxxxxxxx. Gxxxxxxxx, xxx xxxxx xxxx xx xxx xxxxx xx xxx xxxxxxxxx. - - - - - --xxxx-xxxx=xxxxxxxx - - - Ix xxx xxxx x xxx xx SQL xxxxxxxx xxxx xxx xxxx xxxxxxx xxxxx xxxx xxx xxxxxxx xxx xxxxxx, xxxxxx xxxx xxxxx xxxx xxxxxxxx, xxx xxxxx xxx xxxx xx x xxxx xxx xxx xxxx xxxxxx xx xxxx MxSQL xx xxxxxxx xxxx xxx xxx xx xxxxxxx. Exxx SQL xxxxxxxxx xx xxx xxxx xxxx xx xx x xxxxxxxx xxxx. Uxxxxxxxxxxxx, xxx xxxxxx xxxxxxx xxxxxxxx xx xxx xxxx. Yxx xxxxx xxx xxxx xx x xxxxxxxx xxxx xxxx xx xxx xxxx xxxxxxxxx, xxxxxxx xxxx x xxxxxxx xxxx xxxx xxxx (x.x., xxxx.xxx xxx xxxx.xxx). - - - - - --xxxxxx-xxxx-xxxx=xxxx - - - Uxx xxxx xxxxxx xx xxxxxxxx xxx xxxxxxxxx xx xxxxx xx xxx xxxxx xxxx. Txxx xx xxxxxxx xx xxx SELECT...INTO OUTFILE xxx LOAD DATA xxxxxxxxxx, xx xxxx xx xxx LOAD_FILE( ) xxxxxxxx. Txxx xxxxxx xx xxxxxxxxx xx xx xxxxxxx d.d.dd xx MxSQL. - - - - - --xxx-xxxx=xxxxxxxx - - - Ixxxxxx xx xxxxxxxx xxxxxx xxxxxxxx, xxx xxxxxx xxxxxx xxxx xxxxxx xx xx xxxxx xxx xxxxxx xxxxxx_xxxx. Ix xxxx xx xxxx xxxxx xxxxxx xxx xxxx xxxx xx xxxxx xxxxxxx. Txxx, xx xxxxxx xxxxxxx, xxxxxx_xxxx xxxx xxxxxxxxxxxxx xxxxxxx xx. Tx xxxx xxxxx xx xxx xxxxxx xxxxxxx xxx xxxxxx, xxx xxxxxx_xxxx xxxxxxx xxxx xxxxxx xxx xxxxxxx xxxxxxxxxxxxxx xxxxxx xx x xxxx xxxxxx xxxxxx.xxx. Wxxx xxxx xxxxxx xxx xxx xxxx MxSQL xxxxx xx xxx xxxx xxxx. - - - - - --xxxxxx-xxx=xxxx - - - Sxxx xxx xxxxxxxxx xxxxx xxxxxxx xx xxx xxxxxx xxx xxxxxx. Txxx xxxxxx xx xxxxxxxxx xx xx xxxxxxx d.d.d xx MxSQL. - - - - - --xxxx-xxxxxxxx-xxxxx - - - Uxxx xx xxxxxxx xxxxxxxx xxxxx. Txx xxxxxxx xx xx xxxxxx xxxx xxxxxxx --xxxxxxxx-xxxxx. Pxxxx xx xxxxxxx d.d.d xx MxSQL, xxxx xxxxxx xxx --xxxx-xxxxxxx. - - - - - --xxxxx-xxxx-xxxxxx=xxxxx - - - Sxxxxxxxx xxx xxxxxxxxx xxxxx x xxxxx xxxxxx xxxxxx xxxxxxxxx xxxxx xxxx xxx LOAD DATA INFILE xxxxxxxxx xx xxxxxxxx. - - - - - --xxxx-xxxxx-xxx-xxxx=xxxxxxxx - - - Sxx xxx Pxxxxxxxxxx Oxxxxxxxxxxx xxxxxxx. - - - - - --xxxxxx=xxxxxxxx - - - Sxxxxx xxxxx xxx xxxx xx Uxxx xxxxxxx. Wxxx xxxx xxxxxx xxx xxx xxxxxxx xxx xxxx xxx xxxx xxxx xx xxx xxxxxx xxxx. Ix xxx xxx’x xxx xxxx xxxxxx, xxxxxx xxxxxxxx xx MxSQL xxxxx xxx xxxxxx xxxx xx xxx xxxx xxxxxxxxx xx MxSQL. Ox Wxxxxxx xxxxxxx xxxx xxxxxx xxx xx xxxx xx xxxxxxx xxx xxxx xxxx (MxSQL xx xxxxxxx) xxx xxxxx xxxxxxxxxxx. Jxxx xx xxxx xxx --xxxx xxxxxx, xxx --xxxxxx xxxxxx xxx xx xxxx xxx xxxxxxxx xxxxxxxxx xx MxSQL. Yxx xxxxx xxxxx xxx xxxxxx_xxxx xxxxxxx xxxx xxx xxxxxxx xxxxxx xxxx xxx xxxxxxx xxxx xx xxxxxx xxxx xx --xxxxxx=xxxxxx_xxxx.xxxx xx xxxxxxxx x xxxx xxxxxx. A xxxxxx xxxxxx xxxx xxx xxxxxx xx xxx xxxx xxxxxx xxxx xxxx xxxxxx xx xxxxx, xxxxxxx xxxxxxxxx xxx xxxxxxx xxxxx xxxxxxxx xxxx xxxx xxxxx. Ixxxxxxxxxxx, xx’x xxx xxxxxxxxx xx xxxxxxx x xxxxxxxx xxxx xxx xxxxxx xxxx, xxx xxxx xxxxxxxxxxxxxx xx xxx xxx xxxx. - - - - - --xxxxxxxx-xxxxx, -x - - - Exxxxxx xxxxxxxx xxxxx xx xxx xxxxxxxxxx xxxxx xxx xxxxxxxx xxxxxxxxxxx xxx xxxxx xxxxx. MxSQL xxxxxxx xx xxxx xxx xxxxx xx xxx xxxx xxxxxxxxx, xxx xx xxx xxxx xx xxxxx xxx xxxx xx xxxxx xxxxxxxxxxx xx xxxxx xx xxxx xxxx xxxxx xx xxxxxx xxxxx xxx xxxxxx xxxxxx, xxxx xxxxxx xxxxxx xxx xx xxxxxx xxxxx xx xxx xxxx xxxxxxxxx xxxx xxxxx xx xxxxx xxx xxxx xxxxxxxx xx xxxxxx. Ox Wxxxxxx xxxxxxx, xxxx xxxxxx xxx xx xxxxxx xxxxx-xxxx xx xxxxxxxxx (x.x., xxxxxxxx.xxx). Ox Uxxx xxxxxxx xxxx MxISAM xxxxxx, xxxx xxxxxx xxxxxx xxx xx xxxxxxx x xxxxxxxxx xxxxxxxxx xxx x xxxxx’x xxxxxxxx xxxx xxx DATA DIRECTORY xx xxx INDEX DIRECTORY xxxxxxx xx xxxx xxx ALTER TABLE xxx CREATE TABLE SQL xxxxxxxxxx. Wxxx xxx xxxxx xx xxxxxxx xx xxxxxxx, xxx xxxxxxx xxxxx xxxx xxx xxxxxxxxxxxx xxxxxx xxxx xx xxxxxxx xx xxxxxxx, xxxxxxxxxxxx. - - - - - --xxxx-xxx - - - Ixxxxxxxx xxx xxxxxx xx xxxxxxxxxxx xxx .xxx xxxxx xxxx xxx xxxxxxxxxx xxxx x xxxxx xx xxxxxxx. Txxx xxxxx xxxx xxxxx xxxxxxxx xxxxxxxx, xxx xx xxxx xxxxxx xxxx xxxxxxx xx xx xxxxxx xxxx. - - - - - --xxxx-xxxx - - - Ixxxxxxxx xxx xxxxxx xx xxxxxxx x xxxxx xxx xx xxxxx xxx xxxxxxxxx xxxx xxxxxx xxxxxx xxxx xxxxxx xxxxx xxx xxxx xxxx. - - - - - --xxxxxx=xxxx, -x xxxx - - - Ix xxx xxxx xx xxxxxxx xxxxx MxSQL xxxxxx xxx xxxxxxxxx xxxxx, xxxxxxx xxxx xxxxxx. Yxx xxx xxxx xxxxxxxx xxxx xxxxx xx x xxxxx-xxxxxxxxx xxxx. Wxxx xxx’xx xxxxx xxxxxxx xxxxxxx xxxx xx IxxxDB xxxxxx xxxxxx xxxxxx xxxx xxxxxxxx xxxxx xxx xxx’xx xxxxxxx xxxx xxxx xxxxxx xx xxxx xxxx xxxxx xxxxxx xxx xxxxxxxxxx xxxxxx, xxxx xxxxxx xx xxxxxx xxx xxxxxxx xxxxxx xxxxx xxxxxx. Fxx xxxxxxxx, xx xxx xxxx x xxxxxx xxxx x xxxx xx xxxxxxxxx xxxx xxxxx xx d MB, xxx xxx xxxxxxx xxx xxxxxxxxxxx xxxx xxx --xxxxxx xxxxxx xxx xxxxxxx xxxxxx xxxx xxxxxxxx xxxxx xxxxxxxxxxx xx d MB. Txx xxxxxxxxxxx xxxxx xxxx xx xx xxxxxxxx xxxxxxxxxxx xxxx xxxx xxxxxxxxx xxxxxx xxxxxx. - - - - - - Sxxxxxxx xxx Cxxxxxxxxx - Txxxx xxxxxx xxxxxx xxxxxxx xxxxxx xx xxxxxxxx, xxxx xxxxxxx xxxxxxxx, xxx xxx xxxxxxx xxxxxxxxxxx xxxxxxx xxxx xx xxx xxxxxx. - - - - --xxxxx-xxxxxxxxxx-xxxx[={d|d}] - - - Ax xx xxxxxxx d.d.d xx MxSQL, xxx xxxxxx xxxxxxxx xxxx-xxxxxxx xxxxxxxxx xx xx xxxxx xxxx xx xxxxxxxxxx xxxxxx (xxxxxxxx_xxxx_xxx(), xxxxxxxx_xxxx_xxxxx(), xxxxxxxx_xxxx_xxxxxx(), xxxxxxxx_xxxx_xxxx(), xxx xxxxxxxx_xxxx_xxxxx(), xxx.) xxx xxx’x xxxx xxxxxxxxx xxxx xxxx xx xxxxxx xx xxxx xxxxxxxx. Hxxxxxx, xxx xxx xxxxxxx xxxx xxxxxxxx xxxxxxxxxx xx xxxxxx xxxx xxxxxx x xxxxx xx d. A xxxxx xx d xxxxxxx xx xxx xx xxx xxxxxxx. - - - - - --xxxxxxxxx-xx-xxxxxxxxxx[={d|d}] - - - Bx xxxxxxx xxxx xxxxxx xx xxx xx d xxx xxxxxxxxx xxxxx xxxxx xxx ALTER ROUTINE xxx xxx EXECUTE xxxxxxxxxx xxx xxx xxxxxx xxxxxxx xxxx xxx xxxx xxx xxxxxxx, xx xxxx xx xxx xxxx xxx xxxxx xxxxxxxx xxxxx. Ix xxx xxx xxxx xxxxxx xx d, xxx xxxx xxxx xxx xxx xxxxx xxxxxxxxxx xxx xxxxxxxxx xxxxxx xxxxx xx xxxxxxx xxxxxxxx. Hxxxxxx, xxx xxx xxxxxxxxxx xxxxx xxxxx xxxxx xxxxxxxxxx, xxxx xxxxx MxSQL xxxxxxxxxx. - - - - - --xxxx-xxx=xxxxx - - - Wxxx xxx xxxxxxx xxxxxx xx xxx MxSQL xxxxxx xxxx xxxx xxxxxxxxxx xxxxxxxx xxxxxxxxxxxxxx, xxxx xxx xxxx-xxxxxx xxxxx xxx xxxxxx xxxxxx xxx xxxxxxx. Uxx xxxx xxxxxx xx xxx xxx xxxxxx xx xxxxxxxxxxx xxxx xxx xx xxxxxx xx. Ix xxxxxx xxxxxx xxx xxxxxx xxxxx xxx TCP/IP xxxxxxxxxxx xxxxxxx xx xxx xxxxxx() xxxxxx xxxxxxxx. - - - - - --xxxx-xxxxxxx=xxxxxxx - - - Sxxxxxxxx xxx IP xxxxxxx xxx xxxxxx xxxxx xx. Uxxx xx xxxxxxxx xxxxxxx xxxxxx xx x xxxx xxxx xxxxxxxx IP xxxxxxxxx. - - - - - --xxxxxxxxx - - - Txxx xxxxxx xxx’x xxxxxxxx xxxx xx xxxxxxxxxxxxxx. Ix’x xxxx xx xxx xxxxx_xxxxxxx_xx xxxxxx xx xxxxxx xxx xxxxxxxxx xxxxxxxxxx xxxxxx xxxxxxx xxx xxxxxx xxxxxx xxxxxxx. - - - - - --xxxxxxxxx-xxx-xxxxxx-xxxxxxxxx - - - Uxx xxxx xxxxxx xx xxx xxxxxxx xxxx xxxx (xxx xxxxxxxxx xx xxx xxxxxxx xxxx) xx xxxxxxxx xxx xxxxxx xxx xx xxxxxx xxxxxxx xxxxxxxxxx xxxx xx xxxxxxxx (xxxxxxx xxx xx x xxxxxxxxx xxx xxxxxxxx) xxxx xxx xxxxxx. Uxx --xxxx-xxxxxxxxx-xxx-xxxxxx-xxxxxxxxx xx xxxxxxx xxxx xxxxxx, xxxxxxx xx’x xxx xx xxxxxxx. - - - - - --xxxxxx=xxxx - - - Rxxx xxx xxxxxx xxxx xxxxxx(  ) xxxx xxx xxxxxxxxxx xx xx xx xxxxx xx xx x xxxxxx xxxxxxxxxxx xxx xxxxxxxxxx xxxxxxxx. Txxx xx x xxxxxxxxxxx xxxxxxxx xxxxxxx. - - - - - --xxxxxxx-xxxxxxx=xxxxx - - - Txxx xxxxxx xxx xx xxxx xx xxxxxx xxx xxxxxx xx xxxxxxx xxxx xxx xxxxxx xxxxxx xxxx xxx x xxxxxxxxxx xxxxxx xxxxxx xxxxxxxxxxx xxx xxxxxxxxxx xxx xxxxxxxxx Bxx Hxxxxxxxx. Ax xx xxxxxxx d.d.dd, xxx xxxxxxx xxxxxxxx xx xxx xx d xxxxxxx xx xxxxxxx. Ix xxxxxxx xxxxxxx xxxxxxxx xxxxxx xxxx xxxx xxxx xxx xxxxxxxxxx xx xxx xxxxxx, xxx xxxxx xxx xxxxxxxxxx xxxx xxxxx. - - - - - --xxx-xxx-xxxx=xxxxxxxx - - - Ixxxxxxxx xxx xxxxxx xx xxxxxx xxx xxxxxxx xxxx xxxx xxx xxxxx xxxx xxxx xxx MxSQL xxxxxxxxx DES_ENCRYPT(  ) xx DES_DECRYPT(  ) xxx xxxx. - - - - - --xxxxxx-xxxxx-xxxx - - - Exxxxxx xxxxxxx xxx xxxxx xxxx xxxxxxxxxxx xxxx xxx xxxxxx-xx xxx xxxxxx-xxx-xx xxxxxxx, xxxxx xxxxxxx xxxx. Ix’x xxxx xxxx xxxx Wxxxxxx NT, dddd, XP, xxx dddd xxxxxxx; xx xxx xxx xx xx xxx-Wxxxxxx xxxxxxx (x.x., Lxxxx xx Mxx OS X). Uxx xxx --xxxxxx xxxxxx xxxx xxxx xxx xx xxxxxxx xxx xxxx xxx xxxx xx xxx xxxx. - - - - - --xxxx-xxxxxxx='xxxxxx' - - - Sxxxxxxxx xxx xx xxxx SQL xxxxxxxxxx, xxx xxxxxxxx xx x xxxxxx xxxxxx, xxxx xxx xx xx xxxxxxxx xxxx xxxx x xxxxxx xxxxxxxx xx xxx xxxxxx. Txxx xxxxxx xxxx xxx xxxxx SQL xxxxxxxxxx xx xx xxxxxxxx xxx xxxxx xxxx xxx SUPER xxxxxxxxx. - - - - - --xxxx-xxxx=xxxxxxxx - - - Ixxxxxxxx x xxxx xxxxxxxxxx SQL xxxxxxxxxx xxxx xxx xx xx xxxxxxxx xxxx xxx xxxxxx xx xxxxxxx. Txxx xxxxxx xxxx xxx xxxx xx xxx --xxxxxxx-xxxxx-xxxxxxx xxxxxx xx xxxxxxx. SQL xxxxxxxxxx xxxx xx xx xx xxxxxxxx xxxxx xxx xxxxxxxx xxx xxx xxxxxxxxx xx xxx xxxx. - - - - - --xxxxxxxxxxx-xxxxxxx=xxxxx - - - Fxx xxxxxxxxxxx xxxxxxx (xxxxxxx xxxxx xxxxx_xxxx_xxxxxxx() xxxx xxx CLIENT_INTERACTIVE xxxx), xxxx xxxxxx xxxx xxx xxxxxx xx xxxxxxx xx xxxxxxxxxx xxxxxxx xxxxxx xxxxxxx xxx xxxxxxxxxx. - - - - - --xxxxx-xxxxxx[={d|d}] - - - Txx SQL xxxxxxxxx LOAD DATA INFILE xxx xxxxxx xxxx xxxx x xxxx xx xxxxxx xxx xxxxxx’x xxxx xx xxx xxxxxx’x xxxx. Bx xxxxxx xxx LOCAL xxxxxx, xxx xxxxxx xxxxxxxxx xxx xxxxxx xx xxxxxx xxxxxxx xxxx xxx xxxxxx xxxxxxx. Txxx xxx xxx xxxxxxxxx xx xxxxx x xxxxxxxx xxxxxxx, xxxxxx, xxxxxxx xxx xxxx xxxxx xxxxxx xxxxx xxxx xxxxxxxxx xxxx. Txxxxxxxx, xxxx xxxxxxxxxxxxxx xxx xxxxxx xxxxxxx xxxx xx xxxxxxx xxxxxxx xxxx xxxxx xxxx xx xxxxxx xxxxx xxxxx xx xxx xxxxxx, xxxxx xxxxx xxxxxxxx xxxx xx xxxxxx xxxxx xxxxxxx xx xxx xxxxxx. Uxx xxxx xxxxxx xxx xxx xx xx d xx xxxxxxx xxxxxxxxx xxxxx xxxxx xx xxx xxxxxx. Bx xxxxxxx xxxx xx xxx xx d. - - - - - --xxx-xxxxxxx-xxxxxx=xxxxx - - - Sxx xxx Pxxxxxxxxxx Oxxxxxxxxxxx xxxxxxx. - - - - - --xxx-xxxxxxx-xxxxxx=xxxxx - - - Ix xxx xxxxxx xxx xxxxxxxx xxxxxxxxxx xxx xxx xxxxxx xx xxxxxxxx xxxxxxx xxx xxxxx xx xxx MxSQL xxxxxxxx xxx_xxxxxxx_xxxxxx (dd xx xxxxxxx), xxx xxxx xxxxxxx xxx xxx xxxxxx xxxx xx xxxxxxx xxxx xxxxxxx xxxxxxxx. Uxx xxxx xxxxxx xx xxxxxx xxxx xxxxx xx xxxx xxxxxxxx. Tx xxxxx xxxxxxx xxxxx, xxx xxx FLUSH HOSTS xxxxxxxxx xx xxx xxxxxx. - - - - - --xxx-xxxxxxxxxxx=xxxxx - - - Cxxxxxx xxx xxx xxxxxxxxx xx xxxx xxxx xxxxxxxxxxx xxxx xxx xxxxxx xxxxxxxxx xx xxx xxxxxxxx xxx_xxxxxxxxxxx. Bx xxxxxxx xx’x xxxxxx ddd xx ddd, xxxxxxxxx xx xxxx xxxxxxx. Uxx xxxx xxxxxx xx xxxxxx xxxx xxxxx. - - - - - --xxx-xxxx-xxxxxxxxxxx=xxxxx - - - Lxxxxx xxx xxxxxx xx xxxxxxxxxxx xxx xxxx xxxxxxx. Sxx xxx xxxxx xx d xx xxxxxxx xxx xxxxx xxx xxxxxxx xxxxx xx x xxxxxx xxxx xx xxxxxx xx xxxx xxxxxxxxxxx xx MxSQL xxx xxx xxxxxxxxx xxxxxx xxxxx. - - - - - --xxx-xxxxxx-xxxxxx=xxxxx - - - Mxxxxx xx xxxxxxxxx xx MxSQL xxx xxxx xxxxxx’x xxxxxxxxxx xxx xxxxxxx. Txx xxxxxx xxxxxxxxx xxxxxxxxx xxx xxxx xx xxxxx xxxxxxx xx xxxxxxxxxx xx xxx xxxxxxxx xxx_xxxxxx_xxxxxx. Yxx xxx xxx xxxx xxxxxx xx xxxxxx xxx xxxxx, xxx xxx xxxxxxxx xxxxxxx’x. Exxx xxxxxx xxx xxxxxx xx xxxxxx xxxxx xx xxxxxxx xxx xxxxx xxxxxxxxx xx xxx_xxxxxxx_xxxxxx, xxx xxxx xxxx xxxxxx xxxxxxxx xxx xxxx, xxx xxxxxxx xxxxxxxx xxxxx xx xxxxx xxxxxxx xxxxx. - - - - - --xxx-xxxx-xxxxxxx=xxxxx - - - Sxxx xxx xxxxxx xx xxxxxxx xxx xxxxxx xxxx xxxx xxx x xxxxxxxx xxxx xxx xxxxxx xxxxx xxxxxxx xxxx xx xxxxxx xxxxxxxxxxx xxx xxxxxxxxxx. Uxx --xxx-xxxxx-xxxxxxx xx xxx xxx xxxxxx xx xxxx xxxxxx xxxxxx xxxx xxxx xxxxxxx xx x xxxxxx xxxxxx xxxxxxxxxxx. Txx xxxxxxxx xxxxx xxxx xx TCP/IP xxxxxxxxxxx xxx xxx xx xxxxxxxxxxx xxxx xxxxxxx x xxxxxx xxxx, x xxxxx xxxx, xx xxxxxx xxxxxx. - - - - - --xxx-xxxxx-xxxxx=xxxxx - - - Ix xxx xxxxxxxxxx xx xxx xxxxxx xx xxxxxxxxxxx xxxxx xxx xxxxxx xx xxxxxxx, xxx xxxxxx xxxx xxx xx xx-xxxxxxxxx xxx xxxxxxxxxx x xxxxxx xx xxxxx. Txxx xxxxxx xxx xx xxx xxxx xxxx xxxxxx. - - - - - --xxx-xxxxx-xxxxxxx=xxxxx - - - Sxxx xxx xxxxxx xx xxxxxxx xxx xxxxxx xxxx xxxx xxx x xxxxxxxx xxxx xxx xxxxxx xxxxx xxxxxxx xx xx xxxxxx xxxxxxxxxxx xxx xxxxxxxxxx. Uxx --xxx-xxxx-xxxxxxx xx xxx xxx xxxxxx xx xxxx xxxxxx xxxxxx xxxx xxxx xxxxxxx xxxx x xxxxxx xxxxxx xxxxxxxxxxx. Txx xxxxxxxx xxxxx xxxx xx TCP/IP xxxxxxxxxxx xxx xxx xx xxxxxxxxxxx xxxx xxxxxxx x xxxxxx xxxx, x xxxxx xxxx, xx xxxxxx xxxxxx. - - - - - --xxx-xxxxxxxxx - - - Pxxxxxx xxxxxxx xx xxxxxxxx xx xxx xxxxxxxxx xxxx xxxx xxxxxxx xxxxxx xxxxxxx d.d xx MxSQL, xxxxx xxxx xxx xxx, xxxx xxxxxx xxxxxxxxxx xxxxxx xx xxx xx xxxxxxx xxxxxxxx. - - - - - --xxx-xxxxxxxx, -x - - - Hxx xxx xxxxxx xxx xxxxxxx d.dd xxxxxxxx xx MxSQL xxx xxxxxxxxxxxxx xxxx xxxxx xxxxxxx. - - - - - --xxx-xxxxx-xxxx-xxxxxx - - - Pxxxx xx xxxxxxx d.d.d xx MxSQL, xxxx xxxxxxxx xxxxxx xxxx xxxxx xx xxxx xxxxxxxxxxx xx xxxx xxx xxxx. Sxxxx xxxx, xxxx xxxxxxxxx xxx xxxxxxx xxxxx xx xxx xxxx xxxxxxxxxx xx xxx xxxx. Tx xxxxxxxx xx xxxxx xxxxxxxxx xxxxx xx xxx xxx xxxxxx, xxx xxxx xxxxxx. - - - - - --xxx-xxxxxx - - - Ixxxxxxxx xxx xxxxxx xx xxx xxxx xxx xxxxxx, xxxxx xx xxxxxx xxxx xxxxxxxxx x Lxxxx xxxxxx xxxxx xxxxx xxxxxxxx xx xxx xxx xxxxxxxx. - - - - - --xxxx=xxxx, -P xxxx - - - Sxxxxxxxx xxx xxxx xx xxxxx xxx xxxxxx xxxx xxxxxx xxx xxxxxx xxxxxxxxxxx. Bx xxxxxxx, MxSQL xxxx xxxx dddd. Hxxxxxx, xx xxx xxxx xx xxx x xxxxxxxx xxxx, xxx xxx xxxxxxx xxx xxxx xxxx xxxxxx. Txxx xxxxxxx xxx xx xxxxxx xx xxx xxx xxxxxxx xxxx xxxx xxx xxxxxxxx xx MxSQL xx xxxx xxxxxx. Fxx xxxxxxx, xxx xxxxx xxx xxxx dddd xxx xxxx xxxxxxx MxSQL xxxxxx xxx xxxx dddd xxx x xxxxxxxxxx xxxxxxxxxx’x xxxxxxxxx, xx xxxx xx dddd xxx xxxxxxx x xxx xxxxxxx xx MxSQL. - - - - - --xxxx-xxxx-xxxxxxx=xxxxx - - - Ax xx xxxxxxx d.d.d xx MxSQL, xxxx xxxxxx xxx xx xxxx xx xxx xxx xxxxxx xx xxxxxxx xxx xxxxxx xxxxxx xxxx xxx x TCP/IP xxxx xx xxxxxx xxxxxxxxx. Txxx xxxxxxx xxxxx xxxx xxxx xxxx xxx xxxxxx xxx xxxx xxxxxxxxx. - - - - - --xxxx-xxxx-xxxxxxxx - - - Hxxxx xxxxxxxx xxxxx xxxx x xxxx xxxx xxx xxxx xxxxxxxxxx xx xxxxxx. - - - - - --xxxx-xxxx-xxxxxx - - - Pxxxxxxx x xxxx xxxx xxxxxxxx xxx xxxxx xxxxxxx INSERT xxxxxxxxx xxx xxx xxxx xxxxx xx xxx xxxxx xxxxxxxx. - - - - - --xxxxxx - - - Exxxxxx xxxxxxx xxxx xxxxxx xx IP xxxxxxxxx, xxxxx xxxxxxxx xxxx xxxxxxx xxxxxxx xxxxxxxx xxxxxx xxxxx xxx xxxx xxxxxxxx xx xxxx xxxxxx xxxxxxxxxx. - - - - - --xxxxxx-xxxx - - - Pxxxxxxx xxxxxxxxxxxxxx xx xxxxx xxxx xxxxxxxxx xxxxxxx xxxxx xx xxxxxxx d.d xx MxSQL. - - - - - --xxxxxx-xxxx-xxxx=xxxx - - - Sxx xxx Lxxxxxxx xxxxxxx. - - - - - --xxxx-xxxxxxxxx-xx-xxxxxxxxxx - - - Dxxxxxxx xxx --xxxxxxxxx-xx-xxxxxxxxxx xxxxxx, xxxxx xx xxxxxxx xx xxxxx xxxxxxxxxxxxx xxxxx xxxxxxx ALTER ROUTINE xxx EXECUTE xxxxxxxxxx xx xxxxxx xxxxxxxxxx xxxx xxxx xxxxxx. - - - - - --xxxx-xxxxxxxxx-xxx-xxxxxx-xxxxxxxxx - - - Dxxxxxxx xxx --xxxxxxxxx-xxx-xxxxxx-xxxxxxxxx xxxxxx. - - - - - --xxxx-xxxxx-xxxxxx - - - Ixxxxxxxx xxx xxxxxx xxx xx xxx xxx xxxxxx xxxxx xxx xxxx xxxx xxx xxxxx xxxx xxxxxx. Txxx xxxxxx xxxxxxxx x xxxxxxxx xxxx. Ix xxx xx xxxx xx xxx xxxx xxxxxxxx xx xxxx xx xxxx xxx xxx xxx xx xxxxxxx xx xxx xxxx xxxxx xxx xxxxxxxx. Rxxxxxx xxx xxxxxx xxxxxxx xxxx xxxxxx xx xxx xxx FLUSH PRIVILEGES xxxxxxxxx xxxx xxx xxxxxxx xx xx-xxxxxx xxxxxxxxxx. - - - - - --xxxx-xxxx-xxxxx - - - Dxxxxxxx xxx xxx xx xxx xxxxxxxx xxxx xxxxx, xxxxx xxxxxxxx x DNS xxxxxx xxx xxxx xxx xxxxxxxxxx. - - - - - --xxxx-xxxx-xxxxxxx - - - Rxxxxxxx x xxxxxx’x IP xxxxxxx xx xx xxxxx xx xxx xxxxxxxxxx xxxxxx xxx xxxxxxx xxxxxxxx xxx xxxxxx xxxxxxxxxxx. - - - - - --xxxx-xxxxxxxxxx - - - Pxxxxxxx xxxxxxx xxxxxxxxxxx xx xxxxxxx xxx xxxxxx xxxx xxxxx xxxxxxxxxxx. - - - - - --xxxx-xxxx-xxxxxxxx - - - Pxxxxxxx xxx SHOW DATABASES xxxxxxxxx xxxx xxxxx xxxxxxxx xx xxxxx xxxxxxx xxx xxxxxxxx xxxxxxxxx. - - - - - --xxxx-xxx - - - Sxxxxxxxx xxxx xx SSL xxxxxxxxxx xxxxxx xxx xx xxxx, xx SSL xx xxxxxxx xx xxxxxxx. - - - - - --xxx - - - Sxxxxxxxx xxx xxx xx SSL-xxxxxxxxx xxxxxxxxxxx. Rxxxxxxx xxx xxxxxx xx xxxx SSL xxxxxxx. Ix xxxx xxxxxx xx xxxxxxx xx xxx xxxxxxx xx xxxxxxx, xxx --xxxx-xxx xx xxxxxxx xx. - - - - - --xxx-xx=xxx_xxxx - - - Sxxxxxxxx xxx xxxx (x.x., xxx xxx xxxx) xxxx xxxxxxxx x xxxx xx xxxxxxx SSL CAx. - - - - - --xxx-xxxxxx=xxxx - - - Sxxxxxxxx x xxxxxxxxx xx xxxxx xxxx xxxxxxx xxxxxxx SSL xxxxxxxxxxxx (x.x., xxx xxxxx). - - - - - --xxx-xxxx=xxxxxxxx - - - Sxxxxxxxx xxx SSL xxxxxxxxxxx xxxx xxx SSL xxxxxxxxxxx. - - - - - --xxx-xxxxxx=xxxxxxx - - - Gxxxx x xxxx xx xxxxxxx xxxx xxx xx xxxx xxx SSL xxxxxxxxxx. - - - - - --xxx-xxx=xxxxxxxx - - - Sxxxxxxxx xxx SSL xxx xxxx xxx xxxxxx xxxxxxxxxxx. - - - - - --xxx-xxxxxx-xxxxxx-xxxx - - - Hxx xxx xxxxxx xxxxxx xxx xxxxxxxxxxx xxxx xxx xxxxxx xxxxxx xx SSL xxxxxxxxxx. Txxx xxxxxx xx xxxxxxxxx xx xx xxxxxxx d.d.dd. - - - - - --xxxxxxxxxx - - - Ix MxSQL xx xxxxxxx Wxxxxxx NT, xxxx xxxxxx xxxxxxxxx xxx xxxxxx xxx xx xxx xx x xxxxxxx. - - - - - --xxxxxx-xxxxxxxx={xxx-xxxxxx|xxx-xxxxxx-xxx-xxxxxxxxxx} - - - Sxxxxxxxx xxx xxxxxx xxxxxxxx xxxxx xxxx xxx xxxxxx xx xx xxx. Txx xxx-xxxxxx xxxxxx xx xxxxxxxxx xxxx xxx xxxxxxxxx; xxx-xxxxxx-xxx-xxxxxxxxxx xx xxx xxxxxxx. Txxx xxxxxx xx xxxxxxxxx xx xx xxxxxxx d.d.dd xx MxSQL. - - - - - --xxxx=xxxx, -x xxxx - - - Ixxxxxxxx xxx xxxxxx xx xxxxxx MxSQL xxxxx x xxxx xxxx xxxxxxxxx xxxx xxx xxxxxxx xxxxxx xxxx. - - - - - - Gxxxxx - Fxxxxxxxx xx x xxxx xx xxxxxx xxxxxx xxxxxxx xxxxxxx xx xxx xxxxxx’x xxxxxxxx. - - - - --xxxx, -x - - - Ixxxxxxxx xxx xxxxxx xx xxx xxxxxxxx ANSI SQL xxxxxx xxxxxxx xx MxSQL xxxxxx. - - - - - --xxxx-xxxxxxxxx-xxxxxxxxx[=xxxxx] - - - Txxx xxxxxx xxx xxx --xxxx-xxxxxxxxx-xxxxxx xxxxxx xxx xxxx xxxx xxxxxxxxxxx x xxxxxx xx x xxxxxx xxxxxx. Txxx xxxxxxxxx xxx xxxxxx xx xxxxx xx AUTO_INCREMENT xxxxxx xx xxxxxxxxx xxxxx xxxx xxx xxx xxxxxxxx xxxx xxx xxxxx xx xxx xxxxxx. Bx xxxxxxx xxx xxxxxxxx xxxxxxxxxx xxxx xxxx xxxxxx xx xxx xx d. Txxx xxx xx xxx xx x xxxxx xxxx d xx dd,ddd. Ix xxxxxx xxxxxx xx xxx xx d, xxxx xxxx xxxx xx xxx xxxx xx d. Ix xxxxxx xx xxx xx x xxx-xxxxxxx xxxxx, xx xxxx xxxxxx xxxxxxxxx. Ix xxxxxx xx xxx xx x xxxxxxxx xxxxx xx x xxxxx xx xxxxxx xx dd,ddd, xxxx xxxx xxxx xxxx xx xxx xx dd,ddd. Dxx’x xxx xxxxx xxxxxxx xxxx MxSQL Cxxxxxx xx xxxx xxxxx xxxxxxxx. - - - - - --xxxx-xxxxxxxxx-xxxxxx[=xxxxx] - - - Sxxx xxx xxxxxxxx xxxxxx xxx AUTO_INCREMENT xxxxxxx xx xxx xxxxxx xx xxx xxxxxx. Exxx xxxxxxxxxx xxx xxxxxxxx xxxx xxxxxx xxxx xx xxxxxxxxxxx xx xxx xxxxx xx xxx xxxx-xxxxxxxxx-xxxxxxxxx xxxxxx xxxxxxxx. Ix xxxx xxxxxxxx xx xxx xx x xxxxxx xxxxx xxxx xxx xxxxx xxx xx xxxx xxxxxx, xxx xxxxx xx xxx xxxx-xxxxxxxxx-xxxxxx xxxxxx xxxxxxxx (xxx xx xxxx xxxxxx) xxxx xx xxxxxxx. Sxx xxx xxxxxxxxxxx xx xxx --xxxx-xxxxxxxxx-xxxxxxxxx xxxxxx xxx xxxx xxxxxxxxxxxx xx xxxx xxxxxx. - - - - - --xxxxxxxxx-xxx-xxxxxx=xxx, -C - - - Mxxxx xxx xxxxxx xxx x xxxxxxxxxx xxxxxxxxx xxx xx xxxxxxx xxx xxx xxxxxxxxxxxx. Axxxxxxxx xx xx xxxxxxx d.d.d xx MxSQL. - - - - - --xxxxxxxxx-xxx-xxxxxxxxxx=xxxxx - - - Sxxxxxxxx xxx xxxxxxxxx xxx xxxx xxx xxxxxxxxxx xxxx. Ix xxx xxxxx xx xxxxxxx d.d.d xx MxSQL. - - - - - --xxxxxxxxxx-xxxx=[=d|d|d] - - - Txx SQL xxxxxxxxxx COMMIT xxx ROLLBACK xxxxxxx xx xxxxxxxx AND CHAIN xxxxxxxxx xxxx xxxxxxxxxxxxx xxxxxx x xxx xxxxxxxxxxx xx xxx xxxx xxxxxxxxx xxxxx xxxxx xxx xxx xx xxx xxxxxxxxxxx xxxxxxxxx xx xxxxx xxxxxxxxxx. Ix xxxx xxxxxx xx xxx xx d, xxxx xxxxxxxx xxxxxx xxxx xx xxx xxxxxxx xxxxxxx xxx xxxxx SQL xxxxxxxxxx. Sxxxxxxxx, xx xxxx xxxxxx xx xxx xx d, xxx xxxxxxx xxxxxxx xxx xxx xxxxxxxxxx xxxx xx RELEASE, xxxxx xxxxxx xxx xxxxxx xx xxxxxxxxxx xxxxx xxxx xxxxxxxxxxx xx xxxxxxxxxx. A xxxxx xx d, xxxxx xx xxx xxxxxxx, xxxx xxxxxxx. - - - - - --xxxxxxx - - - Ox Wxxxxxx xxxxxxx, xxxx xxxxxx xxx xxx xxxxxx xxxxxxx xxxxx xxxxxxxx xx xxxxxx xxx xxx.xxx xxxx xx --xxx-xxxxx xx xxxxxxx. - - - - - --xxxx-xxxx - - - Ixxxxxxxx xxx xxxxxx xx xxxxxx x xxxx xxxx xx xxx xxxxxx xxxx. Sxxx xxxxxxx xxxx xxxxxxx --xxxx-xxxxx-xxxxx xxxxxx xx xx xxx, xx xxxx. Sxxx xxxxxxx xxxx xxxxxxx xxx --xxxx-xxxx-xxxx xxxxxx xxxx xxxxx xxxxxx_xxxx. Ox Sxxxxxx xxxxxxx, xx xxx --xxxx xxxxxx xx xxxx xxxx, xxx xxxxxx xxxx xxx xxxxxx xxx xxxx xxxx. - - - - - --xxxx-xxxxxx=xxxxx - - - Txx xxxxxxxx xxxxxxxxxx xxxx xxxx xxxxxx xx xxx xxx xxxxxxxxxxx. Ix’x xxxxxxxx xx xx xxxx xx xxx xxx xxxxxxx xxxx xxxxxx xxx xxx MxSQL xxxxxx. - - - - - --xxxxxxxx-xxxxxx=xxxxx - - - Txx xxxxxxxx xxxxxxxxxx xxxx xxxx xxxxxx xx xxx xxx xxxxxxxxxxx. Ix’x xxxxxxxx xx xx xxxx xx xxx xxx xxxxxxx xxxxxxxx xxxxxx xxx xxx MxSQL xxxxxx. - - - - - --xxxxxxx-xxxx-xxxxxx=xxxxx - - - Txx xxxxxxxx xxxxxxxxxx xxxx xxxx xxxxxx xx xxx xxx xxxxxxxxxxx. Ix’x xxxxxxxx xx xx xxxx xx xxx xxx xxxxxxx xxxxxx xxx xxx xxxx xx xxx xxxx xx xxx MxSQL xxxxxx. - - - - - --xxxxx[=xxxxxxx], -# xxxxxxx] - - - Uxxx xx xxx x xxxxx xxxx xx xxx xxxxxx’x xxxxxxxxxx. Txx xxxxx xxxxxxx xxx xxxxxxxxx x:x:x,xxxxxxxx. Sxx xx xxx xxx xx xxx xxxx xx xxxxxxx xxx xxx xxxxxxxxx xxxxxxx xxx xx xxxxxxxxxxx xx xxxxx xxxxx xxx xxxxxx xxxx xxx xx xxxx. MxSQL xxx xx xx xxxxxxxx xxx xxxxxxxxx xxxxx xxx --xxxx-xxxxx xxxxxx xxxx xxxxxxxxxxx. - - - - - --xxxxxxx-xxxxxxxxx-xxx=xxxxxxxxx_xxx - - - Uxxx xx xxxxxxx xxx xxxxxxx xxxxxxxxx xxx. Txxx xxxxxx xx xxxxxxxxxx xx xx xxxxxxx d.d.d xx MxSQL. Uxx xxx --xxxxxxxxx-xxx-xxxxxx xxxxxx xxxxxxx. - - - - - --xxxxxxx-xxxxxxxxx=xxxxxxxxx - - - Sxxxxxxxx xxx xxxxxxxxx xx xxx xx xxxxxxx. Txxx xxxxxx xx xxxxxxxxxx xx xx xxxxxxx d.d.d xx MxSQL. Uxx xxx --xxxxxxxxx-xxxxxx xxxxxx xxxxxxx. - - - - - --xxxxxxx-xxxx-xxxx=xxxx - - - Sxxxxxxxx xxx xxxxxxx xxxx xxxx xxx xxx xxxxxx. Txx xxxxxxxxxx xxxx xxxx xx xxxx xx xxxxxxx. - - - - - --xxx-xxxxxxxxx-xxxxxxxxx=xxxxx - - - Sxxx xxx xxxxxx xx xxxxxxx xxxxxx xx xxxx xx xxx xxxxxxx xx xxxxxxxx xxxxxxx. Txx xxxxxxxx xxxxxxxxxx xxxx xxxx xxxxxx (xxx_xxxxxxxxx_xxxxxxxxx) xxx x xxxxxxx xxxxx xx d. Yxx xxx xxx xx xxxx d xx dd. - - - - - --xxxxxx-xxxxxx - - - Ixxxxxxxx xxx xxxxxx xx xxxxx x xxxxxxxx xxxxx xxxxx xx xxx xxxxxx xxxxx xxx xxxxx. - - - - - --xxxx-xxxx[=xxxxx], -T [xxxxx] - - - Dxxxxxxx xxxxxxxxx xxxxxxxxxxx xxxx xxx xxxxxx xxxxx. - - - - - --xxxxxxxx-xxxxxxx - - - Axxxxx xxxxxx xxxxxxx. Bx xxxxxxx xxxx xxxxx xxxx xxxxxx xx x xxxxxxxx xxxx xxxxxxxx xxxx xxxxx, xxxx xx, Lxxxx: xxx xxxxxx xxxxxx xxx xxxxxxxx xxx xxxxxxx xxxxxxxxx xxx xxxxxx xx xxxxxx xx. Txxx xxxxxx xxx xxxxxxxxxx xxxxxx --xxxxxx-xxxxxxx. - - - - - --xxxxx - - - Fxxxxxx xxx xxxxxxx xx xxxx xxxxxx xxxx SQL xxxxxxxxx xxxxxxx xx xxxxxxx xxx xxx xxxxxxxxxx xx xx xxx xxxxxx xx xxxxxxx xxxxxxxxx. - - - - - --xxxxx-xxxx=xxxxxxx - - - Sxxx xxx xxxxx_xxxx xxxxxxxx, xxxxx xxxxxxxxx xxx xxxxxx xx xxxxxxx x xxxxx xxx xxxxxx xxxx xxxxxx xx’x xxxxxx xxx xxxxxxx xx xxxx xxxxxxxxx xxx xx xxxxxxxxxxx xxxx. Fxx xxxxxxx xxxxxxxxx xxxxxxx, xxxx xxxxxx xxxxxxx’x xx xxxx xxxxxxx xx xxxx xxxx xxx xxxxxx. A xxxxx xx d xxxxxxxx xx xxx xx xxx xxxxxxx. - - - - - --xxx - - - Rxxxxxxxxxx xxxx xxxxxxxxx xxx MxSQL xxxxxx. Txxx xxxxxx xxxxxxx x xxxxxxx xxx SIGINT, xxxxx xx xxxxxxxxx xxx xxx xxxxxx xxxxxx xx xx xxxxxxx xxxx Cxxxxxx-C xx xxxxxxxxx xxxxx-xxxxxx. Ix xxxx xxxxxxxx xxxx xxxx xxxxxxxx xxx xxxx xx xxxxx xxxxxxx. - - - - - --xxxxx-xxxxxx-xxx-xxx=xxxxx - - - Sxxx xxx xxxxxxx xxxxxx xx x xxxxx xxxxxxx xx xxx GROUP_CONCAT() xxxxxxxx. - - - - - --xxxxxxxx=[xxxxxxxx|xxxxxxxx] - - - Sxxxxxxxx xxx xxxxxxxx xxx xxxxxx xxxxxx xxx xx xxxxxxx xxxxxxxx. Cxx xx xxx xxxx xx x xxxxxxxx xx x xxxxxxxx xx xxx xxxxxxxx xxxx. - - - - - --xxxxx-xxxx-xxxxx-xxxxx[=d|d|d] - - - Ix xxxx xxxxxx xx xxx xx d, xxxxxxxx xxx xxxxx xxxxx xxxx xx xxxxx xx xxxxxxxxx xxxxxxx xx xxx xxxxxx, xxx MxSQL xxxx xxx xxxxxxxx xxxx xxxx xxxxx xxxxxxxx xxx xxxxx xxxxx. A xxxxx xx d xxxxxx xxxxxxxxx xxx xxxxxx xx xx xxxxxx xx xxx xxxxxxxxxx xx xxxxxxxxx xxxx xxxxxxxxx xxx xxxxxxxxx xxxxx xx xxxx xx xx xxxxx xxxx xxxx xxx xxxxxxx. Hxxxxxx, xxxx xxxx xx xxxxxxx xx xxxxxxxxx. A xxxxx xx d xxxxxxxx xxxxx xxxxxxxx, xxx xxx xxxxxxx’x xxx xx xx d xx xxxxx x xxxx-xxxxxxxxxx xxxxxxxxxx xxxx Wxxxxxx. - - - - - --xxx-xxxxx-xxxxx=xxxxx - - - Wxxx xxxxxx, xxxxxxxx, xxx xxxxx xxx xxxxxxxxx, xxxx xxx xxxxxx xx xxx xxxxxx xx xx xxxxxxxxx xxxx xxx SHOW ERRORS xx SHOW WARNINGS xxxxxxxxxx xxx xxxxxxxx. Txxx xxxxxx xxxxxx xxx xxxxxx xx xxxxxxxx xxxx xxxx xx xxxxxx. Txx xxxxxxx xxxxx xx dd. - - - - - --xxx-xxxx-xxxx=xxxxx - - - Sxxx xxx xxxxxxx xxxxxx xx xxxx xx x xxxx. Bx xxxxxxx xxxx xxxxxx xx xxx xxxx xxxx. Yxx xxx xxxx xx xxxxx xx xx xxx xxxxxxx xxxxx xxxx xxxxx. Tx xxxxx xx xx xxx xxxxxxx xxxxx, xxxxx x xxxxx xx DEFAULT. Ix xxx xxx xxxx xxxxxx xx xxx xxxxx xxxxx, xx xxxxxx xxx xxxxxx xxxxxxxx SQL_BIG_SELECTS xx xx xxx xx d. Ix xxx SQL_BIG_SELECTS xxxxxxxx xx xxxx xxx xx xxxxxxx xxxxx, xxxx xxxxxx’x xxxxxxx xx xxxxxxx. - - - - - --xxx_xxxxxx_xxx_xxxx_xxxx=xxxxx - - - Sxxx xxx xxxxxxx xxxx xx xxxx xxxx xxx xx xxxxxx xxxx xxx ORDER BY xxxxxx. - - - - - --xxx_xxxxxxxx_xxxx_xxxxx=xxxxx - - - Sxxx xxx xxxxxxx xxxxxx xx xxxxxxxx xxxxxxxxxx xxxxxxx xx xxx xxxxxx. Vxxxxx xxxx d xx ddddddd (xxx xxxxxxx) xxx xxxxxxxx; xxx xxxxxxx xx ddddd. Ix xxx xxx xxx xxxxx xxxxx xxxx xxx xxxxxxx xxxxxx xx xxxxxxxx xxxxxxxxxx, xxxxxxxx xxxx xxxx xx xxxxxxxxxx. Bxx xxxx xxxx xxx xxxxxxx, xxx xxxx xxxxxx xx xxxxx xxxxx xxx xxxxx xxxxx xxxxx xxxxx xxx xxxxx xxxxx xxxx xxxx xxxxxx. Txxx xxxxxx xx xxxxxxxxx xx xx xxxxxxx d.d.dd xx MxSQL. - - - - - --xxx, -x - - - Ax xxx xxxx xx xxxx xxxxxxx, xxxx xxxxxx xx xxxx xx xxxx xxxxxxx xxxxxx xxxxxxxxx xxxx xxxxxxx d.d xx d.d. - - - - - --xxxx_xxxxx_xxxxx=xxxxx - - - Sxxxxxxxx xxx xxxxxxx xxxxxx xx xxxxx xxx xxxxxx xxx xxxx xxxx, xxxxx xxx xxxxxxx xx xx xxxxx xxxxxx xxxx xxxxx xxxx xx xxxxxxx. - - - - - --xxxx, -? - - - Dxxxxxxx xxxxx xxxx xxxxxxxxxxx. Dxxxxxxx xxxx xxxxxxxxxxx xxxx xxxxxxxx xxxx xxx --xxxxxxx xxxxxx. - - - - - --xxxx_xxxx - - - Ix xxxx xxxxxx xx xxxx, xxxxx xxxxxx xxx, xxxxxx, xx xxxxxx xxxx xx xxx xxxxxx, xxxxxx xxx xxxxx xxxx SUPER xxxxxxxxxx. Txx xxxxx xxxxxxxxx xx xxxx xxxxxxx xxxx xxxxx xxxxxxx xxx xxxxxxx. Txxx xxxxxx xxxx xxx xxxxx xx xxx xxxxxx. Ix xxx xx xxx xx xxxxxx xxxxxxxxxxxxx xxxx xxx xxxxxx xxx xxx xx xxxxxx xx xxxx xxxxxx xxxxxxxxxxx xxxxxxxx. - - - - - --xxxx-xxxx=xxxxx - - - Dxxxxxxx xxxx xxxxxxxxxxxxx xx xxxxx xx. - - - - - --xxx-xxxxxxxx xxxxxxxx = xxxxx, -d xxxxxxxx = xxxxx - - - Sxxx x xxxxxx xxxxxxxx. Exxxx xxxxxx --xxxxxxx --xxxx xx xxx xxx xxxxxxx xxxxxx xxx xxxxxxxxxx xxxxxx xxxxxxxxx. - - - - - --xxxx-xxxxxxxx-xxxxxxx - - - Pxxxxxxxxx xxxxxx --xxxx-xxxxxxx, xxxx xxxxxx xxxxxxxx xxxxxx xxxxxxx. - - - - - --xxxx-xxxxxxx - - - Dxxxxxxx xxxxxx xxxxxxx xx xxx xxxxxx. - - - - - --xxxx-xxx - - - Ixxxxxxxx xxx xxxxxx xxx xx xxx xxx xxxxxxx—xxxxxxx xxxx xxx xxxxxxx xx xxxxxxx xxx xxx xxxxx xx xxxx xxxxxxx xxxx. - - - - - --xxx-xxxx=xxxxx - - - Cxxxxx x xxxxxx xx xxxxxxxx xxxx xx xxxxxxxxxxxx SQL xxxxxxxxxx, xxxxxx xxx xxxxxxxxxxxx xxxx xxxxx xxxxxxxx xxxxxxx. Mxxxxxxx xxxxxx xxx xx xxxxx xx x xxxxx-xxxxxxxxx xxxx. - - - - - --xxx_xxxx_xx_xxxx={d|d} - - - Ix xxxx xxxxxx xx xxxxxxx xx xxxxxxx xx xx d, xxx xxx xxxx xxx xxxx xx x xxxxxx xxxx xxxx AUTO_INCREMENT xx WHERE xxxxxxx xxxx x xxxxxxxxx xx NULL xx xxxx xxx xxxx xxxxxxxx xxx. Fxx xxxxxxx, SELECT...WHERE xxxxxx_xx IS NULL; xxxx xxxxxx xxx xxx xxxx xxx xxxx xxxxxxxx xxxx x xxxxx xxxxx xxxxxx_xx xx xxx xxxxxxx xxx. A xxxxx xx d xxx xxxx xxxxxx xxxx xxxxxxx xx. Txx xxxxxx xx xxxxxx xxxx xxxxxxxxxxx xxxx ODBC xxxxxxxxxxxx (x.x., MS Axxxxx). - - - - - --xxx_xxx_xxxxxxx={d|d} - - - Dxxxxxx (xxx xx d) xxxx xxxxxx xx xxxxxxx xxxxx SELECT xxxxxxxxxx xxxx xxxxx xxxxxxxx. Lxxxx xxxxxxxxxx xxx xxxxxxx xx xxxxx xxxxx xxxxxxx xxxxx xxxxxx xxx xxxxxxx xxxxxx xx xxxx xxx xx xxx --xxx_xxxx_xxxx xxxxxx. Txx xxxxxxx xxxxx xx d xxxxxxx xxxxx SQL xxxxxxxxxx. Sxxxxxx xxx --xxx_xxxx_xxxx xxxxxx xx xxxxxxxxx xxxxx xxxx DEFAULT xxxx xxxxx xxxx xxxxxx xxxx xx d. - - - - - --xxx_xxxxxx_xxxxxx={d|d} - - - Ix xxxx xxxxxx xx xxx xx d, xxx xxxxxxx xx SELECT xxxxxxxxxx xxxx xx xxxx xx x xxxxxx xxxxxx xxxxx xxxxxxxx xx xxx xxxxxx. Txxx xxxxx xxx xxxxxxx, xxx xxxxxxx xxx xxxxxxxxxx xxxxxx xxxxxx xxx xxx xxx xx xxxxx xxxxxxx. Txx xxxxxxx xxxxxxx xx d xxxxxxxx xxx xxxxxx. - - - - - --xxx-xxxx-xxxxxxx={d|d} - - - Txxx xxxxxx, xxxx xxx xx d, xx xxxxxx xx xxxxxxx xx xxxxxxx xxxxxxxxxxx xxxxxxxx xx xxxxxxxx xxx xxxxxxxx xxx xxxx xx x xxxxx. Ix xxxxxxxx xxxx DELETE xxx UPDATE xxxxxxxxxx xxxxxxx x WHERE xxxxxx xxxx x xxx xxxxxx xxx xxxxx. Txx xxxxxxx xxxxx xx d xxxxxxxx xxx xxxxxx. - - - - - --xxx_xxxxxx_xxxxx={xxxxx|DEFAULT} - - - Lxxxxx xxx xxxxxx xx xxxx xxxxxxxx xxxx x SELECT xxxxxxxxx xxxx xxx LIMIT xxxxxx xxxx’x xxxx xxxxx. Txx xxxxx xx DEFAULT xxxxx xxxx xxxxx xx xx xxxxx. - - - - - --xxxxxxx-xx-xxx - - - Txx SYSDATE() xxxxxxxx xxxxxxx xxx xxxx xxx xxxx xx xxxxx xxx xxxxxxxx xx xxxxxxxx xx MxSQL xxxxxx xx SQL xxxxxxxxx. Ix xxxxx’x xxxxxx xxx xxxx xxxx xxx SQL xxxxxxxxx xxxxxxx, xx xxx NOW( ) xxxxxxxx xxxx. Hxxxxxx, xx xxx xxxx SYSDATE( ) xx xxxxxx xxx xxxx xxxx xx NOW( ), xxx xxxx xxxxxx. Sxx xxx xxxxxxxxxxx xx SYSDATE() xx xxx xx xxxxxxx. - - - - - --xx-xxxxxxxxx-xxxxxxx={COMMIT|ROLLBACK} - - - Txxx xxxxxx xx xxx xxx xxxxxxxxxxx xx MxSQL. Hxxxxxx, xx xxxx xxxxxx xx xxx xxxxxxxxx xxxxxxxx xxxxxxx xxxx xx xx xxxxxxxxxxx. - - - - - --xxxx_xxxxxx=xxxxx - - - Txx xxxxxxxx xxxxxxxxxx xxxx xxxx xxxxxx xx xxx xxx xxxxxxxxxxx. Ix’x xxxxxxxx xx xx xxxx xx xxx xxx xxxxxxx xxxx xxxxxx xxx xxx MxSQL xxxxxx. - - - - - --xxxxxxxxxxx-xxxxxxxxx=xxxxxx - - - Sxxx xxx xxxxxxx xxxxxxxxxxx xxxxxxxxx xxxxx. Txx xxxxxxxxx xxxxxx xxx READ-UNCOMMITTED, READ-COMMITTED, REPEATABLE-READ, xx SERIALIZABLE. - - - - - --xxxxxxxxx_xxxxx_xxxx_xxxxx={d|d} - - - Sxx xxxx xxxxxx xx d xx xxxxxxx xxxxxxx xx xxxxx xxxx xx xxx xxxxxxx xxx xx xxx xxxxxxx xx xxx xxxxxxx xxx xx xxx xxxxxxxxxx xxxxx; xxx xxxxxx xxxxxxx xxxx xxxx xxx SQL xxxxxxxxx xxxxxxxx x LIMIT xxxxxx. Ix xxx xx xxx xxxxxx xxxxx xx d, x xxxxxxx xxxx xx xxxxxxxx xxx xxx xxxxxx xx xxx xxxxxxxxx. - - - - - --xxxxxxx - - - Dxxxxxxx xxx xxxxxxx xx MxSQL xxxx xx xxxxxxx xx xxx xxxxxx. - - - - - --xxxxxxx_xxxxxxx_xxxxxxx - - - Dxxxxxxx xxx xxxx xx xxxxxxx xx xxxxx MxSQL xxx xxxxxxxx. - - - - - --xxxxxxx_xxxxxxx_xx - - - Dxxxxxxx xxx xxxx xx xxxxxxxxx xxxxxx xx xxxxx MxSQL xxx xxxxxxxx. - - - - - - Lxxx - Txxxx xxxxxx xxxxxx xxxxxxx xxxxxx xx xxxxxxx xxxx xxxxxxx xx MxSQL. Fxx xxxxxxx xxxxxx xxxxxxxx xxxx, xxx xxx Sxxxxxx Exxxxx Sxxxxxxx Oxxxxxx xxxxxxx. - - - - --xxxxxx-xx-xx=xxxxx - - - Lxxxxx xxx xxxxxx xxx xx xxxxxxx xxxxxxx xx SQL xxxxxxxxxx xxxxxxxx xxxxxxx xxx xxxxxxxx xxxxx, xxx xxxx xxxx xx xx xxx xxxxxxx xxxxxxxx. Ix xxx xxxx xxxx xxx xxxxxxx xxxxxxxx xx xxxxxxx xxxxxxxx, xxx xxxxxxxx SQL xxxxxxxxxx xxxxxxxxx xxx xxxxxxxx xxxxx xxxx xxxx xxxxxx, xxxxx xxxxxxxxxx xxxx xxx xx xxxxxxx xx xxx xxxxxx xxx. Axxxxxxxxx xxxxxxxxx xxx xx xxxxxxxxx xxxx xxxxxxxx xxxxxxxxx xx xxxx xxxxxx. Dxxxxxx xxxx xxxxxx, xxxxxx, ALTER DATABASE, CREATE DATABASE, xxx DROP DATABASE xxxxxxxxxx xxx xxx xxxxx xxxxxxxx xxxx xx xxxxxx xxxxxxxxxx xx xxx xxxxxxx xxxxxxxx xxxxxxx. - - - - - --xxxxxx-xxxxxx-xx=xxxxx - - - Oxxxx xxxxxxx xxxx xxx xxxxxx xxx xxx SQL xxxxxxxxxx xxxxxxxx xxxxxxx xxx xxxxxxxx xxxxx, xxx xxxx xxxx xx xx xxx xxxxxxx xxxxxxxx. Sx xxxx xxx xxxx xxxx xxx xxxxxxx xxxxxxxx xx xxxxxxx xxxxxxxx, xxx xxxxxxxx SQL xxxxxxxxxx xxxxxxxxx xxx xxxxxxxx xxxxx xxxx xxxx xxxxxx, xxxxx xxxxxxxxxx xxxx xx xxxxxxx xx xxx xxxxxx xxx. Axxxxxxxxx xxxxxxxxx xxx xx xxxxxxxxx xxxx xxxxxxxx xxxxxxxxx xx xxxx xxxxxx. Dxxxxxx xxxx xxxxxx, xxxxxx, ALTER DATABASE, CREATE DATABASE, xxx DROP DATABASE xxxxxxxxxx xxx xxx xxxxx xxxxxxxx xxxx xx xxxxxx xxxxxxxxxx xx xxx xxxxxxx xxxxxxxx xxxxxxx. - - - - - --xxx[=xxxxxxxx], -x [xxxxxxxx] - - - Ixxxxxxxx xxx xxxxxx xx xxx xxxxxxxxxx xxxxxxxxxxx xxx xxxxxxx xx xxx xxxxx xxxx, xx xx xxx xxxxxxx (xxxx.xxx) xx xxxx xx xxxxx. - - - - - --xxx-xxx[=xxxxxxxx] - - - Rxxxxxx xxxxxxxx xxxxxxx xx x xxxxxx xxx xx xxx xxxxxxxx xxxxx. Ix x xxxxxxxx xxx’x xxxxxxxx, xxx xxxxxxx xxxx xx xxxx-xxx.xxxxx xxxx xx xxxx, xxxxx xxxx xx xxx xxxx xxxx xx xxx xxxxxx xxx xxxxx xx x xxxxxxx xxxxx. - - - - - --xxx-xxx-xxxxx-xxxxxxxx-xxxxxxxx[={d|d}] - - - Bx xxxxxxx, xx xxxxxx xxxxxxx xx xxxxxxx, xxxx xxxxxxxx x xxxxxx xxxxxxxxx, xxx xxxx xx xxxxx xxxxxxx xxx xxxxxxxx xx xxxxxxxxxxxxx xxx xxxxxxx xx xxxx xxxxxx xxxx. Ix xxxx xxxxxx xx xxxxxxxxx xxxxxxx x xxxxx xx xxxx x xxxxx xx d, xxxx xxxxxxxxxxx xx xxxxxxxx. Ix xxx xx d, xxxxx xx xxx xxxxxxx xxxxxxx, xxx xxxxxxxxxxx xx xxxxxxx. - - - - - --xxx-xxxxx[=xxxxxxxx] - - - Axxxxxxxx xxxxxxx xx xxxxx xxxxxxxx xxx xxxxxx xxxxx-xx xxxxxxxx xx xxx xxxxxxxx xxxxx. Txx xxxxxxx xxxx xxx xxx xxx xx xxxx xx xxxxxxxxx xx xxxx.xxx, xxxxx xxxx xx xxx xxxxxx’x xxxx xxxx. - - - - - --xxx-xxxx-xxxxxx, -d - - - Ixxxxxxxx xxx xxxxxx xx xx xxxx xxxxxxx xx xxxx. Txxx xx xxx xxxxxxx xxxxxxx xx xx xxxxxxx d.d xx MxSQL. Uxx xxx --xxx-xxxxx-xxxxxx xxxxxx xx xxxxxxx xxxx xxxxxx. - - - - - --xxx-xxxxx-xxxxxx - - - Ixxxxxxxx xxx xxxxxx xx xx xxxx xxxxxxx xx xxxx. Txxx xxxxxx xx xxxxxxxxx xx xx xxxxxxx d.d xx MxSQL. - - - - - --xxx-xxxxxxx-xxx-xxxxx-xxxxxxx - - - Sxx Pxxxxxxxxxx Oxxxxxxxxxxx. - - - - - --xxx-xxxxx-xxxxxxx - - - Txxx xxxxxx xx xxxx xx x xxxxx xxxxxx xx xxxxxxxx xx xx xxxxx xx xxx xxx xxxxxx xxx xxx xxxxxxx xx xxxx xxxx xxxx SQL xxxxxxx. Txx xxxxxx xxxxxxxx xxxx xxx --xxx-xxx xxxxxx xx xxxx xx xxx xxxxx. Wxxx xxxx xxxxxx, xx’x xxxxxxxx xx xxxx x xxxxx xxx xx xxxxxx xx x xxxxx xxxxx xx. - - - - - --xxx-xxxx-xxxxx-xxxxxxxxxx - - - Sxx Pxxxxxxxxxx Oxxxxxxxxxxx. - - - - - --xxx-xxxx-xxxxxxx[=xxxxxxxx] - - - Sxx Pxxxxxxxxxx Oxxxxxxxxxxx. - - - - - --xxx-xx=xxxxxxxx - - - Sxxxxxxxx xxx xxxxxxxx xx xxx xxxxxx-xxxxxx xxxxxxxxxxx xxxxxxxxxxx xxx. Txx xxxxxxx xxxxxxxx xx xx.xxx, xxxxxxx xx xxx xxxx xxxxxxxxx xxx MxSQL. - - - - - --xxx-xx-xxxx=xxxx - - - Sxxxxxxxx xxx xxxx xx xxx xxxxxx-xxxxxx xxxxxxxxxxx xxxxxxxxxxx xxx. Txx xxxxxxx xx dd KB. - - - - - --xxx-xxxxxx[=xxxxxxxx] - - - Axxxxxxxx xxxxxxx xx xxxxxxx xx xxx xxxxxxxx xxxxx. Txxx xxxxxxx xx xxxxxxxxxx xx xxxxx xx xxxxxx xxxxxxx. - - - - - --xxx-xxxxxxxx, -W - - - Axxxxxxxx xxxxxxx xx xxxxxxx xxxxxxxx. Pxxxx xx xxxxxxx d.d xx MxSQL, xxxx xxxxxx xxx xxxxxxx xxxx xxx --xxxxxxxx xxxxxx. Axxxx xxxxxxx d.d.d, xxxx xxxxxx xx xxxxxxx xx xxxxxxx xxx xxx xx xxxxxxxx xxxx xxx --xxxx-xxx-xxxxxxxx xxxxxx. - - - - - --xxxx_xxxxx_xxxx=xxxxx - - - Sxx Pxxxxxxxxxx Oxxxxxxxxxxx. - - - - - --xxx-xxxxxx-xxxx-xxxxxx - - - Txxx xxxxxx xx xxxx xx xxx MxSQL xxxx xxxxx xxx xxxxxxx xxx xxxxxxxxx xxxxxxxxxxx. - - - - - --xxxxx-xxx=xxxxxxxx - - - Sxx Rxxxxxxxxxx. - - - - - --xxxxx-xxx-xxxxx=xxxxxxxx - - - Sxx Rxxxxxxxxxx. - - - - - --xxxxx-xxx-xxxx-xxxx=xxxxxxxx - - - Sxx Rxxxxxxxxxx. - - - - - --xxxxx-xxx-xxxxx[={d|d}] - - - Sxx Rxxxxxxxxxx. - - - - - --xxxxx-xxx-xxxxx-xxxxx=xxxxx - - - Sxx Rxxxxxxxxxx. - - - - - --xxxx-xxx-xxxxxxxx - - - Dxxxxxxx xxx --xxx-xxxxxxxx xxxxxxx, xx xxxx xxxxxxx xxxxxxxx xxx xxx xxxxxx. - - - - - --xxxx-xxxxx-xxxxx - - - Pxxxxxxx xxx xxxxxxx xx xxxxx xxxxxx. - - - - - --xxxx-xxxxx-xxx[={d|d}] - - - Sxx Pxxxxxxxxxx Oxxxxxxxxxxx. - - - - - --xxxx-xxxxx-xxx-xxxx=xxxxxxxx - - - Sxx Pxxxxxxxxxx Oxxxxxxxxxxx. - - - - - --xxxxxxxx-xxxxxx-xxxx-xxxx - - - Txxx xxxxxx xx xxxx xx xxx MxSQL xxxx xxxxx xxx xxxxxxx xxx xxxxxxxxx xxxxxxxxxxx. - - - - - --xxx_xxx_xxx={d|d} - - - Txx xxxxxxx xxxxx xx d xxx xxxx xxxxxx xxx xxxxxxx xxx xx xxx xxxxxx xxx. A xxxxx xx d xxxxxxxx xx. - - - - - --xxx_xxx_xxx={d|d} - - - Txx xxxxxxx xxxxx xx d xxx xxxx xxxxxx xxx xxxxxxx xxx xx xxx xxxxxxx xxxxx xxx. A xxxxx xx d xxxxxxxx xx xxx xxxxxxx xxxxxxx xx xxx xxxx xxx xxx xxxxxx. - - - - - --xxx_xxxxx={d|d} - - - Ix xxxx xxxxxx xx xxx xx xxx xxxxxxx xx d, Nxxx-xxxxx xxxxxxx xxxxxxxx xxx xxxxxx. A xxxxx xx d xxxxxxxx xx. - - - - - --xxx_xxxxxxxx={d|d} - - - Ix xxxx xxxxxx xx xxx xx d, xxxxxxx xxxxxxxx xxx xxxxxx xxx INSERT xxxxxxxxxx xxxxxxxx xx xxxxxxxxxxx xxxxxx. Txx xxxxxxx xxxxx xx d xxxxxxxx xx. - - - - - --xxx_xxxxx_xxxx_xxxxxx={d|d} - - - Ix xxxx xxxxxx xx xxx xx xxx xxxxxxx xx d, xxxxxxxxxxx xx xxxxxxxxxx xxxx xx xxxxxx xx xxx xxxx. Txxx xxx xx xxxxxxxxx xxx xxxxxxx xxxxx xxxxxxx xxxx xxx xxxxxxx xxxxxxxxxxx xx xx xxxxxxxxx xxxxxx xxxxxx. A xxxxx xx d xxxxxxxx xx. - - - - - --xxxx_xxxxxx={d|d} - - - Ix xxxx xxxxxx xx xxx xx x xxxxx xx d, xxx xxxxxx xxxx xxxxxxxxxxx xxxxx xxxxx xx xxx xxxxxx xxx xx xxx xxxx. Txx xxxxxxx xxxxx xx d xxxxxxxx xxxx xxxxxxx. - - - - - - Pxxxxxxxxxx Oxxxxxxxxxxx - Txxxx xxxxxx xxxxxx xxxxxxx xxxxxx xx xxxxxxxxx xxxxxx xxxxxxxxxxx. Bxxxxx xxxxxxxx x xxxxxx’x xxxxxxx, xxx xxxxxx xxxx xxxx xx xxx xxxxxxx xxxxxxx, xxx xxxx xxx xxx BENCHMARK( ) xxxxxxxx xx xxxxxxxxx xxxxxxxxxxx xxxxxx xxxxxxx xxx xxxx. Axxxx xxxxxxxxxxxx xxx xxx xxxxxx xxxxxxx, xxx xxx BENCHMARK( ) xxxxxxxx xxxxx xx xxxxxxx xxx xxxxxxx. Txxx xx xxxx xxx xx xxxx xxxx xx xxxxx xxx xxxxx xxxx x xxxxxx’x xxxxxxxxxxx xxxxxx xxx xxxxx xxxxxx xxxxxxx xx xxx xxxxxxxx. Txx xxxxxxxxx xxxxx xx xxx xx xxxxxx xxxx x xxxxxxxxxx xxxxxxx xxxx xxxxxxx xxxxxxxxxxx xxx xx xx xxxxx xxxx x xxxxxx xxxxx xxxxx xxxxx xxxxxxxx. Txxx xxx xxxxxxx xxxxxxx xx xx xxxx. Fxx xxxxxxxxxxx xxxxxxx xxxx xxx xxxxxxxx xx IxxxDB, xxx xxx IxxxDB Oxxxxxx xxxxxxxxxx xx Sxxxxxx Exxxxx Sxxxxxxx Oxxxxxx xxxxxxx. - - - - --xxx-xxxxxx - - - Ixxxxxxxx xxx xxxxxx xx xxxx xxxxxxxxx xxxxxxx xxxx xx x xxxx xx xxxxx xxxxxxxx xxxxx xxxxxxx xxx xxxxx xxx xxxxx xxxxxxxx xxxxxxxx xxxx xxxxxx xxx xxxx. - - - - - --xxxx_xxxxxx_xxxxxx_xxxx=xxxxx - - - Wxxx xxxx xxxxxxxxx xxxx xxxx xx xxxxxxxx xxxxx xxxx xxxxxxx xxxxxxxx xxxx, xxx MxISAM xxxxxxx xxxxxx xxxx x xxxxxxx xxxxxx xx xxxx xxx xxxxxxx xxxxxx. Yxx xxx xxx xxxx xxxxxx xx xxx xxx xxxx xx xxxx xxxxxx xx xxxxxxx xxxxxxxxxxx. Txx xxxxxxx xxxxx xx d MB. A xxxxx xx d xxxxxxxx xxx xxxxxx. - - - - - --xxxxxxxxxx-xxxxxx[={d|d|d}] - - - Ix xxxx xxxxxx xx xxx xx xxx xxxxxxx xx d, xxx MxISAM xxxxxxx xxxxxx xxxx xxxxx xxxxxxxxxxxx xxxxxxxxx xxx xxxxxxxxx xx xxxx, xxx xxxx xx xxxxx xxx xx xxxx xxxxxx xx xxx xxxxxxxxxx xxxxxx xxx xxxx xxxx. A xxxxxxx xx d xxx xxxx xxxxxx xxxxxx xxxxxxxxxx xxxxxxx xxx xxxxxxx xxxxxxx xxxxxx xx xxx xxxx xxxx. Ix xxxx xxxxxx xxx xxx xxxx xx xxx xxx xx xxx xxxx xxxx xx xxxxx xxx xxxxxxxxx xxxxx xxx xxxxxx xx xxxxxx xx xxxxx. Ix xx xxxxxxxxxx xxxxx xxx xxxxxx xxxxx, xxx xxxxxx xxxx xxx x xxxxx xxxx xx xxx xxxxx xxx xxxx xxx xx xxx xxxxx xxxxx. A xxxxx xx d xxx xxxx xxxxxx xxxxxxxx xxxxxxxxxx xxxxxxxxx xxx xxxxxxx. - - - - - --xxxxxxx_xxxxxx_xxxxx=xxxxx - - - Ix xx INSERT xxxxxxxxx xx xxxxxxx xxxx xxx DELAYED xxxxxxxxx, xxx xxxxxx xxxxxx xxxxxxxx xxxx xx xxxxx xxx SELECT xxxxxxxxxx xxxxxxx xxxxxxx xxxxxxx xxx xxxxx. Wxxx xxx xxxxx xx xxxx, xxx xxxxxx xxxx xxxx xxxxxx xxx xxxxxxx xxxx. Txxx xxxxxx xxxxxx xxx xxxxxx xx xxxxx x xxxxx xxxxxx xx xxxx xxxxxx xxxxxxxxxx xx xxx xxxxxxx xxx SELECT xxxxxxxxxx xxx xxxxxx. Ix xxxxx xxx, xx xxxx xxxxx xxx xxxxxxx xxxxx. - - - - - --xxxxxxx_xxxxxx_xxxxxxx=xxxxx - - - Wxxx xx INSERT xxxxxxxxx xxx xxxx xxxxxx xxxx xxx DELAYED xxxxxxxxx, xxx xxxxxx xxxx xxxx xxx xxx xxxxxxxxxxx SELECT xxxxxxxxxx xxxxxxx xxx xxxxx xx xxxxxx xxxxxxx xxxxxx xxxxxxxxx xx. Uxx xxxx xxxxxx xx xxx xxx xxxxxx xx xxxxxxx xxxx xxx xxxxxx xxxxxx xxxx xxxxxx xxxxxxxxxxx xxx INSERT xxxxxxxxx. - - - - - --xxxxx-xxx-xxxxx[=xxxxxx] - - - Ixxxxxxxx xxx xxxxxx xxx xx xxxxxx xxx xxxxxxx xxxxxxx xxxxxx xxx MxISAM xxxxxx. Txx xxxxxxx xxx OFF, ON, xxx ALL. Txx ON xxxxxx xxxxxx xxxxxx xxx xxxxxx xxxxxxx xxxx DELAYED KEYS. Txx ALL xxxxxx xxxxxx xxxxxx xxx xxx MxISAM xxxxxx. MxISAM xxxxxx xxxxxx xxx xx xxxxxxxx xx xxxxxxx xxxxxx xx xxxxxxx xxxx xx xxxxxxxxxxx xxxx ALL xxxxxx xx xxxx; xx xxx xxxxx xxxxxxxxxx xx xxxxxxx. - - - - - --xxxxx-xxx-xxxxx-xxx-xxx-xxxxxx - - - Ixxxxxxxx xxx xxxxxx xxx xx xxxxx xxx xxxxxxx xxxxxxx xxxxxx xxx MxISAM xxxxxx. Ax xx xxxxxxx d.d.d xx MxSQL, xxx --xxxxx-xxx-xxxxx=ALL xxxxxxx. - - - - - --xxxxxxx_xxxxx_xxxx=xxxxx - - - Wxxx xx INSERT xxxxxxxxx xxx xxxx xxxxxxx xxxx xxx DELAYED xxxxxxxxx, xxx xxxxxx xxxx xxxx xxx xxx xxxxxxxxxxx SELECT xxxxxxxxxx xxxxxxx xxx xxxxx xx xxxxxx xxxxxxx xxxxxx xxxxxxxxx xx. Uxx xxxx xxxxxx xx xxx xxx xxxxxxx xxxxxx xx xxxx xxxx xxx xxxxxx xxxxxx xxxxx xxxx xxxxxxx. Axx xxxxxxxxxx xxxx xxxx xxx xx xxxxxx xxx xxx INSERT xxxxxxxxxx xxxx xxxx xx xxxx xxxxx xxx xxxxx xx xxxxxxx. - - - - - --xxxx_xxxxxx_xxxx=xxxxx - - - Sxxx xxx xxxx xx xxx xxxxxx xxxx xx xxx xxx xxxxx xx xxxxx xx xxxxx xx xxx xxxx. Txx xxxxxxx xxxxx xxx xxxx xxxxxx xx d GB, xxx xx dd-xxx xxxxxxxxx xxxxxxx, xx xx xxxxxxx d.d.dd, x xxxxxx xxxxxx xxxx xxx xx xxxxxxxx. - - - - - --xxx_xxxxxx_xxxx=xxxxx - - - Sxxx xxx xxx xxxxx xxxx. Txxx xx x xxxxxx xxxx xx MxISAM xxxxxx xxx xxxxx xxxxxx. Txx xxxxxxx xxxxx xxx xxxx xxxxxx xx d GB, xxx xx dd-xxx xxxxxxxxx xxxxxxx, xx xx xxxxxxx d.d.dd, x xxxxxx xxxxxx xxxx xxx xx xxxxxxxx. Exxxxxx xxx SHOW STATUS xxxxxxxxx xx xxx xxxxxx xx xxx xxx xxxxxxxx xxx xxx xxx xxxxx. - - - - - --xxx_xxxxx_xxx_xxxxxxxxx=xxxxx - - - Sxxx xxx xxxxx xx xxxxx x xxxxxx xxxx xx xxxxxxxx xxxx xxxx xx xxxxx xx x xxx xxxxxxxx xx xxx xxx xxxxx xx x xxxx xxx. Lxxxx xxxxxx xxxxx xxx xxxxxxxxx xx xxxxx xxxxxx. Txx xxxxxxx xxxxx xx ddd. Txx xxxxxx xxxxx xxxxxxx xx ddd. - - - - - --xxx_xxxxx_xxxxx_xxxx=xxxxx - - - Sxxx xxx xxxx xx xxxxxx xx xxx xxx xxxxx. Txx xxxxxx xxx xx xxxxx. Txx xxxxxxx xx dddd. - - - - - --xxx_xxxxx_xxxxxxxx_xxxxx=xxxxx - - - Sxxx xxx xxxxxxxx xxxxx xxxxxxx xxx xxx xxxx xxxxxxxxx xx xxx xxx xxxxx. Txx xxxxx xxxxx xxxxxxxxxx x xxxxxxxxxx xx xxx xxxxx xxxxxx. Txx xxxxxxx xxxxx xx ddd. A xxxxx xx d xx ddd xx xxxxxxx. - - - - - --xxxxx-xxxxx - - - Txxx xxxxxx xxxxxxx xxxxx xxxxx xx xxxxxx. - - - - - --xxx-xxxx-xxxxx-xxxxxxxxxx - - - Ix xxxx xxxxxx xx xxxxxxx, xxxxxxxxxxxxxx SQL xxxxxxxxxx xxxx xxxx xxx xxxx xx xxxxxxx xxxx xx xxxxxx. Txxxx xxxxxxx xxxxxxxxxx xxxx xx ALTER TABLE, CHECK TABLE, xxx OPTIMIZE TABLE. - - - - - --xxx-xxxx-xxxxxxx[=xxxxxxxx] - - - Ixxxxxxxx xxx xxxxxx xx xxx xxxxxxx xxxx xxxx xxxxxx xxxx xxx xxxxxx xx xxxxxxx xxxxxxxxx xx xxx xxxxx xx xxx xxxx_xxxxx_xxxx xxxxxxxx. Ix xxxxxxxx xx xxxxxxxxx, xxxxxxx xxx xxxxxxxx xx xxx xxx xxxx xxxxx. - - - - - --xxx-xxxxxxx-xxx-xxxxx-xxxxxxx - - - Wxxx xxxx xxxx xxx --xxx-xxxx-xxxxxxx xxxxxx,xxxxxx xxx xxxxxxx xxxx xx xxx xxx xxxxxxx xx xx xxxxxx xx xxx xxxx xxxxx xxx. Txxx xxxxxx xx xxxxxxxxx xx xx xxxxxxx d.d xx MxSQL. - - - - - --xxxx_xxxxx_xxxx=xxxxx - - - Sxxx xxx xxxxxx xx xxxxxxx xxxx x xxxxx xxx xxxx xx xxxxxxx xxxxxx xx’x xxxxxxxxxx x xxxx xxxxx. Ix xxx --xxx-xxxx-xxxxxxx xxxxxx xx xx xxx, xxxxxxx xxxx xxxxxx xxx xxxxxx xx xxxxxxx xxx xx xxxx xxxxxx xxxx xx xxxxxx. - - - - - --xxx-xxxxxxxx-xxxxxxx - - - Sxxx xxx SQL xxxxxxxxxx xxxx xxxxxx xxxx xx x xxxxx xxxxxxxx xxxx SELECT xxxxxxxxxx, xx xxxxxxx. - - - - - --xxx_xxxxxxx_xxxxxx=xxxxx - - - Sxxx xxx xxxxxxx xxxx xx x xxxxxx xx x xxxxxxxxx xxxxxx. Ix xxxxx BLOB xx TEXT xxxxxxx, xxx xxxxxxxx xxxxxxxxxx xxxx xxxx xxxxxx xxxxxx xx xx xxxxx xx xxxxx xx xxx xxxxxxx xxxxx xxx xxx xxxxxx. Tx xxxxxxxxx xxxx, xxx xxx xxxxxxx SHOW TABLE STATUS LIKE 'xxxxx'; xx xxx xxxxxx xxx xxxx xxx xxx Mxx_xxxx_xxxxxx xxxxx. Txx xxxxxxx xxxx xxxxxxx xxx xxxx xxxxxx xx d GB. Txx --xxx_xxxxxx_xxxxxx xxxxxx xxxx xxx xxxxxxx xxxx xx xxxxxx xxxxxxx. - - - - - --xxx_xxxxxxx_xxxxxxx=xxxxx - - - Sxxx xxx xxxxxxx xxxxxx xx xxxxxxx xxx xxxxxx xxx xxx xx xxxxxx xxxxxxx xxxxxxx. Sxx xxx --xxxxxxx_xxxxxx_xxxxx xxx --xxxxxxx_xxxxxx_xxxxxxx xxxxxxx xxx xxxx xxxxxxxxxxx. - - - - - --xxx_xxxxx_xxx_xxx=xxxxx - - - Wxxx MxSQL xxxxxxxx x xxxxx xxx xxxx xxxxx xx x WHERE xxxxxx xxxxx xx xxxxx, xx xxxxxxx xx xxxx xx xxxxxx x xxxxxxx xxxxxx xx xxxx xx xxx xxxxx. Yxx xxx xxxxxx xxxx xxxxxxxxxxx xxxx xxxx xxxxxx. A xxxxx xxxxx xxxxxx xxx MxSQL xxxxxxxxx xx xxxx xxxxxxxxxx xx xxxxxxx xxxx xxxxx xxxxx. - - - - - --xxx_xxxx_xxxxxx=xxxxx - - - Sxxx xxx xxxxxxx xxxxxx xx xxxxx xxx xxxxxx xxx xxxxxxx xx xxxx xxxxx xxxx xxxxxxx BLOB xx TEXT xxxxxxx. Axx xxxxx xx xxxx xxxxxx xxx xxxxx xxx xxx xxxx xxxxxx xxx xxxxxxx xx xxxxxxx. Txx xxxxxxx xx dddd. - - - - - --xxx_xx_xxxxxxxxx_xxxxx[=xxxxx] - - - Txx xxxxxxx xxxxx xx xxxxx x xxxxxx xxxxxxxxx xxx xxxxxx xxxxxx. Txx xxxxxxx xx d, xxxxx xxxxxxxx xxx xxxxxxxxx, xxx xxx xxxxxxx xxxxx xxxxxxx xx ddd. - - - - - --xxx_xxx_xxxxxx=xxxxx - - - Txxx xx x xxx xxxxxx xxxxx xxx xxx xxx xxxx xxxxxxxxxxx. Wxxx xx xx, xxx xxxx xx xxxx xx xxx xx xx xxxxx xxx xxxxxx xx xxxxxxxxx xxxxxx xxxx x xxxxxx xxx xxxx xxxx xx xxx xxxx. - - - - - --xxx_xxxxx_xxxx_xxxxx=xxxxx - - - Lxxxxx xxx xxxxxx xx xxxxx xxxxx xxxx xxx xx xxxx xxxxxxx xxxxxxxx xxxxx xx xx xxxxxxxxx. - - - - - --xxxxx_xxxxx_xxxxx=xxxxx - - - Sxxx xxx xxxxxxx xxxxxx xx xxxxxx xxxx xxx xx xxxx xx x xxxxx xxxxxxx xx xxx xxxx xxx x xxxxx xxxxxx. Txx xxxxxxx xx ddd. - - - - - --xxxxxxx - - - Uxxx xx xxxxxxxxxxx xxxx xxxxxxx xxxxxxxx(  ) xxxxxx xxxxx (x.x., Sxxxxxx) xx xxxx xxx xxxxxx xx xxxxxx xxx xxxxxxx xxxxx xxx xxx xx xxxx xxxxxxxx xx xx xxxxxxx xx xxxxxxx xxxxxxxxxxx. Rxxxxxxx xxx xxxxxx xx xx xxxxxxx xx xxxx, xxxxx xxx xx x xxxxxxxx xxxxxxx. - - - - - --xxxxxxxxx_xxxxx_xxxxx[={d|d}] - - - Sxxx xxx xxxxxxxx xx xxx xxxxxxxxx xxxx xx xxxxx xx xxxxxx xx xxxxxx xxxxx xxxx xxx’x xxxx xx xx xxxxxx. A xxxxx xx d xxxxxxxx xxxxxxxxxx xxx xxxxxxxxx xxx xxxxxxxxx xx xxxxxx xx xxxx xx xxxxxxxx. Txx xxxxxxx xxxxx xx d xxxxxxx xxxxxxxxxx xxx xxxxxxx xxxxxxxxx xxx xxxxxxxxx xx xxxxx xxxxx. - - - - - --xxxxxxxxx_xxxxxx_xxxxx[=xxxxx] - - - Sxxx xxx xxxxxxx xxxxx xx xxxxxxxx xxxxxxxxx xx xxx xxxxx xxxxxxxxx. A xxxxx xxxxxx xxxx xxxx xxx xxxxxx xxxxxxx, xxx xxxx xxxx xxxxxx xx xxxxxxx. A xxxxxx xxxxx xxxxxx xxxx xxxxxxx xxxxxx. Ix xxx xxxxx xx xxx xx d, xxx xxxxxx xxxx xxxxxxx xx xxxxxx xx xxx xxxx xxxxxxx. - - - - - --xxxxxxx_xxxxxx_xxxx=xxxxx - - - Sxxx xxx xxxx xx xxx xxxxxx xxxx xx xxxx xxxxxxxxx xxxxxxx. Txx xxxxxxx xx ddddd (dd KB). - - - - - --xxxxx_xxxxx_xxxxx_xxxx=xxxxx - - - Sxxx xxx xxxx xx xxxxxx xxxxxx xxxx xxx xxxxxxxxx xxx xxx xx xxxxxxx xxx xxxxxxxxx x xxxxxxxxx. - - - - - --xxxxx_xxxxx_xxxxx=xxxxx - - - Sxxx xxx xxxxxxx xxxx xx xxx xxxxx xxxxx xx xxxxx. Txx xxxxxxx xx d MB. - - - - - --xxxxx_xxxxx_xxx_xxx_xxxx=xxxxx - - - Sxxx xxx xxxxxxx xxxx xx xxxxx xx xxxxxx xxxx xxx xxx xxxxx xxxxx. Txx xxxxxxx xx dddd (d KB). - - - - - --xxxxx_xxxxx_xxxx=xxxxx - - - Sxxx xxx xxxxxxx xxxx xx xxxxx xx xxx xxxxx xxxx xxx xxxxx xxxxxxx. Txx xxxxxxx xx d. Vxxxxx xxxxxx xx xxxxx xx xxxxxxxxx xx dddd (d KB). - - - - - --xxxxx_xxxxx_xxxx={d|d|d} - - - Sxxx xxx xxxx xx xxxxx xxxxx xx xxx xx xxx xxxxxx. A xxxxx xx d xxxxxx xxx xxxxx xxxxx xxx xx xx xxxx. Txx xxxxxxx xxxxx xx d xxxxxx xxx xxxxxxx xx xx xxxxxx xxxxxx SELECT xxxxxxxxxx xxxx xxxxxxx xxx SQL_NO_CACHE xxxxxxxxx. A xxxxx xx d xxxxx xxxx xx xxxxxxx xxxx xx xxxxxx xxxxxx SELECT xxxxxxxxxx xxxx xxxxxxx xxx SQL_CACHE xxxxxxxxx. - - - - - --xxxxx_xxxxx_xxxxx_xxxxxxxxxx[={d|d}] - - - Ix x xxxxx xx xxxxxx, xxx xxx xxxxxxx xx xxxxxxxx xxx xxxx xxxxx xx xxxxxxx xxxxxxxxx xx xxx xxxxx xxxxx, xxx xxxxxxx xx x xxxxx xxxx xx xxxxxxxx xx xxxx xxxxxx xx xxx xx d, xxx xxxxxxx. Sxxxxxx xx xx d xxxx xxxxxxx xxxx xxxxxxx xxx xxxxx xxxx xxxx xx xxxx xxx xxx xxxxx xxxx xx xx xxxxxxxx xxxxxx xxxxxxx xxx xxxxx xxx xxx xxxxxxx xxxxx xxxxx xxxx. - - - - - --xxxxx_xxxxxxxx_xxxx=xxxxx - - - Sxxx xxx xxxx xx xxx xxxxxxxxxx xxxxxx xxxx xxx xxxxxxx xxx xxxxxxxxx xxxxxxxxxx. - - - - - --xxxxx_xxxxx_xxxxx_xxxx=xxxxx - - - Sxxx xxx xxxx xx xxxxxx xx xxxxxx xxxxxxxxx xxx xxxxx xxxxxxx. - - - - - --xxxx_xxxxxx_xxxx=xxxxx - - - Sxxx xxx xxxx xx xxxxx xx xxx xxxxxx xx xxx xxx xxxx xxxxxx xxxx xxxxx xxxxxxxxxx xxxxx. Txx xxxxxxx xxxxx xx dddddd; xxx xxxxxxx xx d GB. - - - - - --xxxx_xxx_xxxxxx_xxxx=xxxxx - - - Rxxx xxxx xxx xxxxxx xx xx xxxxx xxx xxxx xxxx x xxxxxx xx xxxxxxxx xxxx xxxxxxxx. Yxx xxx xxx xxx xxxx xx xxxx xxxxxx xxxx xxxx xxxxxx xx x xxxxxxx xx d GB. - - - - - --xxxxxxxxxx-xxx-xxxxx=xxxxx - - - Txxx xxxxxx xx xxxx xx xxxxxxxx x xxxxxx xxxxxxxx xxxx xxx xxxxxx xxx xxxx xxxxxxxx xxxx xxx --xxxx-xxxxx=xxxx xxxxxx - - - - - --xxxxxx-xxxxxx - - - Axxxxx xxxxxx xxxxxx xxxxxxxxxxx xx Wxxxxxx xxxxxxx xxxxxxx. Txxx xxxxxx xx xxxxxxxxx xx xx xxxxxxx d.d xx MxSQL. - - - - - --xxxxxx-xxxxxx-xxxx-xxxx=xxxx - - - Sxxx xxx xxxx xx xxx xxx xxxxxx xxxxxx xxxxxxxxxxx xx Wxxxxxx. Txxx xxxxxx xx xxxxxxxxx xx xx xxxxxxx d.d xx MxSQL. - - - - - --xxxx-xxxxxxxxxx-xxxxxx - - - Pxxxxxxx xxxxxxxxxxxx SELECT xxx INSERT xxxxxxxxxx xxx MxISAM xxxxxx. - - - - - --xxxx-xxxxx-xxx-xxxxx - - - Dxxxxxxxxx xxxxxx xxxxxx xx DELAY_KEY_WRITE. Ax xx xxxxxxx d.d.d xx MxSQL, xxx --xxxxx-xxx-xxxxx=OFF xxxxxxx. - - - - - --xxxx-xxxxxxxxxx - - - Pxxxxxxx xxx xxxxxx xxxx xxxxxxxx xxx xxxxxx xxxxxxxx xxxx xxxxxxxxxx xxxxxx xxxxxxxxxx xxx xxxxxx xxxxxxx xxxxxxxxxx. - - - - - --xxxx-xxxxxx-xxxxxxxx - - - Pxxxxxxx xxxxxxxxxxxx xx xxxxxxx. - - - - - --xxxx-xxxxx-xxx[={d|d}] - - - Sxxx xxxxxxx xxx xxxx xxxx xxxx xxxx xxxx xxx xxxxxx xx xxxxxxx xxx xx xxx --xxxx_xxxxx_xxxx xxxxxx. A xxxxx xx d xxx xxxx xxxxxx xxxxxxx xxx xxxxxxx xx xxxx xxxxxxx; xxx xxxxxxx xxxxx xx d xxxxxxxx xx. Txxx xxxxxx xx xxxxxxxxx xx xx xxxxxxx d.d.dd xx MxSQL. - - - - - --xxxx-xxxxx-xxx-xxxx=xxxxxxxx - - - Sxxx xxx xxxx xx xxx xxxx xxxxx xxx xxxx. Bx xxxxxxx xx’x xxxx_xxxx-xxxx.xxx. Txxx xxxxxx xx xxxxxxxxx xx xx xxxxxxx d.d.dd xx MxSQL. - - - - - --xxxx_xxxxxx_xxxx - - - Txxx xxxxxx xxxxxx x xxxxxx’x Sxxx_xxxxxx_xxxxxxx xxxxxx xx xx xxxxxxx xx xxxxxxx xx x xxxxxx xxxxx xxx xxxx xx xxxxxx. - - - - - --xxxx_xxxxxx_xxxx=xxxxx - - - Sxxx xxx xxxx xx xxx xxxxxx xxxx xxxxxx xxxxxx xxx xxxx xxxxxxx xxxx xxx x xxxxx. Txx xxxxxxx xxxxx xxx xxxx xxxxxx xx d GB, xxx xx dd-xxx xxxxxxxxx xxxxxxx, xx xx xxxxxxx d.d.dd, x xxxxxx xxxxxx xxxx xxx xx xxxxxxxx. - - - - - --xxxxx_xxxx_xxxx_xxxxxxx=xxxxx - - - Sxxx xxx xxxxxx xx xxxxxxx xxxx xxx xxxxxx xxxxxx xxxx xx xxx x xxxxx xxxx xxxxxx xx xxxxxxxxxx xxx xxxxxxx xx xxxxx. Txx xxxxxxx xx xxxxxxx xxxx xx xxxxxxxxxxx xxxx xxxxxx xxxxxxx. Txx xxxxxxx xxxxx xx dd. - - - - - --xxxxx_xxxx_xxxxx=xxxxx - - - Sxxx xxx xxxxxxx xxxxxx xx xxxx xxxxxx xxxxxxx xxx xxx xxxxxxx. Pxxxx xx xxxxxxx d.d.d, xxxx xxxxxx xxx xxxxxx --xxxxx_xxxxx. Exxxxxxxx xxx FLUSH TABLES xxxxxxxxx xxxx xxxxx xxx xxxx xxxxxx xxx xxxxxx xxx xx xxx. - - - - - --xxxxxx_xxxxx_xxxx=xxxxx - - - Wxxx xxxx xxxxxx xxx xxx xxx xxx xxxxxx xx xxxxxxx xxxx xxx xxxxxx xxxxxx xxxxx xxx xxxxx. Txxx xxx xxxx xx xxxxxxx xxxxxxxxxx xxxx xxx xxx xxxxxxxxxxx xxxx xxx xxxx xx xxxxxxx. - - - - - --xxxxxx_xxxxxxxxxxx=xxxxx - - - Txx xxxxx xx xxx xxxxxxxx xxxxxxxxxx xxxx xxxx xxxxxx xx xxxx xx xxxxxxxxxxxx xx xxxxxxx x xxxx xxxxxxxxx xxx xxxxxx xx xxxxxxx xxxx xxx xxxxxx xxxxxx xxx xxxxxxxxxxxx. Ix’x xxxx xx Sxxxxxx xxxxxxx xx xxxxxxxxxxx xxxx xxx xxx_xxxxxxxxxxxxxx() xxxxxx xxxxxxxx. - - - - - --xxxxxx_xxxxx=xxxxx - - - Sxxx xxx xxxx xx xxx xxxxx xxx xxxx xxxxxx. Txx xxxxxxx xxxxx xx ddd KB. - - - - - --xxx_xxxxx_xxxx=xxxxx - - - Sxxx xxx xxxxxxx xxxx xx xxxxxxxx xx-xxxxxx xxxxxxxxx xxxxxx. Txxx xxxxxx xx xxx xxxxxxx xx MEMORY xxxxxx, xxxxxx. - - - - - --xxxxxxxxxxx_xxxxx_xxxxx_xxxx=xxxxx - - - Txx xxxxxx xxxx xxxxxxxxx xxxxx xxx --xxxxxxxxxxx_xxxxxxxx_xxxx xxxxxx xx xxxxxxxxx xx xxxxxx xx xxxxxxxxxx. Txx xxxxxx xx xxxxxxxxxx xx xxxxx xxxx xxx xxxxx xx xxx xxxxxxxxxxx_xxxxx_xxxxx_xxxx xxxxxx xxxxxxxx. Txxx xxxxxx xxx xx xxxx xx xxxxxx xxxx xxxxxxxx. - - - - - --xxxxxxxxxxx_xxxxxxxx_xxxx=xxxxx - - - A xxxxxx xxxx xx xxxx xx xxxxxxxxxxx xxxxx xxxxxxxxxx xxxxxxx xx xxxxxxxxxxxx. Txx xxxx xx xxxx xxxx xxxxxxx xx xxxxxx. Ixxxxxxxx xx xx xxx xx xxx xxxx xx xxx xxxxx xx xxx xxxxxx xxxxxxxx xxxxxxxxxxx_xxxxxxxx_xxxx. Txxx xxxxxx xxx xx xxxx xx xxx xxxx xxxxxxxx xxxxxx xx xxxxxxx xxxxxxxxxxx. - - - - - --xxxx_xxxxxxx=xxxxx - - - Sxxx xxx xxxxxx xx xxxxxxx xxxx xxx xxxxxx xxxx xxxx xxxxxx xxxxxxxxxxx x xxx-xxxxxxxxxx xxxxxxxxxx xxxxx xx TCP/IP xx x xxxxxx xxxx. Txxx xxxxxx xx xxx xxxxxxxxxx xxxx xxxxxxxxxxx xxxxxxx xxxxx xxxxx xx xxxxxx xxxxxx. - - - - - - Rxxxxxxxxxx - Ax xxxxxxxxxxxx xxxx xxxxxxx xx xxxxxx xxxxxx xxxxxxx xxxxxxx xx xxxxxxxxxxx. Mxxx xxxx xxxxxx xx . Axxxxxxx xxxxx xxxxxxx xxx xx xxx xx xxx xxxxxxx xxxx xxxx xxxxxxxx xxx xxxxxx, xxx xxxx xxx xxxx xx xxx xxxx SQL xxxxxxxxxx xxxxx xxx xxxxxx xx xxxxxxx, xx x xxxxxxx xxxxxx xxx xxxxxxx xxxxxx xx xxxxx xx xxx xxxxxx’x xxxxxxx xxxx (x.x., xx.xxx xx xx.xxx, xxxxxxxxx xx xxxx xxxxxx). Oxxxxxxxx xxxxx’x x xxxxxx xxxx xxx xxxxxxx xxx xx xxxx xxxx xxx xxxxxx xx xxxxxxxxx, xx xxxxx xxxx xxxxxxxxxxx xxx xxxx xx xx xxxxx xxx xxxxxxxx xx xxx xxxx. - - - - --xxxxx-xxxxx-xxxxx-xxxxx=xxxxx - - - Txxx xxxxxx xx xxxx xx xxx MxSQL xxxx xxxxx xxx xxxxxxx xxx xxxxxxxxx xxxxxxxxxxx. - - - - - --xxxxxxxxxx-xxxxx-xxxxx-xxxxx=xxxxx - - - Txxx xxxxxx xx xxxx xx xxx MxSQL xxxx xxxxx xxx xxxxxxx xxx xxxxxxxxx xxxxxxxxxxx. - - - - - --xxxx_xxxxx='xxxxxx' - - - Uxx xxxx xxxxxx xx xxx xxxxxx xx xxxxxxxxx xxx xx xxxx SQL xxxxxxxxxx, xxx xxxxxxxx xx x xxxxxx xxxxxx, xxxx xxx xx xx xxxxxxxx xx xxx xxxxx xxxx xxxx xxx SQL xxxxxx xxxxxx. - - - - - --xxx-xxxxx-xxxxxxx - - - Txxx xxxxxx xx xxxx xx x xxxxx xxxxxx xx xxxxxxxx xx xx xxxxx xx xxx xxx xxxxxx xxx xxx xxxxxxx xx xxxx xxxx xxxx SQL xxxxxxx. Ix xxxxxxxx xxxx xxx --xxx-xxx xxxxxx xx xxxx xx xxx xxxxx. Wxxx xxxx xxxxxx xx’x xxxxxxxx xx xxxx x xxxxx xxx xx xxxxxx xx x xxxxx xxxxx xx. - - - - - --xxxxxx-xxxxxxx-xxxxx=xxxxxxx - - - Sxxx xxx xxxxxx xx xxxxxxx xxxx x xxxxx xxxxxx xxx xxxxx xxxxxx xxxxxx xx xxxxxxxxx xx xxx xxxxxx. Txx xxxxxxx xx dd xxxxxxx. Txxx xxxxx xx xxxx xxxxxxxx xx xxx xxxxxx.xxxx xxxx. Ix xxxx xxxx xxxxxx xxx xx xxxxxxxxxx, xxx xxxxx xxxxxxxxx xx xx xxxx xxxxxxxx xxxx xxxxxx. - - - - - --xxxxxx-xxxx=xxxx - - - Txxx xxxxxx xx xxxxxxxxxx xx xxx xxxx xxxxxxxxxxx xx xxx xxxxxx.xxxx xxxx xxx xx xxxxxxxxx xxx xxxxxxxxxxx. Ix xxxx xxxx xxxxx’x xxxxx xx xx xxxxxxxxxxxx, xxxx xxxxxx xxx xx xxxx xx xxx xxx xxxx xxxx xx IP xxxxxxx xx xxx xxxxxx xxxxxx. - - - - - --xxxxxx-xxxx-xxxx=xxxxxxxx - - - Sxxx xxx xxxx xx xxx xxxxxx xxxxxxxxxxx xxxx. Txxx xxxx xx xxxxxxxxx xx xxxxxx xx xx xxx xxxxxxx “Rxxxxxxxxxx Pxxxxxx.” Bx xxxxxxx xxxx xxxx xx xxxxx xxxxxx.xxxx xxx xx xxxxxxx xx xxx xxxx xxxxxxxxx xx MxSQL. - - - - - --xxxxxx-xxxxxxxx=xxxxxxxx - - - Ix xxx xxxxxx.xxxx xxxx xxxxx’x xxxxx xx xx xxxxxxxxxxxx, xxxx xxxxxx xxx xx xxxx xx xxx xxx xxxxxxxx xxxx xx xxx xxxxx xxxxxx xxx xxxxxxxxx xxx xxxxxx xxxxxx. - - - - - --xxxxxx-xxxx=xxxx - - - Sxxx xxx xxxx xxxxxx xx xxxxx xxx xxxxxx xxxx xxxxxx xxx xxxxxxxxxxx. Bx xxxxxxx xx’x dddd. Txx xxxxx xxx xxxx xxxxxxxx xx xxx xxxxxx.xxxx xxxx, xx xxxxxxxxx, xxxx xxxxxxxx xxxx xxxxxx. - - - - - --xxxxxx-xxxxx-xxxxx=xxxxx - - - Sxxxxxxxx xxx xxxxxx xx xxxxx xxx xxxxx xxxxxx xxx xx xxxxxxx xx xxx xxxxxx xx xxxxxxxx xxxx. Txx xxxxxxx xxxxx xx ddddd. Txx xxxxxxxx xxxxxxx xxxxxxx xx xxx xx xxx xxxxxx --xxxxxx-xxxxxxx-xxxxx. Rxxxxxx xxx xxxxxxxxx xxxx xxx xxxxx xxxxxxxxxx xxxxx xxx xxx xxx xxxxxx xx xxxx xxx xxxx xxx --xxxxx-xxx-xxxxxxx xxxxxx. - - - - - --xxxxxx-xxx - - - Sxxxxxx xx --xxx xx xxx Sxxxxxxx xxx Cxxxxxxxxx xxxxxxx, xxx xxxxxxx xx x xxxxx’x SSL xxxxxxxxxx xxxx xxx xxxxxx xxxxxx. - - - - - --xxxxxx-xxx-xx[=xxxxx] - - - Sxxxxxx xx --xxx-xx xx xxx Sxxxxxxx xxx Cxxxxxxxxx xxxxxxx, xxx xxxxxxx xx x xxxxx’x SSL xxxxxxxxxx xxxx xxx xxxxxx xxxxxx. - - - - - --xxxxxx-xxx-xxxxxx[=xxxxx] - - - Sxxxxxx xx --xxx-xxxxxx xx xxx Sxxxxxxx xxx Cxxxxxxxxx xxxxxxxx xxx xxxxxxx xx x xxxxx’x SSL xxxxxxxxxx xxxx xxx xxxxxx xxxxxx. - - - - - --xxxxxx-xxx-xxxx[=xxxxx] - - - Sxxxxxx xx --xxx-xxxx xx xxx Sxxxxxxx xxx Cxxxxxxxxx xxxxxxx, xxx xxxxxxx xx x xxxxx’x SSL xxxxxxxxxx xxxx xxx xxxxxx xxxxxx. - - - - - --xxxxxx-xxx-xxxxxx[=xxxxx] - - - Sxxxxxx xx --xxx-xxxxxx xx xxx Sxxxxxxx xxx Cxxxxxxxxx xxxxxxx, xxx xxxxxxx xx x xxxxx’x SSL xxxxxxxxxx xxxx xxx xxxxxx xxxxxx. - - - - - --xxxxxx-xxx-xxx[=xxxxx] - - - Sxxxxxx xx --xxx-xxx xx xxx Sxxxxxxx xxx Cxxxxxxxxx xxxxxxx, xxx xxxxxxx xx x xxxxx’x SSL xxxxxxxxxx xxxx xxx xxxxxx xxxxxx. - - - - - --xxxxxx-xxxx=xxxxx - - - Sxxx xxx xxxx xx xxx xxxx xxxxxxx xxxx xxx xxxxx xxxxxx xxxx xx xxxxxxx xx xxx xxxxxx xxxxxx xxx xxxxxxxxxxx. Txx xxxx xxxxx xxxx xxxx REPLICATION SLAVE xxxxxxxxx xx xxx xxxxxx. Txxx xxxxxx xx xxxxxxxxx xx xxx xxxxxx.xxxx xxxx. - - - - - --xxx-xxxxxx-xxxx-xxxxxx=xxxxx - - - Txxx xxxxxx xx xxxx xx xxx MxSQL xxxx xxxxx xxx xxxxxxx xxx xxxxxxxxx xxxxxxxxxxx. - - - - - --xxxx_xxxx - - - Txxx xxxxxx xxxxxxxx xxxxx xxxx xxxxxx, xxxxxxxx, xx xxxxxxxx xxxx xx xxx xxxxxx, xxxxxx xxx xxxxx xxxx SUPER xxxxxxxxxx. Txx xxxxx xxxxxxxxx xx xxxx xxxxxxx xxxx xxxxx xxxxxxx xxx xxxxxxx. Txxx xxxxxx xxxx xxx xxxxx xxxx xxxx x xxxxxx xx xxx xxxxxx. Ix xxx xx xxx xx xxxxxx xxxxxxxxxxxxx xxxx xxx xxxxxx xxx xxx xx xxxxxx xx xx xx xx xxxx xxxxxx xxxxxxxxxxx xxxxxxxx. - - - - - --xxxxx-xxx=xxxxxxxx - - - Sxxx xxx xxxx xxxx xx xxx xxxxx xxx xxxx. Bx xxxxxxx xx’x xxxxx_xxxx_xxxx-xxxxx-xxx. MxSQL xxxx xxxxxx xxx xxx xxxxx xxx xxxxxx x xxxxxx xx xxx xxxx xxxx xxxxx xxxx xxxx xxxxxx. Txx xxxxxx xx xxxxxxxxx x xxxxx xxxxx xxxxxx, xxxxxxxx xxxx ddddddd. - - - - - --xxxxx-xxx-xxxxx=xxxxxxxx - - - Sxxx xxx xxxx xx xxx xxxxx xxx xxxxx xxxx. Bx xxxxxxx xx’x xxxxx_xxxx_xxxx-xxxxx-xxx.xxxxx. - - - - - --xxxxx-xxx-xxxx-xxxx=xxxxxxxx - - - Sxxx xxx xxxx xx xxx xxxx xxxx xxx xxxxx xxxx xxx xx xxxxxx xxxxxxxxxxx xxxxxxx xx xxx xxxxx xxx. Bx xxxxxxx xx’x xxxxx-xxx.xxxx xxx xx xxxxxxx xx xxx xxxx xxxxxxxxx xx MxSQL. - - - - - --xxxxx_xxx_xxxxx[={d|d}] - - - Txxx xxxxxx xx xxxx xx xxxx xxx xxxxxx xxxxxxxxxxxxx xxxxx xxxxx xxxx xxxx xx xxxxxxxxxx xxxx xxx xx xxxxxx xxxxxxxxx. Txx xxxxxxx xxxxx xx d xxxxxxx xx; x xxxxx xx d xxxxxxxx xx. - - - - - --xxxxxxxxx-xx-xx=xxxxxxxx - - - Txxxx xxx xxxxx xxxxxx xx xxxxx xxxxxxxxxxx xx SQL xxxxxxxxxx xxxxxxxx xxxxxxx xxx xxxxxxxx xxxxx, xxx xxxx xxxx xx xx xxx xxxxxxx xxxxxxxx. Wxxx xxx xxxx xxxx xxx xxxxxxx xxxxxxxx xx xxxxxxx xxxxxxxx, xxx xxxxxxxx SQL xxxxxxxxxx xxxxxxxxx xxx xxxxxxxx xxxxx xxxx xxxx xxxxxx, xxxxx xxxxxxxxxx xxxx xxx xx xxxxxxxxxx. Axxxxxxxxx xxxxxxxxx xxx xx xxxxxxxxx xxxx xxxxxxxx xxxxxxxxx xx xxxx xxxxxx. - - - - - --xxxxxxxxx-xx-xxxxx=xxxxxxxx.xxxxx - - - Txxxx xxx xxxxx xxxxxx xx xxxxx xxxxxxxxxxx xx SQL xxxxxxxxxx xxxxxxxx xxxxxxx xxx xxxxx xxxxx. Axxxxxxxxx xxxxxx xxx xx xxxxxxxxx xxxx xxxxxxxx xxxxxxxxx xx xxxx xxxxxx. - - - - - --xxxxxxxxx-xxxxxx-xx=xxxxxxxx - - - Sxxxx xxxxxxxxxxx xxx SQL xxxxxxxxxx xxxxxxxx xxxxxxx xxx xxxxxxxx xxxxx, xxx xxxx xxxx xx xx xxx xxxxxxx xxxxxxxx. Sx xxxx xxx xxxx xxxx xxx xxxxxxx xxxxxxxx xx xxxxxxx xxxxxxxx, xxx xxxxxxxx SQL xxxxxxxxxx xxxxxxxxx xxx xxxxxxxx xxxxx xxxx xxxx xxxxxx, xxxxx xxxxxxxxxx xxxx xx xxxxxxxxxx. Axxxxxxxxx xxxxxxxxx xxx xx xxxxxxxxx xxxx xxxxxxxx xxxxxxxxx xx xxxx xxxxxx. - - - - - --xxxxxxxxx-xxxxxx-xxxxx=xxxxxxxx.xxxxx - - - Oxxxx xxxxxxxxxxx xx SQL xxxxxxxxxx xxxxxxxx xxxxxxx xxx xxxxx xxxxx. Axxxxxxxxx xxxxxx xxx xx xxxxxxxxx xxxx xxxxxxxx xxxxxxxxx xx xxxx xxxxxx. - - - - - --xxxxxxxxx-xxxxxxx-xx='xxxxxxxx->xxxxxxxx' - - - Txxxx xxx xxxxx xx xxxxxx xxx xxxxxxxx xxxx xxx xxxxx xxxx xx xxxx xxx xxxxxx xxxx (xxx xxxx xxxxx xxx ->), xxx xxxx xxxx xxx xxxxxxx xxxxxxxx xx xxx xxxxxx xx xxx xx xxx xxxxx xxxxxxxx. - - - - - --xxxxxxxxx-xxxx-xxxxxx-xx[={d|d}] - - - Ix xxxx xxxxxx xx xxx xx d, xxxxxxx xx xxx xxxxxx xxx xxxx xxx xxxx xxxxxx-xx xx xxx xxxxx xxxx xx xxxxxxxxxx. Txxx xxxxxxxxxxx xxx xxxxx xx xxxxxxxx xxxx xx xxxxxxxxxxx, xx xx xxxxxxx’x xx xxxxxxxxxxx xxxxxx xxxxxxxxx xxx xxxx xxxx xxx x xxxxxxx xxxx xxx xxxxxxx. Txxx xxxxxx xx xxx xx d xx xxxxxxx xxx xx xxxx xx xxx xxxxx xxxxxx. Txx xxxxxx xx xxxxxxx xx --xxx-xxxxx-xxxxxxx xx xxxxxxx. - - - - - --xxxxxxxxx-xxxx-xx-xxxxx=xxxxxxxx.xxxxx - - - Txxx xxxxxx xx xxxxxxx xx --xxxxxxxxx-xx-xxxxx xxxxxx xxxx xxx xxx xxxx xxxxxxxxx (% xx _) xxx xxx xxxxxxxx xxx xxxxx xxxxx. Fxx xxxxxxxx, xx xxxxx xxx xxxxxx xxxx xxxxx xxxx xxx xxxx xxxxxxx, xxx xxxxx xxxx x xxxxx xx xxxxxxx%. Tx xxxxxxxxx xxxx x xxxxxxx-xxxx xx xx xxxxxxxxxx, xxxxxx xxx xxxxxxxxx xxxx x xxxxxxxxx xxxxxxxxx (x.x., \% xxx \_). Axxxxxxxxx xxxxxx xxx xx xxxxxxxxx xxxx xxxxxxxx xxxxxxxxx xx xxxx xxxxxx. - - - - - --xxxxxxxxx-xxxx-xxxxxx-xxxxx=xxxxxxxx.xxxxx - - - Txxx xxxxxx xx xxxxxxx xx --xxxxxxxxx-xxxxxx-xxxxx xxxxxx xxxx xxx xxx xxxx xxxxxxxxx (% xx _) xxx xxx xxxxxxxx xxx xxxxx xxxxx. Fxx xxxxxxxx, xx xxxxx xxx xxxxxx xxxx xxxxx xxxx xxx xxxx xxxxxxx, xxx xxxxx xxxx x xxxxx xx xxxxxxx%. Tx xxxxxxxxx xxxx x xxxxxxx-xxxx xx xx xxxxxxxxxx, xxxxxx xxx xxxxxxxxx xxxx x xxxxxxxxx xxxxxxxxx (x.x., \% xxx \_). Axxxxxxxxx xxxxxx xxx xx xxxxxxxxx xxxx xxxxxxxx xxxxxxxxx xx xxxx xxxxxx. - - - - - --xxxxxx-xxxx=xxxx - - - Bxxxxxx xxx xxxxxx xxxxxx xxxxxx xxxxxxxxx xxx xxxxx’x xxxx xxxx xx IP xxxxxxx, xxx xxxx xxxxxx xx xxxx xxx xxxxx xxxxxxxx xxxx xxx xxxxxx xxx xxxxxx xxx xxxx xxxx xx IP xxxxxxx. Txxx xxxxxxxxxxx xxxx xx xxxxxxxx xxxx SHOW SLAVE HOSTS xx xxxxxxxx xx xxx xxxxxx. - - - - - --xxxxxx-xxxxxxxx=xxxxx - - - Sxxx xxx xxxxxxxx xxxx xx xxx xxxxx xx xxxxxxxx xxxx xxx xxxxxx. Ix xxx --xxxx-xxxxx-xxxx-xxxx xxxxxx xx xxxxxxx, xxxx xxxxxxxxxxx xxxx xx xxxxxxxx xxxx SHOW SLAVE HOSTS xx xxxxxxxx xx xxx xxxxxx. - - - - - --xxxxxx-xxxx=xxxxx - - - Sxxx xxx xxxx xxxx xx xxx xxxxx xx xxxxxxxxxxx xxxx xxx xxxxxx. Txxx xxxxxx xxxxxx xx xxxxxxxx xxxx xxxx x xxxxxxx xxxx xx xxxxx xxxx xx xx xxx xxxxxx xxx xxxxxxx xxxxxxxxx xxxxxxxxxxxx. - - - - - --xxxxxx-xxxx=xxxxx - - - Sxxx xxx xxxx xxxx xxxx xx xxx xxxxx xx xxxxxxxxx xxxx xxx xxxxxx. Ix xxx --xxxx-xxxxx-xxxx-xxxx xxxxxx xx xxxxxxx, xxxx xxxxxxxxxxx xxxx xx xxxxxxxx xxxx SHOW SLAVE HOSTS xx xxxxxxxx xx xxx xxxxxx. - - - - - --xxxxxx-xx=xxxxx - - - Sxxx xxx xxxxx xxxxxx’x xxxxxx xxxxxxxxxx. Ix xxxx xx xxxx xx xxx xxxxxx xx xxxx xx xxxx xxxxx, xxxx xx xxxxxx xxx xxxx xxxxxx, xxx xxxxxx xx xxx xx xxx xxxxxxx xxxx. - - - - - --xxxx-xxxxx-xxxx-xxxx - - - Txxx xxxxxx xxxxxx xxx SQL xxxxxxxxx SHOW SLAVE HOSTS xx xxxxxx xxx xxxxx’x xxxx xxxx xxx xxxxxxxx, xx xxx xxxxx xxx xxxxxxx xxxx xxx --xxxxxx-xxxx xxx xxx --xxxxxx-xxxxxxxx xxxxxxx. - - - - - --xxxxx_xxxxxxxxxx_xxxxxxxx[={d|d}] - - - Ix xxx xx d, xxxx xxxxxx xxxxxxxxx xxx xxxxx xx xxxxxxxx xxxx xxxxxx xxxxxxx xx xxx xxx xxxxxx, xx xxxx xxxxxxx xxxxxxxxxxx. Txx xxxxxxx xx d. - - - - - --xxxxx_xxxx_xxxxxx=xxxxx - - - Sxxxxxxxx xxx xxxxxxxxx xxxxx xxx xxxxx xxxxxx xxxxxxxxx xxxxx xxxx xx xxx LOAD DATA INFILE xxxxxxxxx. - - - - - --xxxxx-xxx-xxxxxxx=xxxxx - - - Sxxxxxxxx xxx xxxxxx xx xxxxxxx xxxxxx x xxxxx xxxxxxxxxx xxxxx xxx xxx xxx xxxxx xxxxxxxx xx xxxxxxxxx. Sxx xxx xxxxxxx --xxxxxx-xxxxxxx-xxxxx xxx --xxxxxx-xxxxx-xxxxx, xx xxxx xxxxxxx xx xxxx xxxxxx. - - - - - --xxxxx-xxxx-xxxxxx=xxxxx_xxx,...|xxx - - - Bx xxxxxxx, xxxxxxxxxxx xxxxx xx xxx xxxxx xxxx xx xxxxx xxxxxx. Txxx xxxxxx xxxxxxxxx xxx xxxxx xxx xx xxxxxxxxx xxxxxxxxxxx xxx xxxxxxxx xxxxxx. Exxxx xxxxxxx xxx xxx xxxxxx xxxxxx xx xxxxx xx x xxxxx-xxxxxxxxx xxxx. Yxx xxx xxxxxxx xxx xxxxxx xx xxxxxx xxx xxxxx xx xxx. Txxx xxxxxx xxxxxxxxx xxxxxx xxx xx xxxx, xxx xxx xxxxx xx xxx xx xxxxxxxxxx xxxxxx xxxxxxxx xxxxx xx xxxx. - - - - - --xxx-xxxxx-xxxx-xxxxxxx=xxxxxx - - - Wxxx xxx xxxxx xxxxxx xx xx-xxxxxxx xxxxxxxx xxxx xxx xxxxxx xxxxxxxx, xxxx xxxxxx xxxxxx xxx xxxxx xx xxxx xxx xxxxx xxxxxx xxxxxx xxxx xxx xxxxxx’x xxx. - - - - - --xxxx-xxxxx-xxxxx - - - Ix xxxx xxxxxx xx xxxxxxx, xxx xxxxxx xxxxxx xxx’x xxxxxxxxxxxxx xxxxx xxx xxxxxx xxxx xx’x xxxxxxxxx. Ixxxxxx, xxx xxxx xxxx xx xxxxx xxx START SLAVE xxxxxxxxx xx xxxx xxxxx xx xxxxx xx. - - - - - --xxxxx_xxxxxxxxxxx_xxxxxxx=xxxxx - - - Sxxxxxxxx xxx xxxxxx xx xxxxx xxx xxxxx xxxxxx xxx xx xxxxxxx x xxxxxxxxxxx xxxxxx xxxxxxxxx xx xxxxx xx xxx xxxxxxxxxxx xxxxx xxxxxxx xx xxxxxxxx xxxxxxx xx IxxxDB xx NDB xxxxxxxx. Fxx IxxxDB, xxxx xxxxxxx xx xxxxx xx x xxxxxxxx xx xx xxx xxxxxxxxxxx xxxxx xxxx xxxx xxxx xx xxxxxxx xx xxxxxx_xxxx_xxxx_xxxxxxx. Fxx NDB, xxxx xxxxxxx xx xxx xxxxxxxxxxx xxxxx xxxx xxxx xxxx xx xxxxxxx xx TxxxxxxxxxxDxxxxxxxDxxxxxxxxTxxxxxx xx TxxxxxxxxxxIxxxxxxxTxxxxxx. Txx xxxxxxx xxxxx xx xxxx xxxxxx xx dd. - - - - - - Sxxxxxx Exxxxx Sxxxxxxx Oxxxxxx - Ax xxxxxxxxxxxx xxxx xxxxxxx xx xxxxxx xxxxxx xxxxxxx xxxxxxxxxx xx xxxxxxxxxx xxxxxxx xxxxxxx (xxxxxxxx xxxxx xx xxxxx xxxxx). Txx xxxxxxx xxx xxxxxxx xxxx xxxxxxxxxxx xxxxx xx xxx xxxxxxx xxxxxxx: MxISAM, IxxxDB, xxx Oxxxx Sxxxxxx Exxxxx Oxxxxxx, xxxxx xxxxxxx MEMORY, MERGE, xxx NDB (MxSQL Cxxxxxx). - Oxxxx xxxxxxxx xx MxSQL xxxxxxx BDB xxxxxxx xxxx xxx xxx xxxxxxx xx xxxx xxxx xxxxxxx MxSQL xx xxxxxx xxxxxxxx xxx BDB xxxxxxx xxxxxx. Sxx xxxxxxxxxxxxx xx MxSQL’x xxx xxxx xxx xxxxxxxxxxx xx BDB xxxxxxx xx xxx’xx xxxxx xxxxx BDB xxxxxx. Ix’x xxxxxxxxxxx xxxx xxx xxxxxxx xxxxx xxxxxx xx xxxxxxx xxxxxxx xxxxxx. Fxx x xxxx xx xxxxxxx xxxxxxx xxx xxx xxxxx xxxxxx xx xxxx xxxxxx, xxxxx SHOW ENGINES. - A xxxxxx xx xxxxxxx xxxxxxx xxxxxx xxxx xxxx’x xxxx xxx x xxxxxxxxxx xxxxxxx xxxxxx. - - - - --xxxxxxx-xxxxxxx-xxxxxx=xxxxxx - - - Sxxxxxxxx xxx xxxxxxx xxxxxxx xxxxxx. MxISAM xx xxx xxxxxxx xxxxxx xxxxxxx xxxx xxxx xxxxxx. Txx xxxxxx xxxxxxxx xxxxxxxxxx xxxx xxxx xxxxxx xx xxxxxxx_xxxxxx. Txxx xxxxxx xx xxxxxxxxxx xxxx xxx --xxxxxxx-xxxxx-xxxx xxxxxx. - - - - - --xxxxxxx-xxxxx-xxxx=xxxxxx - - - Sxxxxxxxxx xxxx --xxxxxxx-xxxxx-xxxxxx. - - - - - MxISAM - Txxxx xxxxxxx xxx xxxxxxx xx xxx MxISAM xxxxxxx xxxxxx, xxxxx xx xxxxxxxxx xxx xxxxxxx xxxxxxx xxxxxx xxx MxSQL. Tx xxxxxxxxx xxx xxxxxxx xxxxxxx xxxxxx, xxxxx SHOW VARIABLES LIKE 'xxxxxxx_xxxxxx'; xx xxx xxxxxx. Yxx xxx xxxxxx xxx xxxxxxx xxxxxxx xxxxxx xxxx xxx --xxxxxxx-xxxxxxx-xxxxxx xxxxxx. - - - - --xxxx_xxxxxx_xxxxxx_xxxx=xxxxx - - - Sxx Pxxxxxxxxxx Oxxxxxxxxxxx. - - - - - --xx_xxxxxxx_xxxxxx=xxxxx - - - Sxxx xxx xxxxxxxxx xxxx xxx xx xxxx xxx FULLTEXT xxxxxxxx xx TEXT xxxxxxx xx MxISAM xxxxxx. Txx xxxxxxx xxxxxxxxx xxx + - > < ( ) ~ * : " " & | - - - - - --xx_xxx_xxxx_xxx=xxxxx - - - Sxxx xxx xxxxxxx xxxxxx xx x xxxx xxx xxxxx x FULLTEXT xxxxxx xx x xxxxx xxx xx xxxx. Axxxx xxxxxxx xxxx xxxxxx, xxxxxxx xxx FULLTEXT xxxxx xx xxxxxxxxx REPAIR TABLE xxxxx QUICK; xx xxx xxxxxx. - - - - - --xx_xxx_xxxx_xxx=xxxxx - - - Uxx xxxx xxxxxx xx xxx xxx xxxxxxx xxxxxx xx x xxxx xxx xxxxx x FULLTEXT xxxxxx xx x xxxxx xxx xx xxxx. Axxxx xxxxxxx xxxx xxxxxx, xxxxxxx xxx FULLTEXT xxxxx xx xxxxxxxxx REPAIR TABLE xxxxx QUICK; xx xxx xxxxxx. - - - - - --xx_xxxxx_xxxxxxxxx_xxxxx=xxxxx - - - Sxxx xxx xxxxxxx xxxxxx xx xxxxxxx xxx FULLTEXT xxxxxxxx xxxx xxx xx xxxx xxxx xxxxx xxx WITH QUERY EXPANSION xxxxxx. - - - - - --xx_xxxxxxxx_xxxx=xxxxxxxx - - - Sxxxxxxxx x xxxx xxxx xxxxxxxxxx xxxxxxxxx, xxxxx xxx xxxxx xxx xx xx xxxxxxxxxx xx FULLTEXT xxxxxxxx. Cxxxxxxx xxxxxx xxx xx xxxxxxxx xx xxxx xxxx, xxxx xxxxxxxxx. A xxxx xx xxxxx xx xxxxx xxxx MxSQL xx xxxxxxx. - - - - - --xxxx_xxxxx_xx_xxxxxx[={d|d}] - - - Ix xxx xxxx xxxxxx x xxxx xxxx xxx xxxxxx xx .MYD xx .MYI xx xxxxxxx xx xxx xxxx xxxxxxxxx xx MxSQL, xxx xxxx’x xxxxxx xxxxx xx xxx xxxxxx, xxx x xxx xxxxx xx xxxxxxx xxxx xxx xxxx xxxx xx xxx xxxxxx xx xxx xxxxx, MxISAM xxxx xxxxxxxxx xxx xxxxx. Hxxxxxx, xx xxxx xxxxxx xx xxx xx d, xxx xxxxx xxx’x xx xxxxxxxxxxx xxx xx xxxxx xxxx xx xxxxxxxx xxxxxxx. Txxx xxxxxx xxx xxxxx xx xx xxxxxxx d.d.dd xx MxSQL. - - - - - --xxxxxx_xxxxx_xxxx=xxxxx - - - Sxxx xxx xxxxx xxxx xx xxxxx xxx xxxxx xxxxx xx MxISAM. - - - - - --xxxxxx_xxxx_xxxxxxx_xxxx=xxxxx - - - Sxxx xxx xxxxxxx xxxxxxx xxxx xx xxxxx xxx MxISAM xxxxxx xxxx xxxxxx xxx xxxxxxx xxxxxxx xxx MAX_ROWS xxxxxx xx xxx CREATE TABLE xxxxxxxxx. Txx xxxxxxx xxxxx xx d; xxxxx xxxxxx xxxxx xxxx d xx d. - - - - - --xxxxxx_xxx_xxxxx_xxxx_xxxx_xxxx=xxxxx - - - Txxx xxxxxx xx xxxxxxxxxx xx xx xxxxxxx d.d xx MxSQL. - - - - - --xxxxxx_xxx_xxxx_xxxx_xxxx=xxxxx - - - Sxxx xxx xxxxxxx xxxx xxxx xx xxxxx xx xxx xxxxxxxxx xxxx xxxx xx MxISAM xxxx xxxxxxxxxx x xxxxx’x xxxxx (x.x., xxxx xxxxxxx xxx ALTER TABLE, LOAD DATA INFILE, xx REPAIR TABLE xxxxxxxxxx). Axx xxxxx xx xxxxxx xx xxxx xxxxx xxxx xxx xx xxxxxxxx xxxx xx xxxxxxx xx xxx xxx xxxxx. Txx xxxxxxx xxxxx xx d GB. - - - - - --xxxxxx-xxxxxxx[=xxxxx,...] - - - Sxxx xxx MxISAM xxxxxxx xxxxxx’x xxxxxxxx xxxx xx xxxx xxx MxISAM xxxxxx xxxx xx xxxxxxxxxxxxx xxxxxxx xxx xxxxxxxx xx xxxxxx xxxx xxx xxxxxx xxxxxx. Txx xxxxxxx xx xxxxxxxx xxx BACKUP (xxxxx xxxxxxx xx xxxxxxxxx xxxxxx xxxx xxxx xxxxxxx), DEFAULT (xxxxxxxx xxxx xxxxxx), FORCE (xxxx xxxxxxxx xxxxxxxxxx xx xxx xxxx xx xxxxxx xxxx), xx QUICK (xxxxx’x xxxxx xxxx xxx xxxxxx xxxxxxx xxx xxxxxxxxx). Mxxxxxxx xxxxxxx xxx xx xxxxx xx x xxxxx-xxxxxxxxx xxxx. - - - - - --xxxxxx_xxxxxx_xxxxxxx[={d|d}] - - - Wxxx xxxx xxxxxx xx xxxxxxx, xxxx xxxxxxxxx x xxxxx’x xxxxx, xxxx xxxxx xxxx xx xxxxxx xx xxx xxx xxxxxx. Txxx xxxx xxxxxxxxxxx xxxxxxxx xxx xxxxx xx xxx xxxxxx xxxxxxx. Hxxxxxx, xxxx xxxxxx xx xxxxx xx xxxx xxxxxxx xxxx. Ixx xxxxxxx xxxxx xx d, xxxxxxxx xxx xxxxxx. - - - - - --xxxxxx_xxxx_xxxxxx_xxxx=xxxxx - - - Sxxx xxx xxxx xx xxx xxxxxx xxxx xxx xxxxxxx xxxxxxx xx x MxISAM xxxxx. Txx xxxxxxx xxxxx xxx xxxx xxxxxx xx d GB, xxx xx dd-xxx xxxxxxxxx xxxxxxx, xx xx xxxxxxx d.d.dd, x xxxxxx xxxxxx xxxx xxx xx xxxxxxxx. Txx xxxxxxxx xxxxxxxxxx xxxx xxxx xxxxxx xx xxxx xxxx xxx ALTER TABLE, CREATE INDEX, xx REPAIR TABLE xxxxxxxxxx xxx xxxxxxxx. - - - - - --xxxxxx_xxxxx_xxxxxx={xxxxx_xxxxx|xxxxx_xxxxxxx} - - - Wxxx xxxxxxxxx xx xxxxxxxxxxx xxxxxxxxx xxx xxxx, MxISAM xxx xx xxxxxx xxx xx xxxxx NULL xxxxxx xxx xxxxxxx. Ix xxxx xxxxxx xx xxx xx xxxxx_xxxxx, xxx NULL xxxxxx xxxx xx xxxxxxxxxx xxxxx xxx xxxxx xxxxxxxxxx xxxxxxx xxxx xx xxxxxxx xxxxxxxx. Ix xxxxx_xxxxxxx xx xxxxx, xxxx xxx xxxx xx xxxxxxxxxx x xxxxxxxx xxx xxxxxxxx xxxxx xxx xxxx xxx’x xx xxxxxxx xxxxxxxx. - - - - - --xxxxxx_xxx_xxxx - - - Ixxxxxxxx MxISAM xx xxx xxxxxx xxxxxxx xx xxx xxxxxxxxxx xxxxxxxx xxxxxx xxxx xxxxxxx xxx xxxxxxx xx xxxxxx. - - - - - - IxxxDB - Txxxx xxxxxxx xxx xxxxxxx xx xxx IxxxDB xxxxxxx xxxxxx, x xxxxxxxxxxxxx xxxxxxx xxxxxx. - - - - --xxxxxx - - - Exxxxxx xxxxxxx xxx xxx IxxxDB xxxxxxx xxxxxx. Ix xx xxxxxxx xx xxxxxxx. Rxx xxx SHOW STORAGE ENGINES; xxxxxxxxx xx xxx xxxxxx xx xxx xxxxx xxxxxxx xxxxxxx xxx xxxxxxx. - - - - - --xxxxxx_xxxxxxxxxx_xxx_xxxx_xxxx=xxxxx - - - Sxxx xxx xxxx xx xxxxx xx xxx xxxxxx xxxx xxxx xx IxxxDB xxx xxxxxxx xxx xxxx xxxxxxxxxx xxx xxxxx xxxxxxxx xxxx xxxxxxxxx xxxxxxxxxxx. Txx xxxxxxx xxxxx xx d MB. Ix xxx xxxxxx xxxxxx xx xxxxxxxxx xxxx xxxx xxxxxx, IxxxDB xxxx xxxxx xxxxxxx xxxxxxxx xx xxx xxxxx xxx. - - - - - --xxxxxx_xxxxxxxxxx_xxxxxxxxx=xxxxx - - - Sxxx xxx xxxx xx xxxxxxxxx xx xxxxxxxxxx xxxx xx xxx xxxx xx x xxxxxxxxxx xx IxxxDB xxxx xx xx xxxxxxxxxxxxx xxxxxxxx. Txx xxxxxxx xxxxx xx d (x.x., d MB). - - - - - --xxxxxx_xxxxxxx_xxxx_xxxx={d|d|d} - - - Sxxx xxx xxxxxxx xxxx xxxx xxxx xxx xxxxxxx xxxxxx xxxxxxxxx xxxxxxxxxxxxx xxxxxxxxxxx xxxxxx. Pxxxxxxx xxxxxx xxx d (xxxxxxxxxxx xxxx), d (xxxxxxxxxxx xxxx), xxx d (xxxxxxxxxxx xxxx). Txx xxxxxxxxxxx xxx xxxxxxxxx xx xxx MxSQL xxxxxx xxxxxx. Ix xxxxxxx, xxxxxxxxxx xxx xxx xxxxxx xxxxx xxxx xxxxxxxxxxxxx xx xxx xxxxx xx xxxx xxxxxx xxxx xxxxxx, xxx xxxxxxx xxx xxx xxxxxx xx xxxx. Txxx xxxxxx xx xxxxxxxxx xx xx xxxxxxx d.d.dd xx MxSQL. - - - - - --xxxxxx_xxxxxx_xxxx_xxx_xxx_xx=xxxxx - - - Ox dd-xxx Wxxxxxx xxxxxxx, Axxxxxx Wxxxxxxxx Exxxxxxxxx (AWE) xxx xx xxxxxxxxx xxx xxxxxx xxx xx xxxx xxxx xxx xxxxxx d GB xxxxxx xxxxx. Ox xxxx x xxxxxx, xxx xxx xxx xxxx xxxxxx xx xxx xxx xxxxxx xx AWE xxxxxx xx xxxxxxxxx xxxx IxxxDB xxxx xxx xxx xxx xxxxxx xxxx. Txxx xxxxxx xxxxxx xxx x xxxxx xx d xx ddddd. A xxxxx xx d xxxxxxxx xx. Tx xxxx xxxxxxxxx xx AWE, xxx xxxx xxxx xx xxxxxxxxx MxSQL. - - - - - --xxxxxx_xxxxxx_xxxx_xxxx=xxxxx - - - Sxxx xxx xxxx xx xxxxx xx xxx xxxxxx xxxxxx xxxx xx IxxxDB xxx xxxxxxx xxxx xxx xxxxxxx. - - - - - --xxxxxx_xxxxxxxxx - - - Wxxx xxxx xxxxxx, xxxxx xx xxxxxxx xx xxxxxxx, xxxxxxxx xxxxxxxxxx xx xxxx xx xxxxx xxxx xxxx xxx xxxxxxxxxx. Txxx xx xxxx xxx xxxxxxx xxxxxxxxx xxxx xxxxx xxxx’x x xxxxxxx xxxx xxxx xxx xxxxxxxxx xxx xx xxxxxxxxx xxxxx xx xxxxxxxx xxxxxxx xxxxxxxx. Uxx xxx --xxxx-xxxxxx-xxxxxxxxx xxxxxx xx xxxxxxx xx. - - - - - --xxxxxx_xxxxxx_xxxxxxxxxxx=xxxxx - - - Sxxx xxx xxxxxxx xxxxxx xx xxxxxxx xxxx xxx xxxxxx xxxxxxxxxxxx xxxxxxxxxxxxxx. A xxxxx xx d xxxxxxx xxx xxxxx xx xxxxxxxxxx xxxxxxx. - - - - - --xxxxxx_xxxx_xxxx_xxxx=xxxx:xxxx... - - - Axxxxx xxx xx xxxxxxxx xxx xxxxxxx xxxxx xxx IxxxDB xxxx xxxxx, xx xxxxxxxxxx xxxxx xxx xxxxx xx xxxx xxxxx xxxxxx xxx xxxxxxxxx xxxxx xxxx xxx --xxxxxx_xxxx_xxxx_xxx xxxxxx. Exxx xxxx xx x xxxxxx xxxxxxxx xx M xxx xxxxxxxxx xx G xxx xxxxxxxxx. Txx xxxxxxx xxxxx xx xxx xxxx xxxxx xxxxxx xx dd MB. Ix xx xxxx xx xxxxx, x dd MB xxxx xxxx xxxx xxxx-xxxxxxxxx xxxxxxxxxx xxxx xx xxxx xx xxxxxxx. Fxx xxxx xxxxxxxxx xxxxxxx, xxxxx xx x d GB xxxxxxx xxxxx. - - - - - --xxxxxx_xxxx_xxxx_xxx=xxxx - - - Sxxxxxxxx xxx xxxx xxxxxxxxx xxx IxxxDB xxxx xxxxx. Ix xxx xxxx, xxx xxxxxxx xxxx xx xxx xxxx xxxxxxxxx xxx MxSQL. - - - - - --xxxxxx_xxxxxxxxxxx - - - Txxx xxxxxx, xxxxxxx xx xxxxxxx, xxxxxx IxxxDB xx xxxxx xxx xxxx xx xxxxxxxx xxxxx. Fxxxx xx xxxxxx xxxx xx x xxxxxx, xxxx xxxxxx xxx xxxx xx xxx xxxxxxxxxx, xxxx xxxxxxxx xxx xxxx xxx xxxxxxxxx. Tx xxxxxxx xxxx xxxxxxxx, xxx --xxxx-xxxxxx_xxxxxxxxxxx. - - - - - --xxxxxx_xxxx_xxxxxxxx[={d|d|d}] - - - Dxxxxxxxxx xxx xxxxxxx xxxxxxxxxx xxxx IxxxDB xxxxxxx xxxx xxxxxxxx xxxx xxx xxxxxxx xxxxxx. Ix xx xx xxx xx d, xxx xxxxxxx xxxx xx xxxx xxxxxx (xxxx xxxxxxx xx xxxxx xxxxxx): xx xxxx xxxxxxx x xxxx xxxxx xxx x xxxxx xx xxx xxxxxx xxxxxx. Ix xxxx xxxxxx xx xxx xx xxx xxxxxxx xx d, xxx xxxxxxx xx xxxxxxxx. Ix xx’x xxx xx d, IxxxDB xxxx xxxxx xxx xxxx xxx xxxx xxxx xxxxxxx. Wxxx xx’x xxxxxxxxx x xxxxx xxxxxxxx xxxx xx xxxxxxxxx. Txxx xxxxxx xx xxx xxxxxxx xx Nxxxxxx xxxxxxx. - - - - - --xxxxxx_xxxx_xx_xxxxxxx=xxxxx - - - Sxxx xxx xxxxxx xx xxxx I/O xxxxxxx xxxxxxxxx. Txx xxxxxxx xxxxx xx d. Cxxxxxxx xxxx xx Uxxx xxxx xxxxxxx xxx xx xxxxxx. Ox Wxxxxxx xxxxxxx, xxxxxxx, xxxxxxxxxxx xxx xx xxxxxxxx xxxx x xxxxxx xxxxx. - - - - - --xxxxxx_xxxx_xxx_xxxxx - - - IxxxDB xx xxxxxxx xxxx x xxxxxx xxxxxxxxxx. Wxxx xxxx xxxxxx xx xxxxxxx, x xxxxxxxx .xxx xxxx xxxx xx xxxxxxx xxx xxxx xxx xxxxx xx xx xxxx xxx xxxx xxx xxxxxxx xxxxxxx xx xxxxx xxx xxxxxx xxxxxxxxxx. Bx xxxxxxx xxxx xx xxxxxxxx. - - - - - --xxxxxx_xxxxx_xxx_xx_xxx_xxxxxx={d|d|d} - - - Dxxxxxxxxx xxx xxxxxxxxx xxx xxxxxxxx xxx xxxxxxx xx xxxx xxxxx xxxx xxxxxxxxxxx xxxxxxx. Ix xx’x xxx xx x xxxxx xx d, xxx xxx xxxxxx xxxx xx xxxxxxx xx xxx xxx xxxx xxx xxx xxx xxxx xx xxxxxxx xxxxx xxxxxx, xxx xxx xx x xxxxxxxxxxx xxxxxx. Ix xx’x xxx xx xxx xxxxxxx xx d, xxx xxx xxxxxx xx xxxxxxx xx xxx xxx xxxx xxx xxx xxx xx xxxxxxx xx xxxxx xxxxxxxxxxx xxxxxx. Ix xx’x xxx xx d, xxx xxx xxxxxx xx xxxxxxx xx xxx xxx xxxx xx xxxx xxxxxxxxxxx xxxxxx xxx xxx xxx xx xxxxxxx xxxxx xxxxxx xxxxxxx xxxxxxxxx xx xxx xxxxxx xxxxxx. Ix’x xxxxxxxxxxx xxxxxxxxx xxxx xxxx xxxxxx xx xxxx xx xxx xxxxxxx xxxxx xx d xxx xxxx --xxxx_xxxxxx xxxx xx xxx xx d xx xxxxxx xx. - - - - - --xxxxxx_xxxxx_xxxxxx={xxxxxxxxx | O_DIRECT | O_DSYNC} - - - Sxxx xxx xxxxxx xx xxxxxxxxxxxxx xxxx xxx xxxxxxxx xxxx xxxx IxxxDB. Txx xxxxxxx xxxxx xx xxxxxxxxx xxxxxxxxx IxxxDB xx xxx xxx xxxxxxxxx xxxxxx’x xxxxx() xxxx xx xxxxxxxxxxx xxxx xxx xxx xxxxx. Txx xxxxx xx O_DIRECT xxx xxx xxxxxx xxx O_DIRECT xxx xxxxxxx xxxx xxxxx xxx xxxxx() xx xxxxxxxxxxx xxxx xxx xxx xxxxx. Txxx xxxxx xx xxxxxxxxx xxxx xxx Lxxxx, FxxxBSD, xxx Sxxxxxx xxxxxxx. O_DSYNC xxx xxx xxxxxx xxx O_SYNCH xxx xxxxxxx xxx xxxxxxxx xxx xxxxx, xxx xxxxx() xx xxxxx xxxx xxxxx. - - - - - --xxxxxx_xxxxx_xxxxxxxx=xxxxx - - - Pxxx IxxxDB xx xxxxx xxxxxxxx xxxx. Txx xxxxxxxxx xxxxxx xxx d xxxxxxx d. Exxx xxxxx xxxxxxxx xxx xxxxxxxx xxxxxx. Lxxxx d xxxxxxxxx xxxx xxx xxxxxx xxxxxx xxxxxxxx xxxxxxx xxxx xx xx xxxxx xxxxxxx xxxxx. Lxxxx d xxxxxxxx xxx xxxx xxxxxx xxxx xxxxxxx x xxxxx xxxxxxxxx xx xx xxxxx xxxxx xxx xxxxxx xx xxxxx. A xxxxx xx d xxxxxxxx xxxxxxxxxxx xxxxxxxxx xxxx xxxxx xxx xxxxx xxx xxxxxxxx xx xxxxxxxx. A xxxxxxx xx d xxxxxxxx xxxxxxxxxx xxxx xxx xxxxxx xxxxxx xxxx xxxxxxx xx xxxx xxxxx xxxxx xxx xxxxx xx xxxxx. Lxxxx d xxxxxx IxxxDB xxx xx xxxxxxxx xxxx xxxx xxxx xxxxxxxx xxx xx xxxxxxxx xxx xxxxxxxxxxxx xx xxxx xxxx xxxxxxxxx. Fxxxxxx, xxxxx d xxxxxxxxx xxx xxxxxx xxx xx xxxxxxx x xxx xxxx-xxxxxxx xxxxxx xxx xxxxxxxx. - - - - - --xxxxxx_xxxx_xxxx_xxxxxxx=xxxxx - - - Sxxx xxx xxxxxxx xxxxxx xx xxxxxxx xxxx IxxxDB xxx xxxx xx xxx x xxxx xx x xxxxx xxxxxx xx xxxxx xx xxx xxxxx xxxx x xxxxxxxxxxx. Txx xxxxxxx xxxxx xx dd. - - - - - --xxxxxx_xxxxx_xxxxxx_xxx_xxxxxx - - - Tx xxxxxxx xxxxxxxxx xxxx xxx-xxxxx xxxxxxx, IxxxDB xxxxx xxx xxx xxx x xxx. Txxx xxxx xxxx xxxxxxxxx xxxxxxx xxxxx xxxxx xxxx xxxxxxx xx xxx xxxxx xxxx xx xxx xxx xxxx xxx xxx xxx xxxxxx. Sxxxxxx xxxx xxxxxx xx x xxxxx xx d xxxxxxxx xxxx xxxxx xxxxxxxxxx. Sxxxxxx xx xx xxx xxxxxxx xxxxx xx d xxxxxxxx xxxx xxxx xxx. - - - - - --xxxxxx_xxx_xxxx_xxx=xxxxx - - - Sxxx xxx xxxx xxxx xxxxx xxxxxxxxx xxx xxxxx xxxxxx xx xxxxxxxx. Gxxxxxxxx, xx xxxxxx xx xxx xx xxx xxxx xxxxxxxxx xx xxx xxxxxx --xxxxxx_xxx_xxxxx_xxxx_xxx. Axxxxxxxx xx xxxxxxxxx xxx xxxx xx xx’x xxx xxxxxx xx xxxx xxx xxxxxxxx. - - - - - --xxxxxx_xxx_xxxxxxx[={d|d}] - - - A xxxxx xx d xxxxxxxxx IxxxDB xx xxxxxxx xxx xxxxx. Bx xxxxxxx xx’x xxx xx d xxxxxxx xx’x xx xxxxxx xxxx. - - - - - --xxxxxx_xxx_xxxxxx_xxxx=xxxxx - - - Sxxx xxx xxxx xx xxxxx xx IxxxDB’x xxx xxxxxx. IxxxDB xxxxxx xxxx xxx xxxxxx xx xxx xxx xxxx. Txx xxxxxxx xxxxx xx d MB. - - - - - --xxxxxx_xxx_xxxx_xxxx=xxxxx - - - Sxxx xxx xxxx xx xxxxx xx xxx xxx xxxx xx x xxx xxxxx xx xxx xxxx IxxxDB. Txx xxxxxxx xxxxx xx d MB. Lxxxxx xxxxxx xxx xxxx xxxxxx xxxx xxxxxxxx xxxxxx. Txx xxxxx xx xxx xxx xxxxx xxxxxxxx xxxxxx xx xxxx xxxx d GB. - - - - - --xxxxxx_xxx_xxxxx_xx_xxxxx=xxxxx - - - Dxxxxxxxxx xxx xxxxxx xx xxx xxxxx xx x xxx xxxxx. Txx xxxxxxx xx d. Lxx xxxxx xxx xxxxxxx xx xx x xxxxxxxx xxxxxx. - - - - - --xxxxxx_xxx_xxxxx_xxxx_xxx[=xxxx] - - - Sxxx xxx xxxx xxxx xxx IxxxDB xxx xxxxx. Bx xxxxxxx IxxxxDB xxxxxxx xxx xxx xxxxx xx xxx xxxx xxxxxxxxx xx MxSQL xxxxxx xx_xxxxxxxd xxx xx_xxxxxxxd. - - - - - --xxxxxx_xxx_xxxxx_xxxxx_xxx=xxxxx - - - Ix xxxx xxxxxxx, xxxxx xxxxx xxx xxxxx xxxx xxx xx xxx xxxxxx xxxx, xxx xxx xxx xxxxxxx xx xxx xxxx xxxxx. Uxx xxxx xxxxxx xx xxx xxx xxxxxxxxxx xx xxxxx xxxxx xxxx xxx xx xxxxxxx xx xxx xxxxxx xxxx. Txx xxxxx xxxxx xxx xxxxx xxxx d xx ddd; xxx xxxxxxx xx dd. - - - - - --xxxxxx_xxx_xxxxx_xxx=xxxxx - - - Txxx xxxxxx xx xxxxxxx xx xxxxxx xxxxxx xx xxxxx xxxxxxxxxx xxxx xxx xxxxxxx xxxxxx xx xxxxxx xx, xxxx xxxxxxx xx SQL xxxxxxxxxx xxxx xxxxxx xxxx. Sxx xxx xxxxx xx xxx xxxxxx xx xxxx xxxxxxxxxx xxxx xxx xx xxxxxxx xxxxxx xxxxx xxxxxxxxxx. Txx xxxxxxx xxxxx xx d xxxxxxxxx IxxxDB xxx xx xxxxx xxxx xx xxx. - - - - - --xxxxxx_xxxxxxxx_xxx_xxxxxx=xxxxx - - - Sxxx xxx xxxxxx xx xxxxxxxx xxx xxxxxx xxxx IxxxDB xxxxxx xxxxxxxx. Bx xxxxxxx xxxx xx xxx xx d xxx xx xxxxxxx xxxxxxxxxx. - - - - - --xxxxxx_xxxx_xxxxx=xxxxx - - - Sxxx xxx xxxxxxx xxxxxx xx .xxx xxxxx xxxx xxx xx xxxx xx xxx xxxx. Txx xxxxxxx xxxxx xx dd; xxx xxxxxxx xx ddd. Txxx xxxxxx xxxxxxx xxxx xxxx xxxxxxxx xxxxxxxxxxx xxx xxxx. - - - - - --xxxxxx-xxxx-xxxxxx - - - Exxxxxx xxxxxxxxxxx xxxxxxx xxx xxxxxxxx xx IxxxDB xxxxxx xxx xxx xxxxxx xxx. - - - - - --xxxxxx_xxxxxx_xxxx - - - Hxx IxxxDB xxxx x xxxxxx xxxx xx xxx xxxxxxx xx xxx SHOW ENGINE INNODB STATUS xxxxxxxxx. Ix xxxxxx xx xxx xxxx xxxxxxxxxxxx. Txx xxxx xx xxxxx xxxxxx_xxxxxx.xxx xxx xx xxxxxxx xxxxxxx xx xxx xxxx xxxxxxxxx xx MxSQL. - - - - - --xxxxxx_xxxxxxx_xx - - - Exxxxxx xxxxxxx xxx xxx-xxxxx xxxxxx xxx XA xxxxxxxxxxxx. Ix’x xxxxxxx xxx xxx xx d xx xxxxxxx. A xxxxx xx d xxxxxxxx xx xxx xxx xxxxxxxxx xxxxxxx xxxxxxxxxxx xx xxx xxxxxx xxxxx’x xxx XA xxxxxxxxxxxx. - - - - - --xxxxxx_xxxx_xxxx_xxxxx=xxxxx - - - Sxxx xxx xxxxxx xx xxxxx x xxxxxx xx IxxxDB xxxx xxxx xxx x xxxxx xx xx xxxx. Oxxx xxxx xx xxxxxxxx, xxx xxxxxx xxxx xx xxxxxxxxx. - - - - - --xxxxxx_xxxxx_xxxxx[={d|d}] - - - Wxxx xxxxxxx (xxx xx d), xxxxxx IxxxDB xx xxxxxxxxxx xxxx x xxxxx xx xxx LOCK TABLE xxxxxxxxx xx xxx xxx AUTOCOMMIT xx xxx xx d. - - - - - --xxxxxx_xxxxxx_xxxxxxxxxxx=xxxxx - - - Sxxx xxx xxxxxxx xxxxxx xx xxxxxxx xxxx xxx xxxxxxxxxxxx xxx IxxxDB. Axxxxxxxxx xxxxxxx xxxx xxx xx xxxxxx IxxxDB xxxxxx xxx xxx xxxx xxxx xxxx. Txx xxxxx xxx xx xxxx d xx dddd. Bxxxxx xxxxxxx d.d.dd, xxx xxxxx xxxx dd xxx xxx xxxx xx xxxxxxxxx. A xxxxx xx d xxxxxxxx xxx xxxxxxx xxxxxxxx xxx xxxxxx xxxxxxxxx xxxxxxxxxx xxxxxxx. - - - - - --xxxxxx_xxxxxx_xxxxx_xxxxx=xxxxxxxxxxxx - - - Sxxx xxx xxxxxx xx xxxxxxxxxxxx xxxx x xxxxxx xxx xxxxx xxxxxx xxxxx xxx xx x xxxxx. Txx xxxxxxx xxxxx xx ddddd; d xxxxxxxx xxxxx. - - - - - --xxxx-xxxxxx - - - Dxxxxxxx xxx IxxxDB xxxxxxx xxxxxx. - - - - - --xxxx-xxxxxx-xxxxxxxxx - - - Bx xxxxxxx, IxxxDB xxxx xxxxxxxx xxxxxxxxxx xx xxxxx xxxx xxxx xxx xxxxxxxxxx (xxx --xxxxxx-xxxxxxxxx). Txxx xxxxxx xxxxxxxx xxxx xxxxxxxx. - - - - - --xxxx-xxxxxx-xxxxxxxxxxx - - - Bx xxxxxxx, IxxxDB xxxxxx xx x xxxxxx xxxxxx xxxxxxx xx xxx xxxxxxxxxx (xxx --xxxxxx-xxxxxxxxxxx). Txxx xxxxxx xxxxxxxx xxxx xxxxxxxx. - - - - - --xxxxx_xxxxxxx[={d|d}] - - - Wxxx xxx xx d, xxx xxxxxx xxxxxx xxx xxxxxx xx xxxx IxxxDB xxxxxxx xxxxx xxx xxxxxxx. Txx xxxxxxx xxxxx xx d xxxxxxxx xxx xxxxxx. - - - - - - Oxxxx Sxxxxxx Exxxxx Oxxxxxx - Txxxx xxxxxxx xxx xxxxxxxxxx xx xxxxxxx xxxxxxx xxx xxxxxxxxxx xxxxxx. Txx xxxxxxx xxxxxxxx MEMORY xxx NDB xxxxxxxx xxxxxxx xxx xxx xxxxxx xxxxxx. - - - - --xxx_xxxx_xxxxx_xxxx=xxxxx - - - Sxxx xxx xxxxxxx xxxxxx xx xxxx xx x MEMORY xxxxx. Ix xxxxxxx xxxx xx xxxxxx xxxxxxx xx xxxxxxx xxxxx xx’x xxx. - - - - - --xxxxxxxxxx - - - Exxxxxx xxxxxxx xxx xxx NDB Cxxxxxx xxxxxxx xxxxxx. - - - - - --xxx-xxxxxxxxxxxxx=xxxxxx - - - Sxxxxxxxx xxx xxxxxxx xxxxxx xxxx xxx NDB xxxxxxx xxxxxx xxxx xx xxxxxx xxx xxxxx xx x xxxxxxx. - - - - - --xxxx-xxxxx - - - Dxxxxxxx xxx MERGE xxxxxxx xxxxxx. Txx xxxxxx xxx xxxxx xx xxxxxxx d.d.dd xx MxSQL. - - - - - --xxxx-xxxxxxxxxx - - - Dxxxxxxx xxx NDB Cxxxxxx xxxxxxx xxxxxx. - - - - - - - - - xxxxxx_xxxxx - - - xxxxxx_xxxxx - - - xxxxxx_xxxxx - - - - xxxxxx_xxxxx [xxxxxxx] {xxxxx|xxxx|xxxxxx} [xxxxxx_xx] - - - - <para><indexterm id="ch15-idx-missedid-151" significance="normal"><primary>xxxxxx_xxxxx xxxxxxx</primary></indexterm> -Rxxx xxxxxxxx MxSQL xxxxxxx xx xxxxxxxxx xxxxxx xxxxx xxx xxxxx. Tx xxx xx xxxxxxxx xxxxxxx, xxx xxxx xxxxxx x xxxxxxx xxx xxxx xxxxxx xx x xxxxxxxxxxxxx xxxx (x.x., <filename moreinfo="none">/xxx/xx.xxx</filename>). Txx xxxxxx xxxxxx xxx xxxx xxxxxxx xxxx xx <literal moreinfo="none">[xxxxxx</literal><replaceable>x</replaceable><literal moreinfo="none">]</literal>, xxxxx <replaceable>x</replaceable> xx x xxxxxxxxx xxxxxx xxx xxxx xxxxxx. Oxxxxxx xxxx xx xxxxxxx xxxxxxxxxx xxx xxxx xxxxxx xx xxx xxx xxxxxxx, xxxx xxxx xxxxxxx xxx xxx xxxx xxxxxxx. Ax x xxxxxxx, xxxx xxxxxx xxxxxx xxx x xxxxxxxxx xxxxxx xxxx xx x xxxxxxxxx TCP/IP xxxx. Yxx xxxxxx xxxx xxx xxxxxxxxx xxxx xxxxxxxxxxx xxx xxxx xxxxxx. Txx xxxxxxxxx xxxxxx xx xxxxxxxxxx xx xxx xxxxxxxxx xxxxxx xxxx xxxx xxxxxxx xxx xxxxxxx. Ix xxxxxx xxx xx xxx <literal moreinfo="none">xxxx</literal> xxxx, xxxxxx, xx xxxx xxxxx xx x xxxxxxxx xxxxxxxxxxxxx. - -Tx xxx xx xxxxxxx xx xxx x xxxxxxxxxxxxx xxxx xxxxx xx xxx xx xxx xxxxxxxx xxxxxxx, xxxxx xxx xxxxxxxxx xxxx xxx xxxxxxx xxxx:</para> - <programlisting format="linespecific">xxxxxx_xxxxx --xxxxxxx</programlisting> - <para>Oxxx xxxxxxxx xxxxxxx xxxx xxxx xxxxxxxxxx, xxx xxx xxxxx xxxxxxxxx xxxx xxx xxxxxxxxx xxxx xxx xxxxxxx xxxx xx xxxxx x xxxxxx:</para> - <programlisting format="linespecific">xxxxxx_xxxxx xxxxx d</programlisting> - <para>Txxx xxxx xxxxx xxxxx xxxxxx xxxxxx d, xxxxxx xx xxx xxxxxxxxxxxxx xxxx xx <literal moreinfo="none">[xxxxxxd]</literal>. Bx xxxxxxxx <literal moreinfo="none">xxxxxx</literal> xxx xxx xxxxx xxxxxxxx, xxx xxx xxxxxx xxx xxxxxx xx xxx xxxxxx. Fxx xxxxxxxx xxx xxxxxxxx xxx xxxxxx, xxxx xxxxxx xxxx xxx <literal moreinfo="none">xxxxxxxxxx</literal> xxxxxxx. Hxxx xx xx xxxxxxxxxxxx xxxx xx xxxxxxx xxxxxxxx xx <literal moreinfo="none">xxxxxx_xxxxx</literal> xxxx xxx xxx xxxxx xxxx xxx xxxxxxx xxxx, xxxxx xxxx x xxxxx xxxxxxxxxxx xx xxxx:</para> - <variablelist> - <varlistentry> - <term> - <literal moreinfo="none">--xxxxxx-xxxx=<replaceable>xxxxxxxx</replaceable></literal> - </term> - <listitem> - <para>Sxxxxxxxx xx xxxxxxxxxxx xxxxxx xxxxxxxxxxxxx xxxx. Ax xx xxxxxxx d.d.dd xx MxSQL, xxxxxx, xxxx xxxxxx xxx xxxx xxxxxxxxxx xxx xx xxxxxxx xxxx <literal moreinfo="none">--xxxxxxxx-xxxxx-xxxx</literal>.<indexterm id="mysqlian-CHP-15-ITERM-3698" significance="normal"><primary sortas="config-file option (mysqld_multi)">--xxxxxx-xxxx xxxxxx (xxxxxx_xxxxx)</primary></indexterm> -</para> - </listitem> - </varlistentry> - <varlistentry> - <term> - <literal moreinfo="none">--xxxxxxx</literal> - </term> - <listitem> - <para>Dxxxxxxx x xxxxxx xxxxxxxxxxxxx xxxx.<indexterm id="mysqlian-CHP-15-ITERM-3699" significance="normal"><primary sortas="example option (mysqld_multi)">--xxxxxxx xxxxxx (xxxxxx_xxxxx)</primary></indexterm> -</para> - </listitem> - </varlistentry> - <varlistentry> - <term> - <literal moreinfo="none">--xxxx</literal> - </term> - <listitem> - <para>Dxxxxxxx xxxxx xxxx xxxxxxxxxxx.<indexterm id="mysqlian-CHP-15-ITERM-3700" significance="normal"><primary sortas="help option">--xxxx xxxxxx</primary><secondary>xxxxxx_xxxxx xxxxxxx</secondary></indexterm> -</para> - </listitem> - </varlistentry> - <varlistentry> - <term> - <literal moreinfo="none">--xxx=<replaceable>xxxxxxxx</replaceable></literal> - </term> - <listitem> - <para>Sxxx xxx xxxx xx xxx xxxxxxx. Txx xxxxxxx xx /<emphasis>xxx/xxxxxx_xxxxx.xxx</emphasis>.<indexterm id="mysqlian-CHP-15-ITERM-3701" significance="normal"><primary sortas="log option">--xxx xxxxxx</primary><secondary>xxxxxx_xxxxx xxxxxxx</secondary></indexterm> -</para> - </listitem> - </varlistentry> - <varlistentry> - <term> - <literal moreinfo="none">--xxxxxxxxxx=<replaceable>xxxxxxxx</replaceable></literal> - </term> - <listitem> - <para> -Pxxxxx xx xxx xxxxxxxxxx xxxx xx xxx <emphasis>xxxxxxxxxx</emphasis> xxxxxxx xx xxxxxx.<indexterm id="mysqlian-CHP-15-ITERM-3703" significance="normal"><primary>xxxxxxxxxx xxxxxxx</primary><secondary>xxxxxxx xxxx</secondary></indexterm> -<indexterm id="mysqlian-CHP-15-ITERM-3702" significance="normal"><primary sortas="mysqladmin option (mysqld_multi)">--xxxxxxxxxx xxxxxx (xxxxxx_xxxxx)</primary></indexterm> -</para> - </listitem> - </varlistentry> - <varlistentry> - <term> - <literal moreinfo="none">--xxxxxx=<replaceable>xxxxxxxx</replaceable></literal> - </term> - <listitem> - <para> -MxSQL xxxxxx xx xxxxx, xxxxxx <literal moreinfo="none">xxxxxx</literal> xx <literal moreinfo="none">xxxxxx_xxxx</literal>. Ix xxxx xx <literal moreinfo="none">xxxxxx</literal>, xxx xxxxxx xxx xxx <literal moreinfo="none">--xxx-xxxx</literal> xxxxxx xx <literal moreinfo="none">xxxxxx</literal> xx xxxx xxxx xxxxxx xxxx xxxx x xxxxxxxx xxxxxxx xxxxxxxxxx xxxx. Ix xxxx xxxxxx xx xxx xx <literal moreinfo="none">xxxxxx_xxxx</literal>, xxx xxxxxxxx xxxxxx xxxxxxx xxx xxxxxxx <literal moreinfo="none">xxxxx</literal> xxx <literal moreinfo="none">xxxxxx</literal> xx xxxx xxxxxx xx <literal moreinfo="none">xxxxxx_xxxx</literal>. Yxx xxxxx xxxxxxx xxxx xx xxx xxxxxxx xxxx xxxxx xxx xxxxxx xxxxx xxx xxx xxxxxx xxxxxxx xx <literal moreinfo="none">xxxxxx_xxxxx</literal>.<indexterm id="mysqlian-CHP-15-ITERM-3704" significance="normal"><primary sortas="mysqld option">--xxxxxx xxxxxx</primary><secondary>xxxxxx_xxxxx xxxxxxx</secondary></indexterm> -<indexterm id="mysqlian-CHP-15-ITERM-3705" significance="normal"><primary>xxxxxx xxxxxx</primary><secondary>xxxxxxx xxxx</secondary></indexterm> -</para> - </listitem> - </varlistentry> - <varlistentry> - <term> - <literal moreinfo="none">--xx-xxx</literal> - </term> - <listitem> - <para>Ixxxxxxxx xxx xxxxxxx xxx xx xxxx xxxxxxxx xx x xxx, xxx xx xxxx xxxx xx <literal moreinfo="none">xxxxxx</literal> xxxxxxx.<indexterm id="mysqlian-CHP-15-ITERM-3706" significance="normal"><primary sortas="no-log option (mysqld_multi)">--xx-xxx xxxxxx (xxxxxx_xxxxx)</primary></indexterm> -</para> - </listitem> - </varlistentry> - <varlistentry> - <term> - <literal moreinfo="none">--xxxxxxxx=<replaceable>xxxxxxxx</replaceable></literal> - </term> - <listitem> - <para> -Pxxxxxxx xxx xxxxxxxx xxx xxxxx <emphasis>xxxxxxxxxx</emphasis>.<indexterm id="mysqlian-CHP-15-ITERM-3708" significance="normal"><primary>xxxxxxxxx</primary><secondary>xxxxxxxxxx xxx</secondary></indexterm> -<indexterm id="mysqlian-CHP-15-ITERM-3709" significance="normal"><primary>xxxxxxxxxx xxxxxxx</primary><secondary>xxxxxxxxx xxx</secondary></indexterm> -<indexterm id="mysqlian-CHP-15-ITERM-3707" significance="normal"><primary sortas="password option">--xxxxxxxx xxxxxx</primary><secondary>xxxxxx_xxxxx xxxxxxx</secondary></indexterm> -</para> - </listitem> - </varlistentry> - <varlistentry> - <term> - <literal moreinfo="none">--xxxxxx</literal> - </term> - <listitem> - <para>Dxxxxxxx xxxxxxx xxxxxxxx xxxx xxx xxxxxxx.</para> - </listitem> - </varlistentry> - <varlistentry> - <term> - <literal moreinfo="none">--xxx-xx</literal> - </term> - <listitem> - <para>Sxxxx xxxx xxxxxxx’x xxxxxxxx xx xxx xxxxxx xxxxx x TCP/IP xxxxxx xxxxxxx xx x Uxxx-xxxxxx xxxxxx.<indexterm id="mysqlian-CHP-15-ITERM-3710" significance="normal"><primary sortas="tcp-ip option (mysqld_multi)">--xxx-xx xxxxxx (xxxxxx_xxxxx)</primary></indexterm> -</para> - </listitem> - </varlistentry> - <varlistentry> - <term> - <literal moreinfo="none">--xxxx=<replaceable>xxxx</replaceable></literal> - </term> - <listitem> - <para> -Pxxxxxxx xxx xxxxxxxx xxx xxxxx <literal moreinfo="none">xxxxxxxxxx</literal>. Txx xxxx xxxx xxxx xx xxxx xxx xxx xxxxxxx xxx xxxx xxxx <literal moreinfo="none">SHUTDOWN</literal> xxxxxxxxx xx xxx xx xxxx.<indexterm id="mysqlian-CHP-15-ITERM-3711" significance="normal"><primary sortas="user option">--xxxx xxxxxx</primary><secondary>xxxxxx_xxxxx xxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-15-ITERM-3712" significance="normal"><primary>xxxxxxxxxx xxxxxxx</primary><secondary>xxxxxxxxx xxx</secondary></indexterm> -</para> - </listitem> - </varlistentry> - <varlistentry> - <term> - <literal moreinfo="none">--xxxxxxx</literal> - </term> - <listitem> - <para> -Dxxxxxxx xxx xxxxxxx xx xxx xxxxxxx.<indexterm id="mysqlian-CHP-15-ITERM-3713" significance="normal"><primary sortas="version option">--xxxxxxx xxxxxx</primary><secondary>xxxxxx_xxxxx xxxxxxx</secondary></indexterm> -<indexterm id="mysqlian-CHP-15-ITERM-3714" significance="normal"><primary>xxxxxx_xxxxx xxxxxxx</primary></indexterm> -</para> - </listitem> - </varlistentry> - </variablelist> - </refsect1> - </refentry> - </sect1> - <sect1 id="mysqlian-CHP-15-SECT-4"> - <title>xxxxxx_xxxx - - - xxxxxx_xxxx - - - xxxxxx_xxxx - - - - xxxxxx_xxxx [xxxxxxx] - - - - <para><indexterm class="startofrange" id="ch15-idx-986682-1" significance="normal"><primary>xxxxxx_xxxx xxxxxxx</primary><secondary>xxxxxxxx</secondary></indexterm><literal moreinfo="none">xxxxxx_xxxx</literal> xx xxxxxxxxxxx xxxxxxx xxx xxxxxxxx xxx MxSQL xxxxxx, xxxxxxx xxx xxxxxx xx xxxxxxxxx xxxxxxxxxxxxx xx xx xxxx xxxxxxxxxxxx. Txx xxxxxxx xx xxxxxxxxx xx Uxxx xxx Nxxxxx Nxxxxxx xxxxxxx.</para> - <para>Axxxxxxx xxxxxxx xxx xx xxxxxxx xxxx xxx xxxxxxx xxxx, xxxx xxxxxx xx xxxxxxxx xx xxx xxxxxxx xxxx (x.x., <filename moreinfo="none">xx.xxx</filename>) xxxxx xxx xxxxxxx <literal moreinfo="none">[xxxxxx_xxxx]</literal>. Oxxxxxx xxxxxxxx xx <literal moreinfo="none">xxxxxx_xxxx</literal> xxxxxx xxx xx xxxxxx xx xxx xxxxxxx xxxx xxxxxxx xxxx xxxx xx xxxxxx xx xxx <literal moreinfo="none">xxxxxx</literal> xxxxxx, xxxxx xxxx xxx xx xxxxxxxxx xxxx. Txxxxxxxx, xxxxxxx xxx xxxxx xxxx xx xxxx xxxxx xxxxxx xx xxx xxxxxxxxxxxxx xxxx, xxxxxxx xxxxxxx xxxxxxx. <literal moreinfo="none">xxxxxx_xxxx</literal> xxx xxxx xxxxxx xxxxxxx xxx xxx <literal moreinfo="none">xxxxxx</literal> xxxxxx, xxx xxx xxxxxxxxxxxxx xxxx xx xxxx xxxxxx xxx xxxxx xxxxxxx xx xxxxxxx xxxx xxxx xxxxxx xx xxx xxxxxx xxxx xx’x xxxxxxxx xxxxx x xxxxx.</para> - <variablelist> - <varlistentry> - <term> - <literal moreinfo="none">xxxxxxxxx</literal> - </term> - <listitem> - <para>Ox Nxxxxx Nxxxxxx xxxxxxx, xxxx <literal moreinfo="none">xxxxxx_xxxx</literal> xxxxxx, xxx xxxxxxx xxxxxx xxxx xxx xxxxx xxxxxxxxxxxxx xxxxxxx xxxx xxxxxxxxxxx. Uxx xxxx xxxxxx xx xxxx xxx xxxxxx xxxxx xxxxxxxxxxxxx.</para> - </listitem> - </varlistentry> - <varlistentry> - <term> - <literal moreinfo="none">xxxxxxx=<replaceable>xxxx</replaceable></literal> - </term> - <listitem> - <para> -Txxx xxxxxx xx xxxxxxxxx xxx xx xxxx xx xxxxxxx xxx xxxx xx xxx xxxxxxxxx xxxxx MxSQL xxxxx xxx xxxxxxxxx.<indexterm id="mysqlian-CHP-15-ITERM-3715" significance="normal"><primary sortas="basedir option">xxxxxxx xxxxxx</primary><secondary>xxxxxx_xxxx xxxxxxx</secondary></indexterm> -</para> - </listitem> - </varlistentry> - <varlistentry> - <term> - <literal moreinfo="none">xxxx-xxxx-xxxx=<replaceable>xxxxx</replaceable></literal> - </term> - <listitem> - <para>Sxxx xxx xxxxxxx xxxx xxx xxx xxx xxxx xxxx xx xxxxxx xx xxx xxxxxx xxxx.<indexterm id="mysqlian-CHP-15-ITERM-3716" significance="normal"><primary sortas="core-file-size option">xxxx-xxxx-xxxx xxxxxx</primary><secondary>xxxxxx_xxxx xxxxxxx</secondary></indexterm> -</para> - </listitem> - </varlistentry> - <varlistentry> - <term> - <literal moreinfo="none">xxxxxxx=<replaceable>xxxx</replaceable></literal> - </term> - <listitem> - <para>Sxxxxxxxx xxx xxxxxxxxx xxxx xxxxxxxx xxxxxxxxx (x.x, xxxxx xxxxx).<indexterm id="mysqlian-CHP-15-ITERM-3717" significance="normal"><primary sortas="datadir option">xxxxxxx xxxxxx</primary><secondary>xxxxxx_xxxx xxxxxxx</secondary></indexterm> -</para> - </listitem> - </varlistentry> - <varlistentry> - <term> - <literal moreinfo="none">xxxxxxxx-xxxxx-xxxx=<replaceable>xxxxxxxx</replaceable></literal> - </term> - <listitem> - <para>Sxxxxxxxx xx xxxxxxxxxx xxxxxxx xxxx xx xxx xxxxx xxx xxxxxxx xxxx xx xxxx. Wxxx xxxx xx xxx xxxxxxx xxxx, xxxx xxx xx xx xxx xxxxx xxxxxx, xxxxxx xxxx <literal moreinfo="none">--xxxxxxxx-xxxx</literal> xxxx xxxxxxx xx xx xxxx.<indexterm id="mysqlian-CHP-15-ITERM-3718" significance="normal"><primary sortas="defaults-extra-file option">xxxxxxxx-xxxxx-xxxx xxxxxx</primary><secondary sortas=" (mysqld_safe program">xxxxxx_xxxx xxxxxxx</secondary></indexterm> -</para> - </listitem> - </varlistentry> - <varlistentry> - <term> - <literal moreinfo="none">xxxxxxxx-xxxx=<replaceable>xxxxxxxx</replaceable></literal> - </term> - <listitem> - <para>Sxxxxxxxx xxx xxxxxxx xxxxxxx xxxx xxx xxx xxxxxx; xxx xx xxxx xx xxxxxxxxxx xxxxxxx xxxxxxx xxx xxx xxxxxx xxxxxxx xxxxxx xxxxx. Wxxx xxxx xx xxx xxxxxxx xxxx, xxxx xxx xx xx xxx xxxxx xxxxxx xxxxx.<indexterm id="mysqlian-CHP-15-ITERM-3719" significance="normal"><primary sortas="defaults-file option">xxxxxxxx-xxxx xxxxxx</primary><secondary>xxxxxx_xxxx xxxxxxx</secondary></indexterm> -</para> - </listitem> - </varlistentry> - <varlistentry> - <term> - <literal moreinfo="none">xxx-xxx=<replaceable>xxxxxxxx</replaceable></literal> - </term> - <listitem> - <para>Sxxxxxxxx xxx xxxx xx xxx xxxxx xxx xxx xxxxx xxxxxxxx xxxxxxx xxx xxxxxx, xxxx xx xxxxxx xxxx xxxxxxxx.<indexterm id="mysqlian-CHP-15-ITERM-3720" significance="normal"><primary sortas="err-log option (mysqld_safe)">xxx-xxx xxxxxx (xxxxxx_xxxx)</primary></indexterm> -</para> - </listitem> - </varlistentry> - <varlistentry> - <term> - <literal moreinfo="none">xxxxx=<replaceable>xxxx</replaceable></literal> - </term> - <listitem> - <para>Txxx xxxxxx xx x xxxxxxxxx xxx xx xxxxxxx xxxxxx_xxxx. Ix xxxxxxxxx xxx xxxx xxxxx xxx xxxxxxx xxx xx xxxxx.<indexterm id="mysqlian-CHP-15-ITERM-3721" significance="normal"><primary sortas="ledir option (mysqld_safe)">xxxxx xxxxxx (xxxxxx_xxxx)</primary></indexterm> -</para> - </listitem> - </varlistentry> - <varlistentry> - <term> - <literal moreinfo="none">xxx-xxxxx[=<replaceable>xxxxxxxx</replaceable>]</literal> - </term> - <listitem> - <para>Exxxxxx xxxxxxx xx xxxxx xxxxxxxx xxx xxxxxx xxxxxxx xxxxxxxx, xxxxxxxxxx xxxxxxxxxx x xxxxxxx. Txx xxxxxxx xxxxxxx xx <replaceable>xxxx</replaceable><filename moreinfo="none">.xxx</filename> xx MxSQL’x xxxx xxxxxxxxx, xxxxx <replaceable>xxxx</replaceable> xx xxx xxxx’x xxxx.<indexterm id="mysqlian-CHP-15-ITERM-3722" significance="normal"><primary sortas="log-error option">xxx-xxxxx xxxxxx</primary><secondary>xxxxxx_xxxx xxxxxxx</secondary></indexterm> -</para> - </listitem> - </varlistentry> - <varlistentry> - <term> - <literal moreinfo="none">xxxxxx=<replaceable>xxxxxx</replaceable></literal> - </term> - <listitem> - <para>Txxx xxxxxx xx xxxxxxxx xxxx xxxxx x xxxxxx xxxxxxxxxxxx xxx xxx xxxx xxxxxxxxx xxx MxSQL xx xxx xx xxx xxxxxxxx xxxxxxxxxx xxx xx xxx xxxxxxxxxxxx. Wxxx xx xxx xxxxxxx xxxxx xxxxxx xx xxxxx (x.x., <literal moreinfo="none">xxxxxx</literal>). Txxx xxxxxx xxxxxxx xxxx xx xx xxx xxxx xxxxxxxxx xxxxx xxxx xxx <literal moreinfo="none">xxxxx</literal> xxxxxx.<indexterm id="mysqlian-CHP-15-ITERM-3723" significance="normal"><primary sortas="mysqld option">xxxxxx xxxxxx</primary><secondary>xxxxxx_xxxx xxxxxxx</secondary></indexterm> -</para> - </listitem> - </varlistentry> - <varlistentry> - <term> - <literal moreinfo="none">xxxxxx-xxxxxxx=[xxx]</literal> - </term> - <listitem> - <para>Sxxxxxxxx xxxxx xxxxxx xx xxx xx xxxxxxxxx xxx xxxxxx xx xxx xxxxxx’x xxxx. A xxxxx xx <literal moreinfo="none">xxx</literal> xxxxxx <emphasis>xxxxxx-xxx</emphasis>, xxxxxxx x xxxxx xxxxx xxxxxxx <literal moreinfo="none">xxxxxx</literal> xx xxxxxxx.<indexterm id="mysqlian-CHP-15-ITERM-3724" significance="normal"><primary sortas="mysqld-version option (mysqld_safe)">xxxxxx-xxxxxxx xxxxxx (xxxxxx_xxxx)</primary></indexterm> -</para> - </listitem> - </varlistentry> - <varlistentry> - <term> - <literal moreinfo="none">xxxx=<replaceable>xxxxxx</replaceable></literal> - </term> - <listitem> - <para>Exxxxxx xxx <emphasis>xxxx</emphasis> xxxxxxx xx xxx xxxxxxxxxx xxxxxxxx xx xxx xxxxx xxxxx.<indexterm id="mysqlian-CHP-15-ITERM-3725" significance="normal"><primary sortas="nice option (mysqld_safe)">xxxx xxxxxx (xxxxxx_xxxx)</primary></indexterm> -</para> - </listitem> - </varlistentry> - <varlistentry> - <term> - <literal moreinfo="none">xx-xxxxxxxx</literal> - </term> - <listitem> - <para>Ixxxxxxxx xxx xxxxxx xxx xx xxxxx xx xxxxxxxxxxxxx xxxxx xxx xxxxxxx. Wxxx xxxx xx xxx xxxxxxx xxxx, xxxx xxx xx xx xxx xxxxx xxxxxx xxxxx.<indexterm id="mysqlian-CHP-15-ITERM-3726" significance="normal"><primary sortas="no-defaults option">xx-xxxxxxxx xxxxxx</primary><secondary>xxxxxx_xxxx xxxxxxx</secondary></indexterm> -</para> - </listitem> - </varlistentry> - <varlistentry> - <term> - <literal moreinfo="none">xxxx-xxxxx-xxxxx=<replaceable>xxxxxx</replaceable></literal> - </term> - <listitem> - <para>Lxxxxx xxx xxxxxx xx xxxxx xxx xxxxxx xxx xxxx. Oxxx <emphasis>xxxx</emphasis> xxx xxx xxxx xxxxxx.<indexterm id="mysqlian-CHP-15-ITERM-3727" significance="normal"><primary sortas="open-files-limit option">xxxx-xxxxx-xxxxx xxxxxx</primary><secondary>xxxxxx_xxxx xxxxxxx</secondary></indexterm> -</para> - </listitem> - </varlistentry> - <varlistentry> - <term> - <literal moreinfo="none">xxx-xxxx=<replaceable>xxxxxxxx</replaceable></literal> - </term> - <listitem> - <para>Sxxxxxxxx xxx xxxx xxxx xxxx xxxxx xxx xxxxxx’x xxxxxxx xxxxxxxxxx.<indexterm id="mysqlian-CHP-15-ITERM-3728" significance="normal"><primary sortas="pid-file option">xxx-xxxx xxxxxx</primary><secondary>xxxxxx_xxxx xxxxxxx</secondary></indexterm> -</para> - </listitem> - </varlistentry> - <varlistentry> - <term> - <literal moreinfo="none">xxxx=<replaceable>xxxx</replaceable></literal> - </term> - <listitem> - <para>Sxxxxxxxx xxx TCP/IP xxxx xxxxxx xx xxxxx <literal moreinfo="none">xxxxxx_xxxx</literal> xxxxxx xxxxxx xxx xxxxxxxx xxxxxxxxxxx. Uxxxxx xxxxxxx xx xxx <literal moreinfo="none">xxxx</literal> xxxxxxxxxx xxxx, xxx xxxx xxxxxx xxxxxx xx dddd xx xxxxxx.<indexterm id="mysqlian-CHP-15-ITERM-3729" significance="normal"><primary sortas="port option">xxxx xxxxxx</primary><secondary>xxxxxx_xxxx xxxxxxx</secondary></indexterm> -</para> - </listitem> - </varlistentry> - <varlistentry> - <term> - <literal moreinfo="none">xxxx-xxxx-xxxxxx</literal> - </term> - <listitem> - <para>Wxxx <literal moreinfo="none">xxxxxx_xxxx</literal> xx xxxxxxx xx x Lxxxx xxxxxx, xx xxxx xxxxxx xx xxx xxxx, xxx <literal moreinfo="none">xxxxxx</literal> xxxxxxxxx xxxx xxx xxxxxxx xxxx xx xxxxxxxxxx xx xx. Uxx xxxx xxxxxx xx xxxxx xxxxxxxx xxxxxxx xx xxxx xx.</para> - </listitem> - </varlistentry> - <varlistentry> - <term> - <literal moreinfo="none">xxxx-xxxxxx</literal> - </term> - <listitem> - <para>Cxxxxx xxx xxxxxx xxx xx xxx xxxxxx xx xxx xxxxxx’x <literal moreinfo="none">xxxxxx</literal> xxxxxxxx. Txx MxSQL-xxxxxxxx xxx xxxx xxxxx xx xxxxxxx. Txxx xxxxxx xx xxxxxxxxx xx xx xxxxxxx d.d.dd xx MxSQL. Sxx <literal moreinfo="none">xxxxxx</literal> xxx xxxx xxxxxxxxxxx xxxxxxx xx xxxx xxxxxx.</para> - </listitem> - </varlistentry> - <varlistentry> - <term> - <literal moreinfo="none">xxxxxx=<replaceable>xxxxxxxx</replaceable></literal> - </term> - <listitem> - <para>Pxxxxxxx xxx xxxx xx xxx xxxxxx’x xxxxxx xxxx xxx xxxxx xxxxxxxxxxx.<indexterm id="mysqlian-CHP-15-ITERM-3730" significance="normal"><primary sortas="socket option">xxxxxx xxxxxx</primary><secondary>xxxxxx_xxxx xxxxxxx</secondary></indexterm> -</para> - </listitem> - </varlistentry> - <varlistentry> - <term> - <literal moreinfo="none">xxxxxx</literal> - </term> - <listitem> - <para>Ox xxxxxxxxx xxxxxxx xxxx xxxxxxx xxx <literal moreinfo="none">xxxxxx</literal> xxxxxxx, xxxx xxxxxx xxxxxxxxx xxx xxxxxx xx xxx xxxxx xxxxxxxx xx xxx xxxxxxx <literal moreinfo="none">xxxxxx</literal>. Txxx xxxxxx xx xxxxxxxxx xx xx xxxxxxx d.d.dd xx MxSQL. Sxx <literal moreinfo="none">xxxx-xxxxxx</literal> xxx xxxx xxxxxxxxxxx xxxxxxx xx xxxx xxxxxx.</para> - </listitem> - </varlistentry> - <varlistentry> - <term> - <literal moreinfo="none">xxxxxx-xxx</literal> - </term> - <listitem> - <para>Wxxx xxxxxxx xxxxx xxxxxxxx xx <literal moreinfo="none">xxxxxx</literal>, xxxx xxxxxx xxxxx xxxx xxxxxxx xxxx <literal moreinfo="none">xxxxxx</literal> xx <literal moreinfo="none">xxxxxx_xxxx</literal>, xxxxxxxxx xx xxx xxxxxx xx xxx xxxxx. Txxx xxxxxx xx xxxxxxxxx xx xx xxxxxxx d.d.dd xx MxSQL. Sxx <literal moreinfo="none">xxxxxx</literal> xxx <literal moreinfo="none">xxxx-xxxxxx</literal> xxx xxxx xxxxxxxxxxx xxxxxxx xx xxxx xxxxxx.</para> - </listitem> - </varlistentry> - <varlistentry> - <term> - <literal moreinfo="none">xxxxxxxx=<replaceable>xxxx</replaceable></literal> - </term> - <listitem> - <para>Sxxx xxx xxxxxxxxxxx xxxxxxxx <literal moreinfo="none">TZ</literal> xxx xxx xxxx xxxx xx xxx xxxxxx.<indexterm id="mysqlian-CHP-15-ITERM-3731" significance="normal"><primary sortas="timezone option (mysqld_safe)">xxxxxxxx xxxxxx (xxxxxx_xxxx)</primary></indexterm> -</para> - </listitem> - </varlistentry> - <varlistentry> - <term> - <literal moreinfo="none">xxxx=<replaceable>xxxx</replaceable></literal> - </term> - <listitem> - <para>Sxxxxxxxx xxx xxxxxxxx xx xxxx ID xxxxxx xxx xxx xxxx xxxx xxxxxx xxx xxxxxx. -<indexterm class="endofrange" startref="ch15-idx-986682-1" id="mysqlian-CHP-15-ITERM-3733" significance="normal"/> -<indexterm id="mysqlian-CHP-15-ITERM-3732" significance="normal"><primary sortas="user option">xxxx xxxxxx</primary><secondary>xxxxxx_xxxx xxxxxxx</secondary></indexterm> -</para> - </listitem> - </varlistentry> - </variablelist> - </refsect1> - </refentry> - </sect1> - </chapter> - <chapter id="mysqlian-CHP-16" xml:base="ch16.xml"> - <title>Cxxxxxx-Lxxx Uxxxxxxxx - xxxxxxx-xxxx xxxxxxxxxxxxxxxxxx, xxxxxxx-xxxx -Txxx xxxxxxx xxxxxxxxx xxx xxxxxxxxx xxxx xxx xxx xxx xx xxxxxxxxxx xxx MxSQL xxxxxx xxx xxxx. Sxxx xxxxxxxx xxxx xxx xxxxxx xxx xxxxxx xxxxxxxxxx MxSQL’x xxxxxxxxx xxxxxxxx. Oxxxxx xxx xx xxxx xx xxxx xxxxxxx xx xxxx (x.x., xxxxxxxxx). Txx xxxxxxxxx xxx xxxxxx xxxx xx xxxxxxxxxxxx xxxxx. - - Sxxx xx xxxxx xxxxxxxxx xxx xxxxxxxx xxxx MxSQL xxx xxx xxxxxxxxx xxxxxxxxx xx x xxxxxxxx xxxxxxxxx xxx xxxxxxxxxxx xx xxxx xxxx xxx xxxxxxxxxxxxx xx xxx xxxx’x xxxxxxx xxxx. Oxxxx xxxxxxxxx xxxx xx xx xxxxxxxxxx xxx xxxxxxxxx xxxx MxSQL AB’x xxxx xx xxxx x xxxxx-xxxxx xxxx. - - - xxxx_xxx - - - xxxx_xxx - - - - xxxx_xxx xxxxxx xxxxxxxxxxx - - - - <para><indexterm id="ch16-idx-missedid-1" significance="normal"><primary>xxxx_xxx xxxxxxx</primary></indexterm> -Txxx xxxxxxx xxxxxxxx xxxx xxxxx xxxx xxxxxxx xxxxxxxx xx xxxxx xxxxx xxxx x xxxxxx xxxx xx MxSQL. Txxx xx xxxxxxxxxxxx xxxxxx xxx xxxxxxxx xxxxx xxxx xxxxxxxx xx xxxxxx xxxxxxxxx xxx xxxxx xxxxx xxxxxxx xxxxx xx xxx xxxxxxx xxxxx. Yxx xxx xxxx xxx xx xx xxxxxx xxxxx xxxxxxxx xx x xxxxxxxxxx xxxxxx. Tx xx xxxx, xxxx xxxx xxx xxxxxxxxxxx <filename moreinfo="none">xxxxxx.xxx</filename> xxxx xx xxx xxxxxxx xxxxxxxxx. Fxx Exxxxxx xxxxxxxx xx Uxxx xxxxxxx, xxx xxxxxx xxxx xxxx xxx xxx xxxxxxxx xxxxxx xxxx xxx xxxxx xxxxxxxxx xx <filename moreinfo="none">/xxx/xxxxx/xxxxx/xxxxxxx</filename>. Txx xxxxxxxxx xxxxxxxxxxxx xxx xx xxxxxxx x xxxx xxxx xxxxxxxxxx xxxxx xxxxxxxx xx Pxx Lxxxx:</para> - <programlisting format="linespecific">xxxx_xxx /xxx/xxxxx/xxxxx/xxxxxxxx/xxxxxx.xxx \ - /xxx/xxxxx/xxxxx/xxxxxxxx/xxxxxx.xxx</programlisting> - <para>Tx xxxx xxx xxx xxx xx xxxxx xxxxxxxx xxx xxxxxxx xxx, xxx xxx xxxxxxxxx xxxx xx xxx MxSQL xxxxxxxxxxxxx xxxx (x.x., <literal moreinfo="none">xx.xxx</literal> xx <literal moreinfo="none">xx.xxx</literal>, xxxxxxxxx xx xxxx xxxxxx) xxxxx xxx <literal moreinfo="none">[xxxxxx]</literal> xxxxxxx:</para> - <programlisting format="linespecific">xxxxxxxx=/xxx/xxxxx/xxxxx/xxxxxxxx</programlisting> - <para>Nxxxxx xxxx xxxx xxx xxxxxxxxx xx xxxxx xxx xxx xxx xxxxxxxx.</para> - </refsect1> - <refsect1 id="ch16-1-fm2xml"> - <title>xxxx_xxx Oxxxxxx - - - - --xxxxxxx=xxxx, -C xxxx - - - Sxxxxxxxx xxx xxxx xx xxx xxxxxxxxx xxx xxxxx. Txx xxxxxxx xxxxxxxxx xx /xxx/xxxxx/xxxxx/xxx/xxxxx/xxxxxxxx, xxxxxxxx xxx xxx xxxxxx’x xxxxxxxxxxxx xxxxxxxx. - - - - - --xxxxx[=xxxxxxx], -# xxxxxxx] - - - Lxxx xxxxxxxxx xxxxxxxxxxx. Txx xxx xx xxxxxxx xxxx xx xxxxxxx xx 'x:x:x,xxxxxxx'. Sxx xx xxx xxx xx xxx xxxx xx xxxxxxx xxxxx xxx xxxxxxxxx xxxxxxx xxx xx xxxxxxxxxxx xx xxxxx xxxxx xxx xxxxxx xxxx xxx xx xxxx. - - - - - --xxxxx-xxxx, -T - - - Wxxxxx xxxxxxxxx xxxxxxxxxxx xxx CPU xxx xxxxxx xxxxx xxxxxxxxxxx xx xxx xxx xxxxx xxx xxxxxxx xxxx. - - - - - --xxxxxx_xxxx=xxxxxxxx, -H xxxxxxxx - - - Sxxxxxxxx xxx xxxxx xxxxxx xxxx. Bx xxxxxxx, xx’x xxxxxx_xxxxx.x. - - - - - --xx_xxxx=xxxxxxxx, -F xxxxxxxx - - - Sxxxxxxxx xxx xxxxx xxxx. Bx xxxxxxx, xx’x /xxx/xxxxx/xxxxx/xxx/xxxxx/xxxxxx.xxx, xxxxxxxx xxx xxx xxxxxx’x xxxxxxxxxxxx xxxxxxxx. - - - - - --xxxx_xxxx=xxxxxxxx, -N xxxxxxxx - - - Sxxxxxxxx xxx xxxxx xxxx. Bx xxxxxxx, xx’x xxxxxx_xxxxxx.x. - - - - - --xxx_xxx=xxxx, -D xxxx - - - Sxxxxxxxx xxx xxxxxx xxxxxxxxx. Bx xxxxxxx, xx’x /xxx/xxxxx/xxxxx/xxx/xxxxx, xxxxxxxx xxx xxx xxxxxx’x xxxxxxxxxxxx xxxxxxxx. - - - - - --xxx_xxxx=xxxxxxxx, -O xxxxxxxx - - - Sxxxxxxxx xxx xxxxxx xxxx. Bx xxxxxxx, xx’x xxxxxx.xxx. - - - - - --xxxxxxxxx=xxxxxxxx, -S xxxxxxxx - - - Sxxxxxxxx xxx SQLSTATE xxxxxx xxxx xx xx xxxxxxxxx. Bx xxxxxxx, xx’x xxx_xxxxx.x. - - - - - --xxxxxxx, -V - - - Rxxxxxx xxx xxxxxxx xx xxx xxxxxxx. - - - - - - - - xxxx_xxxxxx_xxxxxxxxxxxx - - - xxxx_xxxxxx_xxxxxxxxxxxx - - - - xxxx_xxxxxx_xxxxxxxxxxxx - - - - <para><indexterm id="ch16-idx-missedid-3" significance="normal"><primary>xxxx_xxxxxx_xxxxxxxxxxxx xxxxxxx</primary></indexterm> -Txxx xxxxxxx xxxxxxx x xxxxxx xxxxxxxxxxxx xx MxSQL xxxx xxx xxxxxx xxxx. Txxx xxx xx xxxxxx, xxx xxxxxxxx, xx x xxxxxxxxx xxx xxx xxxxxxxx xxx xxxxxx xxxx xxx xxx xxxxx xxx xxxxx xx xxxx x xxxxxxxxxx xxxxxx xxxxxxx xxx xxx xx xxx xxxxxxxxxx. Exxxxxxxx xxx xxxxxx xxxx xxx xxxxxxxxx xxxxxxxxxx xxx xxxxxxxx xxxxxx xxxx xxxxxxxxx x GNU xxxxxx xxx xxxx xxx xxxxxxxxxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch16-77003"> - <refmeta> - <refentrytitle>xxxxdxxxxx</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxxdxxxxx</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">xxxxdxxxxx <replaceable>xxxxxxx.x</replaceable></synopsis> - </refsynopsisdiv> - <refsect1 id="ch16-03-fm2xml"> - <title/> - <para><indexterm id="ch16-idx-missedid-4" significance="normal"><primary>xxxxdxxxxx xxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-16-ITERM-3736" significance="normal"><primary>C API</primary><secondary>xxxxdxxxxx xxxxxxx xxx</secondary></indexterm> -Txxx xxxxxxx xxxxxxxx C API xxxxxxxx xxxxx xxxxxxxx xxx xSQL xxxxxxxx, xx xxxxxxxx xxxxxxx xx C, xx xxx MxSQL xxxxxxxxxx xxxxxxxxx. Txx xxxx xxxxxxxx xx xxx xxxxxxx xx xxx xxxx xx xxx xxxxxx xx xxxxxxx. Txx xxxxxxx xxxx xxx xxxxxx x xxxx xx xxx xxxxxx xxxx. Ixxxxxx, xx xxxxxxxx xxx xxxxx xxxxxx xxxx xxxxxx. Txxxxxxxx, xxx xxxxxx xxxx x xxxxxx xx xxx xxxxxx xxxxxx xxxxxxx xxx xxxxxxx. Txxx xxxxxxx xxx’x xxxxxx xxxxxxxxx xx xxxxxxxxxx xxx xSQL xxxxxxxxx. Sx xxxxxx xxxxxxxxxx xx xxx xxxx xxx xxxxxxx xxx xx xxxxxxxx xxxxx x xxxxxxxxxx. Nxxx xxxx xxx <literal moreinfo="none">xxxxxxx</literal> xxxxxxx xx xxxx xx <literal moreinfo="none">xxxxdxxxxx</literal>. -</para> - </refsect1> - </refentry> - <refentry id="ch16-77004"> - <refmeta> - <refentrytitle>xx_xxxxx_xxxxxxxx</refentrytitle> - </refmeta> - <refnamediv> - <refname>xx_xxxxx_xxxxxxxx</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">xx_xxxxx_xxxxxxxx <replaceable>xxxxxxx</replaceable> <replaceable>xxxxxxxx</replaceable></synopsis> - </refsynopsisdiv> - <refsect1 id="ch16-04-fm2xml"> - <title/> - <para><indexterm id="ch16-idx-missedid-6" significance="normal"><primary>xx_xxxxx_xxxxxxxx xxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-16-ITERM-3737" significance="normal"><primary sortas="basedir option">--xxxxxxx xxxxxx</primary><secondary>xxxxxx xxxxxx</secondary></indexterm> -Txxx xxxxxxx xxxxxx x xxxxxxxxxxxxx xxxx, xxxxxxxxxx xxx/xxxxx xxxxx xxxx xxxxxxx-xxxx xxxxxxxxxx xxxxxxx. Fxx xxxxxxxx, x xxxx xxxx xxx <filename moreinfo="none">xx.xxx</filename> xxxx xxxx xxxxx <literal moreinfo="none">xxxxxxx=/xxxx/xxxxx</literal> xxxx xx xxxxxxxxx xx <literal moreinfo="none">--xxxxxxx=/xxxx/xxxxx</literal>. Tx xxxxxx xxx MxSQL xxxxxx (x.x., <filename moreinfo="none">xxxxxx</filename>) xxxxxxx xx <filename moreinfo="none">xx.xxx</filename> xxxx, xxxxx xxx xxxxxxxxx xxxx xxx xxxxxxx xxxx (xxx xxxxxx xxxxxxx):</para> - <programlisting format="linespecific">xx_xxxxx_xxxxxxxx --xxxxxx-xxxx=/xxx/xx.xxx xxxxxx ---xxxxxxx=/xxxx/xxxxx ---xxxxxxx=/xxxx/xxxxx ---xxxxxx=/xxx/xxxxx.xxxx ---xxxxxx=/xxx ---xxx-xxx=/xxxx/xxxxx/xxxx/xxx-xxx</programlisting> - <para>Nxxxxx xxxx xxxx xxx <literal moreinfo="none">xxxxxx</literal> xxxxxxx xx xxxxxx xxx xxxx xxx xxxxxx <literal moreinfo="none">[xxxxxx]</literal> xxx xxx xxxxx xxxxx xxx xxx xxxxxxxx xx xxx xxxxxx. Axxx, xxxx xxx/xxxxx xxxx xx xxxxxxx xx x xxxxxxxx xxxx. Tx xxxxx xxxx xxxx xxx xxxxxxx, xxx xxx xxxx xxxxxxxxxx xxxxxxx xxxxx xx xxx xxx xx xxx xxxxxxx xxxx, xxxxxxxxx xx xxxxxx.</para> - </refsect1> - <refsect1 id="ch16-2-fm2xml"> - <title>xx_xxxxx_xxxxxxxx Oxxxxxx - - - - --xxxxxx-xxxx=xxxxxxxx, --xxxxxxxx-xxxx=xxxxxxxx, -x xxxxxxxx - - - Ixxxxxxx xxx xxxxxxx xx xxxx xxxx xxx xxxxx xxxxxxxxxxxxx xx xxxxxxx xxxx (x.x., xx.xxx xx xx.xxx). - - - - - --xxxxx[=xxxxxxx], -# [xxxxxxx] - - - Lxxx xxxxxxxxx xxxxxxxxxxx. Txx xxx xx xxxxxxx xxxx xx xxxxxxx xx 'x:x:x,xxxxxxx'. Sxx xx xxx xxx xx xxx xxxx xx xxxxxxx xxxxx xxx xxxxxxxxx xxxxxxx xxx xx xxxxxxxxxxx xx xxxxx xxxxx xxx xxxxxx xxxx xxx xx xxxx. - - - - - --xxxxxxxx-xxxxx-xxxx=xxxxxxxx, --xxxxx-xxxx=xxxxxxxx, -x xxxxxxxx - - - Ixxxxxxx xxx xxxxxxx xx xxxx xxxx xxx xxxxx xxxxxxxxxxxxx xx xxxxxxx xxxx xx xxxxxxxx xx xxx xxxxxxx xxxxxxx xxxx (x.x., xx.xxx xx xx.xxx). - - - - - --xxxxxxxx-xxxxx-xxxxxx=xxxxxx, -x xxxxxx - - - Ixxxxxxxx xxx xxxxxxx xx xxxx xxx xxxxxxx xxx xxx xxxxxx xxxx xxx xxxxx xxxxxx (x.x., _xxxxxxx). - - - - - --xxxx, -? - - - Dxxxxxxx xxxxx xxxx xxxxxxxxxxx. - - - - - --xx-xxxxxxxx, -x - - - Ixxxxxxxx xxxx xx xxxxxxx xxxx xxxxxx xx xxxx. - - - - - --xxxxxxx, -x - - - Dxxxxxxx xxxx xxxxxxxxxxx xxxx xxx xxxxxxx. - - - - - --xxxxxxx, -V - - - Rxxxxxx xxx xxxxxxx xx xxx xxxxxxx. - - - - - - - - xxxxxx_xxxxxx - - - xxxxxx_xxxxxx - - - - xxxxxx_xxxxxx xxxxxxx xxxxx xxxxx_xxx - - - - <para>Txxx xxxxxxx xxxxxxxx xxxxxxxxxxx xxxxxxx xx FULLTEXT xxxxxxx xx MxISAM xxxxxx. Ix xxxx xx xxx xxxx xxx xxxxxx. Fxx xxx xxxxx xxxx, xxx xxx xxxx xxxxxx xxx xxxx xx xxx xxxxx xx xxx xxxx xx xxx xxxxx’x xxxxx xxxx xxxx xxx xxxx (x.x., <filename moreinfo="none">/xxxx/xxxxx/xxxxxxx.MYI</filename>). Txx xxxxx xxxxxxxx xxx xxxx xxxxxxx xx xxx xxxxx xxxxxx. Tx xxxxxxxxx xxx xxxxx xxxxxx, xxxxxxx <literal moreinfo="none">SHOW INDEX FROM <replaceable>xxxxx</replaceable>;</literal> xxx xxx xxxxx xxx xxxx xx xxxxxxx. Ix xxx xxxxxxx, xxx <literal moreinfo="none">Nxx_xxxxxx</literal> xxxxx xxxx xxxxxxx xxx xxxxx xxxxxxx.</para> - <programlisting format="linespecific">xxxxxx_xxxxxx --xxxxx /xxxx/xxxxx/xxxxxxx_xxxx/xxxxxxxx.MYI d - -Txxxx xxxx: dd -Txxxx xxxxx: ddddd -Uxxxxx xxxxx: dddd -Lxxxxxx xxxx: dd xxxxx (xxxxx_xxx_xxx_xxxxxxxx_xxxxxxxxxx) -Mxxxxx xxxxxx: d -Axxxxxx xxxxxx xxxxxx: d.dddddd -Mxxx xxxxxx xxxx: dd xxxxx, xxxxxx: -d.dddddd (xxxx)</programlisting> - </refsect1> - <refsect1 id="ch16-3-fm2xml"> - <title>xxxxxx_xxxxxx Oxxxxxx - - - - --xxxxx, -x - - - Txxx xxxxxx xxxx xxxxxxx x xxxx xx xxx xxxxx xxxxx xx xxx xxxxxxxxx xxxxx xx xxx xxxxx xxxxx xxxx x xxxxx xx xxx xxxxxx xx xxxxxxxxxx xx xxxx xxxx, xxxxx xxxx xx’x xxxxxxxxx xx xxx xxxxx. - - - - - --xxxx, -x - - - Uxxx xx xxxx xxx xxxxx, xxxx xxxxxxxxx, xxx xxxx xxxxxxx. - - - - - --xxxxxx, -x - - - Txxx xxxxxx xxxxxxx xxx xxxxxxxxxxxx xxxxxx. - - - - - --xxxxx, -x - - - Wxxx xxxx xxxxxx xxx xxx xxx xxxx xxxxxxxxxxx xxxxxxxxxxx xx xxx xxxxx. Ix xx xxxxxxx xxx xxxxx xxxx xxx xxxxxxx, xxxx xxxxxx xx xxxxxxx. - - - - - --xxxx, -x, -? - - - Dxxxxxxx xxxxx xxxx xxxxxxxxxxx. - - - - - --xxxxxxx, -x - - - Txxx xxxxxx xx xxxxx xx xxxxxxx xxxx xxxxxxxxxxx, xxx xxxxx xx xxxx xx xxxxxx xx xxx xxxxxxx xx xxxx xxxx. - - - - - - - - xxxxxxxxx - - - xxxxxxxxx - - - - xxxxxxxxx xxxxxxx xxxxx[.MYI][...] - - - - <para><indexterm class="startofrange" id="ch16-idx-986897-1" significance="normal"><primary>xxxxxxxxx xxxxxxx</primary></indexterm> -Txxx xxxxxxx xxxxxx, xxxxxxx, xxx xxxxxxxxx MxISAM xxxxxx. Txxx xxxxxxx xxxxx xxxx xxx xxxxx xxxxx xxxxxxxx xxx xxxx xxx xxxxxxx xxxxxxxxxxx xxxx xxx MxSQL xxxxxx. Txxxxxxxx, xx xxx xx xxxxxxxxx xx xxxxxxx xxx xxxx xxxxx xxxx xxx xxxxx xx xxxxx xxxxx xx xxx xxxxxx xxxxxxxx. Axxx, xxxxxx xxxx xxx xxxxx xxxxxxx xxxxxx xx xxxxxx xx xxx MxSQL xxxxxx xxxxxx xxxxxx xx xxxxxxx. Txxx xxxxxxx xxxxx xxxx xxx xxxxx xxxxx xxx xxx xxxxxx, xx xxx xxxxxx <filename moreinfo="none">.MYI</filename> xxx xx xxxxx xxx xxxxx xxxxx xx xxxxxxx xx xxxx xxxxxxxxxx xx xxxxxxx xxxxx xxxxx. Oxxxxxxx xxx xxxxxx (x.x., <filename moreinfo="none">xxxx_xxx</filename> xxxxxxx xx <filename moreinfo="none">xxxx_xxx.*</filename>) xxxx xxxx xxx xxxx xxxxxx xx xxxxxx x xxxxxxxx xxxxxx (<filename moreinfo="none">xxxx_xxx.MYI</filename>). Tx xxxxx xxx xx xxx xxxxxx xx x xxxxxxxx, xxx xxx xxxxxxxx (x.x., <filename moreinfo="none">*.MYI</filename>). Hxxx xx x xxxxx xxxxxxx xx xxx xxx xxx xxx <literal moreinfo="none">xxxxxxxxx</literal> xx xxxxx xxx xxxxx:</para> - <programlisting format="linespecific">xxxxxxxxx /xxxx/xxxxx/xxxxxxxxxxxx/xxxxxxxx -Cxxxxxxx MxISAM xxxx: /xxxx/xxxxx/xxxxxxxxxxxx/xxxxxxxx -Dxxx xxxxxxx: ddd Dxxxxxx xxxxxx: d -xxxxxxxxx: xxxxxxx: d xxxxxxx xx xxxxx xx xxxx'x xxxxxx xxx xxxxx xxxxxxxx -- xxxxx xxxx-xxxx -- xxxxx xxx xxxxxx-xxxxx -- xxxxx xxxxxx xxxxxx-xxxxx -- xxxxx xxxxx xxxxxxxxx -- xxxxx xxxx xxxxxx xxxxxxxxxx xxxxx: d -- xxxxx xxxxxx xxxxx -MxISAM-xxxxx '/xxxx/xxxxx/xxxxxxxxxxxx/xxxxxxxx' xx xxxxxx xxx xxxxxx xx xxxxx</programlisting> - <para><indexterm id="mysqlian-CHP-16-ITERM-3738" significance="normal"><primary sortas="recover option (myisamchk)">--xxxxxxx xxxxxx (xxxxxxxxx)</primary></indexterm><indexterm id="mysqlian-CHP-16-ITERM-3739" significance="normal"><primary sortas="check option">--xxxxx xxxxxx</primary><secondary sortas=" myisamchk utility">xxxxxxxxx xxxxxxx</secondary></indexterm> -Nx xxxxxxx xxx xxxxxxxxx xxxx, xx xxx xxxxxxx xx <literal moreinfo="none">--xxxxx</literal> xx xxxx. Nxxxxx xxxx <literal moreinfo="none">xxxxxxxxx</literal> xxxxxxxx x xxxxxxx xxxx xxx xxxxx. Tx xxx xxxx xxxxxxx, xxx xxx xxx xxx xxxxxxx xxxxx, xxx xxxx xxx <literal moreinfo="none">--xxxxxxx</literal> xxxxxx xxxx xx: -</para> - <programlisting format="linespecific">xxxxxxxxx --xxxxxxx /xxxx/xxxxx/xxxxxxxxxxxx/xxxxxxxx -- xxxxxxxxxx (xxxx xxxx) MxISAM-xxxxx - '/xxxx/xxxxx/xxxxxxxxxxxx/xxxxxxxx' -Dxxx xxxxxxx: ddd -- Fxxxxx xxxxx d</programlisting> - <para>Txx xxxxxxxxx xxxxxxxx xxxx xx xxx xxxxxxx xxxxxxxxx xxxx <literal moreinfo="none">xxxxxxxxx</literal>.</para> - </refsect1> - <refsect1 id="ch16-4-fm2xml"> - <title>xxxxxxxxx Cxxxx xxxxxxx - - - - --xxxxx, -x - - - Cxxxxx xxxxxx xxx xxxxxx. ---xxxxx xxxxxxxxxxxxxxx xxxxxxx - - - - - --xxxxx-xxxx-xxxxxxx, -C - - - Cxxxxx xxxx xxxxxx xxxx xxxx xxxxxxx xxxxx xxx xxxx xxxxx.--xxxxx-xxxx-xxxxxxx xxxxxxxxxxxxxxx xxxxxxx - - - - - --xxxxxx-xxxxx, -x - - - Cxxxxx xxxxxx xxxxxxxxxx. Uxx xxxx xxxxxx xxxx xx xxxxxxx xxxxx.--xxxxxx-xxxxx xxxxxx (xxxxxxxxx) - - - - - - --xxxx, -F - - - Uxx xxxx xxxxxx xx xxxx xxx xxxxxxx xxxxx xxxx xxxxxx xxxx xxxxx’x xxxx xxxxxx xxxxxxxx.--xxxx xxxxxxxxxxxxxxx xxxxxxx - - - - - - --xxxxx, -x - - - -Rxxxxxx xxxxxx xxxx xxxxxx xxxxxx xxxxxx xxxxx xxxx. Ix xxxxxxxx xxx xxxxxxx xxxx xxx --xxxxxxx xxxxxx xx xxx xxxxxx xxxxx. ---xxxxx xxxxxxxxxxxxxxx xxxxxxx ---xxxxxxx xxxxxx (xxxxxxxxx) - - - - - - --xxxxxxxxxxx, -x - - - Dxxxxxxx xxxxxxxxxxx xxxxxxxxxxx xxxxx xxxxxx xxxxx xxxxxxx.--xxxxxxxxxxx xxxxxx (xxxxxxxxx) - - - - - - --xxxxxx-xxxxx, -x - - - -Cxxxxx xxxxxx xxxx xxxxxxxxxx xxxx --xxxxx, xxx xxx xx xxxxxxxxxx xx --xxxxxx-xxxxx. ---xxxxxx-xxxxx xxxxxx (xxxxxxxxx) ---xxxxx xxxxxxxxxxxxxxx xxxxxxx ---xxxxxx-xxxxx xxxxxxxxxxxxxxx xxxxxxx - - - - - - --xxxx-xxxx, -T - - - Txxxx xxx xxxxxxx xxx xx xxxx xxxxxx xxxx xxxxxx xxxxxxxxxxx xx xxxx xxxxxx xxx xx xxxx xx xxx xxxxxxx xxxxxx xxx xxxxx. Txxxxx xxx xxx xxxxxx xx xxxxxxx xxxx xxxxx xxxx xxxxxx.--xxxx-xxxx xxxxxx (xxxxxxxxx) - - - - - - --xxxxxx-xxxxx, -U - - - Hxx xxx xxxxxxx xxxxxx xxxxxx xx xxxxxxxx xxxx xxxx xxxx xxxxxxx xxx xxxx xxxx xx xxxxxxx xx xxx xxxxxx xxx xxxxx.--xxxxxx-xxxxx xxxxxx (xxxxxxxxx) - - - - - - - xxxxxxxxx Rxxxxx xxxxxxx - - - - --xxxxxx, -B - - - Mxxxx xxxxxx xx xxxxxxxxx (xxxxx.MYD), xxxxxx xxxx xxxxx-xxxxxxxx.BAK.--xxxxxx xxxxxxxxxxxxxxx xxxxxxx - - - - - - --xxxxxxxxx-xxxx-xxx= - xxxx - - - Sxxx xxx xxxxxxxxx xxxxx xxxxxxxxx xxxx xxx xxxxxxx.--xxxxxxxxx-xxxx-xxx xxxxxxxxxxxxxxx xxxxxxx - - - - - - --xxxxxxx-xxxxxxxx - - - Cxxxxxxx x xxxxx’x xxxxxxxx xxxxxxxxxxx.--xxxxxxx-xxxxxxxx xxxxxx (xxxxxxxxx) - - - - - - --xxxx-xxxx-xxxxxx= - xxxxxx - , -D - xxxxxx - - - Sxxx xxx xxxxxxx xxxxxx xx x xxxxxxxx xxx xxxxxxxxxx x xxxx xxxxxxxx.--xxxx-xxxx-xxxxxx xxxxxx (xxxxxxxxx) - - - - - - --xxxxxx-xxxxx, -x - - - Ixxxxxxxx xxx xxxxxxx xx xxxxxxx xx xxxxxxx xxx xxxx, xxxxxxxxx xxxxxxxxxxxxx xxxxxxx xxxx.--xxxxxx-xxxxx xxxxxx (xxxxxxxxx) - - - - - - --xxxxx, -x - - - Ixxxxxxxx xxx xxxxxxx xx xxxxxx xxxxx xxxxxxxx xxx xx xxxxxxxxx xxxxxxxxx xxxxx.--xxxxx xxxxxxxxxxxxxxx xxxxxxx - - - - - - --xxxx-xxxx= - xxxxxxxx - , -x - xxxxxxxx - - - Ixxxxxxxx xxx xxxxxxx xx xxxx MxISAM xxxxxxx xxx xxxx xxxxxxxx xxxx xxx xxxxxx xxxx xxxxxxx.--xxxx-xxxx xxxxxx (xxxxxxxxx) - - - - - - --xxx-xxxxxx-xxxxxx= - xxxxxx - - - Txxxx xxx xxxxxxx xx xxxx xxxx xxxxxx xxxx xxx xxxxxx xxxxxxxxx xx xxxxx xx xxx xxxxxx xxxxxx.--xxx-xxxxxx-xxxxxx xxxxxx (xxxxxxxxx) - - - - - - --xx-xxxxxxxx, -x - - - Ixxxxxxxx xxx xxxxxxx xxx xx xxxxxx xxxxxxxx xxxxx xx xxx xxxxxxxxxx xxxxx. - - - - - --xxxxxxxx-xxxxxxx, -x - - - -Txxx xxxxxx xx xxx xxxx xx xxx --xxxxxxx xxxxxx, xxx xxxxxxx xxx xxxx xx xxxxxxxx xxxxx xxxxxxxxx xxxxxxx.--xxxxxxxx-xxxxxxx xxxxxx (xxxxxxxxx)--xxxxxxx xxxxxx (xxxxxxxxx) - - - - - - --xxxxx, -x - - - Rxxxxxx xxxx xxxxxxx, xxx xxxxxxxxx, xx xxxxxxxxxxx xxxxxx.--xxxxx xxxxxxxxxxxxxxx xxxxxxx - - - - - - -xx - - - Rxxxxxx xxxx xxxxxxx xxx xxxxxxx xxxxxxxxx xxxx xxxx xxxxxxxxxx xxx xxxxx.-xx xxxxxx (xxxxxxxxx) - - - - - - --xxxxxxx, -x - - - Uxx xxxx xxxxxx xx xxxxxxx x xxxxx xxxx xxx xxxx xxxxxxxxx. Yxx xxxxx xxxx xxx xxxxxxxxxx xxx xxxxxxxx xxxx_xxxxxx_xxxx xxxx xxxx xxxxxx. Ix xxxx xxxxxx xxxx xxx xxxx, xxx --xxxx-xxxxxxx. - - - - - --xxxx-xxxxxxx, -x - - - --xxxx-xxxxxxx xxxxxx (xxxxxxxxx) -Uxx xxxx xxxxxx xx --xxxxxxx xxxxx. Ix xxxx xxxxxxx xxxx xxxx xxx --xxxx-xxxxxxx xxxxxx xxxxxx xxxxxx (x.x., xxxxxxxxx xxxxxx xxx xxxxxx xxxx).--xxxx-xxxxxxx xxxxxx (xxxxxxxxx) - - - - - - --xxx-xxxxxxxxx-xxx= - xxx - - - Sxxxxxxxx xxx xxxxxxxxx xxx xx xxx.--xxx-xxxxxxxxx-xxx xxxxxx (xxxxxxxxx) - - - - - - --xxx-xxxxxxxxx= - xxx - - - Sxxxxxxxx xxx xxxxxxxxx xx xxx xxxx xxx xxxxxxx xxxx xxxxxxx xxxxx xxxxxxx. Exxxxxxxx SHOW COLLATION; xx xxx xxxxxx xx xxxxxxxx x xxxx xx xxxxxxxxxx xxxx xxx xx xxxx xxxx xxxx xxxxxx. - - - - - --xxxx-xxxxxxx, -x - - - Ixxxxxxxx xxx xxxxxxx xx xxx xxx xxxx xxxxxx xxxxxxxxxx xx xxxxxxx xxx xxxxxxxxx xxxx xxxxx xx xxx xxxxx xxxxx xx xxxxxxx xxxxxx.--xxxx-xxxxxxx xxxxxx (xxxxxxxxx) - - - - - - --xxxxxx=xxxx, -x xxxx - - - Sxxxxxxxx xxx xxxxxxxxx xxxx xx xxx xxxxxxx xxx xxxxxxxxx xxxxx. Mxxxxxxx xxxxxxxxxxx xxx xx xxxxx xx x xxxxx-xxxxxxxxx xxxx xx Uxxx xxxxxxx xxx x xxxx-xxxxx-xxxxxxxxx xxxx xx Wxxxxxx xxxxxxx. Bx xxxxxxx xxx xxxxxxx xxxx xxx xxxxx xxx xxx xxxxxxxxxxxxx xxxxxxxx TMPDIR. - - - - - --xxxxxx, -x - - - Uxxxxxx xxxxxx xxxx xxxx xxxxxx xxxx xxx xxxxxxxxxx xxxxxxx.--xxxxxx xxxxxx (xxxxxxxxx) - - - - - - - Oxxxx xxxxxxxxx xxxxxxx - - - - --xxxxxxx, -x - - - -Oxxxxxxxx xxx xxx xx xxxx xx xxxxxx. Txxx xxxxxx xxx xxxx xxxx xxxx xxxxx. Uxx xxx --xxxxxxxxxxx xxx xxx --xxxxxxx xxxxxxx xx xxxx xxx xxxxxxxxxx xxxxxxxxxxxx.--xxxxxxx xxxxxxxxxxxxxxx xxxxxxx ---xxxxxxxxxxx xxxxxx (xxxxxxxxx) ---xxxxxxxxxxxxxxxxxxxxxx -xxxxxxx - - - - - - --xxxxx-xxxxxx= - xxxxxx - , -x - xxxxxx - - - Sxxxxxxx xxx x xxx xxxxx xx x xxxxx xxxxxx.--xxxxx-xxxxxx xxxxxx (xxxxxxxxx) - - - - - - --xxxxxxxxxxx, -x - - - Dxxxxxxx xxxxxxxxxxx xxxxx xxx xxxxx.--xxxxxxxxxxx xxxxxx (xxxxxxxxx) - - - - - - --xxx-xxxx-xxxxxxxxx[= - xxxxx - ], -A [ - xxxxx - ] - - - Sxxx xxx xxxxx xx xx xxxx-xxxxxxxxx xxxxxx xxx xxx xxxx xxx xxxxxxx. Ix xx xxxxx xx xxxxx, xxx xxxx xxxxx xxxxx xxx xxxxxxx xxxxx xxxxx xxx xxxxxx xx xxxx.--xxx-xxxx-xxxxxxxxx xxxxxx (xxxxxxxxx) - - - - - - --xxxx-xxxxx, -S - - - Sxxxx xxxxxxx.--xxxx-xxxxx xxxxxx (xxxxxxxxx) - - - - - - --xxxx-xxxxxxx= - xxxxx - , -R - xxxxx - - - Sxxxx xxxx xxxxx xx xxx xxxxx xxxxx.--xxxx-xxxxxxx xxxxxx (xxxxxxxxx) - - - - - - - Gxxxxx xxxxxxxxx xxxxxxx - - - - --xxxxx[=xxxxxxx], -# [xxxxxxx] - - - Lxxx xxxxxxxxx xxxxxxxxxxx. Txx xxx xx xxxxxxx xxxx xx xxxxxxx xx 'x:x:x,xxxxxxx'. Sxx xx xxx xxx xx xxx xxxx xx xxxxxxx xxxxx xxx xxxxxxxxx xxxxxxx xxx xx xxxxxxxxxxx xx xxxxx xxxxx xxx xxxxxx xxxx xxx xx xxxx.--xxxxx xxxxxxxxxxxxxxx xxxxxxx - - - - - - --xxxxxxxxx-xxxx-xxx= - xxxx - - - Sxxxxxxxx xxx xxxxxxxxx xxxxxxxxxx xxxxxxxxx xxxx.--xxxxxxxxx-xxxx-xxx xxxxxxxxxxxxxxx xxxxxxx - - - - - - --xxxx, -? - - - Dxxxxxxx xxxxx xxxx xxxxxxxxxxx.--xxxx xxxxxxxxxxxxxxx xxxxxxx - - - - - - --xxxxxx, -x - - - Dxxxxxxx xxxx xxxxx xxxxx xxxxxxxx. Wxxx -xx xxxx xxxx xxxxxxxxxxx xxxx xx xxxxxxxxx.--xxxxxx xxxxxxxxxxxxxxx xxxxxxx - - - - - - --xxxx-xxxxx, -S - - - Sxxxx xxxxxxx.--xxxx-xxxxx xxxxxx (xxxxxxxxx) - - - - - - --xxxx-xxxxxxx= - xxxxx - , -R - xxxxx - - - Sxxxx xxxxxxx xxxxx xx xxx xxxxx xxxxx.--xxxx-xxxxxxx xxxxxx (xxxxxxxxx) - - - - - - --xxxxxx= - xxxx - , -x - xxxx - - - Sxxx xxx xxxx xxx xxxxxxxxx xxxxx. Axxxxxxxxx xxxxx xxx xx xxxxx xx x xxxxx-xxxxxxxxx xxxx.--xxxxxx xxxxxxxxxxxxxxx xxxxxxx - - - - - - --xxxxxxx, -x - - - -xx xxxxxxxxxxxxxxx xxxxxxx -Dxxxxxxx xxxx xxxxxxxxxxx. Axxxxxxxxx xx (x.x., -xx) xxxx xxxxxxx xxxx xxxxxxxxxxx.--xxxxxxx xxxxxxxxxxxxxxx xxxxxxx - - - - - - --xxxxxxx, -V - - - Dxxxxxxx xxx xxxxxxx xx xxx xxxxxxx.--xxxxxxx xxxxxxxxxxxxxxx xxxxxxx - - - - - - --xxxx, -x - - - Ixxxxxxxx xxx xxxxxxx xx xxxx xxxxxx xxxxxxxxxx xx xxx xxxxx xx xxxxxx.--xxxx xxxxxxxxxxxxxxx xxxxxxx - - - - - - - - - xxxxxxxxx - - - xxxxxxxxx - - - - xxxxxxxxx xxxxxxx [xxxxxxxx [xxxxx . . . ]] - - - - <para><indexterm id="ch16-idx-missedid-58" significance="normal"><primary>xxxxxxxxx xxxxxxx</primary></indexterm> -Txxx xxxxxxx xxxxx xxx xxxxxxxx xxxxxxxxxxx xxxx xxx <filename moreinfo="none">xxxxxx.xxx</filename> xxxx, xxxxx xxxx xxxxxxxxx xxxxxxxx xxx xxx MxISAM xxxxx xxxxxxx. Txx xxxx xx xxx xxxxxxx xxx xx xxxxx. Axxx, xxx xxxxxxx xxx xxxx xxxxxxxx xxxxxx xx xxxxx xxxxxxxx xx xxxxx xxxxxx. Tx xxxxxxxx xxx xxx, xxx xxx xxxxxxxxx xxxx xx xxx MxSQL xxxxxx xxxxxxxxxxxxx xxxx (x.x., <filename moreinfo="none">xx.xxx</filename>) xxxxx xxx <literal moreinfo="none">[xxxxxx]</literal> xxxxxxx xx xxx <literal moreinfo="none">[xxxxxx]</literal> xxxxxxx:</para> - <programlisting format="linespecific">xxx-xxxx=/xxxx/xxxxx/xxxx/xxxxxx.xxx</programlisting> - </refsect1> - <refsect1 id="ch16-8-fm2xml"> - <title>xxxxxxxxx Oxxxxxx - Txxx xxxxxxx xxx xxxxxxx xxxxxxx xxx xxxxxxxxxx xxxx xxxx xxx xxx: - - - - -?, -I - - - Dxxxxxxx xxxxx xxxx xxxxxxxxxxx. - - - - - -x - xxxxxx - - - Lxxxxx xxx xxxxxx xx xxxxxx xxxxxxxx. - - - - - -D - - - Uxx xxxx xxxx x xxxxxx xxxx xxx xxxxxxxx xxxx xxxxxxxxx xx xxxxxx. - - - - - -F - xxxx - - - Pxxxxxxx xxx xxxx xxxx xx xxx. Txx xxxx xxxxxx xxx xxxx x xxxxxxxx xxxxx. - - - - - -x - xxxxx - - - Sxxx xxx xxxxxxx xxxxxx xx xxxx xxxxx xxxxxxx. - - - - - -x - - - Dxxxxxxx xxxxxxxxxx xxxxxxxxxxx. - - - - - -x - xxxxxx - - - Sxxxxxxxx xxxxx xx xxx xxx xx xxxxx xxx xxxx. - - - - - -P - - - Dxxxxxxx xxxxxxxxxxx xxxxx xxxxxxxxx. - - - - - -x - xxxxxx - - - Rxxxxxx xxx xxxxx xxxxxx xx xxxxxxxxxx xxxx xxx xxxxx xx xxx xxxx. - - - - - -R - - - Dxxxxxxx xxx xxxxxxx xxxxxx xxxxxxxx. - - - - - -x - - - Dxxxxxxx xxxxxxxx xxxxxxxxxx. - - - - - -x - - - Dxxxxxxx xxxxxx xxxxxxxxxx. - - - - - -V - - - Dxxxxxxx xxx xxxxxxx xx xxx xxxxxxx. - - - - - -x - - - Dxxxxxxx xxxx xxxxxxxxxxx. Axxxxxxxxx xx (x.x., -xx) xxxx xxxxxxxx xxx xxxxxx xx xxxxxxxxxxx. - - - - - -x - - - Dxxxxxxx xxxx xxxxx xxxxxxxxxx. - - - - - - - - xxxxxxxxxx - - - xxxxxxxxxx - - - - xxxxxxxxxx xxxxxxx /xxxx/xxxxx[.MYI] - - - - <para><indexterm id="ch16-idx-missedid-59" significance="normal"><primary>xxxxxxxxxx xxxxxxx</primary></indexterm> -Txxx xxxxxxx xxxxxxx xxxxxxxxxx, xxxx-xxxx xxxxxx xx xxxxx xx xxxxxx xxxxx xxxxx xxx xx xxxxxxxx xxxxxxxxx xxxxx. Fxx xxx xxxxx, xxxx xxx xxxx xxx xxxxx xxxx. Oxxxxxxxxx, xxx xxx xxxxxxx xxx <literal moreinfo="none">.MYI</literal> xxxx xxxxxxxxx xxxx xxx xxxxx xxxx. Wxxx xxxxxxx xxxxxxxxxx xxxxxx, MxSQL xxxxxxxxxxxx xxx xxxx xx xxxxxx. Tx xxxxxxxxxx xxxxxx xxxxxx xxxx <literal moreinfo="none">xxxxxxxxxx</literal>, xxx <literal moreinfo="none">xxxxxxxxx</literal> xxxx xxx <literal moreinfo="none">--xxxxxx</literal> xxxxxx.</para> - <para>Txxxxx xxxx xxx xxxxxxxxxx xxx xxxxx xxxxxxxxxxxx xxxxxx xx xxxxxxxxx xxxxx <literal moreinfo="none">xxxxxxxxx</literal>.</para> - <para>A xxxxxx xxx xx xxxx xxxxxxx xx:</para> - <programlisting format="linespecific">xxxxxxxxx --xxxxxxx /xxxx/xxxxx/xxxxxxx/xxxxxxx.MYI</programlisting> - </refsect1> - <refsect1 id="ch16-9-fm2xml"> - <title>xxxxxxxxxx Oxxxxxx - - - - --xxxxxx, -x - - - Hxx xxx xxxxxxx xxxxxx x xxxxxx xx xxx xxxxx xxxxx (xxxxx.OLD).--xxxxxx xxxxxxxxxxxxxxxx xxxxxxx - - - - - - --xxxxxxxxx-xxxx-xxx=xxxxxxxx - - - Sxxxxxxxx xxx xxxxxxxxx xxxxxxxxxx xxx xxxxxxxxx xxxx xxx xxxxxxx xxxxxx xxx xxx xxxxxxx xxxx. - - - - - --xxxxx[=xxxxxxx], -# [xxxxxxx] - - - Lxxx xxxxxxxxx xxxxxxxxxxx. Txx xxx xx xxxxxxx xxxx xx xxxxxxx xx 'x:x:x,xxxxxxx'. Sxx xx xxx xxx xx xxx xxxx xx xxxxxxx xxxxx xxx xxxxxxxxx xxxxxxx xxx xx xxxxxxxxxxx xx xxxxx xxxxx xxx xxxxxx xxxx xxx xx xxxx.--xxxxx xxxxxxxxxxxxxxxx xxxxxxx - - - - - - --xxxxx, -x - - - Fxxxxx x xxxxxxxxxx xxxxx xx xx xxxxxxx xxxx xx xxx xxxxxxx xxx xxxxxx xxxx xxx xxxxxxxx, xxx xx xxxxxxxxx x xxxxxxxxx xxxxx (xxxxx.TMD) xx xx xxxxxx.--xxxxx xxxxxxxxxxxxxxxx xxxxxxx - - - - - - --xxxx, -? - - - Dxxxxxxx xxxxx xxxx xxxxxxxxxxx.--xxxx xxxxxxxxxxxxxxxx xxxxxxx - - - - - - --xxxx= - xxxxx - , -x - xxxxx - - - -Ixxxxxxxx xxx xxxxxxx xx xxxx xxx xxxxxx xxxxx xxxx xxx xxxxxxxxxx xxxxx. Txx xxxxx xxxxxxxxxx xxxx xx xxxxxxxxx.--xxxx xxxxxx (xxxxxxxxxx) -xxxxx - - - - - - --xxxxxxxxxx= - xxxxx - , -x - xxxxx - - - Sxxx xxx xxxx xx xxx xxxxxxxx xxx xxxxxxx xx xxx xxxxxx xx xxxxx xxxxx (d, d, xx d).--xxxxxxxxxx xxxxxx (xxxxxxxxxx) - - - - - - --xxxxxx, -x - - - Sxxxxxxxxx xxx xxxxxxxxxxx xxxxxx xxxxx xxxxxxxx.--xxxxxx xxxxxxxxxxxxxxxx xxxxxxx - - - - - - --xxx_xxx= - xxxx - , -T - xxxx - - - Sxxxxxxxx xxx xxxxxxxxx xx xxxxx xx xxxxx xxxxxxxxx xxxxxx.--xxxx_xxx xxxxxx (xxxxxxxxxx) - - - - - - --xxxx, -x - - - Hxx xxx xxxxxxx xxxx xxx xxxxxxxxxxx xxxxxxx xxxxxxx xxxxxxxx xxxxxxxxxxx xxx xxxxx.--xxxx xxxxxx (xxxxxxxxxx) - - - - - - --xxxxxxx, -x - - - Dxxxxxxx xxxxxxxxxxx xxxxx xxx xxxxxxxxxxx xxxxxxx.--xxxxxxx xxxxxxxxxxxxxxxx xxxxxxx - - - - - - --xxxxxxx, -V - - - Dxxxxxxx xxx xxxxxxx xx xxx xxxxxxx.--xxxxxxx xxxxxxxxxxxxxxxx xxxxxxx - - - - - - --xxxx, -x - - - Ixxxxxxxx xxx xxxxxxx xx xxxx xxxxxx xxxxxxxxxxx xx xxx xxxxx xx xxxxxx xx xxxxxxx xxxxxx xx xxxxxxx.--xxxx xxxxxxxxxxxxxxxx xxxxxxx - - - - - - - - - xxxxxxxxxxx - - - xxxxxxxxxxx - - - - xxxxxxxxxxx [xxxx [xxxx [xxxxxxxx]]] [xxxxxxx] - - - - <para><indexterm class="startofrange" id="ch16-idx-986905-1" significance="normal"><primary>xxxxxxxxxxx xxxxxxx</primary></indexterm> -Txxx xxxxxxx xxxxx xxx xxxxxxxxxx xxxx x xxxx xxx xxx x xxxxxxxx xxxx xxx xxxxxxxx. Oxx xxx xx xx xxx xx xx x xxxxxxxxxxx xxxx xx xxxxx xxx xxxx xxxxxxxxxxx xxxxxx xxxxxxxxxx xxxx x xxxxxxxxxx xxxxxxx xxxx xxxx xxx xx xxx APIx.</para> - <para>Ix MxSQL xxx xxx xxxxxxxxx xx xxx xxxxxxx xxxxxxxx xxx xxx xxxxxxx xxx’xx xxxxx, xxx’xx xxxx xx xxx xxx xxxxxxxx <literal moreinfo="none">MYSQL</literal> xx xxx <literal moreinfo="none">xxxxxxxxxxx</literal> xxxxxx. Cxxxxx xx xxxx x xxxxx xxxx xxxxxx. Lxxx xxx xxx xxxxxxxxx xxxx (xxxx xxx xxxxxxxxx) xxx xxxxxx xxx xxxx xxxx xx xxxxx xxx <literal moreinfo="none">xxxxx</literal> xxxxxx xx xxxxxxx:</para> - <programlisting format="linespecific"> $MYSQL = '/xxx/xxxxx/xxxxx/xxx/xxxxx'; # xxxx xx xxxxx xxxxxxxxxx</programlisting> - <para>Wxxx xxxxxx xx xxx xxxxxx, xxx xxxxxxxx xx xxx xxxxx xxxxxxxx xxx xx xxxxxxxx. Ix xxx xxxxx, <emphasis>xxxxxxxxx</emphasis> xx xxxxxxx. Txx xxxxxxxx xxxxx xx xxx xxxxxx xxxxxxxx xx xxx xxxx xx xxx xxxx xxx xxxxx xxx xxxxxxx xx xxxxxxxx xxxxxxxxxx. Txx xxxxx xxxxxxxx xx xxx xxxxxxxx xx xxxxx xxxxxxxxxx xxxxxxx. Txx xxxxxx xxxxxxxx xxxxxxxx xxxxxxx xxxxxxxx xxxxxxx, xxx xx xxxxx xxxxx xx xxx xxxxxxxx xx xxxxx xxx xxxxxxx xxxx xxxxxx xxx xxxxxx xx xxxxxx xxxxxxxxxxx xx xxx xxxx xxxxx xx xxx xxxxxx xxxxxxxx. Hxxx xx xx xxxxxxx xx xxx xxx xxxxx xxx xxxx xxxxxxx:</para> - <programlisting format="linespecific">xxxxxxxxxxx xxxxxxxxx xxxxx xxxxxxxxxxxx -U xxxxxxx -P</programlisting> - <para>Ix xxxx xxxxxxx, xxx xxxxxxx xx xxxxx xxx xxxxxxxx, xxxx xxx xxxx xxx xxxxx I’x xxxxxxxxx xxxxx, xxxx xxx xxxxxxxx xxxx xxx xxxxx I xxxx xxxx xxxxxxxxx xxxxxxxxxxx. Txx <literal moreinfo="none">-U</literal> xxxxxx xx xxxx xx xxxxxxx xxx xxxxxxxx xxxx xxxxx xx xxxxxx xxx xxxxxx xx xxxxxx xxxxxxxxxxx. Txxx xxxx xxx xxxx xxxxxx xx xxx <emphasis>xxxxx</emphasis> xxxxxxxx. Txx -P xxxxxxxxx xxx xxxxxxx xx xxxxxx xx xxx x xxxxxxxx. Txx xxxxxxx xx xxx xxxxxxxxx xxxxxxx xx xxxxx xxxx:</para> - <programlisting format="linespecific">Axxxxx-xxxxxx -xxx USER 'xxxxx', xxxx HOST 'xxxxxxxxx', xx DB 'ANY_NEW_DB' - +-----------------+---+ +-----------------+---+ - | Sxxxxx_xxxx | Y | | Sxxxxxxx_xxxx | N | - | Ixxxxx_xxxx | N | | Pxxxxxx_xxxx | N | - | Uxxxxx_xxxx | N | | Fxxx_xxxx | N | - | Dxxxxx_xxxx | N | | Gxxxx_xxxx | N | - | Cxxxxx_xxxx | N | | Rxxxxxxxxx_xxxx | N | - | Dxxx_xxxx | N | | Ixxxx_xxxx | N | - | Rxxxxx_xxxx | N | | Axxxx_xxxx | N | - +-----------------+---+ +-----------------+---+ -NOTE: A xxxxxxxx xx xxxxxxxx xxx xxxx `xxxxxx' :-( -Txx xxxxxxxxx xxxxx xxx xxxx: -xx : 'Nx xxxxxxxx xxxx' -xxxx : 'Nxx xxxxxxxxx: xxxx-xxxxx xx xxx xxxxx xx xx-xxxxx.' -xxxx:'xxxxxxxxx','xxxxx','dxxxdddddddddddx','Y','N','N','N', -'N','N','N','N','N','N','N','N','N','N'</programlisting> - <para><indexterm id="mysqlian-CHP-16-ITERM-3802" significance="normal"><primary>SELECT xxxxxxxxx (GRANT/REVOKE)</primary><secondary>xxxxxxx</secondary></indexterm> -Fxxxx, x xxxxx xx xxxxxxxxx xxxxxxxxxx xxx xxxxxxxxxx xxx xxx xxxxxxxxxxx xx xxx xxxxxxxx xxxxx, xxx xxxx xxxxx, xxx xxx xxxx. Txxx xxxx xxx xxxx <literal moreinfo="none">SELECT</literal> xxxxxxxxxx. -</para> - <para>Axxxxxxxxxxx, xxx xxxxxxx xxx xxxxx xx xxx xxxx xxx xxxx xxxxxxxxx. Txxx xxxx’x xxxxxxxxxx xxx xxx xxxx xxx xxx xxxxxxxxx xxx xxxxx (x.x., xxxxx xxx xx xxxxxxx xx xxx <emphasis>xx</emphasis> xx xxx <emphasis>xxxx</emphasis> xxxxxx xx xxx <emphasis>xxxxx</emphasis> xxxxxxxx), xx xxxxx xxxx’x xxx xxxxxxx xxx xxxxx xxxxxxxxxx xxxxxxxxxx. Fxx xxx xxxx xxxxxxxxx, xxx xxxxxxx xxxxxxxx xxxxxxx xxxxxxx xxxxxx, xxx xxxx xxx xxxxxxxxx xx xxx xxxxx xxxx xxxx xxx xxxxx xx xxx <emphasis>xxxx</emphasis> xxxxx xx xxx <emphasis>xxxxx</emphasis> xxxxxxxx. Txx xxxxx xxxxx xx xxx xxxxxxxx xx xxx xxxxxxxxx xxxxxx xx xxxxx xx xx xxxxxx. Txx Yx xxx Nx xxx xxx xxxxxxxx xxx xxxx xxxx xxxxxxxxx.</para> - </refsect1> - <refsect1 id="ch16-10-fm2xml"> - <title>xxxxxxxxxxx Oxxxxxx - Sxxxxxx xxxxxxx xxx xxxxxxxxx xxxx xxxx xxxxxxx. Hxxx xx xx xxxxxxxxxxxx xxxx: - - - - --xxxxx, -x - - - Pxxxxxxx x xxxxx xxxxxxx xx xxxxxxx xxxx xx xxxxxxx. ---xxxxx xxxxxx (xxxxxxxxxxx) - - - - - - --xxxxxx - - - Cxxxxx xxxxx xxxxx xxxx xxxxxxxxx xxxxxx xx xxx xxxxx xxxxxx. ---xxxxxx xxxxxx (xxxxxxxxxxx) - - - - - - --xxxx - - - Rxxxxxx xxxxxxxxx xxxxxx xxxx xxxxxxxx xxxx xxxx xxx xxxxx xxxxxx xx xxxx xxxxxxxxxx xxxx xxxxxx. ---xxxx xxxxxx (xxxxxxxxxxx) - - - - - - --xx= - xxxxxxxx - , -x - xxxxxxxx - - - Exxxxxxxxx xxxxxxxxx xxx xxxxxxxx xxxxxxx xxxxx xx xxxxx xxx xxxx xxxxxxxxxx. ---xx xxxxxx (xxxxxxxxxxx) - - - - - - --xxxxx= - xxxxx - - - Sxxx xxx xxxxxxxxx xxxxx. Txx xxxxxxx xxx xxxx d xx d.--xxxxx xxxxxxxxxxxxxxxxx xxxxxxx - - - - - - --xxxx, -? - - - Dxxxxxxx xxxxx xxxx xxxxxxxxxxx.--xxxx xxxxxxxxxxxxxxxxx xxxxxxx - - - - - - --xxxx= - xxxx - , -x - xxxx - - - Sxxxxxxxx xxx xxxx xx xxxxx xx xxxxxx xxxxxxxxx xxxxxxxxxxx. Txx xxxxxxxxx xx xxx xxxxxxx.--xxxx xxxxxxxxxxxxxxxxx xxxxxxx - - - - - - --xxxxx - - - Dxxxxxxx xxxxx xxxxxxxx xx xxxxx xxxx xxxxxx xxxxxxx.--xxxxx xxxxxx (xxxxxxxxxxx) - - - - - - --xxx-xxxxxx - - - S -xxxxxxxxx xxxx xxx xxxxxx xx xxxxx xxx xxxxxxx xx xxxxxxxxxx xx xxxxxxx xx xxxxx xxxxxxx xx MxSQL (xxxxx xx d.dd) xxxxxxxxx x xxxxxxxxx xxxxxx xxxx xxxxxx xx WHERE xxxxxxx xx SQL xxxxxxxxxx.--xxx-xxxxxx xxxxxx (xxxxxxxxxxx) -WHERE xxxxxxSQL xxxxxxxxxx xxx - - - - - --xxxxxxxx= - xxxxxxxx - , -x - xxxxxxxx - - - Pxxxxxxx xxx xxxxxxxx xx xxx xxxx xxxxxxx xxxx xxx xxxxxx, xxx xxx xxxx xx xxxxx xx xxxxx xxx xxxxxxxxxx.--xxxxxxxx xxxxxxxxxxxxxxxxx xxxxxxx - - - - - - --xxxx - - - Dxxxxxxx xxxxx xxx xxxxxxx xxxxxxxxxxx xx xxx xxxxxxx xx xxx xxxxxxxxxx.--xxxx xxxxxx (xxxxxxxxxxx) - - - - - - --xxxxxxx - - - Dxxxxxxx xxx xxxxxxxxxxx xx xxxxxxxxx xxxxx xxxxxx xxxxxx xxxx xxx xxxxxxxxx.--xxxxxxx xxxxxx (xxxxxxxxxxx) - - - - - - --xxxxxxxx - - - Dxxxxxxx xxxxx xx xxxx xxxxxxx xx xxx xxxxxxx.--xxxxxxxx xxxxxx (xxxxxxxxxxx) - - - - - - --xxxxx= - xxxx - , -H - xxxx - - - Ix xxx xxxxxxx xx xxx xxxxx xxx xx xxx xxxx xxxxxx xx xxx MxSQL xxxxxx xxxx’x xxxxx xxxxxxx, xxx xxxx xxxxxx xx xxxxxxx xxx xxxxxxx xx xxx MxSQL xxxxxx xx xxxxx.--xxxxx xxxxxx (xxxxxxxxxxx) - - - - - - --xxxxxxxx - - - Uxxxxx xxx xxxx xxxxxx xx xxxx xxxxxxxxxx.--xxxxxxxx xxxxxx (xxxxxxxxxxx) - - - - - - --xxxxxxxxx= - xxxxxxxx - , -P - xxxxxxxx - - - Pxxxxxxx xxx xxxxxxxx xxxx xxxxx x xxxxxxxxx.--xxxxxxxxx xxxxxx (xxxxxxxxxxx) - - - - - - --xxxxxxxxx= - xxxx - , -U - xxxx - - - Pxxxxxxx x xxxxxxxxx’x xxxxxxxx.--xxxxxxxxx xxxxxx (xxxxxxxxxxx) - - - - - - --xxxxx, -x - - - Dxxxxxxx xxxx xx xx ASCII xxxxx xxxxxx.--xxxxx xxxxxxxxxxxxxxxxx xxxxxxx - - - - - - --xxxx= - xxxx - , -x - xxxx - - - Pxxxxxxx xxx xxxxxxxx xxx xxxxxxx xx xx xxx xxxxxx, xxx xxx xxxx xx xxxxx xx xxxxx xxx xxxxxxxxxx.--xxxx xxxxxxxxxxxxxxxxx xxxxxxx - - - - - - --xxxxxxx, -x - - - Dxxxxxxx xxx xxxxxxx xx xxx xxxxxxx. - - - - - - - - xxxxxxxxxx - - - xxxxxxxxxx - - - - xxxxxxxxxx [xxxxxxx] xxxxxxx [xxxxxxx_xxxxxxx] - xxxxxxxxxx xxxxxxxxxxxxxxx -Txxx xxxxxxx xxxxxx xxx xx xxxxxxx MxSQL xxxxxx xxxxxxxxxxxxxx xxxxx xxxx xxx xxxxxxx xxxx. Yxx xxx xxx xx xx xxxxx xxx xxxxxx’x xxxxxx xxx xxxxxxxx, xxxxx xxxxxx, xxxxxx xxxxxxxxx, xxxx xxxx xxx xxxxxx, xxx xxxxxxx x xxx xxxxx xxxxxxxxxxxxxx xxxxxxxxx. Txxx xxxxxxx xxxxxxxxx xxxx xxx MxSQL xxxxxx. Hxxx xx xx xxxxxxxxxxxx xxxx xx xxxxxxx xxxx xxx xxx xxxx xx xxx xxxxx xxxxxxxx xx xxx xxxxxxx: - - - xxxxxxxxxx Oxxxxxx - - - - --xxxxxxxxx-xxxx-xxx= - xxxx - - - Sxxxxxxxx xxx xxxxxxxxx xxxx xxxxxxxx xxxxxxxxx xxxx.--xxxxxxxxx-xxxx-xxx xxxxxxxxxxxxxxxx xxxxxxx - - - - - - --xxxxxxxx, -C - - - Cxxxxxxxxx xxxx xxxxxx xxxxxxx xxx xxxxxxx xxx xxx xxxxxx, xx xxxxxxxxxxx xx xxxxxxxxx.--xxxxxxxx xxxxxxxxxxxxxxxx xxxxxxx - - - - - - --xxxxxxx_xxxxxxx= - xxxxxx - - - Sxxx xxx xxxxxx xx xxxxxxx x xxxxxxxxxx xxx xx xxxx xxxxxx xx xxxx xxxx xxx.--xxxxxxx_xxxxxxx xxxxxx (xxxxxxxxxx) - - - - - - --xxxxx= - xxxxxx - , -x - xxxxxx - - - -Sxxxxxxxx xxx xxxxxx xx xxxxxxxxxx xx xxxxxxxx xx xxxxxxx xx xxxxxxxxxxx xxxx xxx --xxxxx xxxxxx.--xxxxx xxxxxx (xxxxxxxxxx) ---xxxxx xxxxxx (xxxxxxxxxx) - - - - - - --xxxxx=xxxxxxx xxxxxxxx, -# xxxxxxx, xxxxxxxx - - - Lxxx xxxxxxxxx xxxxxxxxxxx. Txx xxx xx xxxxxxx xxxx xx xxxxxxx xx 'x:x:x,xxxxxxx'. Sxx xx xxx xxx xx xxx xxxx xx xxxxxxx xxxxx xxx xxxxxxxxx xxxxxxx xxx xx xxxxxxxxxxx xx xxxxx xxxxx xxx xxxxxx xxxx xxx xx xxxx.--xxxxx xxxxxxxxxxxxxxxx xxxxxxx - - - - - - --xxxxx-xxxxx - - - Wxxxxx xxxxxxxxx xxxxxxxxxxx xx xxx xxx xxxx xxx xxxxxxx xxxx. Ix’x xxxxxxxxx xx xx xxxxxxx d.d.dd. - - - - - --xxxxx-xxxx - - - Axxx xxxxxxxxx xxxxxxxxxxx xxx CPU xxx xxxxxx xxxxx xxxxxxxxxxx xx xxx xxx xxxx xxx xxxxxxx xxxx. Ix’x xxxxxxxxx xx xx xxxxxxx d.d.dd. - - - - - --xxxxxxx-xxxxxxxxx-xxxx-xxx= - xxxx - - - Sxxxxxxxx xxx xxxxxxxxx xxxx xxxxxxxx xxx xxxxxxx xxxxxxxxx xxxx. - - - - - --xxxxx, -x - - - DROP DATABASE xxxxxxxxxxxxxxxxxxx xxxxxxx -Fxxxxx xxxxxxxxx xx xxx DROP DATABASE xxxxxxxxx xxx xxxxxx xxxxxxx xxxxx xxxxxxxx.--xxxxx xxxxxxxxxxxxxxxx xxxxxxx - - - - - - --xxxx, -? - - - Dxxxxxxx xxxxx xxxx xxxxxxxxxxx.--xxxx xxxxxxxxxxxxxxxx xxxxxxx - - - - - - --xxxx= - xxxx - , -x - xxxx - - - Sxxxxxxxx xxx xxxx xx IP xxxxxxx xx xxx xxxxxx xxx xxxxxxxxxx.--xxxx xxxxxxxxxxxxxxxx xxxxxxx - - - - - - --xx-xxxx - - - Ixxxxxxxx xxxxxxx xxx xx xxxx x xxxxxxx xxxxx xxx xxxxxx. Txxx xxxxxx xxx xxxxx xx xx xxxxxxx d.d.dd. - - - - - --xxxxxxxx[= - xxxxxxxx - ], -x[ - xxxxxxxx - ] - - - -Pxxxxxxx xxx xxxxxxxx xx xxxx xx xxx xxxxxx. Nx xxxxxx xxx xxxxxxx xxxxxxx xxx -x xxx xxx xxxxxxxx. Ix x xxxxxxxx xx xxx xxxxx, xxx xxxx xxxx xx xxxxxxxx xxx xxx.--xxxxxxxx xxxxxxxxxxxxxxxx xxxxxxx -xxxxxxxxxxxxxxxxxx xxx xxxxxxx - - - - - - --xxxx= - xxxx - , -P - xxxx - - - Sxxxxxxxx xxx xxxx xx xxxxx xx xxxxxxx xx xxx xxxxxx. Txx xxxxxxx xx dddd.--xxxx xxxxxxxxxxxxxxxx xxxxxxx - - - - - - --xxxxxxxx, -x - - - -Dxxxxxxx xxx xxxxxxxxxxx xxxxxxx xxxxxx xxxx xxxx xxxxxxxxx xx xxxxxxxx xxxxxx xxxx xxx --xxxxx xxxxxx.--xxxxxxxx xxxxxx (xxxxxxxxxx) ---xxxxx xxxxxx (xxxxxxxxxx) - - - - - - --xxxxxxxx_xxxxxxx= - xxxxxx - - - Sxxx xxx xxxxxx xx xxxxxxx xxx xxxxxx xxxxxx xxxx xxxxxx xxxxxxxx xxxx.--xxxxxxxx_xxxxxxx xxxxxx (xxxxxxxxxx) - - - - - - --xxxxxx, -x - - - Txxxx xxx xxxxxxx xx xxxx xxxxxxx xxxxx xxxxxxxx xx x xxxxxxxxxx xx xxx xxxxxx xxxxxx xx xxxxxxxxxxx.--xxxxxx xxxxxxxxxxxxxxxx xxxxxxx - - - - - --xxxxx=xxxxxxx, -x xxxxxxx - - -Sxxxxxxxx xxx xxxxxx xx xxxxxxx xx xxxx xxxxxxx xxx xxxxxxxx xxxxxxxxx xx xxxxxxxx. Txx xxxxxx xx xxxxxxxxxx xx xxx xx xxx --xxxxx xxxxxx. ---xxxxx xxxxxx (xxxxxxxxxx) ---xxxxx xxxxxx (xxxxxxxxxx) - - - - - - --xxxxxx= - xxxxxxxx - , -S - xxxxxxxx - - - Pxxxxxxx xxx xxxx xx xxx xxxxxx’x xxxxxx xxxx.--xxxxxx xxxxxxxxxxxxxxxx xxxxxxx - - - - - - --xxx - - - Sxxxxxxxx xxxx xxxxxx SSL xxxxxxxxxxx xxxxxx xx xxxx. Rxxxxxxx xxx xxxxxx xx xxxx SSL xxxxxxx. - - - - - --xxx-xx=xxx_xxxx - - - Sxxxxxxxx xxx xxxx xx xxx xxxx (x.x., xxx xxx xxxx) xxxxxxxxxx x xxxx xx xxxxxxx SSL CAx. - - - - - --xxx-xxxxxx=xxxx - - - Sxxxxxxxx xxx xxxx xx xxx xxxxxxx xxxxxxxxxxxx xxxx (x.x., xxx xxx xxxx). - - - - - --xxx-xxxx=xxxxxxxx - - - Sxxxxxxxx xxx xxxx xx xxx SSL xxxxxxxxxxx xxxx xx xxx xxx SSL xxxxxxxxxxx. - - - - - --xxx-xxxxxx=xxxxxxx - - - Gxxxx x xxxx xx xxxxxxx xxxx xxx xx xxxx xxx SSL xxxxxxxxxx - - - - - --xxx-xxx=xxxxxxxx - - - Sxxxxxxxx xxx SSL xxx xxxx xx xxx xxx xxxxxx xxxxxxxxxxx. - - - - - --xxx-xxxxxx-xxxxxx-xxxx - - - Vxxxxxxx xxx xxxxxx’x xxxxxxxxxxx xxxxxxx xxx xxxxxx’x xxxxxxxxxxx xxx xxx xxxxxx xx xxxxx-xx. Ix xx xxxxxxxxx xx xx xxxxxxx d.d.dd. - - - - - --xxxxx-xxxxx - - - Ixxxxx xx x xxxxx xxxxxx xx xxxxx xxxxxxxxxxx. - - - - - --xxxx-xxxxx - - - Ixxxxx xx x xxxxx xxxxxx xx xxxx xxxxxxxxxxx. - - - - --xxxx=xxxx, -x xxxx - - Sxxxxxxxx x MxSQL xxxx xxxxx xxxx xxx xxxxxxx xxxxxxxxxx xxxx.--xxxx xxxxxxxxxxxxxxxx xxxxxxx - - - - - - --xxxxxxx, -x - - - Dxxxxxxx xxxx xxxxxxxxxxx.--xxxxxxx xxxxxxxxxxxxxxxx xxxxxxx - - - - - - --xxxxxxx, -V - - - Dxxxxxxx xxx xxxxxxx xx xxx xxxxxxx.--xxxxxxx xxxxxxxxxxxxxxxx xxxxxxx - - - - - - --xxxxxxxx, -E - - - Dxxxxxxx xxxxxx xx x xxxxxxxx xxxxxx xxxx x xxxxxxxx xxxx xxx xxxx xxxxxx xx xxxx.--xxxxxxxx xxxxxx (xxxxxxxxxx) - - - - - - --xxxx[= - xxxxxx - ], -x [ - xxxxxx - ] - - - Ixxxxxxxx xxx xxxxxxx xx xxxx xxxxx xx xxx xxxxxxx xx xxx xxxxxx. Ix xxxx xxxxx xxxx xxxxxx xxx xxxxxx xx xxxxx xx xx xx xxxxx xx xxxxx xxxx xxxx xxxxxx.--xxxx xxxxxxxxxxxxxxxx xxxxxxx - - - - - - - <literal moreinfo="none">xxxxxxxxxx</literal> Cxxxxxxx - Txx xxxx xxxxx xx xxxxxxxxxx xxx xxx xxxxxxxx xxxx xxxxxxx xxxxxxxxxxxxxx xxxxx. Cxxxxxxx xxx xxxxx xx xxx xxxxxx xxxxxxxx. Yxx xxx xxxxx xxx xx xxxx xxxxxxxx xx xxx xxxx xxxx. Hxxx xx xx xxxxxxxxxxxx xxxx xx xxxxxxxx (xxxx xxxxxxx xxx xxxx) xxx xx xxxxxxxxxxx xx xxxx: - - - - xxxxxx - xxxxxxxx - - - Cxxxxxx xxx xxx xxxxxxxx xxxxxxxxx.xxxxxx xxxxxxx (xxxxxxxxxx) - - - - - - xxxxx - - - Exxxxxx xxxxxxxxx xx xxx xxxxxxx. Ix xxxxxx xxxxxxxxx xxxxxxxxxxx xx xxx xxxxx xxx. - - - - - xxxx - xxxxxxxx - - - Dxxxxxx xxx xxxxxxxx xxxxxxxxx.xxxx xxxxxxx (xxxxxxxxxx) - - - - - - xxxxxxxx-xxxxxx - - - Dxxxxxxx xxx MxSQL xxxxxx’x xxxxxxxx xxxxxx xxxxxxxxxxx.xxxxxxxx-xxxxxx xxxxxxx (xxxxxxxxxx) - - - - - - xxxxx-xxxxx - - - Fxxxxxx xxx xxxxxx xxxxx.xxxxx-xxxxx xxxxxxx (xxxxxxxxxx) - - - - - - xxxxx-xxxx - - - Fxxxxxx xxx xxxx.xxxxx-xxxx xxxxxxx (xxxxxxxxxx) - - - - - - xxxxx-xxxxxxxxxx - - - Rxxxxxx xxx xxxxx xxxxxx.xxxxx-xxxxxxxxxx xxxxxxx (xxxxxxxxxx) - - - - - - xxxxx-xxxxxx - - - Fxxxxxx xxxxxx xxxxxxxxx.xxxxx-xxxxxx xxxxxxx (xxxxxxxxxx) - - - - - - xxxxx-xxxxxx - - - Hxx xxx xxxxxxx xxxxx xxx xxxxxx.xxxxx-xxxxxx xxxxxxx (xxxxxxxxxx) - - - - - - xxxxx-xxxxxxx - - - Fxxxxxx xxx xxxxxx xxxxx.xxxxx-xxxxxxx xxxxxxx (xxxxxxxxxx) - - - - - - xxxx - xx - - - Kxxxx xxx xxxxxx xxxxxx xxxxxxxxx xx xx xxxxxxxxxx. Axxxxxxxxx xxxxxxx xxx xx xxxxx xx x xxxxx-xxxxxxxxx xxxx.xxxx xxxxxxx (xxxxxxxxxx) - - - - - - xxx-xxxxxxxx - xxxxxxxx - - - Cxxxxxx xxx xxxxxxxx xx xxx xxxx xxxxxxxxx xxxxxxxxx xx xxx xxxxxx xxxxxxx xxx xxxxxxx xx xxx xxxxxxxx xxxxx, xxx xx xxx xxxxx xxxxxxxxxx xxxxxx xxxxx xx xxxxxxx d.d xx MxSQL. - - - - - xxxxxxxx - xxxxxxxx - - - Cxxxxxx xxx xxxx’x xxxxxxxx xx xxx xxxxx xxxxxxxx. Oxxx xxx xxxxxxxx xxx xxx xxxx xxxxxxxxxx xx xxx xxxxxx xxx xx xxxxxxx.xxxxxxxx xxxxxxx (xxxxxxxxxx) - - - - - - xxxx - - - Dxxxxxxxxx xxxxxxx xxx xxxxxx xx xxxxxxx.xxxx xxxxxxx (xxxxxxxxxx) - - - - - - xxxxxxxxxxx - - - -Dxxxxxxx x xxxx xx xxxxxx xxxxxx xxxxxxx. Wxxx xxx --xxxxxxx xxxxxx, xxxx xxxxxxxxxxx xx xxxxxxxx xx xxxx xxxxxx.xxxxxxxxxxx xxxxxxx (xxxxxxxxxx) ---xxxxxxx xxxxxxxxxxxxxxxx xxxxxxx - - - - - xxxxxxx - - - Fxxxxxx xxx xxxxxx xxx xxxxxxx xxxxxxxx.xxxxxxx xxxxxxx (xxxxxxxxxx) - - - - - - xxxxxx - - - Rxxxxxx xxx xxxxx xxxxxx.xxxxxx xxxxxxx (xxxxxxxxxx) - - - - - - xxxxxxxx - - - Sxxxx xxxx xxx MxSQL xxxxxx.xxxxxxxx xxxxxxx (xxxxxxxxxx) - - - - - - xxxxx-xxxxx - - - Sxxxxx x xxxxxxxxxxx xxxxx xxxxxx.xxxxx-xxxxx xxxxxxx (xxxxxxxxxx) - - - - - - xxxxxx - - - Dxxxxxxx xxx xxxxxx’x xxxxxx.xxxxxx xxxxxxx (xxxxxxxxxx) - - - - - - xxxx-xxxxx - - - Sxxxx x xxxxxxxxxxx xxxxx xxxxxx.xxxx-xxxxx xxxxxxx (xxxxxxxxxx) - - - - - - xxxxxxxxx - - - Dxxxxxxx xxx xxxxxxxxx xxx xxx xxxxxx xx xxx xxxxxx.xxxxxxxxx xxxxxxx (xxxxxxxxxx) - - - - - - xxxxxxx - - - Dxxxxxxx xxx xxxxxxx xx xxx xxxxxxx. - - - - - - - - xxxxxxxxxxx - - - xxxxxxxxxxx - - - - xxxxxxxxxxx [xxxxxxx] xxxxxxxx - - - - <para><indexterm class="startofrange" id="ch16-idx-986913-1" significance="normal"><primary>xxxxxxxxxxx xxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-16-ITERM-3873" significance="normal"><primary>xxxxxxxxx</primary><secondary>xxxxxxxxxxx xxxxxxx xxx</secondary></indexterm> -Txxx xxxxxxx xxxxxxx xxx xxxxxxx xx xxx xxxxxx xxx xxx x MxSQL xxxxxx. Cxxxxxxxxx xxxxxxxxxxxx xxx xxxx xxx xx xxx xxxxxxxxxx xxxxxx xxxxxxxxxx. Txx xxxx xx xxx xxxxxxx xx xxxxxx xx xxxxx xx xxx xxxxxx xxxxxxxx xxx xxx xxxxxxx. Axxxxxxxxx xxxxxxxx xxx xx xxxxx xxxxxx xxxx xxxxxxxxxx xxxxxxxxx xx xx xxxxxxx xxxx xxxxxxxxxxxx, xxxxxxxxx xx xxxxxx. Hxxx xx xx xxxxxxxxxxxx xxxx xx xxx xxxxxxx, xxxxx xxxx x xxxxx xxxxxxxxxxx xx xxxx: -</para> - </refsect1> - <refsect1 id="ch16-14-fm2xml"> - <title>xxxxxxxxxxx Oxxxxxx - - - - --xxxxdd-xxxxxx - - - Uxxx xx xxxxx xxxxxx xxx xxxxxxx xxxxx xxxxdd xxxxxxxx. Txxx xx xxxx xxx xxxxxxxxx xxx xxxxxx xxx xx xxxx xx xxxxxxxxxx. Ix’x xxxxxxxxx xx xx xxxxxxx d.d.d xx MxSQL. - - - - - --xxxxxxxxx-xxxx-xxx=xxxx - - - Sxxxxxxxx xxx xxxxxxxxx xxxxxxxxxx xxxxxxxxx xxxx. - - - - - --xxxxxxxx= - xxxxxxxx - , -x - xxxxxxxx - - - Dxxxxxxx xxxxxxxxxxx xxxxxxxxx xxxx xxx xxxxxxxx xxxxx.--xxxxxxxx xxxxxx (xxxxxxxxxxx) - - - - - - --xxxxx[= - xxxxxxx - ], -# [ - xxxxxxx - ] - - - Lxxx xxxxxxxxx xxxxxxxxxxx, xxxxx xxxx xxxxxxx xxxxxxxx (x.x., 'x:x:x,xxxxxxx'). - - - - - --xxxxx-xxxxx - - - Wxxxxx xxxxxxxxx xxxxxxxxxxx xx xxx xxx xxxx xxx xxxxxxx xxxx. Ix’x xxxxxxxxx xx xx xxxxxxx d.d.dd. - - - - - --xxxxx-xxxx - - - Wxxxxx xxxxxxxxx xxxxxxxxxxx xxx CPU xxx xxxxxx xxxxx xxxxxxxxxxx xx xxx xxx xxxxx xxx xxxxxxx xxxx. - - - - - --xxxxxxx-xxx-xxx, -D - - - Dxxxxxxx xxxxxx xxxxxxx.--xxxxxxx-xxx-xxx xxxxxx (xxxxxxxxxxx) - - - - - - --xxxxx-xxxx, -x - - - Fxxxxx xxx xxxxxxx xx xxxxxxx xxx xxxxxxxxxxx.--xxxxx-xxxx xxxxxx (xxxxxxxxxxx) - - - - - - --xxxxxxx, -H - - - Dxxxx xxx xxx xx xxxxxxxxxxx xxxxxx. - - - - - --xxxx, -? - - - Dxxxxxxx xxxxx xxxx xxxxxxxxxxx.--xxxx xxxxxxxxxxxxxxxxx xxxxxxx - - - - - - --xxxx= - xxxx - , -x - xxxx - - - Sxxxxxxxx xxx xxxxxxxx xx IP xxxxxxx xx x xxxxxx xxxxxx xxxxxxxxxx xxx xxxxxxx xx xxxxxx.--xxxx xxxxxxxxxxxxxxxxx xxxxxxx - - - - - - --xxxxx-xxxx= - xxxx - , -x - xxxx - - - Sxxxxxxxx xxxxx xxxxxxxxx xx xxxxx xxxxxxxxx xxxxx xxx xx xx xxxxxxxx xxx LOAD DATA INFILE xxxxxxxxxx.--xxxxx-xxxx xxxxxx (xxxxxxxxxxx) -LOAD DATA INFILE xxxxxxxxxxxxxxxxxxxx xxxxxxx xxx - - - - - --xxxxxx= - xxxxxx - , -x - xxxxxx - - - Sxxxx xxxxxx xxxxxxx xx xxx xxxxx xx xxx xxxxxxx xxxxxx xxxxxxxx xxx xxxxxxx.--xxxxxx xxxxxx (xxxxxxxxxxx) - - - - - - --xxxx_xxxxx_xxxxx - - - Sxxx xxx xxxxxxx xxxxxx xx xxxx xxxxx xxxxxxx. Txx xxxxxxx xx dd.--xxxx_xxxxx_xxxxx xxxxxx (xxxxxxxxxxx) - - - - - - --xxxxxxxx= - xxxxxxxx - , -x - xxxxxxxx - - - Pxxxxxxx xxx xxxxxxxx xx xxx xxxxxx xxxxxx xxxx xx xxxxx xxxxxxxx.--xxxxxxxx xxxxxxxxxxxxxxxxx xxxxxxx - - - - - - --xxxx= - xxxx - , -P - xxxx - - - Sxxxxxxxx xxx xxxx xx xxx xxx xxxxxxxxxx xx x xxxxxx xxxxxx.--xxxx xxxxxxxxxxxxxxxxx xxxxxxx - - - - - - --xxxxxxxx= - xxxxxx - , -x - xxxxxx - - - -Sxxx xxx xxxxxx xx xxxxx xx xxxx xx xxx xxxxxxxxx xx xxx xxx xxxx. Txxx xxxxxx xx xxxxxxxxxx. Uxx --xxxxx-xxxxxxxx xxxxxxx.--xxxxxxxx xxxxxx (xxxxxxxxxxx) ---xxxxx-xxxxxxxx xxxxxx (xxxxxxxxxxx) - - - - - - --xxxxxxxx= - xxxxxxxx - - - Sxxxxxxxx xxx xxxxxxxx xx xxx xxxx xxxxxxxxxx xx xxx xxxxxx. Txx xxxxxxx xxx TCP, SOCKET, PIPE, xxx MEMORY.--xxxxxxxx xxxxxxxxxxxxxxxxx xxxxxxx - - - - - - --xxxx-xxxx-xxxxxx-xxxxxx, -R - - - Rxxxx xxx xxxxxx xxx xxxx x xxxxxx xxxxxx xxxxxxx xx xxx xxxxx xxxxxxx. Yxx xxxx xxxx xx xxxxxxx xxx xxxxxxxxx xxxxxxx xxx xxxxxxxxxx xx x xxxxxx xxxxxx: --xxxx, --xxxxxxxx, --xxxx. Yxx xxxxx xxxx xxxx xx xxxxxxx --xxxx, --xxxxxxxx, xxx --xxxxxx. - - - - - --xxxxxx-xxxx=xxxxxxxx, -x xxxxxxxx - - - Rxxxxxxxx xxx xxxxxxx xx xxx xxxxxxx xx x xxxxx xxxx. - - - - - --xxxxxx-xx=xxxxxxxxxx - - - Rxxxxxx xxxxxxx xxxx xxx xxxxxx xxx xxxx xxxx xxxxxxxxx xx x xxxxxxxxxx xxxxxxxx xxx xxxxx xxxxxxx xxxxxxxxxx xxxxxx. Txxx xxxxxx xx xxxxxxxxx xx xx xxxxxxx d.d.d. - - - - - --xxx-xxxxxxx=xxxxxxxxx_xxx - - - Axxx x SET NAMES xxxxxxxxx xx xxx xxxxxxx xx xxxxxxxx xxx xxxxxxxxx xxx xxxx. Ix xx xxxxxxxxx xx xx xxxxxxx d.d.dd. - - - - - --xxxx-xxxxx-xxxxxx - - - Dxxxxxxx xxx --xxxxx-xxxxxx xxxxxx, xxxxx xx xxxxxxx xx xxxxxxx. Oxxxxxxxx, ANALYZE TABLE, OPTIMIZE TABLE, xxx REPAIR TABLE xxxxxxxxxx xxxxxxxx xx xxx xxxxxxx xxxx xx xxxxxxx xx xxx xxxxxx xxx. Ix’x xxxxxxxxx xx xx xxxxxxx d.d.dd. - - - - - --xxxxx-xxxx, -x - - - Cxxxxxx xxx xxxxxx xx x xxxxxxx xxxxxx.--xxxxx-xxxx xxxxxx (xxxxxxxxxxx) - - - - - - --xxxxxx= - xxxxxxxx - , -S - xxxxxxxx - - - Pxxxxxxx xxx xxxx xx xxx xxxxxx’x xxxxxx xxxx xxx Uxxx xxxxxxx, xxxxx xxxx xxx Wxxxxxx xxxxxxx. - - - - - --xxxxx-xxxxxxxx= - xxxxxxxx - - - -Bxxxxx xxxxxxx xxx xxx xxxx xxx xxxxx xxxxx xxxxxxxx xxxx x xxxx xxx xxxx xxxxx xx xx xxxxxxx xxxx xxx xxx xxxxx. Txx xxxx xxx xx xx DATETIME xx TIMESTAMP xxxxxx. Uxx xxx xxxx xxxx xx xxx xxxxxx.--xxxxx-xxxx xxxxxx (xxxxxxxxxxx) -TIMESTAMP -xxxxxxxxxxxxxxxxxxx xxxxxxx DATETIME xxxxxxxxxxxxxxxxxxx xxxxxxx - - - - - - --xxxxx-xxxxxxxx= - xxxxxx - - - Sxxx xxx xxxxxxxx xx xxxxx xxxxxxx xxx xxxxxxx.--xxxxx-xxxxxxxx xxxxxx (xxxxxxxxxxx) - - - - - - --xxxx-xxxxxxxx= - xxxxxxxx - - - Ixxxxxxxx xxx xxxxxxx xx xxxx xxxxxxx xxx xxx xx xxx xxxxx xxxxx xxxxxxxx xxxx x xxxx xxx xxxx xxxxx xx xx xxxxxxx xxxx xxx xxx xxxxx. Txx xxxx xxx xx xx DATETIME xx TIMESTAMP xxxxxx. Uxx xxx xxxx xxxx xx xxx xxxxxx.--xxxx-xxxx xxxxxx (xxxxxxxxxxx) - - - - - - --xxxx-xxxxxxxx= - xxxxxx - - - Sxxx xxx xxxxxxxx xx xxxx xxxxxxx xxx xxx xxxx.--xxxx-xxxxxxxx xxxxxx (xxxxxxxxxxx) - - - - - - --xxxxx= - xxxxx - , -x - xxxxx - - - Oxxxxxx xxxxxxxxxxx xx xxx xxxxx xxxxx.--xxxxx xxxxxxxxxxxxxxxxx xxxxxxx - - - - - - --xx-xxxx-xxx, -x - - - - - - - - --xxxx= - xxxx - , -x - xxxx - - - Sxxxxxxxx xxx xxxxxxxx xx xxx xxxx xxxxxxxxxx xx x xxxxxx xxxxxx.--xxxx xxxxxxxxxxxxxxxxx xxxxxxx - - - - - - --xxxxxxx, -V - - - Dxxxxxxx xxx xxxxxxx xx xxx xxxxxxx.--xxxxxxx xxxxxxxxxxxxxxxxx xxxxxxx - - - - - - --xxxxx-xxxxxx - - - Wxxx xxxx xxxxxx, ANALYZE TABLE, OPTIMIZE TABLE, xxx REPAIR TABLE xxxxxxxxxx xxxxxxxx xx xxx xxxxxxx xxxx xx xxxxxxx xx xxx xxxxxx xxx. Ix’x xxxxxxxxx xx xx xxxxxxx d.d.dd xxx xx xxxxxxx xx xxxxxxx. Tx xxxxxxx xx, xxx --xxxx-xxxxx-xxxxxx. - - - - - - - - xxxxx_xxx_xxxxxxxxxx - - - xxxxx_xxx_xxxxxxxxxx - - - - xxxxx_xxx_xxxxxxxxxx xxxx - - - - <para>Txxx xxxxxxx xxxxxxxx xxx xxxx xxxxxxxxxx xx xxx xxxxx xx MxISAM xxxxx xxxxx xxxx xxxxxxxxx xx xxxxxxxxx. Txx xxxxx xx MxISAM xxxxx xxxxx xxxxxxxxx xxx xxxx <literal moreinfo="none">.xxx</literal>, <literal moreinfo="none">.MYD</literal>, xxx <literal moreinfo="none">.MYI</literal>. Txxx xxxxxxx xxxxxxx xxx xxxxx xx xxx xxxx xxx xxxxx xx <literal moreinfo="none">.xxx</literal> xxx <literal moreinfo="none">.xxx</literal>, xxxxxxxxxxxx. Txxx xxxxxxx xxx xx xxxxxxxxx xxxx xxxxxx xxxxxxxx xxxxx xxxx xxxxxxx xxxxxxx xx xx xxxxxxxxx xxxxxx xxxx xx xxxx xxxxxxxxxxx (x.x., Wxxxxxx) xx xxx xxxxx xx xxxx xxxxxxxxx (x.x., Lxxxx). Yxx xxxx xxxx xx xxxx xxx xxxx xx xxx xxxxxxxxx xxx xxx xxxx, xxx xxxxxxxxx xxxxx xxx xxxxxxxx xxx-xxxxxxxxxxx xxx xxxxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch16-77013"> - <refmeta> - <refentrytitle>xxxxx_xxx_xxxxxxxxx_xxxxxx</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxxx_xxx_xxxxxxxxx_xxxxxx</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">xxxxx_xxx_xxxxxxxxx_xxxxxx</synopsis> - </refsynopsisdiv> - <refsect1 id="ch16-16-fm2xml"> - <title/> - <para>Ax xxxxxxx xxxxxx xxx xxxx xxxxxxxx xxxxxxxx <literal moreinfo="none">xxxxx</literal> xxxxxxxxx xxxx xxxxxxx: xxx xxxxxxxxxx xx xxx xxxxxxxxx xxxx xxxxxxx, xxxx xxxxxxxxxx xxxx xxxxx, xxx. Tx xxxx xxxxxxxxx xx xxxxxxxx xxxxxxxx xxxxxx, xxx xxx xxx xxxx xxxxxxx xx xxxxxxxxx xxx xxxxxxx xxxxxxx xxxxxxxx. Bx xxxx xx xxxxxxx xxx MxSQL xxxxxx xxxx xxxxxxxx xxxxxxx xxxx xxxxxxx xxx xxx xxxxxxx xx xxxx xxxxxx. Ax xx xxxxxxx d.d.dd xx MxSQL, xxxx xxxxxxx xxx xxxx xxxxxxxx xx <literal moreinfo="none">xxxxx_xxxxxxx</literal>. Ix xxxxxxxx xxx xxxx xxxxxxxxx xxx xxx xxxxx xxxxxxxxxxxx.</para> - <para>Txx xxxx xxxxxxx xxx xxx xxxxxxx xxx <literal moreinfo="none">--xxxxxxxx</literal>, xx xxxxx xxx <literal moreinfo="none">xxxx</literal> xxxxxxxx xx xxxxx, xxx <literal moreinfo="none">--xxxxxxx</literal> xx xxxxxxx xxxx xxxxxxxxxxx xxxx xxxxxxxx xxx xxxxxxx.</para> - <para>Ox Wxxxxxx xxxxxxx xxxx xxxxxxx xx xxx xxxxxxxxx. Hxxxxxx, xxxxx xx xx SQL xxxx, <literal moreinfo="none">xxxxx_xxx_xxxxxxxxx_xxxxxx.xxx</literal> xxxxx xxx xx xxx xxxx xxx <literal moreinfo="none">xxxxx</literal> xxxxxx xx <emphasis>xxxx</emphasis> xx xxxxxxx xxx xxxx xxxxx. Txx SQL xxxx xx xxxxxxx xxxxxx xx xxx <literal moreinfo="none">xxxxxxx</literal> xx xxx <literal moreinfo="none">xxxxx</literal> xxxxxxxxx xxxxx MxSQL xx xxxxxxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch16-77014"> - <refmeta> - <refentrytitle>xxxxxxxx</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxxxxxx</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">xxxxxxxx</synopsis> - </refsynopsisdiv> - <refsect1 id="ch16-17-fm2xml"> - <title/> - <para><indexterm id="ch16-idx-missedid-167" significance="normal"><primary>xxxxxxxx xxxxxxx</primary></indexterm> -Txxx xx x xxxxxx xxx xxx xxx xx xxxxxx xxxx xx MxSQL AB xxxxxxxxxx. Exxxxxxx xx xxx xxxxxxx xxxx xx xxx xxxxxx, xxxx xxxxxx xxxxxxx xxxxxxxxxxx xx xxx xxxxxxx xx MxSQL xxx xxxxxxx xxxxxxxxx xxxxxxxxx, xxx xxxxxxxxx xxxxxx, xx xxxx xx xxx MxSQL xxx xxxxxxxx.</para> - <para>Tx xxx xxx xxxxxxx, xxxxxx xxxx xxx xxxxxxx xxxxxxx xxx xxxxxxx xx xxxxxxxxx. Axxxx x xxx xxxxxxx x xxxx xxxxxx (x.x., Exxxx) xxxx xx xxxxxxx xxxx x xxxx xxx xxxxxxxxx xxx xxx. Sxxxxxx xx xxx xxxxxxx xxxx xx xxxxxx xx xxxx xxxxxxxxxxx xxxxxxxx xx xxx xxxxxx. Yxx xxx xxxxxx xxxx xxxxxxxxxxx, xxx xxx xxx xxxxxxxx xx xxxxxx xxxxxxxxx xxxxx xxx xxx xxxxxxxxxx. Txxx xxxxxxxx x xxxxxxxxxxx xx xxx xx xxxxxxxxx xxx xxxxxxx xx xxxx xxxxxxxxxxxxx xxxxxxxx xxxx xxx xxxx xxxxxx xx xxxxxxxxxxx xx xxx xxxxxxx. Ix xxx xxxxxxxxxx x xxxxxxxxxx xxxxxxxx, xxxxxx xxxx, xx xxxx. Txx xxxxxx xxxxxxx (xxxxx xx xxx <filename moreinfo="none">/xxx</filename> xxxxxxxxx xx Uxxx xxxxxxx) xxxxxx xx xxxxxxx xx <email>xxx-xxxx@xxxxx.xxx</email>. Gx xx <ulink url="http://bugs.mysql.com"/> xx xxxxxx xxxx xxxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch16-77015"> - <refmeta> - <refentrytitle>xxxxxxxxxx</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxxxxxxxx</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">xxxxxxxxxx [<replaceable>xxxxxxx</replaceable>] <replaceable>xxxxxxxx</replaceable> [<replaceable>xxxxx</replaceable>]</synopsis> - </refsynopsisdiv> - <refsect1 id="ch16-18-fm2xml"> - <title/> - <para><indexterm class="startofrange" id="ch16-idx-986919-1" significance="normal"><primary>xxxxxxxxxx xxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-16-ITERM-3899" significance="normal"><primary>REPAIR TABLE xxxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-16-ITERM-3900" significance="normal"><primary>CHECK TABLE xxxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-16-ITERM-3901" significance="normal"><primary>ANALYZE TABLE xxxxxxxxx</primary></indexterm> -Txxx xxxxxxx xxxxxx, xxxxxxx, xxx xxxxxxxxx MxISAM xxxxxx. Ix xxxxx xx xxxx xx xxxxxx xxx xxxxx xxxxxxx xxxxxxx xx xxxx. Ix xxxx xxx <literal moreinfo="none">ANALYZE TABLE</literal>, <literal moreinfo="none">CHECK TABLE</literal>, <literal moreinfo="none">OPTIMIZE TABLE</literal>, xxx <literal moreinfo="none">REPAIR TABLE</literal> xxxxxxxxxx. Txxxxxxxx, xx xxx xxxxxxx xxxxxx xxxxxxxx xxx xx xxxxx xxxxxxxxxx, xxx xxxxxxxxxx xxxx xxx xx xxxxxxxxx xx xxxxxxxxx xxxxxxxxxx xxx xx xxxx xxxxx xxxx xxxxxxx. Fxx MxISAM xxxxxx, xxxx xxxxxxx xx xxxxxxx xx xxx xxx xxxxxxx xx <literal moreinfo="none">xxxxxxxxx</literal>. Ixxxxxx xx xxxxxxx xxxx xxx xxxxx xxxxx xxxxxxxx xx <literal moreinfo="none">xxxxxxxxx</literal> xxxx, xxxxxx, xxxx xxxxxxx xxxxxxxxx xxxx xxx MxSQL xxxxxx. -</para> - <para>Txx xxxx xx xxx xxxxxxxx xxxxxxxxxx xxx xxxxxx xx xxxxx xx xxxxx xx xxx xxxxxx xxxxxxxx xx xxx xxxxxxx. Txx xxxxx xx xxxxx xx xxxxx xx xxx xxxxx xxxxxxxx. Axxxxxxxxx xxxxxx xxx xx xxxxx xx x xxxxx-xxxxxxxxx xxxx. Hxxx xx x xxxx xx xxxxxxx xxxx xxx xxx xxxx xxx x xxxxx xxxxxxxxxxx xx xxxx:</para> - </refsect1> - <refsect1 id="ch16-19-fm2xml"> - <title>xxxxxxxxxx Oxxxxxx - - - - --xxx-xxxxxxxxx, -A - - - Cxxxxx xxx xxxxxxxxx.--xxx-xxxxxxxxx xxxxxxxxxxxxxxxx xxxxxxx - - - - - - --xxx-xx-d, -d - - - Exxxxxxx xxx xxxxxxx xxx xxx xxxxxx xx xxxx xxxxxxxx xx xxx xxxxxxxxx xxxxxx xxxx xx xxxxxxxx xxxxxxx xxx xxxx xxxxx.--xxx-xx-d xxxxxx (xxxxxxxxxx) --d xxxxxx (xxxxxxxxxx) - - - - - --xxxxxxx, -x - - - Axxxxxxx xxxxxx.--xxxxxxx xxxxxxxxxxxxxxxx xxxxxxx - - - - - - --xxxx-xxxxxx - - - Axxxxxxxxxxxx xxxxxxx xxx xxxxxxxxx xxxxxx xxxxx.--xxxx-xxxxxx xxxxxx (xxxxxxxxxx) - - - - - - --xxxxxxxxx-xxxx-xxx= - xxxx - - - Sxxxxxxxx xxx xxxxxxxxx xxxxxxxxxx xxxxxxxxx xxxx.--xxxxxxxxx-xxxx-xxx xxxxxxxxxxxxxxxx xxxxxxx - - - - - - --xxxxx, -x - - - Cxxxxx xxxxxx xxx xxxxxx.--xxxxx xxxxxxxxxxxxxxxx xxxxxxx - - - - - - --xxxxx-xxxx-xxxxxxx, -C - - - Cxxxxx xxxx xxxxxx xxxx xxxx xxxxxxx xxxxx xxx xxxx xxxxx, xx xxxx xx xxxxxx xxxx xxxx xxx xxxxxx xxxxxxxx.--xxxxx-xxxx-xxxxxxx xxxxxxxxxxxxxxxx xxxxxxx - - - - - - --xxxxxxxx - - - Cxxxxxxxxx xxxx xxxxxx xxxxxxx xxx xxxxxxx xxx xxx xxxxxx, xx xxxxxxxxxxx xx xxxxxxxxx.--xxxxxxxx xxxxxxxxxxxxxxxx xxxxxxx - - - - - - --xxxxxxxxx - xxxxxxxxx - , -B - xxxxxxxxx - - - Sxxxxxxxx xxxx xxxx xxx xxxxxxxx xxx xxxxxxxx. Tx xxxxxxx xxxxxx xxxxx xxxx xxxxxxxxx, xxxx xxxx xxxxxx, xxx xxx --xxxxxx xxxxxx.--xxxxxxxxx xxxxxxxxxxxxxxxx xxxxxxx ---xxxxxx xxxxxxxxxxxxxxxx xxxxxxx - - - - - - --xxxxx[=xxxxxxx], -# [xxxxxxx] - - - Lxxx xxxxxxxxx xxxxxxxxxxx. Txx xxx xx xxxxxxx xxxx xx xxxxxxx xx 'x:x:x,xxxxxxx'. Sxx xx xxx xxx xx xxx xxxx xx xxxxxxx xxxxx xxx xxxxxxxxx xxxxxxx xxx xx xxxxxxxxxxx xx xxxxx xxxxx xxx xxxxxx xxxx xxx xx xxxx.--xxxxx xxxxxxxxxxxxxxxx xxxxxxx - - - - - - --xxxxx-xxxxx - - - Wxxxxx xxxxxxxxx xxxxxxxxxxx xx xxx xxx xxxx xxx xxxxxxx xxxx. Ix’x xxxxxxxxx xx xx xxxxxxx d.d.dd. - - - - - --xxxxx-xxxx - - - Wxxxxx xxxxxxxxx xxxxxxxxxxx xxx CPU xxx xxxxxx xxxxx xxxxxxxxxxx xx xxx xxx xxxxx xxx xxxxxxx xxxx. - - - - - --xxxxxxx-xxxxxxxxx-xxx= - xxx - - - Sxxxxxxxx xxx xxxxxxx xxxxxxxxx xxx. Exxxx SHOW CHARACTER SET; xx xxx xxxxxx xxx x xxxx xx xxxxxxxxx xxxx xxxxxxxxx.--xxxxxxx-xxxxxxxxx-xxx xxxxxxxxxxxxxxxx xxxxxxx - - - - - - --xxxxxxxx, -x - - - Exxxxxx xxxxxxxxxxx xx xxxx xxxx xxxxxxxx xxxxxx. Wxxx xxxxxxxxx xxxxxx xxxx xxxx xxxxxx, xxx xxxxxxx xxxx xxxxxxx xx xxxxxxx xxx xxxx, xxxxxxxxx xxxxxxxxxxxxx xxxxxxx xxxx.--xxxxxxxx xxxxxx (xxxxxxxxxx) - - - - - - --xxxx, -F - - - Cxxxxx xxxx xxxxxx xxxx xxxx xxxxxxxxxx xxxxxx.--xxxx xxxxxxxxxxxxxxxx xxxxxxx - - - - - - --xxx-xx-xxxxx - - - Cxxxxxxx xxx xxxxx xx xxxxxxxxx xxxx xxxxxxx xxxxxxxxxx xx xxxxxx xxxxxxxxx xx MxSQL xx xx xxxxxxx d.d. Ix’x xxxxxxxxx xx xx xxxxxxx d.d.d. - - - - - --xxx-xxxxx-xxxxx - - - Cxxxxxxx xxx xxxxx xx xxxxxx xxxx xxxxxxx xxxxxxxxxx xx xxxxxx xxxxxxxxx xx MxSQL xx xx xxxxxxx d.d. Ix’x xxxxxxxxx xx xx xxxxxxx d.d.d. - - - - - --xxxxx, -x - - - Fxxxxx xxxxxxxxxx xx xxxxxx xxxxxxxxxx xx SQL xxxxxx xxxxxxxxxxx.--xxxxx xxxxxxxxxxxxxxxx xxxxxxx - - - - - - --xxxx, -? - - - Dxxxxxxx xxxxx xxxx xxxxxxxxxxx.--xxxx xxxxxxxxxxxxxxxx xxxxxxx - - - - - - --xxxx= - xxxx - , -x - xxxx - - - Sxxxxxxxx xxx xxxx xx IP xxxxxxx xx xxx xxxxxx xxx xxxxxxxxxx.--xxxx xxxxxxxxxxxxxxxx xxxxxxx - - - - - - --xxxxxx-xxxxx, -x - - - -Txxx xxxxxx xx xxxx xxxxxxxx xxxx --xxxxx xxx xxxx xxxxxxxx xxxx --xxxxxxxx.--xxxxxx-xxxxx xxxxxxxxxxxxxxxx xxxxxxx ---xxxxxxxx xxxxxx (xxxxxxxxxx) ---xxxxx xxxxxxxxxxxxxxxx xxxxxxx - - - - - - --xxxxxxxx, -x - - - Oxxxxxxxx xxxxxx.--xxxxxxxx xxxxxx (xxxxxxxxxx) - - - - - - --xxxxxxxx[= - xxxxxxxx - ], -x[ - xxxxxxxx - ] - - - Pxxxxxxx xxx xxxxxxxx xx xxxx xx xxx xxxxxx. A xxxxx xx xxx xxxxxxxxx xxxxx -x xx xxx xxxxxxxx xx xxxxx.--xxxxxxxx xxxxxxxxxxxxxxxx xxxxxxx - - - - - - --xxxx= - xxxx - , -P - xxxx - - - Sxxxxxxxx xxx xxxx xx xxx xxx xxxxxxxxxx xx xxx xxxxxx. Txx xxxxxxx xx dddd.--xxxx xxxxxxxxxxxxxxxx xxxxxxx - - - - - - --xxxxxxxx= - xxxxxxxx - - - Sxxxxxxxx xxx xxxxxxxx xx xxx xxxx xxxxxxxxxx xx xxx xxxxxx. Txx xxxxxxx xxx TCP, SOCKET, PIPE, xxx MEMORY.--xxxxxxxx xxxxxxxxxxxxxxxx xxxxxxx - - - - - - --xxxxx, -x - - - Cxxxxx xxxxxx xxxxxx xx xxx xxxxxxxx xxxx xxx xxxxxxxxx xxxxx. Wxxx xxxx xx xxxxxx xxxxxx, xx xxx xxx xxxxxxx xxxxxx xxxx xxx xxxxx xxxx. Txxx xxxxxx xx xxx xxxxxxx xxxxxx.x - - - - - --xxxxxx, -x - - - Rxxxxxx xxxxxx. Nxxx xxxx xx xxx’x xxxxxx xxxxxx xxxx xxxxxxxxxx xxxxxxxxxx.--xxxxxx xxxxxx (xxxxxxxxxx) - - - - - - --xxxxxx, -x - - - Sxxxxxxxxx xxx xxxxxxxx xxxxxx xxx xxxxx xxxxxxxx.--xxxxxx xxxxxxxxxxxxxxxx xxxxxxx - - - - - - --xxxxxx= - xxxxxxxx - , -S - xxxxxxxx - - - Pxxxxxxx xxx xxxx xx xxx xxxxxx’x xxxxxx xxxx.--xxxxxx xxxxxxxxxxxxxxxx xxxxxxx - - - - - - --xxx - - - Sxxxxxxxx xxxx xxxxxx SSL xxxxxxxxxxx xxxxxx xx xxxx. Rxxxxxxx xxx xxxxxx xx xxxx SSL xxxxxxx. Ix xxxx xxxxxx xx xxxxxxx xx xxx xxxxxxx xx xxxxxxx, xxx --xxxx-xxx xx xxxxxxx xx. - - - - - --xxx-xx=xxx_xxxx - - - Sxxxxxxxx xxx xxxx xx xxx xxxx (x.x., xxx xxx xxxx) xxxxxxxxxx x xxxx xx xxxxxxx SSL CAx. - - - - - --xxx-xxxxxx=xxxx - - - Sxxxxxxxx xxx xxxx xx xxx xxxxxxx xxxxxxxxxxxx xxxx (x.x., xxx xxx xxxx). - - - - - --xxx-xxxx=xxxxxxxx - - - Sxxxxxxxx xxx xxxx xx xxx SSL xxxxxxxxxxx xxxx xx xxx xxx SSL xxxxxxxxxxx. - - - - - --xxx-xxxxxx=xxxxxxx - - - Gxxxx x xxxx xx xxxxxxx xxxx xxx xx xxxx xxx SSL xxxxxxxxxx - - - - - --xxx-xxx=xxxxxxxx - - - Sxxxxxxxx xxx SSL xxx xxxx xx xxx xxx xxxxxx xxxxxxxxxxx. - - - - - --xxx-xxxxxx-xxxxxx-xxxx - - - Vxxxxxxx xxx xxxxxx’x xxxxxxxxxxx xxxxxxx xxx xxxxxx’x xxxxxxxxxxx xxx xxx xxxxxx xx xxxxx-xx. Ix xx xxxxxxxxx xx xx xxxxxxx d.d.dd. - - - - - --xxxxxx - - - Sxxxxxxxx xxxxx xxxxx xxxx xxxxx xxx --xxxxxxxxx xxxxxx.--xxxxxx xxxxxxxxxxxxxxxx xxxxxxx ---xxxxxxxxx xxxxxxxxxxxxxxxx xxxxxxx - - - - - - --xxx-xxx - - - Uxxx xxx xxxxx xxxxxxxxx xx xxx .xxx xxxx xxx xxxxxxxxx x xxxxxxxxx xxxxx. - - - - - --xxxx= - xxxx - , -x - xxxx - - - Sxxxxxxxx xxx xxxxxxxx xxx xxxxxxxxxx xx xxx xxxxxx.--xxxx xxxxxxxxxxxxxxxx xxxxxxx - - - - - - --xxxxxxx, -x - - - Dxxxxxxx xxxx xxxxxxxxxxx.--xxxxxxx xxxxxxxxxxxxxxxx xxxxxxx - - - - - - --xxxxxxx, -V - - - Dxxxxxxx xxx xxxxxxx xx xxx xxxxxxx.--xxxxxxx xxxxxxxxxxxxxxxx xxxxxxx - - - - - - - - - xxxxxxxxx - - - xxxxxxxxx - - - - xxxxxxxxx [xxxxxxx] --xxx-xxxxxxxxx -xxxxxxxxx [xxxxxxx] --xxxxxxxxx xxxxxxxx [xxxxxxxx ...] -xxxxxxxxx [xxxxxxx] xxxxxxxx [xxxxx] - - - - <para><indexterm class="startofrange" id="ch16-idx-986923-1" significance="normal"><primary>xxxxxxxxx xxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-16-ITERM-3937" significance="normal"><primary sortas="lock-tables option">--xxxx-xxxxxx xxxxxx</primary><secondary>xxxxxxxxx xxxxxxx</secondary></indexterm> -Txxx xxxxxxx xxxxxxx MxSQL xxxx xxx xxxxx xxxxxxxxxx. Txxxxxxxx, xxx xx xx xxxx xxxxxxx xx xxxxxxxxx xx xx xxxx xxxxxxxxx xxxx xxx xxxxxx xx xxxxxxx. Yxx xxx xxx xx xx xx xxxxxx xxxxxx. Fxx xxxxxxxxxxx xx xxxx xxxxxxx xxxxxx, xxx xxxxxx xxxxxx xx xxxxxx (xxx xxx <literal moreinfo="none">--xxxx-xxxxxx</literal> xxxxxx) xx xxx <literal moreinfo="none">xxxxxx</literal> xxxxxx xxxxxx xx xxxxxxxx. -</para> - <para>Txxxx xxx xxxxx xxxxxxxx xxx xxxx xxxxxxx. Txx xxxxx xxxxxx xxxxx xx xxxxx x xxxxxx xx xxx xxxxxxxxx xxx xxx xxxxxx. Txx xxxxxx xxxxxx xxxxx xx xxxxxxxx xxxxxxxxx, xxxxx xx x xxxxx-xxxxxxxxx xxxx, xxxxxxxxx xxx xxxxxx xx xxxx xxxxxxxx. Txx xxxxx xxxxxx xxxxx xx xxxxxxxx xxxxxx xx x xxxxxxxx xxxxxxxx.</para> - <para>Ax xxxxxxx xxxxxxx xxxxx xxx xxxxx xxxxxx, xxxxxxx xx xxx xxxxxxxxx xx xxx xxxxxx:</para> - <programlisting format="linespecific">xxxxxxxxx --xxxx=xxxxxxx.xxxxxxxxx.xxx --xxxx=xxxxxxx --xxxxxxxx \ - --xxxx-xxxxxx --xxx-xxxxxxxxx > /xxx/xxxxxxxxxxxx.xxx</programlisting> - <para>Bxxxxxx xxx xxxxxx xx xxxxx xxx xxxx x xxxxxx xxxxxx (x.x., xxx xxx xxxxxxxxx), xxx <literal moreinfo="none">--xxxx</literal> xxxxxx xx xxxxx xxxx x xxxxxx xxxx xxxxxxx xxx xxx xxxx. Ax IP xxxxxxx xxxxx xxxx xxxx xxxxx xxxxxxx. Mxxxxx x xxxxxx xxxxxxxx xxxx xxxx xxxx xxxx xxxx xx xxx xxxx xxxxxx xxx xxxxxxxxx xxxxxxxxxx xx xxxx <replaceable>xxxxxxx</replaceable> xxxx xxx xxxx xxxx xxxxx <literal moreinfo="none">xxxxxxxxx</literal> xx xxxxxxx. Txx xxxxxxx xxxxxxxxx xxx xxxxxxx xxxx x xxxxxxx-xxxx xxxx xx x xxxx xxxx.</para> - <para>Tx xxxx x xxxxxx xx x xxxxxxxx xxxxxxxx, xxx xxx xxxxxx xxxxxx xxx xxxx xxxxxxx. Exxxx xxxxxxxxx xxxx xxx xxxxxxxxx xxxx xxx xxxxxxx xxxx:</para> - <programlisting format="linespecific">xxxxxxxxx -x xxxxxxx -x --xxxx-xxxxxx xxxxxxxxxxxx > /xxx/xxxxxxxxxxxx.xxx</programlisting> - <para>Ix xxxx xxxxxxx, xxx xxxxxxxx xx xxxxx xxxx xxx <literal moreinfo="none">-x</literal> xxxxxx. Txx <literal moreinfo="none">-x</literal> xxxxxx xxxxx xxx xxxxxxx xx xxxxxx xxx xxxx xxx x xxxxxxxx. Txxxx xxxxxxx xxxxxxx xxx xxxxxxxxxxxxxx xxxx xxxxx xxxxxx, xxxx xxxxxxx xxxx, xxx xxx xxxxxxx xxxx xxx xxxxxxxx xxx xxxx xxx xxxxxx xx xxxx. Txx <literal moreinfo="none">--xxxx-xxxxxx</literal> xxxxxx xxx xxx xxxxxx xxxx xxx xxxxxx, xxxxxx xxx xxxxxx, xxx xxxx xxxxxx xxxx xxxx xx’x xxxxxxxx. Nxxx xxx xxxxxxxx xx xxxxxx (<replaceable>xxxxxxxxxxxx</replaceable>) xx xxxxxxxxx. Fxxxxxx, xxxxx xxx xxxxxxxx (xxx xxxxxxx-xxxx xxxx), xxx xxxxxx xx xxxxx xx xxx xxxxxxxx xxxxx.</para> - <para>Txx <literal moreinfo="none">--xxxx-xxxxxx</literal> xxxxxx xx xxxxxxxxx xxx xxxxxxxxx xxxxxxx xxx <literal moreinfo="none">--xxx</literal> xxxxxx xx x xxxxxxx xxxxxx xxx xx xxxxxxxx xxxxxxx xxxxxx. Ix xxxx, xx xxx’xx xxxxxx x xxxxxx xxx xxx xx xxx xxxx <literal moreinfo="none">LOCK TABLES</literal> xxxxxxxxx, xxx xxxx xxxxxxx xx xxxxx xxxx xxxxxxx <literal moreinfo="none">xxxxxxxxx</literal> xxxxxxx xx <literal moreinfo="none">--xxx</literal>. Ix xxxx x xxxxxxxxx, xxx’xx xxxx xx xxxxxxx xxx <literal moreinfo="none">--xxxx-xxx</literal> xxxxxx xx xxxxxxxxxxxx xxxxxxx <literal moreinfo="none">--xxx</literal> xxx xxxxxxx xxx xxxxxxx xx xxxx xxx xxxxxx.</para> - <para>Ix xxx xxxx xx xxxx xx xxxxxxxx xxxxxx xxx xxx xx xxxxxx xxxxxxxx, xxx xxx xxx xxx xxxxx xxxxxx xxxxx xxxxx xxx xxxx xxxxxxx. Ix’x xxx x xxxx xxxxxxx xxxxxx: xxx xxxxxx xxxx xxx xxxx xx xxx xxxxxxxx xxxxxxxx xx xxx xx xxxx xxxxxx. Yxx xxx’x xxxxxxxx xxxx xxxxxxxxxxxx xx x xxxxxxxx xxxxxx xxxxxx. Yxx xxxx xxx xxxx xx xxx xxxxxx xxxxx xxxxxxx xxx <literal moreinfo="none">--xxx-xxxxxxxx</literal> xxxxxx. Hxxx’x xx xxxxxxx xx xxxx xxxxxx:</para> - <programlisting format="linespecific">xxxxxxxxx -x xxxxxxx -x xxxxxxxxxxxx xxxx_xxx xxxxxxx > /xxx/xxxxxxx_xxxxxxx_xxxxxx.xxx</programlisting> - <para>Ix xxxx xxxxxxx, xxx xxxxxxxx xx <replaceable>xxxxxxxxxxxx</replaceable> xxx xxx xxxxxx xx xx xxxxxx xx xxx <replaceable>xxxx_xxx</replaceable> xxx <replaceable>xxxxxxx</replaceable>. Txxxx xxxxx xxxxxxxxxx xxx xxxx xxxx xx xxxxxx xxxx xxx xxxx xxxx <replaceable>xxxxxxx_xxxxxxx_xxxxxx.xxx</replaceable>.</para> - <para><indexterm id="mysqlian-CHP-16-ITERM-3939" significance="normal"><primary>INSERT xxxxxxxxx</primary><secondary>xxxxxxxxx xxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-16-ITERM-3940" significance="normal"><primary>CREATE TABLE xxxxxxxxx</primary><secondary>xxxxxxxxx xxxxxxx xxx</secondary></indexterm> -Txx xxxxxx xx xxxx xxxx xxxxxxx xx <literal moreinfo="none">xxxxxxxxx</literal> xxxx xx xx xxx xxxx xxxx xxxxxx. Ix xxxxxxxxx xxxx xxxxxxx x <literal moreinfo="none">CREATE TABLE</literal> xxxxxxxxx xxx xxxx xxxxx xx xxx xxxxxxxx. Ix xxx xxxx xx xxxxxxxxx xxx <literal moreinfo="none">CREATE TABLE</literal> xxxxxxxxxx, xxx xxx <literal moreinfo="none">--xx-xxxxxx-xxxx</literal>. Ix xxxx xxx xxx xxxxxxxx xx xxx xxxx xxxx xxxxxxxxx xx xxxx xxxxxx, xxx xxx <literal moreinfo="none">--xxxxxx-xxxxxxx</literal> xxxxxx xxx xxx <literal moreinfo="none">xxxxxxxxx</literal> xxxxx. Txx xxxx xxxxx xxxx xxxx xxxxxxxxx xxxxxxx x xxxxxxxx <literal moreinfo="none">INSERT</literal> xxxxxxxxx xxx xxxx xxx xx xxxx. Tx xxxxxx xxx xxxx xxxxxx, xxx xxx xxx xxx <literal moreinfo="none">--xxxxxxxx-xxxxxx</literal> xxxxxx xx xxxx xxxx xxx <literal moreinfo="none">INSERT</literal> xxxx xxxxxxxx xxxxxx xxxx xx xxxxxxxxx xxx xxxx xxxxx xxxxxxx xx xxxxxxxx <literal moreinfo="none">INSERT</literal> xxxxxxxxxx xxx xxxx xxx xx xxxx. -</para> - <para>Tx xxxxxxx xxx xxxx xxxx x xxxx xxxx xxxxxxx xx <literal moreinfo="none">xxxxxxxxx</literal>, xxx xxx xxx xxx <emphasis>xxxxx</emphasis> xxxxxx. Tx xxxxxxx xxx xxxx xxxxxxx xx xxx xxxxxxxxx xxxxxxxxx, xxx xxx xxxxx xxx xxxxxxxxx xxxx xxx xxxxxxx xxxx:</para> - <programlisting format="linespecific">xxxxx -x xxxxxxx -x < /xxx/xxxxxxxxxxxx.xxx</programlisting> - <para>Txxx xxxxxxx xxxxxxxxx xxx <literal moreinfo="none">xxxxx</literal> xxxxxxx xxx xxx xx xxx xxxx-xxxx xxxx. Txxx xxxxxxxxx xxx <emphasis>xxxxx</emphasis> xxxxxx xx xxxx xxxxx xxxx xxx xxxx xxxxx. Ix xxxx xxxxxxx xxx xxxxxx xx SQL xxxxxxxxxx xxxxxxxxx xx xxx xxxx xxxx. Yxx xxx’x xxxxxx xxxx xxx xxxxxxx xxxx, xxx xxxx xxxxxx xx xxx xxxxxxx-xxxx xxxxx xx’x xxxxxxxx.</para> - </refsect1> - <refsect1 id="ch16-21-fm2xml"> - <title>xxxxxxxxx Oxxxxxx - Txx xxxxxxxx xx xxx xxxx xxxx xxx xx xxxxxxxxxx xx xxx xxxxxxx xxxxxx. Bxxxx xx xx xxxxxxxxxxxx xxxx xx xxxxxxx, xxxxx xxxx x xxxxx xxxxxxxxxxx xx xxxx. Fxx xxxx xxxxxxx, xxxxx xx x xxxxxxx, xxxx xxxxxxx xxxxxxx (x.x., -x xxx --xxxx). Txxxx xxxxxxx xxxxxxx xxx xxxxxxxxxxxxxx xxxx xxxxx xxxxxx xxxx xxxxxxx xxxx, xxx xxx xxxxxxx xxxx xxx xxxxxxxx xxx xxxx xxx xxxxxx xx xxxx. - - - - --xxx-xxxx-xxxxxxxx - - - Axxx x DROP DATABASE xxxxxxxxx xxxxxxxx xx x CREATE DATABASE xxxxxxxxx xx xxx xxxxxx xxxx xxx xxxx xxxxxxxx, xxxx xxxxxxxxx xxx xxxxxxxx xxxxxxxx xxx xxxx xx xxxxxxxx. - - - - - --xxx-xxxx-xxxxx - - - Axxx x DROP TABLE xxxxxxxxx xx xxx xxxxxx xxxx xxxxxx xxxx xxx xx INSERT xxxxxxxxxx xxx xxxx xxxxx.--xxx-xxxx-xxxxx xxxxxx (xxxxxxxxx) - - - - - - --xxx-xxxxx - - - Axxx x LOCK xxxxxxxxx xxxxxx xxxx xxx xx INSERT xxxxxxxxxx xxx xx UNLOCK xxxxx xxxx xxx.--xxx-xxxxx xxxxxx (xxxxxxxxx) - - - - - - --xxx, -x - - - Ixxxxxxx xxx MxSQL-xxxxxxxx xxxxxxxxxx xx xxx xxxxxx xxxx. Txxx xxxxxx xx xxxxxxxxxx xx xx xxxxxxx d.d.d xx MxSQL. Ix xx xxxxxxxx xxxx xxx --xxxxxx-xxxxxxx xxxxxx.--xxx xxxxxx (xxxxxxxxx) - - - - - - --xxx-xxxxxxxxx, -A - - - Exxxxxx xxx xxxxxxxxx. - - - - - --xxx-xxxxxxxxxxx, -Y - - - Txxx xxxxxx xx xxxx xxxx MxSQL Cxxxxxx xx xxxx xxx xxxxxxx xxxx xxxxxxx xxx xxxxxxxxx SQL xxxxxxxxxx xxxxxxx xx xxx NDB xxxxxxx xxxxxx. Txxx xxxxxx xx xxxxxxxxx xx xx xxxxxxx d.d.d.--xxx-xxxxxxxxx xxxxxxxxxxxxxxx xxxxxxx - - - - - - --xxxxx-xxxxxxxx - - - Mxxxx xxxxxxxx xxxxxxxxx xxx xxxxxx xxxxx xx xxxxxxxxx xxx xxxxx xxxx xxx x xxx xxxxxx xxxx xxxxxx xxxxx xx xxx xxxxxx xxxx.--xxxxx-xxxxxxxx xxxxxx (xxxxxxxxx) - - - - - - --xxxxxxxxx-xxxx-xxx= - xxxx - - - Sxxxxxxxx xxx xxxxxxxxx xxxxxxxxxx xxxxxxxxx xxxx.--xxxxxxxxx-xxxx-xxx xxxxxxxxxxxxxxx xxxxxxx - - - - - - --xxxxxxxx[=d|d], -x - - - Ix xxxx xxxxxx xx xxx xx x xxxxx xx d (xxxxxxx), xxx xxxxxxxx xxxx x xxxxx’x xxxxxx xxxx xx xxxxxxxx xx xxx xxxxxx xxxx. Ix xx xx xxx xx d, xxxx xxx’x xx xxxxxxxx. Tx xxxxxxx xxxx xxxxxx xxxxx xx’x xxx xxxxxxx, xxx xxx --xxxx-xxxxxxxx xxxxxx.--xxxxxxxx xxxxxx (xxxxxxxxx) - - - - - - --xxxxxxx - - - Oxxxx xxxxxxxx xxxx xxx xxxx xxxx xx xxxx xxx xxxx xxxx xxxxxxx. Ix xxxx xxxxx xxx --xxxx-xxx-xxxx-xxxxx, --xxxx-xxx-xxxxx, --xxxx-xxxxxxx-xxxx, xxx --xxxx-xxx-xxxxxxx xxxxxxx. Dxx’x xxxxxxx xxxx xxxxxx xxxx --xxxxxxxx. Bxxxxx xxxxxxx d.d.d, xxxx xxxxxx xxx xxx xxxx xxxx xxxxxxxxx xxxx xxxxxxxxx xxxxx. - - - - - --xxxxxxxxxx= - xxxx - - - Mxxxx xxx xxxxxx xxxx’x xxxxxxxx xxxxxxxxxx xxxx xxxxx xxxxxxxx xxxxxxx. Txx xxxxxxx xxxxxxxxx xxx: xxxx, xxxxxddd, xxxxxdd, xxxxxxxxxx, xxxxxx, xxxxx, xxd, xxxxx (xx xxxxx xxx xxxxx xxxxxxxx), xx_xxx_xxxxxxx, xx_xxxxx_xxxxxxx, xxx xx_xxxxx_xxxxxxx. Mxxx xxxx xxx xxxx xxx xx xxxxx xx x xxxxx-xxxxxxxxx xxxx. Txxx xxxxxx xx xxxx xxxx xxxxxxx d.d.d xx MxSQL xx xxxxxx.--xxxxxxxxxx xxxxxx (xxxxxxxxx) - - - - - - --xxxxxxxx-xxxxxx, -x - - - -Gxxxxxxxx xxxxxxxx INSERT xxxxxxxxxx xx xxx xxxxxx xxxx. ---xxxxxxxx-xxxxxx xxxxxx (xxxxxxxxx) -INSERT xxxxxxxxxxxxxxxxxx xxxxxxx - - - - - - --xxxxxxxx, -C - - - Cxxxxxxxxx xxxx xxxxxx xxxxxxx xxx xxxxxxx xxx xxx xxxxxx, xx xxxxxxxxxxx xx xxxxxxxxx.--xxxxxxxx xxxxxxxxxxxxxxx xxxxxxx - - - - - - --xxxxxx-xxxxxxx - - - -Ixxxxxxx xxx MxSQL-xxxxxxxx xxxxxxxxxx (x.x., CREATE TABLE) xx xxx xxxxxx xxxx. Ix’x xxxxxxxxxx xxxx xxx --xxx xxxxxx. ---xxx xxxxxx (xxxxxxxxx) ---xxxxxx-xxxxxxx xxxxxx (xxxxxxxxx) - - - - - - --xxxxxxxxx, -B - - - -Nxxxx xxxx xxxx xxx xxxxxxxx xx xxxxxx. Txxxx xxxxx xxx xxx xx xxxxx xxxx xxxx xxxxxx xxxxxx xxxxx xxx --xxxxxx xxxxxx. ---xxxxxxxxx xxxxxxxxxxxxxxx xxxxxxx ---xxxxxx xxxxxxxxxxxxxxx xxxxxxx - - - - - --xxxxx[=xxxxxxx], -#[xxxxxxx] - - - Lxxx xxxxxxxxx xxxxxxxxxxx. Txx xxx xx xxxxxxx xxxx xx xxxxxxx xx 'x:x:x,xxxxxxx'. Sxx xx xxx xxx xx xxx xxxx xx xxxxxxx xxx xxxx xxxxxxx xxx xx xxxxxxxxxxx xx xxxxx xxxxx xxx xxxxxx xxxx xxx xx xxxx. Bxxxx xx xx xxxxxxx xx xxx xxx xxxxx xxx xxxx xxxxxx:--xxxxx xxxxxxxxxxxxxxx xxxxxxx - - xxxxxxxxx -x xxxxxxx -x --xxxxx='x:x:x:x,/xxx/xxxxx_xxxxx.xxx' xxxxxxxxxxxx > /xxx/xxxxxxxxxxxx.xxx - - - - - --xxxxx-xxxxx - - - Wxxxxx xxxxxxxxx xxxxxxxxxxx xx xxx xxx xxxx xxx xxxxxxx xxxx. Ix’x xxxxxxxxx xx xx xxxxxxx d.d.dd. - - - - - --xxxxx-xxxx - - - Wxxxxx xxxxxxxxx xxxxxxxxxxx xxx CPU xxx xxxxxx xxxxx xxxxxxxxxxx xx xxx xxx xxxxx xxx xxxxxxx xxxx. - - - - - --xxxxxxx-xxxxxxxxx-xxx= - xxx - - - Sxxxxxxxx xxx xxxxxxx xxxxxxxxx xxx xxx xxx xxxxxxx xx xxx. Exxxxxx SHOW CHARACTER SET xxxx MxSQL xx xxx xxxxxx xx xxx x xxxx xx xxxxxxxxxxxxx. Bx xxxxxxx, xxxxxx xxxxxxxx xx xxx xxxxxxx xxx UTFd. Pxxxxxxx xxxxxxxx xxxx xxxxxd.--xxxxxxx-xxxxxxxxx-xxx xxxxxxxxxxxxxxx xxxxxxx - - - - - - --xxxxxxx-xxxxxx - - - -Axxx xxx DELAYED xxxxxxx xx INSERT xxxxxxxxxx xx xxx xxxxxx xxxx. Ix xxxxx xxxxxxxx xx xxxxxxxxx xxxx xxxxxx xxx --xxxxxxx. ---xxxxxxx xxxxxx (xxxxxxxxx) -INSERT xxxxxxxxxDELAYED xxxxxxx -DELAYED xxxxxxxINSERT xxxxxxxxx - - - - - - --xxxxxx-xxxxxx-xxxx - - - Ixxxxxxxx xxx xxxxxxx xx xxxx xxx xxxxxx xx xxx xxxxxxx xxx xxxx xx xxxxxx xxx xxxxxx xxxx xx x xxxxxx xxxxxxxxxxx xxxxxx xxxxx xxxxxxxxxx xxx xxxxxx. Uxxxx xxxx xxxxxx xxxx xxxxxxx xxx --xxxxxx-xxxx xxxxxx. ---xxxxxx-xxxxxx-xxxx xxxxxx (xxxxxxxxx) - - - - - - --xxxxxxx-xxxx, -K - - - -Fxx MxISAM xxxxxx, xxxx xx ALTER TABLE...DISABLE KEYS xxxxxxxxx xx xxx xxxxxx xxxx xxxxxx xxxx xxx xx INSERT xxxxxxxxxx, xxx xx ALTER TABLE...ENABLE KEYS xxxxxxxxx xxxxx xxxx xxx xx xxxxxxxx xxxxx xxxxxxxxxxx. ---xxxxxxx-xxxx xxxxxx (xxxxxxxxx) -ALTER TABLE xxxxxxxxxxxxxxxxxx xxxxxxx - - - - - - --xxxxxx, -E - - - Ixxxxxxx xxxxxx xxxx xxx xxxxxxxxx. Txxx xxxxxx xx xxxxxxxxx xx xx xxxxxxx d.d.d. - - - - - --xxxxxxxx-xxxxxx, -x - - - -Bxxxxxx INSERT xxxxxxxxxx xxxxxxxx xxx xxxx xxxxx xx xxx xxxxxx xxxx xx xxxx xxx xxxxxx xxxxxx. Oxxxxxxxx x xxxxxxxx INSERT xxxxxxxxx xxx xxxx xxx xx xxxx xxxxx xxxx xx xxxxxx xx xxx xxxx xxxx. ---xxxxxxxx-xxxxxx xxxxxx (xxxxxxxxx) -INSERT xxxxxxxxxxxxxxxxxx xxxxxxx - - - - - - --xxxxxx-xxxxxxxx-xx= - xxxxxxxxxx - - - --xxx xxxxxx (xxxxxxxxx) -Uxx xxxx xxxx xxx --xxx xxxxxx xx xxxxxxx xxx xxxxxxxxxx xxxx xxxxx xxx xxx xxxxxx xx xxx xxxx xxxx xxxx. ---xxxxxx-xxxxxxxx-xx xxxxxxxxxxxxxxx xxxxxxx - - - - - - --xxxxxx-xxxxxxx-xx=xxxxxxxxx - - - Uxx xxxx xxxx xxx --xxx xxxxxx xx xxxxxxx xxx xxxxxxxxxxxxx xxxxxxx xxxxxxx xxxxxxxxxx xx xxx xxxx xxxx xxxx. Bxxxxxxxx xx xxx xxxxxxx.--xxxxxx-xxxxxxx-xx xxxxxxxxxxxxxxx xxxxxxx - - - - - - --xxxxxx-xxxxxxxxxx-xxxxxxxx-xx= - xxxxxxxxxx - - - Uxx xxxx xxxx xxx --xxx xxxxxx xx xxxxxxx xxx xxxxxxxxxx xxxx xxx xx xxxx xxxx xxxxxxxxx xx xxxxx xxx xxx xxxxxx xx xxx xxxx xxxx xxxx.--xxxxxx-xxxxxxxxxx-xxxxxxxx-xx xxxxxxxxxxxxxxx xxxxxxx - - - - - - --xxxxxx-xxxxxxxxxx-xx= - xxxxxxxxx - - - Uxx xxxx xxxx xxx --xxx xxxxxx xx xxxxxxx xxx xxxxxxxxxx xxxx xxxx xxxxxx xx xxx xxxx xxxx xxxx.--xxxxxx-xxxxxxxxxx-xx xxxxxxxxxxxxxxx xxxxxxx - - - - - - --xxxxx-xxxxx - - - Lxxxx xxx xxxxxx xx xxx xxxxxxx. Txxx xxxxxx xxx xxxx xxxxxxxxxx xxx xxxxxxxx xxxx --xxxx-xxx-xxxxxx.--xxxxx-xxxxx xxxxxx (xxxxxxxxx) - - - - - - --xxxxx-xxxx, -F - - - Fxxxxxx xxx xxxx. Ix xxxxxxxx xxx xxxx xx xxxx RELOAD xxxxxxxxx xx xxx xxxxxx.--xxxxx-xxxx xxxxxx (xxxxxxxxx) - - - - - - --xxxxx-xxxxxxxxxx - - - Fxxxxxx xxx xxxxxxxxxx. Ix xxx xxxxx xx xx xxxxxxx d.d.dd.--xxxxx-xxxx xxxxxx (xxxxxxxxx) - - - - - - --xxxxx, -x - - - Ixxxxxxxx xxx xxxxxxx xx xxxxxxxx xxxxxxxxxx xxxx xxxxxxx xxxxxx. Txxx xx xxxxxx xx xxxxxxxxxx xxxxx xxx xxxxxxxxxx xxxxxx xxxx xx xxxx xxxxxxx xx xxxxx xxxxx xx xxxxxx xxxxx.--xxxxx xxxxxxxxxxxxxxx xxxxxxx - - - - - - --xxxx, -? - - - Dxxxxxxx xxxxx xxxx xxxxxxxxxxx.--xxxx xxxxxxxxxxxxxxx xxxxxxx - - - - - - --xxx-xxxx - - - Uxxx xxxxxxxxxxx xxxxxxxxxxx xxx BINARY, BIT, BLOB, xxx VARBINARY xxxxxxx. - - - - - --xxxx= - xxxx - , -x - xxxx - - - Sxxxxxxxx xxx xxxx xx IP xxxxxxx xx xxx xxxxxx xxx xxxxxxxxxx. Txx xxxxxxxxx xx xxx xxxxxxx. Txx xxxx xxx xxxx xxxxxxxxxxx xxx xxxxxxx xxxxxxxxxx xxxx xxxx xx xx xxx xx xxx xxxxxx.--xxxx xxxxxxxxxxxxxxx xxxxxxx - - - - - - --xxxxxx-xxxxx=xxxxxxxx.xxxxx - - - Ixxxxxxxx xxx xxxxxxx xxx xx xxxxxx xxx xxxxx xxxxx xx xxx xxxxx xxxxxxxx. Fxx xxxx xxxx xxx xxxxx, xxxxx xxxx xxxxxx xxxxxxxx xxxxx xxxx xxx xxxxxxxx xxx xxxxx xxxxxxxxxxx xx xxxx. - - - - - --xxxxxx-xxxxxx - - - Axxx xxx IGNORE xxxxxxx xx INSERT xxxxxxxxxx xx xxx xxxx xxxx. - - - - - --xxxxx-xxxxxxxxxx-xx= - xxxxxxxxx - - - --xxx xxxxxx (xxxxxxxxx) -Uxx xxxx xxxx xxx --xxx xxxxxx xx xxxxxxx xxx xxxxxxxxx xxxx xxxx xxxxxxx xx xxx xxxx xxxx xxxx.--xxxxx-xxxxxxxxxx-xx xxxxxxxxxxxxxxx xxxxxxx - - - - - - --xxxx-xxxxxx, -x - - - Ixxxxxxxx xxx xxxxxxx xx xxx x READ LOCK xx xxx xxxxxx xx xxxx xxxxxxxx xxxxxx xxxxxxxxx xxxx, xxx xxx xxx xxxxxxxxx xx xxx xxxx xxxx. Ix xxxxx x xxxxxxxx xxxx xx’x xxxxxxx xxx xxxxxxxx xxx xxxx xxxxxx xxxxxxx xxx xxxxxxx xxx xxxx xxxxxxxx. Txxx xxxxxx xx xxxxxxxxx xxxx xxxx MxISAM xxxxxx. Fxx xxxxxxxxxxxxx xxxxxxx xxxxxxx, xxx --xxxxxx-xxxxxxxxxxx xxxxxxx.--xxxx-xxxxxx xxxxxxxxxxxxxxx xxxxxxx - - - - - - --xxxx-xxx-xxxxxx, -x - - - Lxxxx xxx xxxxxx xx xxx xxxxxxx. Txxx xxxxxx xxxxxxxx --xxxxx-xxxxx, xxxxx xxx xxxx xxxxxxxxxx. - - - - - --xxx-xxxxx=xxxxxxx - - - Wxxxxx xxxxxx xxx xxxxxxx xxxxxxxx xx xxx xxxx xxxxx. Txx xxxx xxxx xxx xx xxxxxxxx. Txxx xxxxxx xx xxxxxxxxx xx xx xxxxxxx d.d.dd. - - - - - --xxxxxx-xxxx=xxxxx - - - Txxx xxxxxx xx xxxx xxxx xxxxxxxxxxx. Ix xxxxxx xxx xxxx xx xxx xxxxxxxx xxxxxx xxx xxxx xxx xxxxxx’x xxxxxxxx xx xxx xxx xxxx xx xxx xxxx xxxx. Ix xxxxxxxx RELOAD xxxxxxxxx. Ix xxxxxxxxx xxxx xxxxxxx --xxxx-xxxxxx xxx --xxxx-xxx-xxxxxx. - - - - - --xx-xxxxxxxxxx - - - Axxx SET AUTOCOMMIT=d: xxxxxx xxxx INSERT xxxxxxxxx, xxx x COMMIT; xxxxxxxxx xxxxx xxxx INSERT xxxxxxxxx. - - - - - --xx-xxxxxx-xx, -x - - - -Ixxxxxxxx xxx xxxxxxx xxx xx xxx CREATE DATABASE xxxxxxxxxx xx xxx xxxxxx xxxx xxxx xxx --xxx-xxxxxxxxx xxxxxx xx xxx --xxxxxxxxx xxxxxx xx xxxx.--xx-xxxxxx-xx xxxxxx (xxxxxxxxx) -CREATE DATABASE xxxxxxxxxxxxxxxxxx xxxxxxx - - - - - - --xx-xxxxxx-xxxx, -x - - - -Ixxxxxxxx xxx xxxxxxx xxx xx xxx CREATE TABLE xxxxxxxxxx xx xxx xxxxxx xxxx.--xx-xxxxxx-xxxx xxxxxx (xxxxxxxxx) -CREATE TABLE xxxxxxxxxxxxxxxxxx xxxxxxx - - - - - - --xx-xxxx, -x - - - Exxxxxx xxxx xxxxxxxx xxx xxxxx xxxxxx, xxx xxxx.--xx-xxxx xxxxxx (xxxxxxxxx) - - - - - - --xxx - - - -Txxx xxxxxx xx x xxxxxxxxxxx xx xxxxxxx xxxxxxxx xxxx xxxxxxx: --xxx-xxxx-xxxxx, --xxx-xxxxx, --xxxxxx-xxxxxxx (xx --xxx xxxxxxx xxxxxx xxxxxxx d.d.d), --xxxxxxx-xxxx, --xxxxxxxx-xxxxxx, --xxxx-xxxxxx, --xxxxx, xxx --xxx-xxxxxxx. Ax xx xxxxxxx d.d, xxx --xxx xxxxxx xx xxxxxxx xx xxxxxxx. -Uxx --xxxx-xxx xx xxxxxxx xx xxx xxxxx xxxx xxxxxxx xxxxxx. ---xxx xxxxxx (xxxxxxxxx) ---xxxxx xxxxxxxxxxxxxxx xxxxxxx ---xxxxxx-xxxxxxx xxxxxx (xxxxxxxxx) ---xxxx-xxxxxx xxxxxxxxxxxxxxx xxxxxxx ---xxxxxxxx-xxxxxx xxxxxx (xxxxxxxxx) ---xxx xxxxxx (xxxxxxxxx) ---xxx-xxxxx xxxxxx (xxxxxxxxx) ---xxx-xxxx-xxxxx xxxxxx (xxxxxxxxx) - - - - - - --xxxxx-xx-xxxxxxx - - - Sxxxx xxxx xx xxxxxx xx xxxxx xxxxxxx xxx xx xxxxx xxxxx. Ix xxxxx xxxx xxx xxxxxx xxxxxxx, xxxxxx. - - - - - --xxxxxxxx[= - xxxxxxxx - ], -x[ - xxxxxxxx - ] - - - Pxxxxxxx xxx xxxxxxxx xx xxxx xx xxx xxxxxx. A xxxxx xx xxx xxxxxxxxx xxxxx -x xx xxx xxxxxxxx xx xxxxx. Ix xxx xxxxxxxx xx xxx xxxxx xxxx xxxxx xxx -x xxxxxx, xxx xxxx xxxx xx xxxxxxxx xxx xxx.--xxxxxxxx xxxxxxxxxxxxxxx xxxxxxx - - - - - - --xxxx= - xxxx - , -P - xxxx - - - Sxxxxxxxx xxx xxxx xxxxxx xx xxx xxx xxxxxxxxxx xx xxx xxxxxx. A xxxxx xx xxxxxxxx xxxxxx xxx xxxx xxxxxx xxxx xxxxx xxx -P xxxx xx xxx xxxxxx.--xxxx xxxxxxxxxxxxxxx xxxxxxx - - - - - - --xxxxxxxx=xxxxxxxx - - - Uxxx xx xxxxxxx xxx xxxx xx xxxxxxxx xx xxx xxx xxxxxxxxxx xx xxx xxxxxx. Txx xxxxxxx xxx TCP, SOCKET, PIPE, xxx MEMORY. - - - - - --xxxxx, -x - - - Ixxxxxxxx xxx xxxxxxx xxx xx xxxxxx xxxx xxxx x xxxxxxxx xxxxxxx xxx xxxxxx xxxxxxxxx. Ixxxxxx, xxxx xx xxxxxxxx xxx xxx xx x xxxx xxxxxxxx xx xxx xxxxxx xxxx.--xxxxx xxxxxxxxxxxxxxx xxxxxxx - - - - - - --xxxxx-xxxxx, -Q - - - Pxxxxx xxx xxxxx xx xxxxxxxxx, xxxxxx, xxx xxxxxxx xxxxxx xxxxxxxxx (`). Txxx xx xxx xxxxxxx xxxxxx. Ix xxxxxx xx xxxxxxx xx ANSI_QUOTES SQL xxxx, xxxxxx xxxxxx xxxx xx xxxx xxxxxxx. Txxx xxxxxx xx xxxxxxx xx xxxxxxx. Uxx --xxxx-xxxxx-xxxxx xx xxxxxxx xx.--xxxxx-xxxxx xxxxxx (xxxxxxxxx) - - - - - - --xxxxxxx - - - Pxxx REPLACE xxxxxxxxxx xxxx xxx xxxx xxxx xxxxxxx xx INSERT xxxxxxxxxx. Txxx xxx xxxxx xx xx xxxxxxx d.d.d. - - - - --xxxxxx-xxxx=xxxxxxxx, -xxxxxxxxx, > xxxxxxxx - - Pxxxxxxx xxx xxxx xxx xxx xxxx xx xxx xxxx xx xxxxx xxxx xxxxxx xx xxxxxxxx. Uxx xxx --xxxxxx-xxxx xxxxxx xx Wxxxxxx xxxxxxx xx xxxxxxx xxx-xxxx xxxxxxxxxx (\x) xxxx xxxxx xxxxxxxxx xx xxxxxxxx-xxxxxx xxx xxx-xxxx xxxxxxxxxx (\x\x).--xxxxxx-xxxx xxxxxx (xxxxxxxxx) - - - - - - --xxxxxxxx, -R - - - Dxxxx xxxxxx xxxxxxxxxx xxx xxxxxxxxx. Txxx xxxxxx xxx xxxxx xx xx xxxxxxx d.d.d. Ix xxxxxxxx SELECT xxxxxxxxx xx xxx xxxx xxxxx xx xxx xxxxx xxxxxxxx. Txx xxxxxxxxxx xxxxxxx xx xxx xxxx xxxx xxxxxxx xx xxxxx xxxxxxxx xx xxx xxxxxxx xxxxxxxxxx, xx xxx xxxxxxx xxxx xxxx xx xxxx xxxx xxxxxxxxx xxxxxxx. - - - - - --xxx-xxxxxxx - - - Axxx xxx SET NAMES xxxxxxxxx xx xxx xxxx xxxx. Ix’x xxxxxxx xx xxxxxxx. Uxx --xxxx-xxx-xxxxxxx xx xxxxxxx xx. - - - - - --xxxxxx-xxxxxxxxxxx - - - -Exxxxxxx x BEGIN xxxxxxxxx xxxxxx xxxxxxxxx xx xxxx xxxxxxx xxxx xxxxxxxxxxxx xxxx xxx xxxxxx. Ix’x xxxxxxxxx xxxx xx xxxxxxxxxxxxx xxxxxxx xxxxxxx. Ix xxxxxx xxx xx xxxx xxxx MxSQL Cxxxxxx.--xxxxxx-xxxxxxxxxxx xxxxxx (xxxxxxxxx) -BEGIN xxxxxxxxx - - - - - - --xxxx-xxxxxxxx - - - Ixxxxxxxx xxx xxxxxxx xxx xx xxxxxx xxx xxxxxxxx xxxx x xxxxx’x xxxxxx xx xxx xxxxxx xxxx. Ix xxxxxxxx xxx --xxxxxxxx xxxxxx.--xxxx-xxxxxxxx xxxxxx (xxxxxxxxx) - - - - - - --xxxx-xxx - - - -Dxxxxxxx xxx --xxx xxxxxx. ---xxx xxxxxx (xxxxxxxxx) --xxxx-xxx xxxxxx (xxxxxxxxx) - - - - - - --xxxx-xxxxx-xxxxx - - - -Dxxxxxxx xxx --xxxxx-xxxxx xxxxxx. ---xxxx-xxxxx-xxxxx xxxxxx (xxxxxxxxx) ---xxxxx-xxxxx xxxxxx (xxxxxxxxx) - - - - - - --xxx - - - Sxxxxxxxx xxxx xxxxxx SSL xxxxxxxxxxx xxxxxx xx xxxx. Rxxxxxxx xxx xxxxxx xx xxxx SSL xxxxxxx. Ix xxxx xxxxxx xx xxxxxxx xx xxx xxxxxxx xx xxxxxxx, xxx --xxxx-xxx xx xxxxxxx xx. - - - - - --xxx-xx=xxx_xxxx - - - Sxxxxxxxx xxx xxxx xx xxx xxxx (x.x., xxx xxx xxxx) xxxxxxxxxx x xxxx xx xxxxxxx SSL CAx. - - - - - --xxx-xxxxxx=xxxx - - - Sxxxxxxxx xxx xxxx xx xxx xxxxxxx xxxxxxxxxxxx xxxx (x.x., xxx xxx xxxx). - - - - - --xxx-xxxx=xxxxxxxx - - - Sxxxxxxxx xxx xxxx xx xxx SSL xxxxxxxxxxx xxxx xx xxx xxx SSL xxxxxxxxxxx. - - - - - --xxx-xxxxxx=xxxxxxx - - - Gxxxx x xxxx xx xxxxxxx xxxx xxx xx xxxx xxx SSL xxxxxxxxxx - - - - - --xxx-xxx=xxxxxxxx - - - Sxxxxxxxx xxx SSL xxx xxxx xx xxx xxx xxxxxx xxxxxxxxxxx. - - - - - --xxx-xxxxxx-xxxxxx-xxxx - - - Vxxxxxxx xxx xxxxxx’x xxxxxxxxxxx xxxxxxx xxx xxxxxx’x xxxxxxxxxxx xxx xxx xxxxxx xx xxxxx-xx. Ix xx xxxxxxxxx xx xx xxxxxxx d.d.dd. - - - - - --xxxxxx= - xxxxxxxx - , -S - xxxxxxxx - - - Pxxxxxxx xxx xxxx xx xxx xxxxxx’x xxxxxx xxxx xx Uxxx xxxx xxxxxx, xx xxx xxxxx xxxx xx Wxxxxxx xxxxxxx.--xxxxxx xxxxxxxxxxxxxxx xxxxxxx - - - - - - --xxx= - xxxx - , -T - xxxx - - - Cxxxxxx xxx xxxxxxxx xxxxxx xxxx,: xxx xxx xxx xxxxx xxxxxx (x.x., xxxxx.xxx) xxx xxxxxxx xxx xxx xxxx (x.x., xxxxx.xxx). Txx xxxx xxxx xxxx xxxx xxxxxxx xxxx xx x xxx-xxxxxxxxx xxxxxx. Txxx xxxxxx xxxxxxxx FILE xxxxxxxxx xxx xxx MxSQL xxxxxx xxxx xxxx xxxxx xxxxxxxxxx xxx xxx xxxxxxxxx xx xx xx xxxxx xxx xxxxxxxx xxxx.--xxx xxxxxx (xxxxxxxxx) - - - - - - --xxxxxx - - - -Sxxxxxxxx xxxxxx xx xxxx. Axx xxxxx xxxxx xxx --xxxxxx xxxxxx xxx xxxxxxx xx xxxxx xxxxx xxx xxx xx xxxxxxxx xxxxx. ---xxxxxx xxxxxxxxxxxxxxx xxxxxxx ---xxxxxxxxx xxxxxxxxxxxxxxx xxxxxxx - - - - - - --xxxxxxxx - - - Ixxxxxxx xxxxxxxx xx xxxx xxxxx. Txxx xxxxxx xx xxx xxxxxxx. Uxx --xxxx-xxxxxxxx xx xxxxxxx xx. - - - - - --xx-xxx - - - Axxx SET TIME_ZONE='+dd:dd'; xx xxx xxxx xxxx xx xxxx xxx xxxx xxxxx xxx xx xxxxxxxx xx x xxxxxx xx x xxxxxxxxx xxxx xxxx xxx xxx xxxxx xxxxxxxxxxxxxxx xxxx TIMESTAMP xxxxxxx. Txxx xxxxxx xx xxxxxxxxx xx xx xxxxxxx d.d.d xxx xxxxxxx xx xxxxxxx. Uxx --xxxx-xx-xxx xx xxxxxxx xx. - - - - - --xxxx= - xxxx - , -x - xxxx - - - Sxxxxxxxx xxx xxxxxxxx xxx xxxxxxxxxx xx xxx xxxxxx. A xxxxx xx xxxxxxxx xxxxx xxx -x xxxxxx. Ix xxx -x xxxxxxx xx xxxx xxxxxx xx xxxx xxx xxx xxxx xxxx xx xxx xxxxx, xxx xxxxxxx xxxxxx xxxx xx xxxxxxx.--xxxx xxxxxxxxxxxxxxx xxxxxxx - - - - - - --xxxxxxx, -x - - - Dxxxxxxx xxxx xxxxxxxxxxx.--xxxxxxx xxxxxxxxxxxxxxx xxxxxxx - - - - - - --xxxxxxx, -V - - - Dxxxxxxx xxx xxxxxxx xx xxx xxxxxxx xxx xxxxx.--xxxxxxx xxxxxxxxxxxxxxx xxxxxxx - - - - - --xxxxx='xxxxxxxxx', -x 'xxxxxxxxx' - - Sxxx x WHERE xxxxxxxxx xxx xxxxxxxxx xxxx xxxx xxxxxx xx xx xxxxxxxx. Fxx xxxxxxxx, xxxxxxx xxxx xx xxxxxx xx xxxxxx xxx xxxxxxx xxxxx xxxx xxxx xxx xxxxxxx xxx xxx xxxxxxx xx Nxx Oxxxxxx. Wx xxxxx xxx xxx xxxxxxx xxxx xx:--xxxxx xxxxxx (xxxxxxxxx) - - xxxxxxxxx -x xxxxxxx -x / - --xxxxx="xxxxxx_xxxx='Nxx Oxxxxxx'" xxxxxxxxxxxx xxxxxxx > /xxx/xxxxxxx_xxxxxxx_xxxxxxxxxx.xxx - - - - - --xxx, -X - - - Exxxxxx xxxxxxxxx xx XML xxxxxx.--xxx xxxxxx (xxxxxxxxx) - - - - - - - xxxxxxxxx --xxxxx Oxxxxxx - xxxxx xxx xxxxxxxxx, xxxxxxx, xxx xxxxxxx xxxxx xxxx xxxx xxx --xxxxx xxxxxx xxx xxxxxxx MxSQL-xxxxxxx xxxxxxxxx. Txx xxxxxx xx xxxxxxxxx --xxxxx='xxxx:xxxx:xxxx'. Wxxx xxxx xxxxxxx xxxx xx xx xxxxx xxx x xxxxxxxxxx xxxxxx, xxxxxx xxx xxxx xxxx x xxxxx xxx xxx xxxxxxx xx xxxxx xxxxxxxx xx x xxxxx-xxxxxxxxx xxxx: --xxxxx='xxxx:xxxx,xxxxxxx,xxxxxxx:xxxx'. Ax xxxxxxxxxxx xx xxx --xxxxx='xxxx:xxxx:xxxx' xxxxxx xx --#xxxx:xxxx:xxxx. Txxx xxxxxx xxxxx xxx xxxxx-xxxx xx xxxxxx: xxx xxxxx xxxxxxxxx xxxxx xxx xxx xx xxx xxxxx xxx xxxxxxxx. - - Dxxxxxxxx Oxxxxxx - - - - - - - Fxxx - - - Dxxxxxxxxxx - - - - - - - x - - - Lxxx xxx DBUG xxxxxx. Tx xxx xxxx xxxxxxx xxxxxx, xxxx xxx x xxxx xxxxxxxx xx xxx xxxxxxxx xxxxx xxxxxxxx. - - - - - D - - - Uxxx xx xxxxxxx x xxxxx xxxxx xxxx xxxx xx xxx xxxxxxxxx xxx. Axxxx xxx xxxx xxx x xxxxx, xxxx xxx xxxxxx xx xxxxxx-xx-x-xxxxxxx xx xxxxx (x.x., D,dd xxx x xxx xxxxxx xxxxx). - - - - - x - - - Lxxxxx xxxxxxxxx, xxxxxxx, xxx xxxxxxxxx xx xxxxxxxxxxx xxxxxxxxx. Txx x xxxx xxxx xx xxxxxxxxx xxxxxx xxxxxxx xx xxx xxxxxxxxx xxxxx xxxxxxxx xxx xx xxx xxx. - - - - - F - - - Nxxxx xxx xxxxxx xxxx xxxx xxx xxxxxxxxx xxx xxxxxxx xxxxxx. - - - - - x - - - Sxxxxxxxx xxx xxxxxxx xxxxxxxxxx (PID) xx xxxxxx xxxxxxxxxx xxx xxxx xxxx xx xxxxxxxxx xxx xxxxxxx xxxxxx xxxx xx xxxxxx. - - - - - x - - - Exxxxxx xxxxxxxxx. A xxxx xxxxx xxxxxxx.xxx xxx xx xxxx xx xxxxxxx xxxxxxx xx xx xxxx xxx xxxxxxxxx. A xxxx xx xxxxxxxxx xx xxxxxxx xxx xx xxxxx xxxxx xxxx xxxx. Ix xxxx xxx xxxxxxxxx, xxx xxxxxxxxx xxxx xx xxxxxxxx. - - - - - L - - - Ixxxxxxx xxx xxxxxx xxxx’x xxxx xxxxxx xx xxxx xxxx xx xxx xxxxxxxxx xxx xxxxxxx xxx. - - - - - x - - - Lxxx xxx xxxxxxx xxxxx xx xxxx xxxxxxxx xxx xxxxxxxxx xxx xxxxxxx. - - - - - N - - - Ixxxxxxx x xxxx xxxxxx xx xxxx xxxx xx xxx xxx. - - - - - x - - - Rxxxxxxxx xxxxxxxxx xxxxxxxxxxx xx x xxxxx xxxx, xxxxxx xxxx xxxxxx. Txx xxxx xxxx xx xxxxx xxxxx xxx xxxx, xxxxxxxxx xxxx xx xx x xxxxx (x.x., x,/xxx/xxxxx_xxxxx.xxx) - - - - - O - - - Txxx xx xxx xxxx xx xxx x xxxx, xxx xxx xxxx xx xxxxxxx xxxxxxx xxxx xxxxx, xxxxxxxx xxxxxx xxx xxxxxx xxxx xxxx. - - - - - x - - - Lxxxxx xxxxxxxxx xx xxxxx xxxxxxxxx. Exxx xxxxxxx xxx xx xx xxxxxxxxx xxxx xxx DBUG_PROCESS xxxxx. - - - - - P - - - Wxxxxx xxx xxxxxxx xxxxxxx xxxx xxx xxxx xxxx xx xxx xxxxxxxxx xxx xxxxxxx xxxx. - - - - - x - - - Rxxxxx xxx xxxxxxxx xxxxx’x xxxxxxxx xxxxxxx xxxxx. - - - - - S - - - Uxxx xxxx xxxxxxxxxx xx xxxxxx xxxxxx xxxxx. Wxxx xxx xxxxx xxx-xxxx xx xxxxxxxx. - - - - - x - - - Exxxxxx xxxx xxx xxxx xxxxx xxxxxxx. A xxxxxxx xxxxxxx xxxxx xxxxx xxx xx xxxxx xxxxx xxx xxxx, xxxxxxxxx xxxx xx xx x xxxxx. - - - - -
-
-
- - - xxxxxxxxxxxxx - - - xxxxxxxxxxxxx - - - - xxxxxxxxxxxxx [xxxxxxx] [xxxxxxxx] - - - - <para><indexterm id="ch16-idx-missedid-281" significance="normal"><primary>xxxxxxxxxxxxx xxxxxxx</primary></indexterm> -Uxx xxxx xx xxxxxxx x xxxxxxx xx xxx xxxx xxxxx xxx. Txx xxxx xx xxx xxxxxxx xxx xx xxxxx xx xxx xxxxxx xxxxxxxx. Oxxxxxxxx, xxx xxxxxxx xxxx xxxx xx xxx xxxxxx’x xxxxxxxxxxxxx xxxx (x.x., <literal moreinfo="none">xx.xxx</literal> xx <literal moreinfo="none">xx.xxx</literal>, xxxxxxxxx xx xxxx xxxxxx) xxx xxxx xxxxxxxxxxx. Txx xxxxxxxxx xxxxxxx xxx xxxxxx xxx xxxxxxx xx xxxxxx xxxx xx xxxxxxxxx.</para> - </refsect1> - <refsect1 id="ch16-24-fm2xml"> - <title>xxxxxxxxxxxxx Oxxxxxx - - - - -x - - - Ixxxxxxxx xxx xxxxxxx xxx xx xxxxxxx xxxxxxx xxxx xxxxxxx SQL xxxxxxxxxx. - - - - - --xxxxx, -x - - - Exxxxxx xxxxxxxxx xxxx. - - - - - -x - xxxxxxxxxx - - - Exxxxxxx xxxxxxxxxxx xx xxxxxxx xxxx xxxx xxx xxxxx xxxxxxxxxx. - - - - - -x - xxxx - - - Sxxxxxxxx xxx xxxx’x xxxx xxx xxxxx xxx xxxxxxx xx xx xxxx. Bx xxxxxxx, xxxxxxxx xxx xxxxx xxxx xxx xxxxxx’x xxxxxxxx xx xxx xxxxxxxx’x xxxxxx. - - - - - --xxxx - - - Dxxxxxxx xxxx xxxxxxxxxxx xx xxx xxxxxxx. - - - - - -x - xxxx - - - Sxxxxxxxx xxx xxxxxxxx xx xxx xxxxxx. - - - - - -x - - - Wxxx xxxx xxxxxx, xxx xxxx xxxx xx xxxxx xx xxx xxxxxxxxx xxxx xxx xxx xxxxxxx’x xxxxxxx. - - - - - -x - xxxxxx - - - Sxxx xxx xxxxxxx xxxxxx xx xxxxxxxxxxx xxx xxxxxxxxx. - - - - - -x - - - Rxxxxxxx xxx xxxxx xx xxxxx xxx xxxxxxxxx. - - - - - -x - xxxx - - - Sxxxxxxxx xxx xxxx xx xxxxxxx xx xxxxx xx xxxxxx. Txx xxxxxxx xxx xx xxx xxxxxxx xxxx xxxx, xx xxx xxxxxxx xxxx, xx xxx xxxxxxx xxxxxxxxx xxxx, x xxx xxxx xxxx, x xxx xxxx, xxx x xxx xxxxxxxxx xxxx. - - - - - -x - - - Sxxx xxx xxxxxx xx xxxxxxx xx xxxxx xx xxxxxxx. - - - - - --xxxxxxx, -x - - - Dxxxxxxx xxxx xxxxxxxxxxx. - - - - - - - - xxxxxxxxxxxx - - - xxxxxxxxxxxx - - - - xxxxxxxxxxxx xxxxxxxx [xxxx] - - - - <para><indexterm class="startofrange" id="ch16-idx-986929-1" significance="normal"><primary>xxxxxxxxxxxx xxxxxxx</primary></indexterm> -Uxx xxxx xx xxxx xxxxxx xxxxxx xx xxxxxxxxx xxxxx xxx xxxxxx xx xxxxxx. Ix xxxx xxxxx xx MxISAM xxx ISAM xxxxxx, xxxxxx. Ix xxxxx x xxxxxx xxxx xx xxxx xxxxxxxx xxxxxxxxx xxx xxxx xxxxx xxxx. Txxx xxxxxxx xx x xxxxxxxx xxxxxxxxx xxx xxxx xxxxxxxx xxx xxxxxxx xxxxx xxxxx xxx xxxx xxxxx: xxx xxx xxx xxxxxx, xxxxxxx xxx xxx xxxx, xxx x xxxxx xxx xxx xxxxx. Ix xxxxxx x xxxx xxxx xx xxx xx xxx xxxxxx xx xxx xxxxxxxx xxxxx xxxxxxx xxxx. Hxxx xx xx xxxxxxx xx xxx xxx xxx xxxx x xxxxxxxx xxxx <literal moreinfo="none">xxxxxxxxxxxx</literal>:</para> - <programlisting format="linespecific">xxxxxxxxxxxx -x xxxxxxx -x xxxxxxxx xxxxxxxxxxxx /xxx/xxxxxx</programlisting> - <para>Nxxx xxxx xxxxxx xxxxx MxSQL xxxxxxxxx, xxxxx xx x xxxxx xxxxxxx xxx <literal moreinfo="none">-x</literal> xxx xxx xxxxxxxx. Nxxx xxx xxxxxxxx (<literal moreinfo="none">xxxxxxxxxxxx</literal>) xx xxxxxxxxx. Fxxxxxx, xxx xxxx xx xxxxx xxx xxxxxx xxxxxxxxxxx xx xxxxx. Tx xxxxxxx xxxxxxxxx xx xxxxxx xxxx xxxx xxxxxx xx <literal moreinfo="none">xxxxxxxxxxxx</literal>, xxxx xxxx xxx xxxxx xxxxx xx xx xxxxxxxx xx xxxxx xxxxxxxx xxxx xxxxxxxxxxx. Hxxx xxx xxx xxxxxxxxx xxxxxxx:</para> - </refsect1> - <refsect1 id="ch16-26-fm2xml"> - <title>xxxxxxxxxxxx Oxxxxxx - - - - --xxxxxxxxx - - - Ixxxxxxxx xxx xxxxxxx xxx xx xxxxx xxx xxxxxxx xx xx xxxxxx xxx xxxxxx xxxxxxxxx, xxx xx xxx xxx xxxxx xx xxx xxxxxxxxx.--xxxxxxxxx xxxxxx (xxxxxxxxxxxx) - - - - - - --xxxxxxxx - - - Rxxxxxx xxx xxxxxxxx xxxxxx xxxxxxxxx xxxx x _xxx xxxxxx xx xxxx xxx xxxxxxx xxx xx xxxxxxxxx. Ix xxx xxx xxxx xx xxxxxxxxxx, xxx xxx xxxxxxxxx xx xxxxxxx. Ix xx’x xxxxxxxxxxxx, xxx xxx xxxxxxxxx xx xxxxxxxx.--xxxxxxxx xxxxxx (xxxxxxxxxxxx) - - - - - - --xxxxxxxxxx= - xxxxxxxx.xxxxx - - - Sxxxx xxxxxxx xxxxxxxxxxx xx xxx xxxxx xxxxxxxx xxx xxxxx.--xxxxxxxxxx xxxxxx (xxxxxxxxxxxx) - - - - - - --xxxxxx= - xxxx - - - Uxxx xx xxxxxxx xxx xxxx xxxxxxxxx xx xxx xxxxxx xx xxxxx xxx xxxxxx xxxxxx, xxxxx xxxxxx xxxx xxx xxxx xxxxxxxxx xx xxx --xxxxxx xxxxxx. - - - - - --xxxxx - - - Uxxx xx xxxxxx xxxxxxxxx xxxxxxxxxxx.--xxxxx xxxxxxxxxxxxxxxxxx xxxxxxx - - - - - - --xxxxxx, -x - - - Txxx xxxxxx xxx xxx xxxxxxx xxxx xxx xxxxxx xxxxxxx xxxxxxx xxxxxxxx xxxxxx x xxxx.--xxxxxx xxxxxx (xxxxxxxxxxxx) - - - - - - --xxxxxxxx - - - Fxxxxxx xxxx xxxxx xxx xxxxxx xxx xxxxxx.--xxxxxxxx xxxxxx (xxxxxxxxxxxx) - - - - - - --xxxx, -? - - - Dxxxxxxx xxxxx xxxx xxxxxxxxxxx.--xxxx xxxxxxxxxxxxxxxxxx xxxxxxx - - - - - - --xxxx= - xxxx - , -x - xxxx - - - Sxxxxxxxx xxx xxxx xx IP xxxxxxx xx xxx xxxxxx xxx xxxxxxxxxx. - - - - - --xxxxxxx - - - -Ixxxxxxxx xxx xxxxxxx xxxx xxxxx xxx --xxxxxxxx xxxxxx xxx xx xxxxxx xxx xxx xxxxxxxxx xx xxx xxxxxxx xx xxxxxxxxxx. ---xxxxxxx xxxxxx (xxxxxxxxxxxx) ---xxxxxxxx xxxxxx (xxxxxxxxxxxx) - - - - - - --xxxxxx= - xxxxxx - - - Sxxx xxx xxxxxx xxxx xx xxx xxxxxxx xxx xxxxxxx xxxxx. Txx xxxxxxx xxx xx xx xxx. ---xxxxxx xxxxxx (xxxxxxxxxxxx) - - - - - - --xxxxxxxxx - - - Cxxxxx xxxx xxx xxxxxxx xx xxxxx xxxxx. Ixxxxxx xxx xx xxxxxxx xxxx xxxxxxxxx xxxxxx. ---xxxxxxxxx xxxxxx (xxxxxxxxxxxx) - - - - - - --xxxxxxxx= - xxxxxxxx - , -x - xxxxxxxx - - - Pxxxxxxx xxx xxxxxxxx xx xxxx xx xxx xxxxxx. A xxxxx xx xxxxxxxxx xxxxx xxx -x xxxxxx, xxxxxx xxx xxxxxxxx.--xxxxxxxx xxxxxxxxxxxxxxxxxx xxxxxxx - - - - - - --xxxx= - xxxx - , -P - xxxx - - - Sxxxxxxxx xxx xxxx xxxxxx xx xxx xxx xxxxxxxxxx xx xxx xxxxxx.--xxxx xxxxxxxxxxxxxxxxxx xxxxxxx - - - - - - --xxxxx, -x - - - Sxxxxxxxxx xxx xxxxxxxx xxxxxx xxx xxxxx xxxxxxxx.--xxxxx xxxxxx (xxxxxxxxxxxx) - - - - - - --xxxxxx_xxx_xxx=xxxxxxxx.xxxxx - - - Uxxx xx xxxxxxx xxx xxxxxxxx xxx xxxxx xx xxxxxx xxx xxx xxxxxxxx xxx xxxxxx xx xxx xxxxxx xxx xxxxx xxxxxxx xxxx xxxxx xxxxxxxxxxx. - - - - - --xxxxxx= - xxxxxxxxxx - - - Pxxxxxxx x xxxxxxx xxxxxxxxxx xxx xxxxxxxxxxx xxxxx xxxxxxxxx xx xxxx xxxxx xx xxx xxxx.--xxxxxx xxxxxx (xxxxxxxxxxxx) - - - - - - --xxxxxxxxxxx - - - -Exxxxxxx x RESET MASTER xxxxxxxxx xxxxx xxxxxx xxx xxxxxx. ---xxxxxxxxxxx xxxxxx (xxxxxxxxxxxx) -RESET MASTER xxxxxxxxx - - - - - - --xxxxxxxxxx - - - -Exxxxxxx x RESET SLAVE xxxxxxxxx xxxxx xxxxxx xxx xxxxxx. ---xxxxxxxxxx xxxxxx (xxxxxxxxxxxx) -RESET SLAVE xxxxxxxxx - - - - - - --xxxxxx= - xxxxxxxx - , -S - xxxxxxxx - - - Pxxxxxxx xxx xxxx xx xxx xxxxxx’x xxxxxx xxxx.--xxxxxx xxxxxxxxxxxxxxxxxx xxxxxxx - - - - - - --xxxxx= - xxxxxx - - - Sxxxxxxxx xxx xxxxxx xxx xxx xxxxxx xx xxxxxxxxx. Txx xxxxxxx xx _xxxx.--xxxxx xxxxxx (xxxxxxxxxxxx) - - - - - - --xxxxxx= - xxxx - - - Sxxxxxxxx xxx xxxxxxxxx xxxxxxxxx xx xxx. Txx xxxxxxx xx /xxx.--xxxxxx xxxxxxxxxxxxxxxxxx xxxxxxx - - - - - - --xxxx= - xxxx - , -x - xxxx - - - Sxxxxxxxx xxx xxxxxxxx xxx xxxxxxxxxx xx xxx xxxxxx.--xxxx xxxxxxxxxxxxxxxxxx xxxxxxx - - - - - - - - - xxxxxxxxxxx - - - xxxxxxxxxxx - - - - xxxxxxxxxxx [xxxxxxx] xxxxxxxx xxxxxxxx[ ...] - - - - <para><indexterm class="startofrange" id="ch16-idx-986933-1" significance="normal"><primary>xxxxxxxxxxx xxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-16-ITERM-4038" significance="normal"><primary>LOAD DATA INFILE xxxxxxxxx</primary><secondary>xxxxxxxxxxx xxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-16-ITERM-4039" significance="normal"><primary>xxxx</primary><secondary>xxxxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-16-ITERM-4040" significance="normal"><primary>xxxxxxxxx</primary><secondary>xxxx</secondary></indexterm> -Uxx xxxx xx xxxxxx xxxx xxx xxxxx xxxxxxxxxx xxxx x xxxx xxxx xxxxx xx xxx xxxxx xxxxxxxx, xxxx x xxxxxxxx xxxxx xx xxx xxxxxx xxxxxxxx xx xxx xxxxxxx. Txxx xxxxxxx xxxxxxxxx xxxx xxx xxxxxx xxx xxxx xxx <literal moreinfo="none">LOAD DATA INFILE</literal> xxxxxxxxx. Txx xxxx xxxx xx xxx xxxx xxxx xxxxx xxxxxxxx xxxx xx xxx xxxx xx xxx xxxxx xxxx. Axxxxxxxxx xxxx xxxxx xxx xx xxxxx xx x xxxxx-xxxxxxxxx xxxx. Oxxxxxx xxx xx xxxxx xx xxx xxxxxxx xxxx xx xxx xxxxx xxxxxxxx xx xxx xxxxxxx xx xxxx xxx xx xxxxxxxx xx xxx xxxxxx’x xxxxxxxxxxxxx xxxx (x.x., <filename moreinfo="none">xx.xxx</filename>) xxxxx xxx xxxxxxx <literal moreinfo="none">[xxxxxx]</literal> xx <literal moreinfo="none">[xxxxxxxxxxx]</literal>. Wxxx xxxxxxxx xx xxx xxxxxxxxxxxxx xxxx, xxxxxxx xxxxxx xxxxxxx xxx xxxxxxx xxxxxx xxxxxx. Hxxx xx xx xxxxxxxxxxxx xxxx xx xxxxxxx xxx xxx xxxx xxx xxx xxxxx xxxxxxxx xxxxx xxxx xx xxxxxxxxxxx xx xxxx: -</para> - </refsect1> - <refsect1 id="ch16-28-fm2xml"> - <title>xxxxxxxxxxx Oxxxxxx - - - - --xxxxxxxxx-xxxx-xxx= - xxxx - - - Sxxxxxxxx xxx xxxxxxxxx xxxxxxxxxx xxxxxxxxx xxxx.--xxxxxxxxx-xxxx-xxx xxxxxxxxxxxxxxxxx xxxxxxx - - - - - - --xxxxxxx= - xxxxxxx - , -x - xxxxxxx - - - Ixxxxxxxxx xxx xxxxx xx xxxxxx xx xxx xxxx xxxx xx xxxx xxxxxx xx xxx xxxxxxx xx xxx xxxxx. Cxxxxxx xxx xxxxx xx x xxxxx-xxxxxxxxx xxxx. ---xxxxxxx xxxxxx (xxxxxxxxxxx) - - - - - --xxxxxxxx, -C - - - Cxxxxxxxxx xxxx xxxxxx xxxxxxx xxx xxxxxxx xxx xxx xxxxxx, xx xxxxxxxxxxx xx xxxxxxxxx. ---xxxxxxxx xxxxxxxxxxxxxxxxx xxxxxxx - - - - - --xxxxx[=xxxxxxx], -# [xxxxxxx] - - - Lxxx xxxxxxxxx xxxxxxxxxxx. Txx xxx xx xxxxxxx xxxx xx xxxxxxx xx 'x:x:x,xxxxxxx'. Sxx xx xxx xxx xx xxx xxxx xx xxxxxxx xxx xxx xxxxxxxxx xxxxxxx xxx xx xxxxxxxxxxx xx xxxxx xxxxx xxx xxxxxx xxxx xxx xx xxxx. ---xxxxx xxxxxxxxxxxxxxxxx xxxxxxx - - - - - --xxxxx-xxxxx - - - Wxxxxx xxxxxxxxx xxxxxxxxxxx xx xxx xxx xxxx xxx xxxxxxx xxxx. Ix’x xxxxxxxxx xx xx xxxxxxx d.d.dd. - - - - - --xxxxx-xxxx - - - Wxxxxx xxxxxxxxx xxxxxxxxxxx xxx CPU xxx xxxxxx xxxxx xxxxxxxxxxx xx xxx xxx xxxxx xxx xxxxxxx xxxx. - - - - - --xxxxxxx-xxxxxxxxx-xxx= - xxx - - - Sxxxxxxxx xxx xxxxxxx xxxxxxxxx xxx.--xxxxxxx-xxxxxxxxx-xxx xxxxxxxxxxxxxxxxx xxxxxxx - - - - - - --xxxxxxxx-xxxxx-xxxx= - xxxxxxxx - - - Txxxx xxxxxxxxxx xxxxxxx xxxx xxx xxxx xxxx xxxxx.--xxxxxxxx-xxxxx-xxxx xxxxxxxxxxxxxxxxx xxxxxxx - - - - - - --xxxxxxxx-xxxx= - xxxxxxxx - - - Ixxxxxxxx xxx xxxxxxx xx xxxxxx xxxxxxx xxxx xxxx xxx xxxx xxxx xxxxx.--xxxxxxxx-xxxx xxxxxxxxxxxxxxxxx xxxxxxx - - - - - - --xxxxxx, -x - - - Dxxxxxx xxx xxxx xxxx xxxx xxxxxx xxxxx xxxxxx xxxxxxxxx xxxx xxxx xxx xxxx xxxx. ---xxxxxx xxxxxx (xxxxxxxxxxx) - - - - - --xxxxxx-xxxxxxxx-xx= - xxxxxxxxxx - - - Ixxxxxxxxx xxx xxxxxxxxxx xxxx xxxxxxxx xxx xxxxx xxx xxx xx xxxxxx xx xxx xxxx xxxx xxxxx xxxxxxxx. ---xxxxxx-xxxxxxxx-xx xxxxxxxxxxxxxxxxx xxxxxxx - - - - - --xxxxxx-xxxxxxx-xx= - xxxxxxxxx - - - Ixxxxxxxxx xxx xxxxxxxxx xxxx xxxx xxxxxx xxxxxxx xxxxxxxxxx xx xxx xxxx xxxx xxxxx xxxxxxxx. Bxxxxxxxx xx xxx xxxxxxx. ---xxxxxx-xxxxxxx-xx xxxxxxxxxxxxxxxxx xxxxxxx - - - - - --xxxxxx-xxxxxxxxxx-xxxxxxxx-xx= - xxxxxxxxxx - - - Ixxxxxxxxx xxx xxxxxxxxxx xxxx xxxxxxxx xxx xxxxx xxx xxx xx xxxxxx xx xxx xxxx xxxx xxxxx xxxxxxxx.--xxxxxx-xxxxxxxxxx-xxxxxxxx-xx xxxxxxxxxxxxxxxxx xxxxxxx - - - - - - --xxxxxx-xxxxxxxxxx-xx= - xxxxxxxxx - - - Ixxxxxxxxx xxx xxxxxxxxx xxxx xxxxxxxxx xxx xxx xx xxxxxx xx xxx xxxx xxxx xxxxx xxxxxxxx. ---xxxxxx-xxxxxxxxxx-xx xxxxxxxxxxxxxxxxx xxxxxxx - - - - - --xxxxx, -x - - - Ixxxxxxxx xxx xxxxxxx xx xxxxxxxx xxxxxxxxx xxxx xxxxxxx xxxxxx xxxxxxxxxxx. ---xxxxx xxxxxxxxxxxxxxxxx xxxxxxx - - - - - --xxxx, -? - - - Dxxxxxxx xxxxx xxxx xxxxxxxxxxx. ---xxxx xxxxxxxxxxxxxxxxx xxxxxxx - - - - - --xxxx= - xxxx - , -x - xxxx - - - Sxxxxxxxx xxx xxxx xx IP xxxxxxx xx xxx xxxxxx xxx xxxxxxxxxx.--xxxx xxxxxxxxxxxxxxxxx xxxxxxx - - - - - - --xxxxxx, -x - - - Ixxxxxxxx xxx xxxxxxx xx xxxxxx xxxxx xxxxxxxx xxxxxxxxx xxxx xxxxxxxxxx xxxxxxxxx xxxx xxx xxxxxxx xxx xx xxxxxxx xxxx xxxx xxxx xxxxxxxx xxxx. ---xxxxxx xxxxxx (xxxxxxxxxxx) - - - - - --xxxxxx-xxxxx= - xxxxxx - - - Ixxxxxxxx xxx xxxxxxx xx xxxxxx xxx xxxxx xxxxxx xx xxxxx xxxxxxxxx. Ix’x xxxxxx xx xxxxxxxx xxxxxxxx xx xxx xxxx xxxx xxxxx xxxxxxxx. ---xxxxxx-xxxxx xxxxxx (xxxxxxxxxxx) - - - - - --xxxxx-xxxxxxxxxx-xx= - xxxxxxxxx - - - Ixxxxxxxxx xxx xxxxxxxxx xxxx xxxxxxxxx xxx xxx xx xxxxxxx xx xxx xxxx xxxx xxxxx xxxxxxxx. ---xxxxx-xxxxxxxxxx-xx xxxxxxxxxxxxxxxxx xxxxxxx - - - - - --xxxxx, -L - - - Txxxx xxx xxxxxxx xxxx xxx xxxx xxxx xx xxxxxx xx xxxxxxx xxxxxxx xx xxx xxxxxx xxx xxx xx xxx xxxxxx, xxxxx xx xxx xxxxxxx xxxxxxxxxx.--xxxxx xxxxxx (xxxxxxxxxxx) - - - - - - --xxxx-xxxxxx, -x - - - Lxxxx xxx xxxxxx xxxxxx xxxxxxxxx xxxx.--xxxx-xxxxxx xxxxxxxxxxxxxxxxx xxxxxxx - - - - - - --xxx-xxxxxxxx - - - -Hxx xxx xxxxxxx xxx xxx LOW PRIORITY xxxxxxx xxxx xxxxxxxxx xxxx.--xxx-xxxxxxxx xxxxxx (xxxxxxxxxxx) -LOW_PRIORITY xxxxxxxxxxxxxxxxxx xxxxxxx - - - - - - --xx-xxxxxxxx - - - Txxxx xxx xxxxxxx xxx xx xxxxxx xxxxxxx xxxx x xxxxxxxxxxxxx xxxx.--xx-xxxxxxxx xxxxxxxxxxxxxxxxx xxxxxxx - - - - - - --xxxxxxxx[= - xxxxxxxx - ], -x[ - xxxxxxxx - ] - - - Pxxxxxxx xxx xxxxxxxx xx xxxx xx xxx xxxxxx. A xxxxx xx xxx xxxxxxxxx xxxxx xxx -x xxxxxx xx xxx xxxxxxxx xx xxxxx. Ix xxx xxxxxxxx xx xxx xxxxx, xxx xxxx xxxx xx xxxxxxxx xxx xxx.--xxxxxxxx xxxxxxxxxxxxxxxxx xxxxxxx - - - - - - --xxxx= - xxxx - , -P - xxxx - - - Sxxxxxxxx xxx xxxx xxxxxx xx xxx xxx xxxxxxxxxx xx xxx xxxxxx.--xxxx xxxxxxxxxxxxxxxxx xxxxxxx - - - - - - --xxxxx-xxxxxxxx - - - Dxxxxxxx xxxxxxx xxxxxxx xxxxx xx xxx xxxxxx’x xxxxxxxxxxxxx xxxxx.--xxxxx-xxxxxxxx xxxxxx (xxxxxxxxxxx) - - - - - - --xxxxxxxx= - xxxxxxxx - - - Uxxx xx xxxxxxx xxx xxxxxxxx xx xxx xxxx xxxxxxxxxx xx xxx xxxxxx. Txx xxxxxxx xxx TCP, SOCKET, PIPE, xxx MEMORY.--xxxxxxxx xxxxxxxxxxxxxxxxx xxxxxxx - - - - - - --xxxxxxx, -x - - - Rxxxxxxx xxxx xxxx xxxxxxx xxxxxxxxx xxxx xxxx xxx xxxxxxxx xxxx.--xxxxxxx xxxxxx (xxxxxxxxxxx) - - - - - - --xxxxxx, -x - - - Sxxxxxxx xxx xxxxxxxx xxxxxx xxx xxxxx xxxxxxxx.--xxxxxx xxxxxxxxxxxxxxxxx xxxxxxx - - - - - - --xxxxxx= - xxxxxxxx - , -S - xxxxxxxx - - - Pxxxxxxx xxx xxxx xx xxx xxxxxx’x xxxxxx xxxx.--xxxxxx xxxxxxxxxxxxxxxxx xxxxxxx - - - - - - --xxx - - - Sxxxxxxxx xxxx xxxxxx SSL xxxxxxxxxxx xxxxxx xx xxxx. Rxxxxxxx xxx xxxxxx xx xxxx SSL xxxxxxx. Ix xxxx xxxxxx xx xxxxxxx xx xxx xxxxxxx xx xxxxxxx, xxx --xxxx-xxx xx xxxxxxx xx. - - - - - --xxx-xx=xxx_xxxx - - - Sxxxxxxxx xxx xxxx xx xxx xxxx (x.x., xxx xxx xxxx) xxxxxxxxxx x xxxx xx xxxxxxx SSL CAx. - - - - - --xxx-xxxxxx=xxxx - - - Sxxxxxxxx xxx xxxx xx xxx xxxxxxx xxxxxxxxxxxx xxxx (x.x., xxx xxx xxxx). - - - - - --xxx-xxxx=xxxxxxxx - - - Sxxxxxxxx xxx xxxx xx xxx SSL xxxxxxxxxxx xxxx xx xxx xxx SSL xxxxxxxxxxx. - - - - - --xxx-xxxxxx=xxxxxxx - - - Gxxxx x xxxx xx xxxxxxx xxxx xxx xx xxxx xxx SSL xxxxxxxxxx - - - - - --xxx-xxx=xxxxxxxx - - - Sxxxxxxxx xxx SSL xxx xxxx xx xxx xxx xxxxxx xxxxxxxxxxx. - - - - - --xxx-xxxxxx-xxxxxx-xxxx - - - Vxxxxxxx xxx xxxxxx’x xxxxxxxxxxx xxxxxxx xxx xxxxxx’x xxxxxxxxxxx xxx xxx xxxxxx xx xxxxx-xx. Ix xx xxxxxxxxx xx xx xxxxxxx d.d.dd. - - - - - --xxxx= - xxxx - , -x - xxxx - - - Sxxxxxxxx xxx xxxxxxxx xxx xxxxxxxxxx xx xxx xxxxxx.--xxxx xxxxxxxxxxxxxxxxx xxxxxxx - - - - - - --xxxxxxx, -x - - - Dxxxxxxx xxxx xxxxxxxxxxx.--xxxxxxx xxxxxxxxxxxxxxxxx xxxxxxx - - - - - - --xxxxxxx, -V - - - Dxxxxxxx xxx xxxxxxx xx xxx xxxxxxx.--xxxxxxx xxxxxxxxxxxxxxxxx xxxxxxx - - - - - - - - - xxxxxxxxx - - - xxxxxxxxx - - - - xxxxxxxxx [xxxxxxx] [xxxxxxxx [xxxxx [xxxxxx]]] - - - - <para><indexterm class="startofrange" id="ch16-idx-986937-1" significance="normal"><primary>xxxxxxxxx xxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-16-ITERM-4075" significance="normal"><primary>SHOW TABLE xxxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-16-ITERM-4076" significance="normal"><primary>SHOW TABLES xxxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-16-ITERM-4077" significance="normal"><primary>SHOW DATABASES xxxxxxxxx</primary></indexterm> -Uxx xxxx xx xxxxxx x xxxx xx xxxxxxxxx, xxxxxx, xx xxxxxxxxxxxx xx xxxxxx. Txxx xxxxxxx xxxxxxxxx xxxx xxx xxxxxx xxx xxxx xxx <literal moreinfo="none">SHOW DATABASES</literal>, <literal moreinfo="none">SHOW TABLES</literal>, xxx <literal moreinfo="none">SHOW</literal> <literal moreinfo="none">TABLE</literal> xxxxxxxxxx. Ix xx xxxxxxxx xxxx xx xxxxx xxx xxx xxxxxx xxxxxxxx, xxx xxxxxxxx xxxxx xxxx xx xxxxxx. Ix x xxxxxxxx xxxx xx xxxxx xxxxx xxxx x xxxxx xxxx, xxx xxxxx xxxxx xxxx xx xxxxxxxxx. Tx xxxxx xxxxxxxxxxx xx xxxxxxxx xxxxxxx, xxxx xxx xxxxxxx xxxxxxx xx xxx xxxxxx xxxxxxxx: -</para> - <programlisting format="linespecific">xxxxxxxxx --xxxx=xxxxxxx -xxxxxxxxx xxxxxxxxxxxx xxxx_xxx</programlisting> - <para>Txx xxxxxxx xx xxxx xxxxxxx xxxx xx xxx xxxx xx xxxxxxxx xxx xxxxxxxxx SQL xxxxxxxxx xxxx xxx <emphasis>xxxxx</emphasis> xxxxxx:</para> - <programlisting format="linespecific">SHOW TABLE xxxxxxxxxxxx.xxxx_xxx;</programlisting> - <para>Hxxx xx xx xxxxxxxxxxxx xxxx xx xxxxxxx xxxx xxx xxx xxxx xx xxxx xx xxx xxxxx xxxxxxxx xx xxx xxxxxxx xxxxx xxxx x xxxxx xxxxxxxxxxx xx xxxx:</para> - </refsect1> - <refsect1 id="ch16-30-fm2xml"> - <title>xxxxxxxxx Oxxxxxx - - - - --xxxxxxxxx-xxxx-xxx= - xxxx - - - Sxxxxxxxx xxx xxxxxxxxx xxxxxxxxxx xxxxxxxxx xxxx.--xxxxxxxxx-xxxx-xxx xxxxxxxxxxxxxxx xxxxxxx - - - - - - --xxxxxxxx, -C - - - Cxxxxxxxxx xxxx xxxxxx xxxxxxx xxx xxxxxxx xxx xxx xxxxxx, xx xxxxxxxxxxx xx xxxxxxxxx.--xxxxxxxx xxxxxxxxxxxxxxx xxxxxxx - - - - - - --xxxxx - - - Rxxxxxx xxx xxxxxx xx xxxx xxx xxx xxxxx xxxxx. - - - - - --xxxxx[=xxxxxxx], -# [xxxxxxx] - - - Lxxx xxxxxxxxx xxxxxxxxxxx. Txx xxx xx xxxxxxx xxxx xx xxxxxxx xx 'x:x:x,xxxxxxx'. Sxx xx xxx xxx xx xxx xxxx xx xxxxxxx xxx xxx xxxxxxxxx xxxxxxx xxx xx xxxxxxxxxxx xx xxxxx xxxxx xxx xxxxxx xxxx xxx xx xxxx.--xxxxx xxxxxxxxxxxxxxx xxxxxxx - - - - - - --xxxxx-xxxxx - - - Wxxxxx xxxxxxxxx xxxxxxxxxxx xx xxx xxx xxxx xxx xxxxxxx xxxx. Ix’x xxxxxxxxx xx xx xxxxxxx d.d.dd. - - - - - --xxxxx-xxxx - - - Wxxxxx xxxxxxxxx xxxxxxxxxxx xxx CPU xxx xxxxxx xxxxx xxxxxxxxxxx xx xxx xxx xxxxx xxx xxxxxxx xxxx. - - - - - --xxxxxxx-xxxxxxxxx-xxx= - xxx - - - Sxxxxxxxx xxx xxxxxxx xxxxxxxxx xxx.--xxxxxxx-xxxxxxxxx-xxx xxxxxxxxxxxxxxx xxxxxxx - - - - - - --xxxx, -? - - - Dxxxxxxx xxxxx xxxx xxxxxxxxxxx.--xxxx xxxxxxxxxxxxxxx xxxxxxx - - - - - - --xxxx= - xxxx - , -x - xxxx - - - Sxxxxxxxx xxx xxxx xx IP xxxxxxx xx xxx xxxxxx xxx xxxxxxxxxx.--xxxx xxxxxxxxxxxxxxx xxxxxxx - - - - - - --xxxx, -x - - - Dxxxxxxx xxxxx xxxxxxx.--xxxx xxxxxx (xxxxxxxxx) - - - - - - --xxxxxxxx[= - xxxxxxxx - ], -x[ - xxxxxxxx - ] - - - Pxxxxxxx xxx xxxxxxxx xx xxxx xx xxx xxxxxx. A xxxxx xx xxx xxxxxxxxx xxxxx xxx -x xxxxxx xx xxx xxxxxxxx xx xxxxx. Ix xxx xxxxxxxx xx xxx xxxxx, xxx xxxx xxxx xx xxxxxxxx xxx xxx.--xxxxxxxx xxxxxxxxxxxxxxx xxxxxxx - - - - - - --xxxx= - xxxx - , -P - xxxx - - - Sxxxxxxxx xxx xxxx xxxxxx xx xxx xxx xxxxxxxxxx xx xxx xxxxxx.--xxxx xxxxxxxxxxxxxxx xxxxxxx - - - - - - --xxxxxxxx= - xxxxxxxx - - - Sxxxxxxxx xxx xxxxxxxx xx xxx xxxx xxxxxxxxxx xx xxx xxxxxx. Txx xxxxxxx xxx TCP, SOCKET, PIPE, xxx MEMORY.--xxxxxxxx xxxxxxxxxxxxxxx xxxxxxx - - - - - - --xxxx-xxxxx-xxxx, -x - - - Txxx xxxxxx xxxx x xxxxxx xx xxx xxxxxxx xx xxxxxxxx xxx xxxx xx xxxxx: x xxxx xxxxx xx x xxxx. - - - - - --xxxxxx= - xxxxxxxx - , -S - xxxxxxxx - - - Pxxxxxxx xxx xxxx xx xxx xxxxxx’x xxxxxx xxxx.--xxxxxx xxxxxxxxxxxxxxx xxxxxxx - - - - - - --xxx - - - Sxxxxxxxx xxxx xxxxxx SSL xxxxxxxxxxx xxxxxx xx xxxx. Rxxxxxxx xxx xxxxxx xx xxxx SSL xxxxxxx. Ix xxxx xxxxxx xx xxxxxxx xx xxx xxxxxxx xx xxxxxxx, xxx --xxxx-xxx xx xxxxxxx xx. - - - - - --xxx-xx=xxx_xxxx - - - Sxxxxxxxx xxx xxxx xx xxx xxxx (x.x., xxx xxx xxxx) xxxxxxxxxx x xxxx xx xxxxxxx SSL CAx. - - - - - --xxx-xxxxxx=xxxx - - - Sxxxxxxxx xxx xxxx xx xxx xxxxxxx xxxxxxxxxxxx xxxx (x.x., xxx xxx xxxx). - - - - - --xxx-xxxx=xxxxxxxx - - - Sxxxxxxxx xxx xxxx xx xxx SSL xxxxxxxxxxx xxxx xx xxx xxx SSL xxxxxxxxxxx. - - - - - --xxx-xxxxxx=xxxxxxx - - - Gxxxx x xxxx xx xxxxxxx xxxx xxx xx xxxx xxx SSL xxxxxxxxxx - - - - - --xxx-xxx=xxxxxxxx - - - Sxxxxxxxx xxx SSL xxx xxxx xx xxx xxx xxxxxx xxxxxxxxxxx. - - - - - --xxx-xxxxxx-xxxxxx-xxxx - - - Vxxxxxxx xxx xxxxxx’x xxxxxxxxxxx xxxxxxx xxx xxxxxx’x xxxxxxxxxxx xxx xxx xxxxxx xx xxxxx-xx. Ix xx xxxxxxxxx xx xx xxxxxxx d.d.dd. - - - - - --xxxxxx, -x - - - Dxxxxxxx xxxxxxxxxx xxxxxxxxxxx xxxxxxxxx xxxxxx.--xxxxxx xxxxxx (xxxxxxxxx) - - - - - - --xxxx= - xxxx - , -x - xxxx - - - Sxxxxxxxx xxx xxxxxxxx xxx xxxxxxxxxx xx xxx xxxxxx.--xxxx xxxxxxxxxxxxxxx xxxxxxx - - - - - - --xxxxxxx, -x - - - Dxxxxxxx xxxx xxxxxxxxxxx.--xxxxxxx xxxxxxxxxxxxxxx xxxxxxx - - - - - - --xxxxxxx, -V - - - Dxxxxxxx xxx xxxxxxx xx xxx xxxxxxx.--xxxxxxx xxxxxxxxxxxxxxx xxxxxxx - - - - - - - - - xxxxxxxxx - - - xxxxxxxxx - - - - xxxxxxxxx [xxxxxxx] xxxxxxxx - - - - <para>Txxx xxxxxxx xx xxxx xx xxxxxxx x xxxx xx xxxxxxxx xxxxxxx xx xxx xxxxxx xx xxxxx xxxxxx xx xxx xxxxxx. Ix’x xxxxxxxxx xx xx xxxxxxx d.d.d xx MxSQL.</para> - </refsect1> - <refsect1 id="ch16-32-fm2xml"> - <title>xxxxxxxxx Oxxxxxx - - - - --xxxx-xxxxxxxx-xxx, -x - - - - - - - - --xxxxxxxx, -C - - - Cxxxxxxxxx xxxx xxxxxx xxxxxxx xxx xxxxxxx xxx xxx xxxxxx, xx xxxxxxxxxxx xx xxxxxxxxx. - - - - - --xxxxxxxxxxx=xxxxxx, -x xxxxxx - - - Uxx xxxx xxxxxx xx xxxxxxx xxx xxxxxx xx xxxxxxx xx xxxxxxxx. - - - - - --xxxxxx=xxxxx - - - Uxxx xx xxxxxxx x xxxx xx xxxxxx xx xxx xxx xxxxxxxx x xxxxx xxx xxx xx xxxxxxx. - - - - - --xxxxxx-xxxxxx=xxxxx - - - Uxxx xx xxxxxxx x xxxx xx xxxxxx xxxxxxxxxx x xxxxx xxxxxx xx xxx xxx xxxxxxxx x xxxxx xxx xxx xx xxxxxxx. - - - - - --xxx[=xxxxxxxx] - - - Rxxxxxx xxxx xx x xxxxx-xxxxxxxxx xxxxx xxxxxx. Ix xxxx xxxxxx xxx xxxx xx xxx xxxxxxxx xxxxxx, xxxxxx x xxxx xxxx xx xxxxx. Txxx xx xxxx xxxx xxx xxxxxxxxxxx xx xxxx xxxx. - - - - - --xxxxx[=xxxxxxx], -# [xxxxxxx] - - - Lxxx xxxxxxxxx xxxxxxxxxxx. Txx xxx xx xxxxxxx xxxx xx xxxxxxx xx 'x:x:x,xxxxxxx'. Sxx xx xxx xxx xx xxx xxxx xx xxxxxxx xxx xxx xxxxxxxxx xxxxxxx xxx xx xxxxxxxxxxx xx xxxxx xxxxx xxx xxxxxx xxxx xxx xx xxxx. - - - - - --xxxxx-xxxxx - - - Wxxxxx xxxxxxxxx xxxxxxxxxxx xx xxx xxx xxxx xxx xxxxxxx xxxx. Ix’x xxxxxxxxx xx xx xxxxxxx d.d.dd. - - - - - --xxxxx-xxxx, -T - - - Wxxxxx xxxxxxxxx xxxxxxxxxxx xxx CPU xxx xxxxxx xxxxx xxxxxxxxxxx xx xxx xxx xxxxx xxx xxxxxxx xxxx. - - - - - --xxxxxxxxx=xxxxxx, -F xxxxxx - - - Uxx xxxx xxxxxx xx xxxxxxx xxx xxxxxxxxx xxxx xx xxx SQL xxxx xxxxx. - - - - - --xxxxxx=xxxxxx, -x xxxxxx - - - Uxxx xx xxxxxxx xxx xxxxxxx xxxxxx xx xxx xxx xxx xxxx xxxxx. - - - - - --xxxx=xxxx, -x xxxx - - - Sxxxxxxxx xxx xxxx xx xxxxx xx xxxxxxx xx xxx xxxxxx. - - - - - --xxxx, -? - - - Dxxxxxxx xxxx xxxxxxxxxxx xxxxx xxx xxxxxxx. - - - - - --xxxxxxxxxx=xxxxxx, -x xxxxxx - - - Uxxx xx xxxxxxx xxx xxxxxx xx xxxxx xx xxx xxx xxxxxx xxxx xxxxxxxxx xxxxx. - - - - - --xxxxxx-xxxx-xxxx=xxxxxx, -x xxxxxx - - - Wxxx xxxxxxxxxx --xxxx-xxxxxxxx-xxx, xxx xxxx xxxxxx xx xxxxxxx xxx xxxxxx xx VARCHAR xxxxxxx xx xxx. - - - - - --xxxxxx-xxx-xxxx=xxxxxx, -x xxxxxx - - - Wxxx xxxxxxxxxx --xxxx-xxxxxxxx-xxx, xxx xxxx xxxxxx xx xxxxxxx xxx xxxxxx xx INT xxxxxxx xx xxx. - - - - - --xxxxxx-xx-xxxxxxx=xxxxxx - - - Uxxx xx xxxxxxx xxx xxxxxx xx xxxxxxx xxx xxxx xxxxxx. - - - - - --xxxx-xxxxx - - - Ixxxxxxxx xxx xxxxxxx xxx xx xxx xxx xxxxx xx xxx xxxxxx, xxx xxxx xx xxxxxxx xxxx xxxxx xxxx xxxx xxxx xxxxx xx xxx xxxxxxx xxxxx. - - - - - --xxxxxxxx= - xxxxxxxx - , -x - xxxxxxxx - - - Pxxxxxxx xxx xxxxxxxx xx xxx xxxx xxxxxxx xxxx xxx xxxxxx. - - - - - --xxxx= - xxxx - - - Sxxxxxxxx xxx xxxx xx xxxxx xx xxxxxxx xx xxx xxxxxx. Txx xxxxxxx xx dddd. - - - - - --xxxxxxxx-xxxxxx - - - Pxxxxxxxx xxx xxxxxx xxxx xxxx xxx xxxxxxx xxx xxx. - - - - - --xxxxxxxx= - xxxxxxxx - - - Sxxxxxxxx xxx xxxxxxxx xx xxx xxxx xxxxxxxxxx xx xxx xxxxxx. Txx xxxxxxx xxx TCP, SOCKET, PIPE, xxx MEMORY. - - - - - --xxxxx=xxxxx, -x xxxxx - - - Txxx xxxxxx xx xxxx xx xxxx xxx xxxxxx xx xx xxxxxxx xxx xxxx xx xxx xxxxx xxxxxxxx xxx SELECT xxxxxxxxx xxx xxxxxxxx xxx xxxxxx xxx xxxxxxx. - - - - - --xxxxxx, -x - - - Dxxxxxxx xx xxxxxxxx. - - - - - --xxxxxx= - xxxxxxxx - , -S - xxxxxxxx - - - Pxxxxxxx xxx xxxx xx xxx xxxxxx’x xxxxxx xxxx xxx Uxxx xxxx xxxxxxx xx xxx xxxxx xxxx xxx Wxxxxxx xxxxxxx. - - - - - --xxx - - - Sxxxxxxxx xxxx xxxxxx SSL xxxxxxxxxxx xxxxxx xx xxxx. Rxxxxxxx xxx xxxxxx xx xxxx SSL xxxxxxx. Ix xxxx xxxxxx xx xxxxxxx xx xxx xxxxxxx xx xxxxxxx, xxx --xxxx-xxx xx xxxxxxx xx. - - - - - --xxx-xx=xxx_xxxx - - - Sxxxxxxxx xxx xxxx xx xxx xxxx (x.x., xxx xxx xxxx) xxxxxxxxxx x xxxx xx xxxxxxx SSL CAx. - - - - - --xxx-xxxxxx=xxxx - - - Sxxxxxxxx xxx xxxx xx xxx xxxxxxx xxxxxxxxxxxx xxxx (x.x., xxx xxx xxxx). - - - - - --xxx-xxxx=xxxxxxxx - - - Sxxxxxxxx xxx xxxx xx xxx SSL xxxxxxxxxxx xxxx xx xxx xxx SSL xxxxxxxxxxx. - - - - - --xxx-xxxxxx=xxxxxxx - - - Gxxxx x xxxx xx xxxxxxx xxxx xxx xx xxxx xxx SSL xxxxxxxxxx - - - - - --xxx-xxx=xxxxxxxx - - - Sxxxxxxxx xxx SSL xxx xxxx xx xxx xxx xxxxxx xxxxxxxxxxx. - - - - - --xxx-xxxxxx-xxxxxx-xxxx - - - Vxxxxxxx xxx xxxxxx’x xxxxxxxxxxx xxxxxxx xxx xxxxxx’x xxxxxxxxxxx xxx xxx xxxxxx xx xxxxx-xx. Ix xx xxxxxxxxx xx xx xxxxxxx d.d.dd. - - - - - --xxx-xxxxxxx - - - Ox Uxxx xxxx xxxxxxx, xxx xxxxxxx xxxx xxxx(). Txxx xxxxxx xxxx xxxxxxxx xxx xxxxxx xx xxx xxxxxxx() xxxxxxx. Ox Wxxxxxx xxxxxxx xxxxxxx xxx xxxx xx xxxxxxx. - - - - - --xxxx= - xxxx - , -x - xxxx - - - Pxxxxxxx xxx xxxxxxxx xxx xxxxxxx xxxx xxx xxxxxx. - - - - - --xxxxxxx - - - Dxxxxxxx xxxx xxxxxxxxxxx xxxx xxx xxxxxxx. - - - - - --xxxxxxx - - - Rxxxxxx xxx xxxxxxx xx xxx xxxxxxx. - - - - - - - - xxxxx_xxxxxxx_xxxxx_xxxxxx - - - xxxxx_xxxxxxx_xxxxx_xxxxxx - - - - xxxxx_xxxxxxx_xxxxx_xxxxxx xxxxxxx xxxxxxxx - - - - <para>Txxx xxxxxxx xxxxxxxx xxx xxxxxx xx x xxxxx xxxxxxxx xxxx xxx xxxxxxx xxxxxx xx xxxxxxx. Bx xxxxxxx xx xxxxxxxx xxxx xx MxISAM. Txx xxxxxxx xxxxxxxx xxxx Pxxx xxx xxx Pxxx DBI xxxxxx xxx <literal moreinfo="none">DBD::xxxxx</literal> xx xxxxxxxxx xx xxx xxxxxx xxxxx xx’x xxxxxxxx.</para> - </refsect1> - <refsect1 id="ch16-34-fm2xml"> - <title>xxxxx_xxxxxxx_xxxxx_xxxxxx Oxxxxxx - - - - --xxxxx - - - Ixxxxxxxx xxx xxxxxxx xx xxxx xxxxxxx xxxxxxx xxxxxx. - - - - - --xxxx=xxxx, -x xxxx - - - Sxxxxxxxx xxx xxxx xx xxxxx xx xxxxxxx xxx xx xxxxxxx xxxxxx. - - - - - --xxxx, -? - - - Dxxxxxxx xxxx xxxxxxxxxxx xxxxx xxx xxxxxxx. - - - - - --xxxxxxxx= - xxxxxxxx - , -x - xxxxxxxx - - - Pxxxxxxx xxx xxxxxxxx xx xxx xxxx xxxxxxx xxxx xxx xxxxxx. - - - - - --xxxx= - xxxx - - - Sxxxxxxxx xxx xxxx xx xxxxx xx xxxxxxx xx xxx xxxxxx. Txx xxxxxxx xx dddd. - - - - - --xxxxxx= - xxxxxxxx - , -S - xxxxxxxx - - - Pxxxxxxx xxx xxxx xx xxx xxxxxx’x xxxxxx xxxx. - - - - - --xxxx= - xxxxxx - - - Sxxxxxxxx xxx xxxxxxx xxxxxx xx xxxxxxx xxxxxx xx. Ix xxx xxxxx, MxISAM xx xxxxxxx. - - - - - --xxxx= - xxxx - , -x - xxxx - - - Pxxxxxxx xxx xxxxxxxx xxx xxxxxxx xxxx xxx xxxxxx. - - - - - --xxxxxxx - - - Dxxxxxxx xxxx xxxxxxxxxxx xxxx xxx xxxxxxx. - - - - - --xxxxxxx - - - Rxxxxxx xxx xxxxxxx xx xxx xxxxxxx. - - - - - - - - xxxxx_xxxx_xxxx - - - xxxxx_xxxx_xxxx - - - - xxxxx_xxxx_xxxx xxxxxxx xxxxxxxx - - - - <para>Txxx xxxxxxx xxxxxxxx x xxxx xxxx xxxxxxxxxx SQL xxxxxxxxxx (x.x., x xxxx xxxx xxxxxxxx xx <literal moreinfo="none">xxxxxxxxx</literal>) xxx x xxxxx xxxxxxx xxx xxxxx xxx SQL xxxxxxxxxx xx xxxxx. Mxxxxxxx xxxxx xxx xx xxxxxxxxx xx x xxxxx-xxxxxxxxx xxxx.</para> - <programlisting format="linespecific">xxxxx_xxxx_xxxx --xxxxxx='Gxxxxx Gxxxxx' < xxxxxx.xxx > xxxxxx_xxx_xxxxxxxxx.xxx</programlisting> - <para>Ix xxxx xxxxxxx xxx xxxxxxx xxxx xxxxxx xxx xxxx xxxx <replaceable>xxxxxx.xxx</replaceable> (xxx xxxxxxxx xxx xxx xxxxx xx xxxxxxxx) xxx xxxxxxxxxx xx xxx xxxx xx xxx xxxxxx <replaceable>Gxxxxx Gxxxxx</replaceable>. Ix xxxx xxxxx xxx xxxxxxx, xxx SQL xxxxxxxxxx xx xxxxx xxxx xxxxxxx xxxx xxxx, xx xxx <replaceable>xxxxxx_xxx_xxxxxxxxx.xxx</replaceable> xxxx xxxxxxx xx xxx xxxxxxxx (x.x., <literal moreinfo="none">></literal>). Oxxxxxxxx xxx xxxxxxx xxxxx xx xxxxxxxxx xx xxx xxxxxx. Wxxx xxxxxxxx x xxxx xxxx xxxx xxx xxxx xxxx xx xxxxxx xxxx xxxx xxxxxxx, xxx xxx xxxx xx xxxxx xxx <literal moreinfo="none">--xxxxxxxx-xxxxxx</literal> xxxxxx (xx xxx <literal moreinfo="none">--xxxx-xxx</literal> xx xxxxxxx xx), xxxxxxx xxxx xxxxxx xxxxxx x xxxxxx <literal moreinfo="none">INSERT</literal> xxxxxxxxx xxxx xxx xxxx xxxx xxx xxx xxxx xx xxx xxxxxx xxxxx. Yxxx xxxxxx xxxx xxxx xxxxxxx xxxxx xxxx xxxx xxx xxxx xxx xxx xxxxx xx xx xxxxxxx xxx xxxxx SQL xxxxxxxxx xxxxxxxxxx xxx xxxxxx xxxxxxx.</para> - </refsect1> - <refsect1 id="ch16-36-fm2xml"> - <title>xxxxx_xxxx_xxxx Oxxxxxx - - - - --xxxx - - - Dxxxxxxx xxxx xxxxxxxxxxx xxxxx xxx xxxxxxx. - - - - - --xxxxxx= - xxxxxxx - - - Sxxxxxxxx xxx xxxxxxx xx xxxxx xxx xxxxxxx xx xx xxxxxx xxx xxxxx xxxx xxxx. Txx xxxxxxx xx xxxxxxx xxxxxxx xxxxxxx xxxxxx. Ix xxx xxxxxx xx xxx xxxxx, xxxx xxx xxxxxxx xxxx xxxxxx xxx SET xxx USE xxxxxxxxxx. - - - - - --xxxx= - xxxxxx - - - Lxxxxx xxx xxxxxx xx xxxx xx xxx xxxxxxx. Ix xxxx xxxxxx xxx xxxxx xxxx xxxx xx xxxxx, xx xx xxx xxxxxx xxxxx. - - - - - --xxxx-xxx-xx - - - Ixxxxxxxx xxx xxxxxxx xxx xx xxxxxx xxx USE xxxxxxxxxx, xxxxx xx xxxxxxxx xxx xx xxxxxxx. - - - - - --xxxxx_xxx= - xxxxxx - - - Rxxxxxx xxxx xxxxxxxx xxxxx xxx xxxxx xxxxxx xx xxxx. - - - - - - - - xxxxx_xxxxxxxxxxxxx - - - xxxxx_xxxxxxxxxxxxx - - - - xxxxx_xxxxxxxxxxxxx xxxxxxx - - - - <para>Txxx xxxxxxx xx xx xxxxxxxxxxx Pxxx xxxxxxx xxxx xxxxxx xx xxxxxxxxxxxxx xx xxx xxxx xxxxxxxxxx. Tx xxx xxx xxxxxxx, xxx xxxxx xxxxxxxxx xxxx xxx <literal moreinfo="none">--xxxx</literal> xxxxxx xxxx xxx xxxxxxxxxxxxxx xxxx xxxx xx xxx xxx xxx xxxxxxxxxx. A xxxx xxxx xx xxxxxxx xxxx xx xxxxxxxxx xxx x xxxxxxx xx xxxx xxxxxxxxxxxxxx xxxxx, xxxxxxxxx xxxxxxx xxx xxxxxxxx xxx xxxxxxxxxx xxx xx xxxxxxxx xxxx xxx xxxxxxxx x xxx xxxx. Txx xxxxxxx xxxxxxxx xxxx Pxxx xxx xxx Pxxx DBI xxxxxx xx xxxxxxxxx xx xxx xxxxxx xxxxx xx’x xxxxxxxx.</para> - </refsect1> - <refsect1 id="ch16-38-fm2xml"> - <title>xxxxx_xxxxxxxxxxxxx Oxxxxxx - - - - --xxxx - - - Sxxxxxxxx xxx xxxx xx IP xxxxxxx xx xxx xxxxxx xxx xxxxxxxxxx. - - - - - --xxxx - - - Dxxxxxxx xxxx xxxxxxxxxxx xxxxx xxx xxxxxxx. - - - - - --xxxxxxxx= - xxxxxxxx - - - Pxxxxxxx xxx xxxxxxxx xx xxx xxxxxxxxxxxxxx xxxx xxxx xxxxx xxx xxxxxxx xx xx xxx xxxx xxx xxxxxx, xxx xxx xxxx xxx xxxxx xx xxxxxx xxxxxxxxxx. - - - - - --xxxx= - xxxx - - - Sxxxxxxxx xxx xxxx xxxxxx xx xxx xxx xxxxxxxxxx xx xxx xxxxxx. - - - - - --xxxx= - xxxx - - - Pxxxxxxx xxx xxxxxxxxxxxxxx xxxxxxxx xxx xxxxxxx xx xx xxx xxxxxx, xxx xxx xxxx xxx xxxxx xx xxxxxx xxxxxxxxxx. - - - - - --xxxxxx= - xxxxxxxx - - - Pxxxxxxx xxx xxxx xx xxx xxxxxx’x xxxxxx xxxx. - - - - - - - - xxxxx_xxxxxxxxx - - - xxxxx_xxxxxxxxx - - - - xxxxx_xxxxxxxxx xxxxxxx xxx_xxxxxxxx [xxxxxxxx_xxxxxxxx [xxxxxxxx_xxxxx]] - - - - <para>Txxx xxxxxxx xxxxxxx x xxxxx xxxxxxxxxx xxxxxxxxxxx xxxxx xxxxxxxx xxxxxx xx x xxxxxxxx. Yxx xxxx xx xxxxxxx xxx xxxxxxxx xxxx xxxx xxxxxxx xxx xxxxx xxxxxxx xxxxxxxx xxxxxx, xxx xxx xxxxxxx xxxx xxxxxx xxx xxxxxxxx xx xx xxxx xxx xxxxx. Ix xxxxx xxx xxxx xx xx xxxxxxxx xxxxxxxx, xx xxxx xxx xxx xxxxxxxx xx xxx xxxxx. Ix xxxx xxxxx x xxxxx xxxx, xx xxxx xxxxx xx xxx xxxxxxxx.</para> - <para>Txx xxxxxxx xxxx xxxxxx xxxx xxxxxx xx xxx xxxxxxxx: <literal moreinfo="none">xx</literal>, <literal moreinfo="none">xxx</literal>, <literal moreinfo="none">xxx</literal>, xxx <literal moreinfo="none">xxx</literal>. Txxx xxxx xxxxx xxx xx xxxxx <literal moreinfo="none">xxx_xxxxxx</literal>, xxxxxxx. Ix xxxx xxx <literal moreinfo="none">SHOW COLUMNS</literal>, <literal moreinfo="none">SHOW DATABASES</literal>, <literal moreinfo="none">SHOW INDEXES</literal>, <literal moreinfo="none">SHOW TABLES</literal>, xxx <literal moreinfo="none">SHOW TABLE STATUS</literal> xxxxxxxxxx xx xxx xxxxxxxx xxxxxxxxxxx. Txx xxxx xxxxx xxxx xxxx xxx xxxxxxxxx xxxxxxxxxx xxx xxxxx xxxxxxxxxx.</para> - </refsect1> - <refsect1 id="ch16-40-fm2xml"> - <title>xxxxx_xxxxxxxxx Oxxxxxx - - - - --xxxxx - - - Dxxxx xxx xxxx xxxxxx xx xx xxxxxxx xx xxx xxxxxxx xx xxxx xxxxx, xxxxxx xxxxxxxx xxx xxxx xxx xxxxxxxxxx xxxx. - - - - - --xxxxx-xxxx - - - Dxxxx xxx xxxx xxxxxx xx xx xxxxxxx xx xxx xxxxxxx xx xxxx xxxxx, xxx xxx’x xxxxxx xxx xxxx—xxx xxxxxxx xxxx xxxx xxxx xx’x xxxxxxxx xxxxxxxx xxx xxxxxx. - - - - - --xxx - - - Pxxx xxxxxx xxxxxxxx xxxx xxx xxx xxxxx. - - - - - --xxxx, -?, -I - - - Dxxxxxxx xxxx xxxxxxxxxxx xxxxx xxx xxxxxxx. - - - - - --xxxx=xxxx, -x xxxx - - - Sxxxxxxxx xxx xxxx xx xxxxx xx xxxxxx xxxxxxxx xxxxxxxxxxx xxx xx xxxxxx xxxxxx. - - - - - --xxx - - - Pxxx xxxxx xxxxxxxx xxxx xxx xxx xxxxx. - - - - - --xxxxxxxx= - xxxxxxxx - , -x - xxxxxxxx - - - Pxxxxxxx xxx xxxxxxxx xx xxx xxxx xxxxxxx xxxx xxx xxxxxx. - - - - - --xxxx= - xxxx - , -P - xxxx - - - Sxxxxxxxx xxx xxxx xx xxxxx xx xxxxxxx xx xxx xxxxxx. Txx xxxxxxx xx dddd. - - - - - --xxxxxx=xxxxxx - - - Axxx x xxxxxx xx xxx xxxxx xx xxx xxxxxx xxxx xxx xxxxxxx xxxxxxx (x.x., xxxxxxxx_xx xxxxxxx xx xx). - - - - - --xxxxx, -x - - - Sxxxxxxxxx xxx xxxxxxxx xxxxxx xxx xxxxx xxxxxxxx. - - - - - --xxxxxx= - xxxxxxxx - , -S - xxxxxxxx - - - Pxxxxxxx xxx xxxx xx xxx xxxxxx’x xxxxxx xxxx. - - - - - --xxx-xxxxxx - - - Txxxx xxxxxxxx xxxx xxx SHOW TABLE STATUS xxxxxxxxx xxxxxxx xx SHOW TABLES. Txx xxxxxx xx xxxx xxxxxxxx, xxx x xxxxxx xxxxxxx. - - - - - --xxxx= - xxxx - , -x - xxxx - - - Pxxxxxxx xxx xxxxxxxx xxx xxxxxxx xxxx xxx xxxxxx. - - - - - - - - xxxxx_xxxxxxx - - - xxxxx_xxxxxxx - - - - xxxxx_xxxxxxx xxxxxxx - - - - <para>Uxx xxxx xxxxx xxxxxxxxx xx x xxx xxxxxxx xx MxSQL. Ix xxxxxx xxx xxxxxx xxx xxxxxxx xxxxxxxxxxxxxxxxx xx xxxxxxxx, xxx xxxxxxxx xx xxxxxx xx xxxxxxx xxxxxx xx xxxxxxxx. Ix xxxx xxxxxxx xxxxxx xx xxx <literal moreinfo="none">xxxxx</literal> xxxxxxxx xxx xxx xxxxxxxxxx xxx xxxxx xxxxxxx xxxxxxxxx xx xxx xxxxx xxxxxxx xx MxSQL. Txxxxx xxxx xxx xxxxxxx xxx xxxxxx xxx xxx xxx xxxxxxx xx xxxx xxx’x xx xxxxxxx xxxxx. Txx xxxxxxx xxxxx xxx xxxxxxx xxxxxx xx xxx <literal moreinfo="none">xxxxx_xxxxxxx_xxxx</literal> xxxx xxxxxxx xx xxx xxxx xxxxxxxxx xxx MxSQL. Txxx xxxxxxx xxxxxxxx xxx <literal moreinfo="none">xxxxx_xxx_xxxxxxxxx_xxxxxx</literal> xxxxxxx, xxxxxxx xx xxxxxxxx xxx xxxx xxxxxxxx xxx xxxx.</para> - </refsect1> - <refsect1 id="ch16-42-fm2xml"> - <title>xxxxx_xxxxxxx Oxxxxxx - - - - --xxxxxxx= - xxxx - - - Sxxxxxxxx xxx xxxx xxxxxxxxx xx xxx MxSQL xxxxxx. - - - - - --xxxxxxx= - xxxx - - - Sxxxxxxxx xxx xxxx xxxxxxxxx xx xxx MxSQL xxxxxx. - - - - - --xxxxx-xxxxx - - - Wxxxxx xxxxxxxxx xxxxxxxxxxx xx xxx xxx xxxx xxx xxxxxxx xxxx. Ix’x xxxxxxxxx xx xx xxxxxxx d.d.dd. - - - - - --xxxxx-xxxx, -T - - - Wxxxxx xxxxxxxxx xxxxxxxxxxx xxx CPU xxx xxxxxx xxxxx xxxxxxxxxxx xx xxx xxx xxxxx xxx xxxxxxx xxxx. - - - - - --xxxxx - - - Fxxxxx xxx xxxxxxx xx xxxxx xxxxxx xxxxxxx xxx xxxxx_xxxxxxx_xxxx xxxx xxxxxxxxxx xxxx xxx xxxxxx xxx xxxxxx xxx xxxx xx xxx xxxxxxx xxxxx xx xxxx xxxx. - - - - - --xxxx, -?, -I - - - Dxxxxxxx xxxx xxxxxxxxxxx xxxxx xxx xxxxxxx. - - - - - --xxxxxxxx= - xxxxxxxx - , -x - xxxxxxxx - - - Pxxxxxxx xxx xxxxxxxx xx xxx xxxx xxxxxxx xxxx xxx xxxxxx. - - - - - --xxxx= - xxxx - , -x - xxxx - - - Pxxxxxxx xxx xxxxxxxx xxx xxxxxxx xx xx xxx xxxxxx. Ix xxx xxxxxx xx xxx xxxxx, xxx xxxx xxxx xx xxxxxxx xx xxxxxxx. - - - - - --xxxxxxx - - - Dxxxxxxx xxxx xxxxxxxxxxx xxxx xxx xxxxxxx. - - - - - - - - xxxxx_xxxxxxx - - - xxxxx_xxxxxxx - - - - xxxxx_xxxxxxx xxxxxxx PID xxxx_xxxx - - - - <para>Txxx xxxxxxx xxxx xxx Uxxx xxxxxx <literal moreinfo="none">xxxx</literal> xxxxxxx xx xxxxxxxxx xxx xxxxxxx xxxxxxxxxx xx x xxxxx xxxxxxx xxxxxxxxxxxxxx xxxxxx, xxx xx xxxx xxx xxxxxxxxxxx xxx xxx xxxx xxxxx xx xxxxxxx. Txx xxxxxxx xxxxxxxxxx xxx xxx xxxxxxx xxxxx xxxx xx x xxxxxxxx xxxxxxx. Ix xxxxxxx xxxx xx xxxxxxx xxx xx xxxxxxx xxxx’x xxxxx. Ix xxxxxxx d xxxxx xxxxxxx.</para> - <para>Txx xxxx xxxxxxx xxx xxxx xxxxxxx xxx xxx xxxx (<literal moreinfo="none">--xxxx, -?, -I</literal>), xxx xxxxxxx (<literal moreinfo="none">--xxxxxxx, -V</literal>), xxx xxxxxxxxx (<literal moreinfo="none">--xxxxxxx, -x</literal>).</para> - </refsect1> - </refentry> - <refentry id="ch16-77032"> - <refmeta> - <refentrytitle>xxxxx_xxx</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxxx_xxx</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">xxxxx_xxx [<replaceable>xxxxxxx</replaceable>] <replaceable>xxxxxxx</replaceable></synopsis> - </refsynopsisdiv> - <refsect1 id="ch16-44-fm2xml"> - <title/> - <para>Uxx xxxx xx xxxxxxx xx xxxx xxxxxxxxx xxxxx xx x xxxxx xxxxxxx. -</para> - </refsect1> - <refsect1 id="ch16-45-fm2xml"> - <title>xxxxx_xxx Oxxxxxx - - - - --xxxx, -?, -I - - - Dxxxxxxx xxxx xxxxxxxxxxx xxxxx xxx xxxxxxx. - - - - - -x - - - Fxxxxx xxx xxxxxxx xx xxxx xxx xxxxxxxxx xxxxxxx xxxxxxxxxx xxx xxxxxx xxxx xxx xxxx xxxxx. - - - - - -xxxxxx - - - Sxxxxxxxx xxx xxxx xx xxxx: TERM (xx xxxxxx dd) xx KILL xx (xxxxxx d). Yxx xxx xxxx xxxxxx xxx xxxx xx xxx xxxxxx xxx xxx xxxx xxxx. Nxxxxx xxxx xxxxx xx xxxx xxx xxxx, xxx xxx xxxx xxxx xxxxxx, xxx xx xxxx xx xxxxxxx xxxxxx xxx xxxxx xxxxxxx. - - - - - -x - - - Txxxx xxx xxxxxxxx xxxxx xxxxxxx xxxxxxx xxx xxxxxxxxx. - - - - - - - - xxxxxx - - - xxxxxx - - - - xxxxxx [xxxxxxx] xxxx - - - - <para><indexterm id="ch16-idx-missedid-359" significance="normal"><primary>xxxxxx xxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-16-ITERM-4094" significance="normal"><primary sortas="verbose option">--xxxxxxx xxxxxx</primary><secondary>xxxxxx xxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-16-ITERM-4095" significance="normal"><primary sortas="version option">--xxxxxxx xxxxxx</primary><secondary>xxxxxx xxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-16-ITERM-4096" significance="normal"><primary sortas="help option">--xxxx xxxxxx</primary><secondary>xxxxxx xxxxxxx</secondary></indexterm> -Txxx xxxxxx xxxxxxxx xxxxxxxxxxxx xx xxxxxx xxxxx xxxxx xxxx MxSQL xxxxxxxx. Mxxxxxxx xxxxx xxxxx xxx xx xxxxx xx x xxxxx-xxxxxxxxx xxxx xx xxx xxxxxx xxxxxxxx. Txx xxxx xxxxxxx xxx xxx xxxx (<literal moreinfo="none">--xxxx</literal>), xxx xxxxxxx (<literal moreinfo="none">--xxxxxxx</literal>), xxx xxxxxxxxx (<literal moreinfo="none">--xxxxxxx</literal>). Ax xx xxxxxx xxxxxxxx, xxx <literal moreinfo="none">--xxx</literal> xxxxxx xxx xxxx xxxxx xx xxx MxSQL Cxxxxxx xxxxx xxxxxxxx. -</para> - </refsect1> - </refentry> - <refentry id="ch16-77034"> - <refmeta> - <refentrytitle>xxxxxxx</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxxxxx</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">xxxxxxx <replaceable>xxxxxxx</replaceable> <replaceable>xxxxxxxx</replaceable></synopsis> - </refsynopsisdiv> - <refsect1 id="ch16-47-fm2xml"> - <title/> - <para>Txxx xxxxxxx xxxxxxxx xxx xxxxxxxx xxxx xx x xxxxxx xxxx xxxx, xxxx xx x xxxx xxxx. Gxxx xxx xxxx xx xxxxxxx xxxxxxxx xx xxx xxxxxxxxxxx xxxx. Mxxxxxxx xxxxx xx xxxx xxxx xxx xx xxxxx xx x xxxxx xxxxxxxxx xxxx. A xxxxxx-xxxx (<literal moreinfo="none">--</literal>) xx xxxx xx xxxx xxx xxx xx xxxx xxxxxxxxxxx xxxxx, xxxxx xxxxx xxx xxxx xxx xxxxx xx xxxxx xx xxxxx xx xxxxxxx xxx xxxxxxxxxxx, xx x xxxxx-xxxxxxxxx xxxx.</para> - <para>Txx xxxx xxxxxxx xxx xxxx xxxxxxx xxx xxxx (<literal moreinfo="none">-?</literal> xx <literal moreinfo="none">-I</literal>), xxxxxx xxxx (<literal moreinfo="none">-x</literal>), xxx xxxxxxx (<literal moreinfo="none">-x</literal>), xxx xxxxxxxxx (<literal moreinfo="none">-V</literal>). Yxx xxx xxxx xxxxxxx <literal moreinfo="none">-#</literal> xxxxxxxx xx x xxxxx xxx xxxxx xxx xxxxxxxxx. Sxx xxx xxxxxxxxxxx xx <literal moreinfo="none">--xxxxx</literal> xxx <literal moreinfo="none">xxxxxxxxx</literal> xxx xxxxxxx xxxx xxx xx xxxxx xxxx xxxx xxxx.</para> - <para>Txx xxxxxxx xxx xxxxxxx xx xx xxxxxx xxx xxx xxxxxxx x xxx xxxxxxx xxxxxxxxxx xxxxxxxxxx: <literal moreinfo="none">\^</literal> xx xxxxxxxx xxx xxxxx xx x xxxx; <literal moreinfo="none">\$</literal> xxx xxx xxx xx x xxxx; xxx <literal moreinfo="none">\x</literal> xxx x xxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch16-77035"> - <refmeta> - <refentrytitle>xxxxxxxxx</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxxxxxxx</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">xxxxxxxxx [<replaceable>xxxxxxx</replaceable>] <replaceable>xxxx</replaceable> ...</synopsis> - </refsynopsisdiv> - <refsect1 id="ch16-48-fm2xml"> - <title/> - <para>Txxx xx x xxxxxx xxxxxxx xxxxxxx xxxx xxxxxxxxxx x xxxx xxxx xx xx’x xxxxxxx IP xxxxxxx. Ix xx IP xxxxxxx xx xxxxx, xx xxxxxxx xxx xxxxxxx xxxxxxxxxx xxxx xxx xxxxxxx. Ix xxx xxxxxxx xx xx xxxx MxSQL xxx xx, xxx xx xxxxxxxx xx xxx xxxxxx xxxxxxxxxxxx xxxxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch16-77036"> - <refmeta> - <refentrytitle>xxxxxxx_xxxxx_xxxx</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxxxxx_xxxxx_xxxx</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">xxxxxxx_xxxxx_xxxx <replaceable>xxxxxxx</replaceable> <replaceable>xxxxxxx_xxxxxxxx</replaceable> [<replaceable>xxxxxxx_xxxx_xxxx</replaceable>]</synopsis> - </refsynopsisdiv> - <refsect1 id="ch16-49-fm2xml"> - <title/> - <para>Txxx xxxxxxx xxxxxxxx xxxxxxxxx xxx xxxxx xxxxxxx xxxx xx x xxxxx xx xxxxxx xxxxx. Txx xxxxxxx xxxx xxxxx xxxxxx xx xxx xxxxxx xx xxxxxxxxx xxx xxxxxxxxx xx xxx xxxxxxx-xxxx:</para> - <programlisting format="linespecific">xx --xxxxxxx-xxxx xxxxxx</programlisting> - <para>Txx xxxxxxx xxxx xxxxx xxxxxx xx xxx xxxxxxx xxxxx xxxx <literal moreinfo="none">xxxxxx</literal>. -<indexterm class="endofrange" startref="mysqlian-CHP-16-ITERM-3734" id="mysqlian-CHP-16-ITERM-4097" significance="normal"/><indexterm class="endofrange" startref="mysqlian-CHP-16-ITERM-3735" id="mysqlian-CHP-16-ITERM-4098" significance="normal"/> -</para> - <para>Ixxxxxx xx xxxxxxxxx xxx xxxxx xxxxxx, xxx xxx xxxxxxx xxx xxxxxxx xxxx xxxx xxx <literal moreinfo="none">--xxxxxxx-xxxx</literal> xxxxxx. Yxx xxxxx xxxx xxxxxxx xxx xxxxxxx xxxx xxxx xxxx xxx <literal moreinfo="none">--xxxxxxx-xxxx-xxxx</literal> xxxxxx. Fxx xxxx xxxxxxx, xxx xxxxxx xx xxxxxxxx xx xx xxxxxx-xxxx xxx xxx xxxx xxxx.</para> - </refsect1> - </refentry> - </chapter> - </part> - <part id="mysqlian-PART-4" xml:base="part4.xml"> - <title>APIx xxx Cxxxxxxxxx - - - -Txxx xxxx xx xxx xxxx xx x xxxxxxxx xxxxxxxxx xx xxxxxxxx xxxxxxxxxxx -xxxxx xxx xxxx xxxxxxx xxxxxxxxx xxxx xxxx MxSQL. Lxxxxxxxx xxxx xxxx -xxxxxxx xxx xxxx xxxxxxxx xxxx xxxxx xxx xx xxxxxxx xx x MxSQL -xxxxxxxx xxx xxxxx SQL xxxxxxxxxx xxxxxxx xx. Txxxx xxxxxx MxSQL xx xx -x xxxx-xxx xx xxxxx xxxxxxxx xx xxx xxxxx xxx xx xxxx SQL xxxxxx -xxxxxx-xxxxxxxx, xxxxxxxx xxxxxxxxxx. - - - - - C API - C APIxxxxxxxx -Txxx xxxxxxx xxxxxx xxx C API xxxxxxxx xx MxSQL. Txx xxxxx xxxx xxxxxxxx x xxxxx xxxxxxxx xx xxx xx xxxxxxx xx MxSQL xxx xxx xx xxxxx MxSQL xxxx C xxx xxx C API. Fxxxxxxxx xxx xxxxxxxx xx xx xxxxxxxxxxxx xxxxxxx xx MxSQL xxxxxxxxx xx xxx C API xxxx xxxxxxxxxxxx xxx, xx xxxx xxxxx, xxxxxxxx. Ax xxx xxx xx xxxx xxxxxxx xx x xxxxxxx xx xxxxxxx xxxxxxxxx xxx xxx C API. Fxx xxx xxxxxxxx xx xxxx xxxxxxx, x xxxxxxxx xxx x xxxxxxxxxx xxxxxxxx xxxxxxx xxxxxxxx xx xxxx. Txx xxxxxxxx xxxxxxxx xxx xxxxx xxxx xxxxxx xxxx xxxxxxxx (xxxxxxx) xxx xxxxxxx xxxx xxxxxx xxxxxxx xxxxxxxxxxx (xxxxxxx). - - Uxxxx C xxxx MxSQL - Txxx xxxxxxx xxxxxxxx xxx xxxxx xxxxx xxx xxxx xx xxx xxx C API. - - Cxxxxxxxxx xx MxSQL - Wxxx xxxxxxx x C xxxxxxx xx xxxxxxxx xxxx MxSQL, xxxxx xxx xxxx xx xxxxxxx xxxxxxxxx xxxx xxxx xxxxx xxxx xxxxxxxxx xxx x MxSQL xxxxxxxxxx xxx xxxxx xxxxxxx, xxxx xx xxxx xx xxxxxxxxx x xxxxxxxxxx xx MxSQL. Tx xx xxxx xxxxxx, xxx xxxx xx xxxxxxx x xxxxxx xx C xxxxxx xxxxx: xxxxx.x xxx xxxxx C xxxxxxxxx xxx xxxxxxxxx, xxx xxxxx.x xxx xxxxxxx MxSQL xxxxxxxxx xxx xxxxxxxxxxx. Txxxx xxx xxxxx xxxx xxxx C xxx MxSQL, xxxxxxxxxxxx; xxx xxxxxxx’x xxxx xx xxxxxxxx xxxx xxxx xxx Wxx xx xxxx xxxx xxxxxxxxx xxxxxxxx. - #xxxxxxx <xxxxx.x> - #xxxxxxx "/xxx/xxxxxxx/xxxxx/xxxxx.x" - xxx xxxx(xxx xxxx, xxxx *xxxx[ ]) - { - MYSQL *xxxxx; - MYSQL_RES *xxxxxx; - MYSQL_ROW xxx; - Bxxxxxx xx xxx < xxx > xxxxxxx xxxxxxxxxxx xxxxx.x, C xx xxxxxxxxxx xx xxxx xxx xx xx xxx xxxxxxx xxxxxxxx xxx C xxxxxx xxxxx (x.x., /xxx/xxxxxxx), xx xx xxx xxxx’x xxxx. Bxxxxxx xxxxx.x xxx xxx xx xx xxx xxxxxxx xxxxxxxxx, xxxx xxx xxx xx xxxxxx xxxxxx, xxx xxxxxxxx xxxx xx xxxxx. Ax xxxxxxxxxxx xxxx xxxxx xxxx xxxx <xxxxx/xxxxx.x>, xxxxxxx xxx xxxxxx xxxx xx xx x xxxxxxxxxxxx xx xxx xxxxxxx xxxxxxxxx. - Wxxxxx xxx xxxxxxxx xxxx xxxxxxxx xxxx xxxxx, xxxxxxxxx xxxxxx xxx xxx xxxxxxxxxx xx MxSQL xxx xxxxxxxx. Txx xxxxx xxxx xxxxxxx x xxxxxxx xx MYSQL xxxxxxxxx xxxxxx xx xxxxx xxxxxxxx. Txx xxxx xxxx xxxxxxx xxx xxxxx x xxxxxxx xxx xxxxx xx xxx xxxxxxxxxxx xxx MYSQL_RES xx xxxxx.x. Txx xxxxxxx xxx xx xx xxxxxx xx xxx xxxxxx xxxxx, xxxxx xxxx xx xx xxxxx xx xxxx xxxx MxSQL. Txx xxxxx xxxx xx xxxx xxxx xxx xxxxxxxxxx xxx MYSQL_ROW xx xxxxxxxxx xxx xxx xxxxxxxx, xxxxx xxxx xx xxxx xxxxx xx xxxxxxx xx xxxxx xx xxxxxxx xxxx MxSQL. - xxxxx_xxxx( ) xxxxxxxx (C API) -Hxxxxx xxxxxxxx xxx xxxxxx xxxxx xxx xxx xxx xxxxxxx xxxxxxxxx, xx xxx xxx xxx xx xx xxxxxx xx xxxxxx xxx xxxxxxxxxxx xxxx xxx MxSQL xxxxxx xxxxx xxxxx_xxxx( ): - xx(xxxxx_xxxx(xxxxx) == NULL) - { - xxxxxxx(xxxxxx, "Cxxxxx xxxxxxxxxx MxSQL"); - xxxxxx d; - } - Txx xx xxxxxxxxx xxxx xx xxxxxxx xxxxxxx x MxSQL xxxxxx xxx xx xxxxxxxxxxx. Ix xxx xxxxxxxxxxxxxx xxxxx, x xxxxxxx xx xxxxxxx xxx xxx xxxxxxx xxxx. Txx xxxxx_xxxx( ) xxxxxxxx xxxxxxxxxxx xxx MxSQL xxxxxx xxxxx xxx MYSQL xxxxxxxxx xxxxxxxx xx xxx xxxxxxxxx xx xxx xxxx xxxxxxxx xxxxx xx xxxxxx xx xxxxxxxxxx, xxxxx. Ix C xx xxxxxxxxxx xx xxxxxxxxxxxx xxx xxxxxx, xx xxxx xx xx xx xxxxxxx xx xxxxxxxxx x xxxxxxxxxx xx MxSQL: - xx(!xxxxx_xxxx_xxxxxxx(xxxxx, "xxxxxxxxx", - "xxxx", "xxxxxxxx", "xxd", d, NULL, d)) - { - xxxxxxx(xxxxxx, "%x: %x \x", - xxxxx_xxxxx(xxxxx), xxxxx_xxxxx(xxxxx)); - xxxxxx d; - } - xxxxx_xxxx_xxxxxxx( ) xxxxxxxx (C API) -Txx xxxxxxxx xx xxx xxxxx_xxxx_xxxxxxx( ) xxxxxxxx xxxx xxx xxxxxx xxxxxxx: xxxxx xxx MxSQL xxxxxx xx xxxxxxxxxx; xxxx xxx xxxxxxxx xx IP xxxxxxx; xxxx xxx xxxxxxxx xxx xxxxxxxx; xxx xxxxxxx xxx xxxxxxxx xx xxx. Txx xxxxx xxxxxxxxx xxxxx xxx xxx xxxx xxxxxx, xxx Uxxx xxxxxx xxxxxxxx, xxx x xxxxxx xxxx, xx xxx. Pxxxxxx xxxxx xxx NULL xxxxx xxx xxxxxxxx xx xxx xxx xxxxxxxx xxx xxxxx. Ix xxx xxxxxxx xxxxxx xxxxxxx, xx xx xx xxxxx xxx xxxxx xxxxxxx xxxxxxxxx xx xxx xxxxxx xx xxx xxxxxxxx xxxxx xxxxxx, xxxxx xxxx xxx MxSQL xxxxx xxxxxx (xxxxx xxx %x xxxxxx xxxxxxxxxxx xxx xxxxxxxxxx xxxxxx xx x xxxxxx) xxx xxxxxxx x xxxxxx (%x) xxxxxxxxxx xxx MxSQL xxxxx xxxxxxx xxx xxxx x xxxx xxxx xx x xxxxxxx (\x). Txx xxxxxx xxxxxx xx xxxx xxxx xxx xxxxxx xxxxxx, xxxxxxxxx xx xxxxxx. - Txx xxxxxxx xx xxx xxxx xxxxx x xxxxxxxxxx xx MxSQL. Nxx xxx’x xxxx xx xxx xxx xxx xxx xxxx xx xxx xxxxxxx xx xxx xx SQL xxxxxxxxx xxxx xxx C API. - - - Qxxxxxxx MxSQL - xxxxxxxC APIxxxxx_xxxxx( ) xxxxxxxxC API -Ix xxx MxSQL xxxxxxxxxx xxxxxxx xx xxx xxxxxxx xx xxxxxxxxxx, xxx xxxxxxx xxx xxxxx xxx MxSQL xxxxxx xxxx x xxxxx xxxxxxxx xxxx xx xxxxx_xxxxx( ): - xx(xxxxx_xxxxx(xxxxx, "SELECT xxxd, xxxd FROM xxxxxd")) - { - xxxxxxx(xxxxxx, "%x: %x\x", - xxxxx_xxxxx(xxxxx), xxxxx_xxxxx(xxxxx)); - } - xxxx - { - xxxxxx = xxxxx_xxxxx_xxxxxx(xxxxx); - xxxxx(xxx = xxxxx_xxxxx_xxx(xxxxxx)) - { xxxxxx("\%x - \%x \x", xxx[d], xxx[d]); } - xxxxx_xxxx_xxxxxx(xxxxxx); - } - xxxxx_xxxxx(xxxxx); - xxxxxx d; - } - xxxxx_xxxx_xxxxx( ) xxxxxxxx (C API)xxxxx_xxxxx( ) xxxxxxxxC APIxxxxx_xxxxx_xxxxxx( ) xxxxxxxx (C API)xxxxx_xxxx_xxxxxx( ) xxxxxxxxC API -Ixxxxxxxxxxx, xxxx xxxxxxx xx xxxxx xxxxx_xxxxx( ), xxx xxx xxxxx xxx xxx xxxxx_xxxx_xxxxx( ) xxxxxxxx xxxxxxx. Txx xxxx xxxxxxxxxx xxxxxxx xxx xxx xx xxxx xxxxx_xxxx_xxxxx() xxxxxx xxx xxxxxxxxx xx xxxxxx xxxx, xxxxx xxx xxx xx xxxxxxxxx, xxx xx’x xxxxx xx xxx. xxxxx_xxxxx( ) xxxxxxx d xx xx’x xxxxxxxxxx xxx xxx-xxxx xx xx’x xxx xxxxxxxxx. Sx xx xxx xxxxxxxxx SQL xxxxxxxxx xxxx xxx xxxxxxx xx xxxxxxxxx xxxx xxxx MxSQL, xx xxxxx xxxxxxx xxxx xx xxxxxxx. Hxxxxxx, xx xxx xxxxx xx xxxxxxxxxx, xxx xxxx xxxxxxxxx xxxx xx xxxxxxxx xxxxx xxx xx xxxxxxxxx xxxx xxxx xxxxxxxx x xxxxx xx d xxxx xxxxx_xxxxx( ). Ix xxx xxxx xxxxxxxxx xxxxx, xxx xxxxx xxxx xxxxxxxx xxx xxxxxxx xx xxx xxxxx xxx xxxxxx xxxx xx xxxxxx xxxx xxx xxx xx xxx xxxxx_xxxxx_xxxxxx( ) xxxxxxxx. Lxxxx, xxx xxxxxx xxxx xx xxxxx xxxx xxxxx_xxxx_xxxxxx( ) xx xxxxxx xxxx xxx xxxxxxxx xxxx xxxxxx xxxxx. - xxxxx_xxxxx_xxx( ) xxxxxxxxC APIxxxxx_xxxxx( ) xxxxxxxxC API -Bxxxxx xxxxxxx xx xx xxx xxxx, xxxxxx, xx xxxx xxxx xxxxxxx xxxx xxx xx xxx xxxxxxx xxx xxx xxxxxxx xxx xxxxxxx xxxx xxxx xxx xxx xxx xxxx. Wx’xx xx xxxx xxxx x xxxxx xxxxxxxxx xxx xxx xxxxx_xxxxx_xxx() xxxxxxxx. Txxx xxxxxxxx xxxxxxxxx xxx xxx xx xxx xxxxxxx xx x xxxx xxx xx xxxx xxxxxxxxxx xxxxxxx xxxxxxx, xx xxxxxx xxxx xxx xx xxx xxx xxxxxxxx. Txxx xxx xxxxxx xxxxxxxxx xxxxxx xx xxx xxxxxx xxx xxxxx xx xxxx xxxxx xx xxx xxxxxx xxxxx. Nxxxxx xxxx xxxx xxxxx xx xxxxxxxxx xx xxxxxxx xxxxx xxxxxx (x.x., xxxxx [x]). Txx xxxxxxxxxx xxxxxxxxxxxx xxx xxxxxx xxx xxxxxxxx xxxxxx xxxxxx xxxxxx, xxx xxxx xxxxxx xx xx xxx xxxx xxx xxxxxxx xx xxx xx xxxxxxxxx xxxxxxx. Oxxx C xxx xxxx xxxxxxx xxxx xxx xx xxx xxxxxxx, xx xxxx xxxx xxxxxxxxxx xxx xxxx xxxx xx xxx xxxxxx xx xxx xxxx, xxxxxxxxxx xxx xxxx xxxxxxxxx. Txxx xxxxx xxxxxxx xxxx xxxx x xxxxx_xxxxx( ) xxxx xx xxxxxx xxx MxSQL xxxxxxx xxx xx xxxxxxxxxx xxxx MxSQL. Txx xxxxx xxxxxxx xxxxx xxxxx xxxx xxx xxxx xxxxxxxx. - Tx xxxxxxx xxx xxxxxxx xxxx xxx GNU C Cxxxxxxx (xxx), xxx xxx xxxxx xxxxxxxxx xxxx xxx xxxxxxxxx xxxx xxx xxxxxxx-xxxx: - xxx -x xxxxx_x_xxxx xxxxx_x_xxxx.x \ - -I/xxx/xxxxxxx/xxxxx -L/xxx/xxx/xxxxx -xxxxxxxxxxxx -xx -xx - Nxxxxx xxxx xxx xxxxx xx xxx MxSQL xxxxxx xxxx xxx xxx MxSQL xxxx xxxxxxxxx xxx xxxxx xx xxxx, xxx xxx xxxx xx xxx xxxxxx xxxxxxx, xxxxxxxxxxx, xx xxxx xxxxx. Txxxx xxxxx xxx xx xxxxxxxxx xx xxxx xxxxxx. Wxxx xxx xxxxxxxx xxxxxxxx xx xxxxxxx xxx xxxxxxx (xxxxx_x_xxxx.x xxxx), xx xxxx xxxxx xxx xxxxxx xxxxxx xx xxx xxxx. Ix xx xxxxx xxx, xx xxxx xxxx xx xxxxxxx xxx xxxx xxxxxxx xxxxx xxxxxxxx. Ix xxx xxxxxxxxxx, xxx xxxxxxxxx xxxxxxxx xxxxxxx (xxxxx_x_xxxx) xxx xx xxxxxxxx. - - - - - Fxxxxxxxx xx Axxxxxxxxxxx Oxxxx - xxxxxxxxxC APIC APIxxxxxxxxx -Txx xxxx xx xxxx xxxxxxx xxxxxxxx xx x xxxx xx C API xxxxxxxxx xx xxxxxxxxxxxx xxxxx. Exxx xxxxxxxx xx xxxxx xxxx xxx xxxxxx xxx xx xxxxxxxxxxx. Fxx xxxxxx xxx xxxxxxxxx, xx xxxxxxx xxxxxxx, xx xxxxxxx, xx xxxxxxxx xx xxxx xxx xxx xxx xxx xxx xxxxxxxx. Tx xxxx xxxxx, xxxxxx xxx xx xxx xxxxxxxx xxx xxxxx xxxxxxx xxx xxxxx xx xxxx xxxxxxxxx xx xxxxx x C xxxxxxx xxx xx xxxxxxx xx MxSQL, xx xxxx xx xx xxxxx xxx xxxxxxxxxx xxx xx xxx xxx xxxxxxx. Fxx xx xxxxxxx xx xxx xxx xxxxx xxxxx xxxxxxx xxx xxxxxxx xxxxx, xxx xxx xxxxxxxx xx xxx xxxxxxxx xxxxxxx. Txx xxxxxxxx xx xxxx xxxxxxx xxxx xxxx xx xx xxxx xxxxxxxx xxx xxx’x xxxxxxx xxxxxxx xxxxxxx xxxxx xxxxxxxx. Ix’x xxxxxxx xxxx xxx xxxxxx xxx x xxxxx xxxxxxxxxxxxx xx C. Fxx xxx xxxxxx xx xxxx xxxxxxxx, xxx xxxxxxxx xxxxxxxx xx xxxxx xxxxxx xxxx xxxxxxxxx xx xxxxxxxx. - - - xxxxx_xxxxxxxx_xxxx( ) - - - xxxxx_xxxxxxxx_xxxx( ) - - - - xx_xxxxxxxxx xxxxx_xxxxxxxx_xxxx(MYSQL *xxxxx) - - - - <para><indexterm id="mysqlian-CHP-17-ITERM-4438" significance="normal"><primary>xxxxx_xxxxxxxx_xxxx( ) xxxxxxxx</primary><secondary>C API</secondary></indexterm><indexterm id="mysqlian-CHP-17-ITERM-4439" significance="normal"><primary>SELECT xxxxxxxxx</primary><secondary>xxxxx_xxxxxxxx_xxxx( ) xxx</secondary></indexterm><indexterm id="mysqlian-CHP-17-ITERM-4440" significance="normal"><primary>DELETE xxxxxxxxx</primary><secondary>xxxxx_xxxxxxxx_xxxx( ) xxx</secondary></indexterm><indexterm id="mysqlian-CHP-17-ITERM-4441" significance="normal"><primary>UPDATE xxxxxxxxx</primary><secondary>xxxxx_xxxxxxxx_xxxx( ) xxx</secondary></indexterm><indexterm id="mysqlian-CHP-17-ITERM-4442" significance="normal"><primary>INSERT xxxxxxxxx</primary><secondary>xxxxx_xxxxxxxx_xxxx( ) xxx</secondary></indexterm> -Txxx xxxxxxx xxx xxxxxx xx xxxx xxxxxxxx xx xxx xxxx xxxxxx xxxxx xxx xxx xxxxxxx xxxxxxx. Txxx xxxxxxxx xx xxxxxxxxxx xxxx xxx <literal moreinfo="none">INSERT</literal>, <literal moreinfo="none">UPDATE</literal>, xxx <literal moreinfo="none">DELETE</literal> xxxxxxxxxx. Fxx SQL xxxxxxxxxx xxxx xxx’x xxxxxx xxxx (x.x., <literal moreinfo="none">SELECT</literal>), xxxx xxxxxxxx xxxx xxxxxx d. Fxx xxxxxx, xx xxxx xxxxxx -d.</para> - <programlisting format="linespecific">... -xxxxx_xxxxx(xxxxx,"UPDATE xxxxxxx - SET xxxx_xxxxxx_xx = 'dddd' - WHERE xxxx_xxxxxx_xx = 'dddd'"); -xx_xxxxxxxxx xxx = xxxxx_xxxxxxxx_xxxx(xxxxx); -xxxxxx("Nxxxxx xx xxxxxxxx xxxxxxxxxx: %xx \x", xxx); -...</programlisting> - <para><indexterm id="mysqlian-CHP-17-ITERM-4443" significance="normal"><primary>REPLACE xxxxxxxxx</primary><secondary>xxxxx_xxxxxxxx_xxxx( ) xxx</secondary></indexterm> -Ix xxxx xxxxxxx, xx <literal moreinfo="none">UPDATE</literal> xxxxxxxxx xx xxxxxx xxx xxx xxxxxx xx xxxx xxxxxxx xx xxxxxxxxx xxxx xxx xxxxxxxx xxx xxxxxx xx xxx <literal moreinfo="none">xxx</literal> xxxxxxxx, xxxxx xx xxxx xxxxxxx. Fxx <literal moreinfo="none">REPLACE</literal> xxxxxxxxxx, xxxx xxxx xxx xxxxxxxx xxx xxxxxxx xxxxx: xxxx xxx xxx xxxxxxxx xxx xxxx xxx xxx xxxxxxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch17-77007"> - <refmeta> - <refentrytitle>xxxxx_xxxxxxxxxx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxxx_xxxxxxxxxx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">xx_xxxx xxxxx_xxxxxxxxxx(MYSQL *xxxxx, xx_xxxx xxxx)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch17-02-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-17-ITERM-4444" significance="normal"><primary>xxxxx_xxxxxxxxxx( ) xxxxxxxx (C API)</primary></indexterm><indexterm id="mysqlian-CHP-17-ITERM-4445" significance="normal"><primary>DELETE xxxxxxxxx</primary><secondary>xxxxx_xxxxxxxxxx( ) xxx</secondary></indexterm><indexterm id="mysqlian-CHP-17-ITERM-4446" significance="normal"><primary>UPDATE xxxxxxxxx</primary><secondary>xxxxx_xxxxxxxxxx( ) xxx</secondary></indexterm><indexterm id="mysqlian-CHP-17-ITERM-4447" significance="normal"><primary>INSERT xxxxxxxxx</primary><secondary>xxxxx_xxxxxxxxxx( ) xxx</secondary></indexterm> -Uxx xxxx xxxxxxxx xx xxxx xx xx xxx xxxx-xxxxxx xxxx. A xxxxx xx d xxx xxx xxxxxx xxxxxxxx xx xxxx xxxxxxxx xxxx xxx xxxxxx’x xxxx-xxxxxx xxxx xx xx. A xxxxx xx d xxxx xx xx xxx. Txx <literal moreinfo="none">xxxxxxxxxx</literal> xxxxxx xxx xxxxxx xx xxxxxx xxx xxxxxxxx xxxxx xxxx <literal moreinfo="none">INSERT</literal>, <literal moreinfo="none">UPDATE</literal>, xx <literal moreinfo="none">DELETE</literal> xxxxxxxxx, xxxxxxxxxxx xxxxxxx xxxx xx xxx xxx xxxxxxxxxxx. Txx xxxxxxx xx xx. -</para> - <programlisting format="linespecific">... -xxxxx_xxxxxxxxxx(xxxxx, d); -...</programlisting> - </refsect1> - </refentry> - <refentry id="ch17-77008"> - <refmeta> - <refentrytitle>xxxxx_xxxxxx_xxxx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxxx_xxxxxx_xxxx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">xx_xxxx xxxxx_xxxxxx_xxxx(MYSQL *xxxxx, xxxxx xxxx *xxxx, - xxxxx xxxx *xxxxxxxx, xxxxx xxxx *xxxxxxxx)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch17-03-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-17-ITERM-4448" significance="normal"><primary>xxxxx_xxxxxx_xxxx( ) xxxxxxxx</primary><secondary>C API</secondary></indexterm><indexterm id="mysqlian-CHP-17-ITERM-4449" significance="normal"><primary>USE xxxxxxxxx</primary></indexterm> -Uxx xxxx xx xxxxxx xxx xxxxxxx xxxx xxx xxx MxSQL xxxxxxx xx xxx xxx xxxxx xx xxx xxxxxx xxxxxxxx. Txx xxxxxxxx xx xxx xxx xxxx xx xxxxx xx xxx xxxxx xxxxxxxx. Sxxxx xxxx xxxxxxxx xxxx xxx xxx xxxxxxx xxxxxxx xx xxxxxxxxxx, xx xxxx xxxx xx xxxxx xxx xxxxxxx xxxxxxxx. Txxxxxxxx, x xxxxxxxx xxxx xx xxxxxx xxx xxx xxx xxx xxxxxxxxxx xx xx xx xxxxx xx xxx xxxxxx xxxxxxxx. -</para> - <programlisting format="linespecific">... -xxxxx_xxxx_xxxxxxx(xxxxx,"xxxxxxxxx","xxx","xxxxxx","xxxx","dddd",NULL,d); -xxxxx_xxxxxx_xx(xxxxx,"xxxxxxxxxxxx"); -... -xxxxx_xxxxxx_xxxx(xxxxx,"xxxxxxx","xxxxxxxx","xxxxxxxxxxxx"); -xxxxx_xxxxx(xxxxx, "UPDATE xxxxxxx - SET xxxx_xxxxxx_xx = 'dddd' - WHERE xxxx_xxxxxx_xx = 'dddd'"); -...</programlisting> - <para>Ix xxxx xxxxxxx, xxx xxxxxxx xxxxxx xxxx xxx xxxx xxx xxxxxxx SQL xxxxxxxxxx, xxxxx xxx xxxxxxxx xxxx xxxxxxxx. Hxxxxxx, xxx xxxxxxxx x xxxxxxxxx xxxx xxxxxx (x.x., xxx xxxxxx xxxxxxxx xx xxxxxxx xxx xxxx xxxxxxxx), xxx xxxx xx xxxxxxx xx xxx xxx xxx xxxx xxxxx xxx xxxxxx xxxxxxxxxxxxx xx xxxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch17-77009"> - <refmeta> - <refentrytitle>xxxxx_xxxxxxxxx_xxx_xxxx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxxx_xxxxxxxxx_xxx_xxxx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">xxxxx xxxx *xxxxx_xxxxxxxxx_xxx_xxxx(MYSQL *xxxxx)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch17-04-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-17-ITERM-4450" significance="normal"><primary>xxxxx_xxxxxxxxx_xxx_xxxx( ) xxxxxxxx (C API)</primary></indexterm> -Txxx xxxxxxx xxx xxxx xx xxx xxxxxxx xxxxxxxxx xxx xx xxx xx xxx MxSQL xxxxxx.</para> - <programlisting format="linespecific">... -MYSQL *xxxxx; -xxxxx xxxx *xxxx_xxx; -xxxxx = xxxxx_xxxx(NULL); -xxxxx_xxxx_xxxxxxx(xxxxx,"xxxxxxxxx","xxxxxxx","xx_xxx","xxxx","dddd",NULL,d); -xxxx_xxx = xxxxx_xxxxxxxxx_xxx_xxxx(xxxxx); -xxxxxx("Cxxxxxxxx Sxx: %x \x", xxxx_xxx); -...</programlisting> - <para>Tx xxx xxxx xxx xxxxxxxxx xxx xxxx, xx’x xxx xxxxxxxxx xx xxxxxx x xxxxxxxx. Hxxx xxx xxxx xxx xxxxxxx xx xxxxxxx xxxx xxxxxxx xxxxx xxxx xxxx:</para> - <programlisting format="linespecific">Cxxxxxxxx Sxx: xxxxxd</programlisting> - </refsect1> - </refentry> - <refentry id="ch17-77010"> - <refmeta> - <refentrytitle>xxxxx_xxxxx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxxx_xxxxx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">xxxx xxxxx_xxxxx(MYSQL *xxxxx)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch17-05-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-17-ITERM-4451" significance="normal"><primary>xxxxx_xxxxx( ) xxxxxxxx</primary><secondary>C API</secondary></indexterm><indexterm id="mysqlian-CHP-17-ITERM-4452" significance="normal"><primary>xxxxx_xxxx( ) xxxxxxxx (C API)</primary></indexterm> -Uxx xxxx xx xxxxx xxx xxxxxxxxxx xx xxx MxSQL xxxxxx. Ix xxxx -xxxxxxxxxxx xxx xxxxxxxxxx xxxxxx xxxxxxx xx xx <literal moreinfo="none">MYSQL</literal> xx xxx xxxxxx xxx xxxxxxxxx xxxxxxxxxxxxx xx <literal moreinfo="none">xxxxx_xxxx()</literal> xx <literal moreinfo="none">xxxxx_xxxxxxx()</literal>. Ix xxxx xxx xxxxxx x xxxxx.</para> - <programlisting format="linespecific">... -xxxxx_xxxxxxx(xxxxx,"xxxxxxxxx","xxxxx","xxxxx"); -... -xxxxx_xxxxx(xxxxx); -...</programlisting> - </refsect1> - </refentry> - <refentry id="ch17-77011"> - <refmeta> - <refentrytitle>xxxxx_xxxxxx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxxx_xxxxxx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">xx_xxxx xxxxx_xxxxxx(MYSQL *xxxxx)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch17-06-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-17-ITERM-4453" significance="normal"><primary>xxxxx_xxxxxx( ) xxxxxxxx (C API)</primary></indexterm><indexterm id="mysqlian-CHP-17-ITERM-4454" significance="normal"><primary>DELETE xxxxxxxxx</primary><secondary>xxxxx_xxxxxx( ) xxx</secondary></indexterm><indexterm id="mysqlian-CHP-17-ITERM-4455" significance="normal"><primary>UPDATE xxxxxxxxx</primary><secondary>xxxxx_xxxxxx( ) xxx</secondary></indexterm><indexterm id="mysqlian-CHP-17-ITERM-4456" significance="normal"><primary>INSERT xxxxxxxxx</primary><secondary>xxxxx_xxxxxx( ) xxx</secondary></indexterm> -Uxx xxxx xx xxxxxx xxx xxxxxxx xxxxxxxxxxx. Axxxx xxxx xxxxxxxx xx xxxxxxxx, <literal moreinfo="none">INSERT</literal>, <literal moreinfo="none">UPDATE</literal>, xxx <literal moreinfo="none">DELETE</literal> xxxxxxxxxx xxx xxxxxxx xx xxx xxxxxxxx, xxx xxx xxxxxx xxx xxx <literal moreinfo="none">xxxxx_xxxxxxxx( )</literal> xxxxxxxx xx xxxx xxxx. Txx xxxxxxxx xxxxxxx d xx xxxxxxxxxx, x xxx-xxxx xxxxx xx xxxxxxxxxxxx. Ix <literal moreinfo="none">xxxxx_xxxxxxxxxx(xxxxx, d)</literal> xx xxxx xxxxxxxxxx, xxxx xxxxxxxx xxxx xxxxxxx xxx xxx xxxxxx xx xxx xxxxxxxx xx xxx xxxxxxxx. -</para> - <programlisting format="linespecific"> xxxxx_xxxxxx(xxxxx);</programlisting> - </refsect1> - </refentry> - <refentry id="ch17-77012"> - <refmeta> - <refentrytitle>xxxxx_xxxxxxx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxxx_xxxxxxx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">MYSQL *xxxxx_xxxxxxx(MYSQL *xxxxx, xxxxx xxxx *xxxx, - xxxxx xxxx *xxxx, xxxx xxxx *xxxxxxxx)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch17-07-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-17-ITERM-4457" significance="normal"><primary>xxxxx_xxxxxxx( ) xxxxxxxx</primary><secondary>C API</secondary></indexterm><indexterm id="mysqlian-CHP-17-ITERM-4458" significance="normal"><primary>xxxxx_xxxxx( ) xxxxxxxx</primary><secondary>C API</secondary></indexterm><indexterm id="mysqlian-CHP-17-ITERM-4459" significance="normal"><primary>xxxxx_xxxx_xxxxxxx( ) xxxxxxxx (C API)</primary></indexterm> -Txxx xxxxxxxx xx xxxxxxxxxx xx xxxxx xx <literal moreinfo="none">xxxxx_xxxx_xxxxxxx( )</literal>. -</para> - </refsect1> - </refentry> - <refentry id="ch17-77013"> - <refmeta> - <refentrytitle>xxxxx_xxxxxx_xx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxxx_xxxxxx_xx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">xxx xxxxx_xxxxxx_xx(MYSQL *xxxxx, xxxxx xxxx *xxxxxxxx)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch17-08-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-17-ITERM-4460" significance="normal"><primary>xxxxx_xxxxxx_xx( ) xxxxxxxx</primary><secondary>C API</secondary></indexterm><indexterm id="mysqlian-CHP-17-ITERM-4461" significance="normal"><primary>xxxxx_xxxxx( ) xxxxxxxx</primary><secondary>C API</secondary></indexterm><indexterm id="mysqlian-CHP-17-ITERM-4462" significance="normal"><primary>CREATE DATABASE xxxxxxxxx</primary><secondary>xxxxx_xxxxxx_xx( ) xxx</secondary></indexterm><indexterm id="mysqlian-CHP-17-ITERM-4463" significance="normal"><primary>xxxxx_xxxxx( ) xxxxxxxx</primary><secondary>C API</secondary></indexterm> -Txxx xxxxxxxx xxx xx xxxx xx xxxxxx x xxx xxxxxxxx xx xxx MxSQL xxxxxx, xxxx xxx xxx xxxxxxxx xxxx xx xxxxx xx xxx xxxxxx xxxxxxxx. Hxxxxxx, xxxx xxxxxxxx xxx xxxx xxxxxxxxxx. Ixxxxxx, x <literal moreinfo="none">CREATE DATABASE</literal> xxxxxxxxx xxxxxx xx xxxxx xxxx <literal moreinfo="none">xxxxx_xxxxx( )</literal> xx <literal moreinfo="none">xxxxx_xxxx_xxxxx()</literal>.</para> - </refsect1> - </refentry> - <refentry id="ch17-77014"> - <refmeta> - <refentrytitle>xxxxx_xxxx_xxxx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxxx_xxxx_xxxx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">xxxx xxxxx_xxxx_xxxx(MYSQL_RES *xxxxxx, xx_xxxxxxxxx xxxxxx)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch17-09-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-17-ITERM-4465" significance="normal"><primary>xxxxx_xxxx_xxxx( ) xxxxxxxx</primary><secondary>C API</secondary></indexterm><indexterm id="mysqlian-CHP-17-ITERM-4466" significance="normal"><primary>xxxxx_xxxxx_xxxxxx( ) xxxxxxxx (C API)</primary></indexterm><indexterm id="mysqlian-CHP-17-ITERM-4467" significance="normal"><primary>xxxxx_xxxxx_xxx( ) xxxxxxxx</primary><secondary>C API</secondary></indexterm> -Uxx xxxx xx xxxxxxxxxxx xxxx <literal moreinfo="none">xxxxx_xxxxx_xxxxxx( )</literal> xxx x xxxxx xxxxxxxx xxxx xx <literal moreinfo="none">xxxxx_xxxxx_xxx( )</literal> xx xxxxxx xxx xxxxxxx xxx xxxxx xxxxxxx xx xxx xxx xxxxxxxxx xx xxx xxxxxx xxxxxxxx xx xxxx xxxxxxxx.</para> - <programlisting format="linespecific">... -xxxxx_xxxxx(xxxxx, "SELECT xxxxxx_xx, xxxxxx_xxxx - FROM xxxxxxx ORDER BY xxxxx_xxxx"); -xxxxxx = xxxxx_xxxxx_xxxxxx(xxxxx); -xxx_xxxx = xxxxx_xxx_xxxx(xxxxxx); -xxxxx_xxxx_xxxx(xxxxxx, (xxx_xxxx - d)); -xxxxx((xxx = xxxxx_xxxxx_xxx(xxxxxx)) != NULL) - { xxxxxx("%x (%x) \x", xxx[d], xxx[d]); } -...</programlisting> - <para>Txxx xxxxxxx xxxxxxx xxxxxxxxx x xxxx xx xxxxxx xxxxx xxxxx xxxx xxxxx xxxxxxxxxx IDx. Uxxxx xxx <literal moreinfo="none">xxxxx_xxxx_xxxx( )</literal> xxxxxxxx xx xxxxxxxxxxx xxxx <literal moreinfo="none">xxxxx_xxxxx_xxx( )</literal> xxx x <literal moreinfo="none">xxxxx</literal> xxxxxxxxx, xxx xxxx xxxxx xxxxxxx xxx xxxxxxx xxxx xxx xxxxxxx xxxx xx xxxxxxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch17-77015"> - <refmeta> - <refentrytitle>xxxxx_xxxxx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxxx_xxxxx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">xxxx xxxxx_xxxxx(xxxxx xxxx *xxxxx)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch17-10-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-17-ITERM-4468" significance="normal"><primary>xxxxx_xxxxx( ) xxxxxxxx (C API)</primary></indexterm> -Uxx xxxx xx xxx xxxxxxxxx xx xxx xxxxxx xxx xxxxxxxx xxxx xxxxxxxxx. Txx xxx xx xxxxxxx xxxx xx xxxxxxx xx '<literal moreinfo="none">x:x:x,xxxxxxx</literal>‘. Sxx <xref linkend="mysqlian-CHP-16-TABLE-1"/> xx xxx xxx xx xxx xxxx xx xxxxxxx xxx xxx <literal moreinfo="none">xxxxxxxxx</literal> xxxxxxx xx Cxxxxxx dd xxx xx xxxxxxxxxxx xx xxxxx xxxxx xxx xxxxxx xxxx xxx xx xxxx.</para> - <programlisting format="linespecific">... -xxxxx_xxxxx("x:x:x,xxxxxxxx"); -...</programlisting> - <para>Txx xxxxxxxx xxxxx xxxxx xxxxxxx xxx xxxx xx xxx xxxxxxx xxxxx xxxxxxxxx xxxxxxxxxxx xx xx xx xxxxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch17-77016"> - <refmeta> - <refentrytitle>xxxxx_xxxx_xx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxxx_xxxx_xx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">xxx xxxxx_xxxx_xx(MYSQL *xxxxx, xxxxx xxxx *xxxxxxxx)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch17-11-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-17-ITERM-4469" significance="normal"><primary>xxxxx_xxxx_xx( ) xxxxxxxx</primary><secondary>C API</secondary></indexterm><indexterm id="mysqlian-CHP-17-ITERM-4470" significance="normal"><primary>DROP DATABASE xxxxxxxxx</primary><secondary>C API xxxxxxxxx xxx</secondary></indexterm><indexterm id="mysqlian-CHP-17-ITERM-4471" significance="normal"><primary>xxxxx_xxxx_xxxxx( ) xxxxxxxx (C API)</primary></indexterm><indexterm id="mysqlian-CHP-17-ITERM-4472" significance="normal"><primary>xxxxx_xxxxx( ) xxxxxxxx</primary><secondary>C API</secondary></indexterm> -Txxx xxxxxxxx xxx xx xxxx xx xxxxxx xxx xxxxxxxx xxxxx xx xxx xxxxxx xxxxxxxx xx xxx xxxxxxxx xxxx xxx MxSQL xxxxxx. Ix xxxxxxx d xx xxxxxxxxxx xxx x xxx-xxxx xxxxx xx xxx. Hxxxxxx, xxxx xxxxxxxx xxx xxxx xxxxxxxxxx. Uxx <literal moreinfo="none">xxxxx_xxxxx( )</literal> xx <literal moreinfo="none">xxxxx_xxxx_xxxxx( )</literal> xxxx x <literal moreinfo="none">DROP</literal> <literal moreinfo="none">DATABASE</literal> xxxxxxxxx xxxxxxx. -</para> - <programlisting format="linespecific">... -xxxxx_xxxx_xxxxxxx(xxxxx,xxxx,xxxx,xxxxxxxx,NULL,d,NULL,d); -... -xxxxx_xxxx_xx(xxxxx, "xxd"); -...</programlisting> - <para>Txxx xxxxxxx x xxx-xxxx xxxxx xx xx xxxxx, xx x xxxxxxx xxxx xxxx xx xxxxxx xxxxxxx xxxxx xxxxxxxx xxx xxx xxxxxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch17-77017"> - <refmeta> - <refentrytitle>xxxxx_xxxx_xxxxx_xxxx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxxx_xxxx_xxxxx_xxxx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">xxx xxxxx_xxxx_xxxxx_xxxx(MYSQL *xxxxx)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch17-12-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-17-ITERM-4473" significance="normal"><primary>xxxxx_xxxx_xxxxx_xxxx( ) xxxxxxxx (C API)</primary></indexterm> -Uxx xxxx xx xxxxx xxxxxxxxx xxxxxxxxxxx xxxxx xxx xxxxxxx xxxxxxxxxx xx xxx MxSQL xxxxxx’x xxxxxxx. Ix xxxxxxx d xx xxxxxxxxxx, x xxx-xxxx xxxxx xx xxxxxxxxxxxx. Txx xxxx xxxx xxxx xxxxxxxxxxxxxx xxxxxxxxxx.</para> - <programlisting format="linespecific">... -xx(!xxxxx_xxxx_xxxxx_xxxx(xxxxx)) - { xxxxxx("Dxxxxxxxx Ixxx. Wxxxxxx. \x"); } -...</programlisting> - </refsect1> - </refentry> - <refentry id="ch17-77018"> - <refmeta> - <refentrytitle>xxxxx_xxx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxxx_xxx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">xx_xxxx xxxxx_xxx(MYSQL *xxxxxx)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch17-13-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-17-ITERM-4474" significance="normal"><primary>xxxxx_xxx( ) xxxxxxxx (C API)</primary></indexterm><indexterm id="mysqlian-CHP-17-ITERM-4475" significance="normal"><primary>xxxxx_xxxx_xxxxxxx( ) xxxxxxxx (C API)</primary></indexterm><indexterm id="mysqlian-CHP-17-ITERM-4476" significance="normal"><primary>xxxxx_xxxxx( ) xxxxxxxx</primary><secondary>C API</secondary></indexterm><indexterm id="mysqlian-CHP-17-ITERM-4477" significance="normal"><primary>xxxxx_xxxxx( ) xxxxxxxx</primary><secondary>C API</secondary></indexterm> -Uxx xxxx xx xxxxxxxxx xxxxxxx xxx xxxx xxx xx xxx xxxxxxx xxx xxx xxxx xxxxxxx. Ix xxxxxxx d xxxxx xxx xx xxxx xx xxxxxxx xxx x xxx-xxxx xxxxx xx xxx xx xxxx. Txxx xxxxxxxx xxx xxxx xxxxxxxxxx. Uxx <literal moreinfo="none">xxxxx_xxxxx()</literal> xxx <literal moreinfo="none">xxxxx_xxxxx( )</literal>, xx <literal moreinfo="none">xxxxx_xxxx_xxxxxxx( )</literal>, xxxxxxx xx xxxxx xxx xx xxxxx xxxxxxxxxx xxxx xxx xxxx xxx xxx xxxx xxxxxxx. -</para> - </refsect1> - </refentry> - <refentry id="ch17-77019"> - <refmeta> - <refentrytitle>xxxxx_xxxxx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxxx_xxxxx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">xxxxxxxx xxx xxxxx_xxxxx(MYSQL *xxxxx)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch17-14-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-17-ITERM-4478" significance="normal"><primary>xxxxx_xxxxx( ) xxxxxxxx</primary><secondary>C API</secondary></indexterm> -Txxx xxxxxxxx xxxxxxx xxx xxxxx xxxxxx xxx xxx xxxx xxxxxxxx xxxxx xxx xxx xx xx xxxxxx xx xxxxxxx. Ix xxx xxxx xxxxxxxx xxxxxxxx xxx xxxxxxxxxx, x xxxxx xx d xx xxxxxxxx xx xxxx xxxxxxxx.</para> - <programlisting format="linespecific">... -xx(xxxxx_xxxx_xxxxxxx(xxxxx,xxxx,"xxxxx", - xxxxxxxx,xxxxxxxx,d,NULL,d) == NULL) - { - xxxxxx("Exxxx %x \x", xxxxx_xxxxx(xxxxx)); - xxxxxx d; - } -...</programlisting> - <para>Ix xxxx xxxxxxx, xxx xxxxxxx xx xxxxxxxxxx xx xxxxxxx xx xxx MxSQL xxxxxx xxx x xxxx xxx xx xxx xx xxx <emphasis>xxxxx</emphasis> xxxxxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch17-77020"> - <refmeta> - <refentrytitle>xxxxx_xxxxx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxxx_xxxxx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">xxxx *xxxxx_xxxxx(MYSQL *xxxxx)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch17-15-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-17-ITERM-4479" significance="normal"><primary>xxxxx_xxxxx( ) xxxxxxxx</primary><secondary>C API</secondary></indexterm> -Txxx xxxxxxx xxx xxxxx xxxxxxx xxx xxx xxxx xxxxxxxx xxxxx xxx xxx xx xx xxxxxx xx xxxxxxx. Ix xxx xxxx xxxxxxxx xxxxxxxx xxx xxxxxxxxxx, xx xxxxx xxxxxx xx xxxxxxxx xx xxxx xxxxxxxx.</para> - <programlisting format="linespecific">... -xx(!xxxxx_xxxx_xxxxxxx(xxxxx,xxxx,"xxxxx", - xxxxxxxx,xxxxxxxx,d,NULL,d)) - { - xxxxxx("Exxxx Mxxxxxx: %x \x", xxxxx_xxxxx(xxxxx)); - xxxxxx d; - } -...</programlisting> - <para>Ix xxxx xxxxxxx, xxx xxxxxxx xx xxxxxxxxxx xx xxxxxxx xx xxx MxSQL xxxxxx xxxx x xxxx xxx xx xxx xx xxx <emphasis>xxxxx</emphasis> xxxxxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch17-77021"> - <refmeta> - <refentrytitle>xxxxx_xxxxxx_xxxxxx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxxx_xxxxxx_xxxxxx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">xxxxxxxx xxx xxxxx_xxxxxx_xxxxxx(xxxx *xxxxxxxxxxx, - xxxxx xxxx *xxxxxx, - xxxxxxxx xxx xxxxxx)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch17-16-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-17-ITERM-4480" significance="normal"><primary>xxxxx_xxxxxx_xxxxxx( ) xxxxxxxx</primary><secondary>C API</secondary></indexterm><indexterm id="mysqlian-CHP-17-ITERM-4481" significance="normal"><primary>xxxxx_xxxx_xxxxxx_xxxxxx( ) xxxxxxxx</primary><secondary>C API</secondary></indexterm> -Txxx xxxxxxxx xxxx xxxxxx x xxxxxx xxxxx xx xxx xxxxxx xxxxxxxx xxxx xxxxxxx xxxxxxxxxx xxxxxxx xx xxxxxx xxxxxxxxxxx xx xxxxx xx xxxx. Hxxxxxx, xxxx xxxxxxxx xx x xxxxxxxx xxxxxxx xxx xxx xxxx xxxxxxxxxx. Uxx xxx <literal moreinfo="none">xxxxx_xxxx_xxxxxx_xxxxxx()</literal> xxxxxxxx xxxxxxx, xxxxx xxxx xxxx xxx xxxxxxxx xxx xxxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch17-77022"> - <refmeta> - <refentrytitle>xxxxx_xxxxx_xxxxx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxxx_xxxxx_xxxxx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">MYSQL_FIELD *xxxxx_xxxxx_xxxxx(MYSQL_RES *xxxxxx)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch17-17-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-17-ITERM-4482" significance="normal"><primary>xxxxx_xxxxx_xxxxx( ) xxxxxxxx</primary><secondary>C API</secondary></indexterm> -Txxx xxxxxxx x <literal moreinfo="none">MYSQL_FIELD</literal> xxxxxxxxx xxxx xxxxxxxx xxxxxxxxxxx xx x xxxxx xxxxx xx x xxxxxxx xxx. Ix xxx xxx xx xx xxxxxxxxxxx xxxx x xxxx xxxxxxxxx, xxx xxx xxxxxxx xxxxxxxxxxx xx xxxx xxxxx.</para> - <programlisting format="linespecific">... -MYSQL_FIELD *xxxxx; -... -xxxxx_xxxxx(xxxxx, "SELECT * FROM xxxxxxx LIMIT d"); -xxxxxx = xxxxx_xxxxx_xxxxxx(xxxxx); -xxxxx((xxxxx = xxxxx_xxxxx_xxxxx(xxxxxx)) != NULL) - { xxxxxx("%x \x", xxxxx->xxxx); } -...</programlisting> - <para><indexterm id="mysqlian-CHP-17-ITERM-4483" significance="normal"><primary>SELECT xxxxxxxxx</primary><secondary>xxxxx_xxxxx_xxxxx( ) xxx</secondary></indexterm> -Txx xxxxxxxx xx xxx <literal moreinfo="none">SELECT</literal> xxxxxxxxx xxxxxxx xxx xxxxxxx xx xxx xxxxx. Txx xxxx xxxxxxxxx xxxxx xxx xxxx xx xxxx xxxxxx. Txx xxxxx xxxxxxxxxxxxx xxx <literal moreinfo="none">xxxxx->xxxxx</literal> xxx xxx xxxxx xxxx xxx <literal moreinfo="none">xxxxx->xxx</literal> xxx xxx xxxxxxx xxxxx xx xxx xxxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch17-77023"> - <refmeta> - <refentrytitle>xxxxx_xxxxx_xxxxx_xxxxxx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxxx_xxxxx_xxxxx_xxxxxx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">MYSQL_FIELD *xxxxx_xxxxx_xxxxx_xxxxxx(MYSQL_RES *xxxxxx, - xxxxxxxx xxx xxxxx_xxx)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch17-18-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-17-ITERM-4484" significance="normal"><primary>xxxxx_xxxxx_xxxxx_xxxxxx( ) xxxxxxxx (C API)</primary></indexterm> -Txxx xxxxxxx x <literal moreinfo="none">MYSQL_FIELD</literal> xxxxxxxxx xxxx xxxxxxxx xxxxxxxxxxx xx x xxxxx xxxxx xx x xxxxxxx xxx xxxxxxxx xx xx xxx xxxxx xxxxxxxx xx xxx xxxxxxxx. Txx xxxxxxxxxx xxxxx xx xxxxx xx xxx xxxxxx xxxxxxxx.</para> - <programlisting format="linespecific">... -MYSQL_FIELD *xxxxx; -... -xxxxx_xxxxx(xxxxx, "SELECT * FROM xxxxxxx LIMIT d"); -xxxxxx = xxxxx_xxxxx_xxxxxx(xxxxx); -xxxxx = xxxxx_xxxxx_xxxxx_xxxxxx(xxxxxx, d); -xxxxxx("%x \x", xxxxx->xxxx); -...</programlisting> - <para><indexterm id="mysqlian-CHP-17-ITERM-4485" significance="normal"><primary>xxxxx_xxxxx_xxxxx( ) xxxxxxxx</primary><secondary>C API</secondary></indexterm> -Txxx xxxxxxxx xx xxxxxxx xx <literal moreinfo="none">xxxxx_xxxxx_xxxxx( )</literal> xxxxxx xxxx xxxxxxxxxxx xx xxxx xxx xxxxxxxxx xxxxx xxx xx xxxxxxxx. Ix xxx xxxxxxx xxxx, xxx xxxx xx xxx xxxxx xxxxx (d xxxxx xxx xxxxx) xxxx xx xxxxxxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch17-77024"> - <refmeta> - <refentrytitle>xxxxx_xxxxx_xxxxxx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxxx_xxxxx_xxxxxx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">MYSQL_FIELD *xxxxx_xxxxx_xxxxxx(MYSQL_RES *xxxxxx)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch17-19-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-17-ITERM-4486" significance="normal"><primary>xxxxx_xxxxx_xxxxxx( ) xxxxxxxx (C API)</primary></indexterm> -Txxx xxxxxxx xx xxxxx xx xxxxxxxxxxx xxxxx xxx xxxxxx xx x xxxxxxx xxx.</para> - <programlisting format="linespecific">... -xxxxx_xxxxx(xxxxx, "SELECT * FROM xxxxxxx"); -xxxxxx = xxxxx_xxxxx_xxxxxx(xxxxx); -xxx_xxxxxx = xxxxx_xxxxx_xxxxx(xxxxx); -MYSQL_FIELD *xxxxx; -xxxxx = xxxxx_xxxxx_xxxxxx(xxxxxx); -xxx(x = d; x < xxx_xxxxxx; x++) - { xxxxxx("%x.%x \x", x, &xxxxx[x].xxxx); } -...</programlisting> - <para>Ix xxxxxxxx xx xxx <literal moreinfo="none">.xxxx</literal> xxx xx xxxxxxx xxx xxxxxx xxxx, x xxxxxxx xxx xxxxxxx <literal moreinfo="none">.xxxxx</literal> xxx xxx xxxxx xxxx xxx <literal moreinfo="none">.xxx</literal> xxx xxx xxxxxxx xxxxx xx xxx xxxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch17-77025"> - <refmeta> - <refentrytitle>xxxxx_xxxxx_xxxxxxx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxxx_xxxxx_xxxxxxx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">xxxxxxxx xxxx *xxxxx_xxxxx_xxxxxxx(MYSQL *xxxxxx)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch17-20-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-17-ITERM-4487" significance="normal"><primary>xxxxx_xxxxx_xxxxxxx( ) xxxxxxxx</primary><secondary>C API</secondary></indexterm> -Txxx xxxxxxx xxx xxxxxx xx xxxx xxxxxx xxxxxx x xxxxxxxxxx xxx xx x xxxxxxx xxx. Txx xxxxxx xxxxxxxx xxx xxxx xxx xxxx xxx xxxxxxx, xxxxxxxxx xx xxx xxxx xxxxxxxxx xx xxx xxxxxxx.</para> - <programlisting format="linespecific">... -xxxxx_xxxxx(xxxxx, "SELECT * FROM xxxxxxx"); -xxxxxx = xxxxx_xxxxx_xxxxxx(xxxxx); -xxx = xxxxx_xxxxx_xxx(xxxxxx); -xxxxxxxx xxx xxx_xxxxxx = xxxxx_xxx_xxxxxx(xxxxxx); -xxxxxxxx xxxx *xxxxxxx = xxxxx_xxxxx_xxxxxxx(xxxxxx); -xxx(x = d; x < xxx_xxxxxx; x++) - { - xxxxx = xxxxx_xxxxx_xxxxx(xxxxxx); - xxxxxx("%x %xx \x", xxxxx->xxxx, xxxxxxx[x]); - } -...</programlisting> - <para><indexterm id="mysqlian-CHP-17-ITERM-4488" significance="normal"><primary>SELECT xxxxxxxxx</primary><secondary>xxxxx_xxxxx_xxxxxxx( ) xxx</secondary></indexterm> -Txxx xxxxxxx xxxxxxxxx xxx xxx xx xxx xxxxxxx xxx xxxxxx xxx xxxxxxx xx xxx xxxxxx xx xxxx xxx. Tx xxxxxxxx xxxx xxxxx, xxx <literal moreinfo="none">SELECT</literal> xxxxxxxxx xxxxx xxxx xx xx xxxxxxx xxx x <literal moreinfo="none">xxxxx</literal> xxxxxxxxx xxxxx xx xxxxxxx xxxxxx xxx <literal moreinfo="none">xxx</literal> xxxxxxxxx xx xxxx xxxxxxx xxxx xxx.</para> - </refsect1> - </refentry> - <refentry id="ch17-77026"> - <refmeta> - <refentrytitle>xxxxx_xxxxx_xxx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxxx_xxxxx_xxx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">MYSQL_ROW xxxxx_xxxxx_xxx(MYSQL_RES *xxxxxx)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch17-21-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-17-ITERM-4489" significance="normal"><primary>xxxxx_xxxxx_xxx( ) xxxxxxxx</primary><secondary>C API</secondary></indexterm> -Uxx xxxx xx xxxxxxxx xxx xxxx xxx xx x xxxxxxx xxx. Wxxx xxxxx xxx xx xxxx xxxx xx xxxxxxxx, xxx xxxxxxxx xxxxxxx NULL. Hxxx xx x xxxxxx xxxxxxxx xxxxxxx xxxxx xxxx xxxxxxxx:</para> - <programlisting format="linespecific">#xxxxxxx <xxxxx.x> -#xxxxxxx <xxxxxx.x> -#xxxxxxx <xxxxx/xxxxx.x> -xxx xxxx( ) - { - MYSQL *xxxxx; - MYSQL_RES *xxxxxx; - MYSQL_ROW xxx; - MYSQL_FIELD *xxxxx; - xxx x, xxx_xxxxxx; - xxxxx = xxxxx_xxxx(NULL); - xxxxx_xxxx_xxxxxxx(xxxxx,"xxxxxxxxx","xxxx","xxxxxxxx", - "xxxxxxxxxxxx",d,NULL,d); - xxxxx_xxxxx(xxxxx,"SELECT * FROM xxxxx"); - xxxxxx = xxxxx_xxxxx_xxxxxx(xxxxx); - xxx_xxxxxx = xxxxx_xxxxx_xxxxx(xxxxx); - xxxxx((xxx = xxxxx_xxxxx_xxx(xxxxxx)) != NULL) - { - xxx(x = d; x < xxx_xxxxxx; x++) - { - xxxxx = xxxxx_xxxxx_xxxxx_xxxxxx(xxxxxx, x); - xxxxxx("%x: %x, ", xxxxx->xxxx, xxx[x]); - } - xxxxxx("\x"); - } - xxxxx_xxxx_xxxxxx(xxxxxx); - xxxxx_xxxxx(xxxxx); - xxxxxx d; - }</programlisting> - <para>Axxxxxxx xxxx xxxxxxx xx x xxxxxxxx xxxxxxx, xx’x xxxxxxx xxx xxxxx xxxxx xxxxxxxx xxxxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch17-77027"> - <refmeta> - <refentrytitle>xxxxx_xxxxx_xxxxx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxxx_xxxxx_xxxxx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">xxxxxxxx xxx xxxxx_xxxxx_xxxxx(MYSQL *xxxxx)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch17-22-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-17-ITERM-4490" significance="normal"><primary>xxxxx_xxxxx_xxxxx( ) xxxxxxxx (C API)</primary></indexterm><indexterm id="mysqlian-CHP-17-ITERM-4491" significance="normal"><primary>SELECT xxxxxxxxx</primary><secondary>xxxxx_xxxxx_xxxxx( ) xxx</secondary></indexterm> -Txxx xxxxxxx xxx xxxxxx xx xxxxxxx xx x xxxxxxx xxx. Yxx xxx xxxx xxx xxxx xxxxxxxx xx xxxx xxxxxxx xxxxx xxx xx xxxxx xx x <literal moreinfo="none">SELECT</literal> xxxxx. A <literal moreinfo="none">SELECT</literal> xxxxx xxxx xxxxxx xx xxxxx xxx xxxxx xxxxx xxxx xxxxx xx xx xxxxx, xxxxxxxxx xx x xxxxx xx d xxx xxx xxxxxxxx.</para> - <programlisting format="linespecific">... -xx(!xxxxxx) - { - xx(xxxxx_xxxxx_xxxxx(xxxxx) == d) - { - xxxxxx("Exxxx \x"); - xxxxxx d; - } - } -...</programlisting> - <para><indexterm id="mysqlian-CHP-17-ITERM-4492" significance="normal"><primary>xxxxx_xxxxx_xxx( ) xxxxxxxx</primary><secondary>C API</secondary></indexterm> -Sxx xxx xxxxx xxx xxx <literal moreinfo="none">xxxxx_xxxxx_xxx( )</literal> xxxxxxxx xxx xxxxxxx xxxxxxx xxxxxxxxx xxxx xxxxxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch17-77028"> - <refmeta> - <refentrytitle>xxxxx_xxxxx_xxxx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxxx_xxxxx_xxxx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">MYSQL_FIELD_OFFSET xxxxx_xxxxx_xxxx(MYSQL_RES *xxxxxx, - MYSQL_FIELD_OFFSET xxxxxx)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch17-23-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-17-ITERM-4493" significance="normal"><primary>xxxxx_xxxxx_xxxx( ) xxxxxxxx</primary><secondary>C API</secondary></indexterm><indexterm id="mysqlian-CHP-17-ITERM-4494" significance="normal"><primary>xxxxx_xxxxx_xxxxx( ) xxxxxxxx</primary><secondary>C API</secondary></indexterm> -Uxx xxxx xx xxxxxxxxxxx xxxx <literal moreinfo="none">xxxxx_xxxxx_xxxxx( )</literal> xx xxxxxx xxx xxxxxxx xxxxx xxxxx xxxxxxx xx xxx xxx xxxxxxxxx xx xxx xxxxxx xxxxxxxx xx xxxx xxxxxxxx. Txx xxxxxxxx xxxxxxx xxx xxxxxx xx xxx xxxxx xxxx xxx xxxxxxx xxxxxx xxx xxxxxxxx xxx xxxxxxx. A xxxxxxxxx xx xxx xxxxxxx xxx xxxx xx xxxxxx xx xxx xxxxx xxxxxxxx.</para> - <programlisting format="linespecific">... -xxxxx_xxxxx(xxxxx, xxx_xxxxx); -MYSQL_FIELD_OFFSET xxxxxx = d; -xxxxx_xxxxx_xxxx(xxxxxx, xxxxxx); -xxxxx((xxxxx = xxxxx_xxxxx_xxxxx(xxxxxx)) != NULL) - { - xxxxxx("%x: %x \x", xxxxx_xxxxx_xxxx(xxxxxx), xxxxx->xxxx); - } -...</programlisting> - <para><indexterm id="mysqlian-CHP-17-ITERM-4495" significance="normal"><primary>xxxxx_xxxxx_xxxx( ) xxxxxxxx (C API)</primary></indexterm> -Uxxxx <literal moreinfo="none">xxxxx_xxxxx_xxxx()</literal> xxxx xxx xx xxxxxx xx d, xxx xxxxx xxx xxxx xx xxx xxxxxxx xxx xxx xxxxxxx. Txx <literal moreinfo="none">xxxxx_xxxxx_xxxx( )</literal> xxxxxxxx xx xxxx xx xxxxxxxxx xxx xxxxx xx xxx xxxxx xxxxx xxxxxxxxx xxxxxx xxxx xxxx xx xxx <literal moreinfo="none">xxxxx</literal> xxxxxxxxx. Txx <literal moreinfo="none">xxxxx_xxxxx_xxxx( )</literal> xxxxxxxx xxxx xxxxxx xxx xxxxxx xxxxx xx xxxxxxxx xxx xxxxxxxx. Ix xxx xxxxxx xxx <literal moreinfo="none">xxxxx_xxxxx_xxxx( )</literal> xxxx xx xxx xxxxxxx xx xxx xxxxxxxxx, xxx <literal moreinfo="none">xxx_xxxxxx</literal> xxxxxxxx xxxxx xxxxxxx x xxxxx xx d, xxx xxxxxxxx xxxxx xxx x xxx.</para> - <programlisting format="linespecific">... -MYSQL_FIELD_OFFSET xxx_xxxxxx = xxxxx_xxxxx_xxxx(xxxxxx, xxxxxx); -...</programlisting> - <para>Yxx xxx xxx xxxx xxx xxxxxxxx x xxxxx xx x xxxxxxx xxx xxxxxx xxxxxx xxx xxxxxxx. Txx xxxxxxx xxx xxxxx xxxxxx xx xxxx xxxxx xxxxx xxx xxx xxxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch17-77029"> - <refmeta> - <refentrytitle>xxxxx_xxxxx_xxxx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxxx_xxxxx_xxxx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">MYSQL_FIELD_OFFSET xxxxx_xxxxx_xxxx(MYSQL_RES *xxxxxx)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch17-24-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-17-ITERM-4496" significance="normal"><primary>xxxxx_xxxxx_xxxx( ) xxxxxxxx (C API)</primary></indexterm><indexterm id="mysqlian-CHP-17-ITERM-4497" significance="normal"><primary>xxxxx_xxxxx_xxxxx( ) xxxxxxxx</primary><secondary>C API</secondary></indexterm><indexterm id="mysqlian-CHP-17-ITERM-4498" significance="normal"><primary>xxxxx_xxxxx_xxxx( ) xxxxxxxx</primary><secondary>C API</secondary></indexterm> -Txxx xxxxxxx xxx xxxxx xx xxx xxxxx xxxxxxx xxx xxx xxxxxxx xxx xx xxx xx x xxxxx xxxxxxxx xxxx xx <literal moreinfo="none">xxxxx_xxxxx_xxxxx( )</literal>. Txx xxxxx xxxxxxx xxxxxx xx d xxx xxx xxxxx xxxxx xxxx x xxx xx xxxxxxxxx xxx xxxxxxxx xx xxx xx xxxx xxxxx xx xxxxxxxxx xx xxxxxxxxxx xxxxx. Sxx <literal moreinfo="none">xxxxx_xxxxx_xxxx( )</literal> xxx xx xxxxxxx xx xxxx xxxxxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch17-77030"> - <refmeta> - <refentrytitle>xxxxx_xxxx_xxxxxx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxxx_xxxx_xxxxxx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">xxxx xxxxx_xxxx_xxxxxx(MYSQL_RES *xxxxxx)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch17-25-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-17-ITERM-4499" significance="normal"><primary>xxxxx_xxxx_xxxxxx( ) xxxxxxxx</primary><secondary>C API</secondary></indexterm><indexterm id="mysqlian-CHP-17-ITERM-4500" significance="normal"><primary>xxxxx_xxxxx_xxxxxx( ) xxxxxxxx (C API)</primary></indexterm> -Uxx xxxx xx xxxx xxxxxx xxxxxxxxx xx x xxxxxxxx xxxx xx <literal moreinfo="none">xxxxx_xxxxx_xxxxxx( )</literal> xx xxxxx x <literal moreinfo="none">MYSQL_RES</literal> xxxxxxx xxx xxxxxxxx xx xxxxx x xxxxxxx xxx.</para> - <programlisting format="linespecific">... -xxxxxx = xxxxx_xxxxx(xxxxx, xxx_xxxxx); -... -xxxxx_xxxx_xxxxxx(xxxxxx); -...</programlisting> - <para>Nxx xxxxxxx xxxxxxxxx xxxxxx xx xxxxxxxxxx xx xxxxxx xxxxxxxxx xxxxxx xxxxx xx’x xxxxx xxx xxxxx xxxxxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch17-77031"> - <refmeta> - <refentrytitle>xxxxx_xxx_xxxxxx_xxxx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxxx_xxx_xxxxxx_xxxx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">xxxx *xxxxx_xxx_xxxxxx_xxxx(xxxx)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch17-26-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-17-ITERM-4501" significance="normal"><primary>xxxxx_xxx_xxxxxx_xxxx( ) xxxxxxxx</primary><secondary>C API</secondary></indexterm> -Txxx xxxxxxx xxx xxxxxx xxxxxxx xxxxxxx.</para> - <programlisting format="linespecific">... -xxxxx xxxx *xxxx; -xxxx = xxxxx_xxx_xxxxxx_xxxx( ); -xxxxxx("Cxxxxx Lxxxxxx Vxxxxxx: %x \x", xxxx); -...</programlisting> - </refsect1> - </refentry> - <refentry id="ch17-77032"> - <refmeta> - <refentrytitle>xxxxx_xxx_xxxxxxxxx_xxx_xxxx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxxx_xxx_xxxxxxxxx_xxx_xxxx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">xxxx xxxxx_xxx_xxxxxxxxx_xxx_xxxx(MYSQL *xxxxx, MY_CHARSET_INFO *xx)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch17-27-fm2xml"> - <title/> - <para>Txxx xxxxxxx xxx xxxxxxx xxxxxxxxx xxx xxxxxxxxxxx xxx xxx xxxxxxxx xxxxx. Ix xxxx xxx <literal moreinfo="none">MY_CHARSET_INFO</literal> xxxxxxxxx, xx xxx xxxxxxxxxx xxx xx xxxxxxxxx xxxx xxxxxxxxxx xxxx xx:</para> - <programlisting format="linespecific">... -xx (!xxxxx_xxx_xxxxxxxxx_xxx(xxxxx, "xxxd")) -{ - MY_CHARSET_INFO xx_xxx; - xxxxx_xxx_xxxxxxxxx_xxx_xxxx(xxxxx, &xx_xxx); - xxxxxx("Cxxxxxxxx Sxx: %x\x", xx_xxx.xxxx); - xxxxxx("Cxxxxxxxx: %x\x", xx_xxx.xxxxxx); - xxxxxx("Mxxxxxx Lxxxxx xxx Mxxxxxxxx Cxxxxxxxx: %x\x", xx_xxx.xxxxxxxx); - xxxxxx("Mxxxxxx Lxxxxx xxx Mxxxxxxxx Cxxxxxxxx: %x\x", xx_xxx.xxxxxxxx); - xxxxxx("Cxxxxxx: %x\x", xx_xxx.xxxxxxx); - xxxxxx("Dxxxxxxxx: %x\x", xx_xxx.xxx); -} -...</programlisting> - <para>Hxxx xxx xxx xxxxxxx xx xxxx xxxx xxxxxx:</para> - <programlisting format="linespecific">Cxxxxxxxx Sxx: xxxd_xxxxxxx_xx -Cxxxxxxxx: xxxd -Mxxxxxx Lxxxxx xxx Mxxxxxxxx Cxxxxxxxx: d -Mxxxxxx Lxxxxx xxx Mxxxxxxxx Cxxxxxxxx: d -Cxxxxxx: UTF-d Uxxxxxx -Dxxxxxxxx: (xxxx)</programlisting> - </refsect1> - </refentry> - <refentry id="ch17-77033"> - <refmeta> - <refentrytitle>xxxxx_xxx_xxxxxx_xxxxxxx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxxx_xxx_xxxxxx_xxxxxxx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">xxxxxxxx xxxx *xxxxx_xxx_xxxxxx_xxxxxxx(xxxx)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch17-28-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-17-ITERM-4502" significance="normal"><primary>xxxxx_xxx_xxxxxx_xxxxxxx( ) xxxxxxxx (C API)</primary></indexterm> -Txxx xxxxxxx xxx xxxxxx xxxxxxx xxxxxxx xx x xxxxxxx xxxxxx. Fxx xxxxxxx, xxx Vxxxxxx d.d.d, xxx xxxxxxxx xxxx xxxxxx ddddd.</para> - <programlisting format="linespecific">... -xxxxxxxx xxxx xxxxxxx; -xxxxxxx = xxxxx_xxx_xxxxxx_xxxxxxx( ); -xxxxxx("Cxxxxx Vxxxxxx: %x \x", xxxxxxx); -...</programlisting> - </refsect1> - </refentry> - <refentry id="ch17-77034"> - <refmeta> - <refentrytitle>xxxxx_xxx_xxxx_xxxx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxxx_xxx_xxxx_xxxx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">xxxx *xxxxx_xxx_xxxx_xxxx(MYSQL *xxxxx)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch17-29-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-17-ITERM-4503" significance="normal"><primary>xxxxx_xxx_xxxx_xxxx( ) xxxxxxxx</primary><secondary>C API</secondary></indexterm> -Txxx xxxxxxx xxx xxxxxxxx xxx xxx xxxxxxxxxx xxxx xxx xxx xxxxxxx xxxxxxxxxx.</para> - <programlisting format="linespecific">... -MYSQL *xxxxx; -xxxxx = xxxxx_xxxx(NULL); -xxxxx_xxxx_xxxxxxx(xxxxx,"xxxxxxxxx","xxxxx","xxxxxxxx", - NULL,d,NULL,d); -xxxxxx("Hxxx Ixxx: %x \x", xxxxx_xxx_xxxx_xxxx(xxxxx)); -xxxxx_xxxxx(xxxxx); -...</programlisting> - <para>Txx xxxxxxx xx xxxx xxxxxxx xxxxxxx xxxx xxxx xxxxxxxxx xxxx xxx xxxxxxxxx:</para> - <programlisting format="linespecific">Hxxx Ixxx: Lxxxxxxxx xxx UNIX xxxxxx</programlisting> - </refsect1> - </refentry> - <refentry id="ch17-77035"> - <refmeta> - <refentrytitle>xxxxx_xxx_xxxxx_xxxx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxxx_xxx_xxxxx_xxxx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">xxxxxxxx xxx xxxxx_xxx_xxxxx_xxxx(MYSQL *xxxxx)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch17-30-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-17-ITERM-4504" significance="normal"><primary>xxxxx_xxx_xxxxx_xxxx( ) xxxxxxxx</primary><secondary>C API</secondary></indexterm> -Txxx xxxxxxx xxx xxxxxxxx xxxxxxx xxx xxx xxxxxxx xxxxxxxxxx.</para> - <programlisting format="linespecific">... -MYSQL *xxxxx; -xxxxx = xxxxx_xxxx(NULL); -xxxxx_xxxx_xxxxxxx(xxxxx,"xxxxxxxxx","xxxx","xxxxxxxx", - NULL,d,NULL,d); -xxxxxx("Pxxxxxxx: %x \x", xxxxx_xxx_xxxxx_xxxx(xxxxx)); -xxxxx_xxxxx(xxxxx); -...</programlisting> - </refsect1> - </refentry> - <refentry id="ch17-77036"> - <refmeta> - <refentrytitle>xxxxx_xxx_xxxxxx_xxxx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxxx_xxx_xxxxxx_xxxx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">xxxx *xxxxx_xxx_xxxxxx_xxxx(MYSQL *xxxxx)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch17-31-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-17-ITERM-4505" significance="normal"><primary>xxxxx_xxx_xxxxxx_xxxx( ) xxxxxxxx</primary><secondary>C API</secondary></indexterm> -Txxx xxxxxxx x xxxxxx xxxxxxxxxx xxx xxxxxxx xx MxSQL xxxxxxx xx xxx xxxxxx xxx xxx xxxxxxx xxxxxxxxxx.</para> - <programlisting format="linespecific">... -MYSQL *xxxxx; -xxxxx = xxxxx_xxxx(NULL); -xxxxx_xxxx_xxxxxxx(xxxxx,"xxxxxxxxx","xxxx","xxxxxxxx", - NULL,d,NULL,d); -xxxxxx("Sxxxxx Vxxxxxx: %x \x", xxxxx_xxx_xxxxxx_xxxx(xxxxx)); -xxxxx_xxxxx(xxxxx); -...</programlisting> - </refsect1> - </refentry> - <refentry id="ch17-77037"> - <refmeta> - <refentrytitle>xxxxx_xxx_xxxxxx_xxxxxxx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxxx_xxx_xxxxxx_xxxxxxx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">xxxxxxxx xxxx xxxxx_xxx_xxxxxx_xxxxxxx(MYSQL *xxxxx)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch17-32-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-17-ITERM-4506" significance="normal"><primary>xxxxx_xxx_xxxxxx_xxxxxxx( ) xxxxxxxx (C API)</primary></indexterm> -Txxx xxxxxxx xxx xxxxxxx xx xxx xxxxxx xxx xxx xxxxxxx xxxxxxxxxx xx x xxxxxxx xxxxxx. Fxx xxxxxxx, xxx Vxxxxxx d.d.d, xxx xxxxxxxx xxxx xxxxxx ddddd.</para> - <programlisting format="linespecific">... -MYSQL *xxxxx; -xxxxx = xxxxx_xxxx(NULL); -xxxxx_xxxx_xxxxxxx(xxxxx,"xxxxxxxxx","xxxx","xxxxxxxx", -NULL,d,NULL,d); -xxxxxx("Sxxxxx Vxxxxxx: %xx \x", - xxxxx_xxx_xxxxxx_xxxxxxx(xxxxx)); -xxxxx_xxxxx(xxxxx); -...</programlisting> - </refsect1> - </refentry> - <refentry id="ch17-77038"> - <refmeta> - <refentrytitle>xxxxx_xxx_xxx_xxxxxx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxxx_xxx_xxx_xxxxxx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">xxxxx xxxx *xxxxx_xxx_xxx_xxxxxx(MYSQL *xxxxx)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch17-33-fm2xml"> - <title/> - <para>Txxx xxxxxxx x xxxxxx xxxx xxx xxxx xx xxx SSL xxxxxx xxxxx xxx xxxx xxx xxx xxxxxxxxxx xxxxx. NULL xx xxxxxxxx xx xxxxx xxx xx xxxxxx xxxx. Txxx xxxxxxxx xxx xxxxx xx xx xxxxxxx d.d.dd xx MxSQL.</para> - <programlisting format="linespecific">... -xxxxx xxxx *xxxxxx_xxxx; -xxxxxx_xxxx = xxxxx_xxx_xxx_xxxxxx( ); -xxxxxx("Nxxx xx Cxxxxx: %x \x", xxxxxx_xxxx); -...</programlisting> - </refsect1> - </refentry> - <refentry id="ch17-77039"> - <refmeta> - <refentrytitle>xxxxx_xxx_xxxxxx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxxx_xxx_xxxxxx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">xxxxxxxx xxxx xxxxx_xxx_xxxxxx(xxxx *<replaceable>xx</replaceable>, xxxxx xxxx *<replaceable>xxxx</replaceable>, xxxxxxxx xxxx xxxxxx)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch17-34-fm2xml"> - <title/> - <para>Txxx xxxxxxxx xxx xx xxxx xx xxxxxxxxx x xxxxxxxxxxx xxxxxx xx x xxxxxx xxxx xxx xx xxxx xx xx SQL xxxxxxxxx. Txx xxxxxxxxxxx xxxxxx xx xx xx xxxxx xx xxx <replaceable>xxxx</replaceable> xxxxxxxx xx xxxxxxxx xx xxx xxxxxxxx. Txx xxxxxxx xxx xxxxx xx xxx <replaceable>xx</replaceable> xxxxxxxx xxxxx, xxxxxxxxxx xxxx x NULL xxxx. Txx <replaceable>xxxxxx</replaceable> xx xxx xxxxxx xx xxxxx xx xxx <replaceable>xxxx</replaceable> xxxxx. Txx <replaceable>xx</replaceable> xxxxxxxx xxxxx xx xx xxx <replaceable>xxxxxx</replaceable> xxxxx d xxxx d xx xxxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch17-77040"> - <refmeta> - <refentrytitle>xxxxx_xxxx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxxx_xxxx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">xxxx *xxxxx_xxxx(MYSQL *xxxxx)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch17-35-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-17-ITERM-4507" significance="normal"><primary>xxxxx_xxxx( ) xxxxxxxx</primary><secondary>C API</secondary></indexterm><indexterm id="mysqlian-CHP-17-ITERM-4508" significance="normal"><primary>UPDATE xxxxxxxxx</primary><secondary>xxxxx_xxxx( ) xxx</secondary></indexterm><indexterm id="mysqlian-CHP-17-ITERM-4509" significance="normal"><primary>ALTER TABLE xxxxxxxxx</primary><secondary>xxxxx_xxxx( ) xxx</secondary></indexterm><indexterm id="mysqlian-CHP-17-ITERM-4510" significance="normal"><primary>LOAD DATA INFILE xxxxxxxxx</primary><secondary>xxxxx_xxxx( ) xxx</secondary></indexterm><indexterm id="mysqlian-CHP-17-ITERM-4511" significance="normal"><primary>INSERT INTO... VALUES... xxxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-17-ITERM-4512" significance="normal"><primary>INSERT INTO...SELECT... xxxxxxxxx</primary></indexterm> -Txxx xxxxxxx x xxxxxx xxxxxxxxxx xxxxxxxxxxx xxxxxxxx xx MxSQL xxxx xxxxxxx SQL xxxxxxxxxx xxx xxxxxxxx. Txxx xxxxxxxx xxxxx xxxx xxxx xxxx xxxxx xx SQL xxxxxxxxxx: <literal moreinfo="none">INSERT INTO...SELECT...</literal>, <literal moreinfo="none">INSERT INTO... VALUES...</literal>, <literal moreinfo="none">LOAD DATA INFILE</literal>, <literal moreinfo="none">ALTER TABLE</literal>, xxx <literal moreinfo="none">UPDATE</literal>. Fxx xxx xxxxx xxxxxxxxxx, xxxx xxxxxxxx xxxxxxxxx xxxxxxx NULL.</para> - <programlisting format="linespecific">... -xxxxx_xxxxx(xxxxx, "UPDATE xxxxxxx - SET xxxxxxxxx_xxxxxxxx = 'ddd' - WHERE xxxx = 'Hxxxxxx'"); -xxxxxx("Qxxxx Ixxx: %x \x", xxxxx_xxxx(xxxxx)); -...</programlisting> - <para>Txx xxxxxxx xx xxx xxxxxxxx xxxxxxx xxxxxxx xxxx xxxx xxxx xxx xxxxxxxxx:</para> - <programlisting format="linespecific">Qxxxx Ixxx: Rxxx xxxxxxx: d Cxxxxxx: d Wxxxxxxx: d</programlisting> - </refsect1> - </refentry> - <refentry id="ch17-77041"> - <refmeta> - <refentrytitle>xxxxx_xxxx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxxx_xxxx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">MYSQL *xxxxx_xxxx(MYSQL *xxxxx)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch17-36-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-17-ITERM-4513" significance="normal"><primary>xxxxx_xxxx( ) xxxxxxxx (C API)</primary></indexterm> -Txxx xxxxxxxx xxxxxxxxxx xxxxxxxxx, xxx xxxx xxxxxxxxxxx, x <literal moreinfo="none">MYSQL</literal> xxxxxx xxxxxxxx xxx xxxxxxxxxx xx x xxxxxxxx xxxxxx xxx xxxxxxxxxxxx xxxxxxxxxx xxxx xx xxx xxxxx xxxxxxxxxx xxxxxxxxx xx xxxx xxxxxxx. Ix xxx xxxxxxxx’x xxxxxxxxx xx NULL, xxx xxxxxxx xxxxxxxxx x xxx xxxxxx xxxx xxx xxxx; xxxxxxxxx, xxx xxxx’x xxxxxxx-xx xxxxx <literal moreinfo="none">MYSQL</literal> xxxxxx xx xxxxxxxxxxx.</para> - <para><indexterm id="mysqlian-CHP-17-ITERM-4514" significance="normal"><primary>xxxxx_xxxxx( ) xxxxxxxx</primary><secondary>C API</secondary></indexterm> -Txx xxxxxx xxxxx xx x xxxxxxx xx xxx xxxxxx xxxxxxx xxxxxxxx, xxx x NULL xxxxxxxxx x xxxxxxx xx xxxxxxxxxx xx xxxxxxxxxxxxxx. Cxxxxxx <literal moreinfo="none">xxxxx_xxxxx( )</literal> xxxx xxxx xxxxxxx xxx xxxx xxxxxxxx xxx xxxxxxxxxx-xxxxxxx xxxxxxxxx, xxx xxxx xxxxx xxx xxxxxx xxxxxx xx xxx xxxxxxx xxx xxxxxxxxx xx xx xxx xxxxx xxxxx.</para> - <para>Ix’x xxxxxxxxx xxxxx xx xxxxx xxx xxxxxxx xx xxxxxxxx xxxx xxxxxx xxxxxx xxxx xx xx xx xxxxxxxx. Ix xxxxxx xxxx-xx-xxxxx xxxxxxxxxxxxx xxxx xxx xxxxx xx xxxxxxx xxxxxxxx xxxxxxx xxx xxx xx xxxxxx xxxxx xxxxxxxx xxx <emphasis>xxxxxxxxxxx</emphasis> xx xxxx xxxx xxxx xxxxxxxx xxx <emphasis>xxxxxxx</emphasis>.</para> - <para>Txxxxx xxxx xxxxxxxx xxxxxxxx x xxxxxx xxx x xxxxxxxx xxxxxxxxxx, xx xxxxxxxxxx xx xxxxxxxxx.</para> - <programlisting format="linespecific">... -MYSQL *xxxxx; -xx(xxxxx_xxxx(xxxxx) == NULL) - { - xxxxxx("Cxxxx xxx xxxxxxxxxx MxSQL xxxxxx. \x"); - xxxxxx d; - } -...</programlisting> - </refsect1> - </refentry> - <refentry id="ch17-77042"> - <refmeta> - <refentrytitle>xxxxx_xxxxxx_xx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxxx_xxxxxx_xx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">xx_xxxxxxxxx xxxxx_xxxxxx_xx(MYSQL *xxxxx)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch17-37-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-17-ITERM-4515" significance="normal"><primary>xxxxx_xxxxxx_xx( ) xxxxxxxx</primary><secondary>C API</secondary></indexterm><indexterm id="mysqlian-CHP-17-ITERM-4516" significance="normal"><primary>INSERT xxxxxxxxx</primary><secondary>xxxxx_xxxxxx_xx( ) xxx</secondary></indexterm><indexterm id="mysqlian-CHP-17-ITERM-4517" significance="normal"><primary>AUTO_INCREMENT xxxx</primary><secondary>xxxxx_xxxxxx_xx( ) xxx</secondary></indexterm> -Txxx xxxxxxx xxx xxxxxxxxxxxxxx xxxxxx xxxxxx xx xxx xxxxxxx xxx xx xxx xxxx xxxxxx xxxxxxxx xxxxx <literal moreinfo="none">INSERT</literal> xx MxSQL xxx xxx xxxxxxx xxxxxxxxxx. Txxx xxxxx xxxxxxxx xxx xxxxxx xxxxxxxx <literal moreinfo="none">AUTO_INCREMENT</literal> xxx xxx xxxxx xxx xxx xxxxxxxx xxx. Oxxxxxxxx, x xxxxx xx d xx xxxxxxxx.</para> - <programlisting format="linespecific">... -xxxxx xxxx *xxx_xxxxx = "INSERT INTO xxxxxxx - (xxx_xxxx, xxxxxx_xx, xxxxxxxxxxx) - VALUES(NOW( ), 'dddd', 'Nxx Pxxxxxx')"; -xxxxx_xxxxx(xxxxx, xxx_xxxxx); -xx_xxxxxxxxx xx_xx = xxxxx_xxxxxx_xx(xxxxx); -xxxxxx("Wxxx Rxxxxxx ID: %xx \x", xx_xx); -...</programlisting> - </refsect1> - </refentry> - <refentry id="ch17-77043"> - <refmeta> - <refentrytitle>xxxxx_xxxx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxxx_xxxx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">xxx xxxxx_xxxx(MYSQL *xxxxx, xxxxxxxx xxxx <replaceable>xxxxxxxxxx</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch17-38-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-17-ITERM-4518" significance="normal"><primary>xxxxx_xxxx( ) xxxxxxxx (C API)</primary></indexterm><indexterm id="mysqlian-CHP-17-ITERM-4519" significance="normal"><primary>xxxxx_xxxxxx_xx( ) xxxxxxxx</primary><secondary>C API</secondary></indexterm> -Uxx xxxx xx xxxxxxxxx x xxxxxx xx xxx xxxxxx. Txx xxxxxx xxxxxxxxxx xx xxxxxx xx xxx xxxxxx xxxxxxxx xx xxx xxxxxxxx. Ix xxx’xx xxxxxxxxxx xx xxxx xxx xxxxxxx xxxxxxxxxx, xxx xxx xxx xxx <literal moreinfo="none">xxxxx_xxxxxx_xx( )</literal> xxxxxxxx xxxx xxx xxxxxxx xxxxxx.</para> - <programlisting format="linespecific">... -xx(!xxxxx_xxxx(xxxxx, xxxxx_xxxxxx_xx(xxxxx))) - { xxxxxx("Txxxxxxxxx Cxxxxxx Txxxxx. \x"); } -...</programlisting> - <para><indexterm id="mysqlian-CHP-17-ITERM-4520" significance="normal"><primary>xxxxx_xxxx_xxxxxxxxx( ) xxxxxxxx</primary><secondary>C API</secondary></indexterm> -Tx xxxx x xxxxxx xxxxx xxxx xxx xxxxxxx xxx, xxx xxx xxx xxx <literal moreinfo="none">xxxxx_xxxx_xxxxxxxxx( )</literal> xxxxxxxx xx xxxx xxx xxxxxxx xx xxxxxxxxx xxxxx xxx xx xxxxxxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch17-77044"> - <refmeta> - <refentrytitle>xxxxx_xxxxxxx_xxx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxxx_xxxxxxx_xxx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">xxxx xxxxx_xxxxxxx_xxx(xxxx)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch17-39-fm2xml"> - <title/> - <para>Uxx xxxx xxxxxxxx xx xxxxx xxx MxSQL xxxxxxx xxxxx xxxxxxxxxxxxx xxxx xxx xxxxxx. Ix xxx xxxx xxxxxx xxx xxx xx xxxx xxxx xxxxxx xxx xxxxxx xxxxxx xxxxxxx xx xxx xxxxxxxx xxxxxx xxxxxxx. Ix’x xxxx xx xxxxxxxxxx xxxx <literal moreinfo="none">xxxxx_xxxxxxx_xxxx( )</literal>.</para> - </refsect1> - </refentry> - <refentry id="ch17-77045"> - <refmeta> - <refentrytitle>xxxxx_xxxxxxx_xxxx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxxx_xxxxxxx_xxxx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">xxx xxxxx_xxxxxxx_xxxx(xxx xxxx, xxxx **xxxx, xxxx **xxxxxx)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch17-40-fm2xml"> - <title/> - <para>Uxx xxxx xxxxxxxx xx xxxxxxxxxx xxx MxSQL xxxxxxx xxx xxx xxxxxxx xxxxxxxxx xxx xxxxxxx xxxxxx xxxxxx xxx xxxxx MxSQL xxxxxxxx xxxxx. Ix xxx xxxx xxxx xxxx xxx xxxxxx xxxxxx xxxxxxx xx xxx xxxxxxxx xxxxxx xxxxxxx. Txxx xxxxxxxx xx xxxx xxxxxx x xxxxx-xxxxxxxx xxxxxxxxxxx. Oxxxxxxxx, xx’x xxx xxxxxxxxx xxx <literal moreinfo="none">xxxxx_xxxx( )</literal> xx xxxxxxxxxx. Wxxx xxxxxxxx, xxx <literal moreinfo="none">xxxxx_xxxxxxx_xxx( )</literal> xx xxxxx xxx xxxxxxx. Txxx xxxxxxxx xxxxxxx d xx xxxxxxxxxx, xxx-xxxx xx xxx.</para> - <programlisting format="linespecific">... -xxxxxx xxxx *xxxxxx_xxxx[] = { - "--xxxxxxx='/xxxx'", - "--xxx_xxxxxx_xxxx=ddM" -}; -xxxxxx xxxx *xxxxxx_xxxxxx[] = { - "xxxxxxxx", - "xxxxxx", - (xxxx *)NULL -}; -xxx xxxx(xxx xxxx, xxxx *xxxx[ ]) { - xx(xxxxx_xxxxxxx_xxxx(xxxxxx(xxxxxx_xxxx) / xxxxxx(xxxx *), - xxxxxx_xxxx, xxxxxx_xxxxxx)) { - xxxxxxx(xxxxxx, "Cxxxxx xxxxxxxxxx MxSQL xxxxxxx \x"); - xxxxxx d; - } -... -xxxxx_xxxxxxx_xxx(); -... -}</programlisting> - </refsect1> - </refentry> - <refentry id="ch17-77046"> - <refmeta> - <refentrytitle>xxxxx_xxxx_xxx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxxx_xxxx_xxx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">MYSQL_RES *xxxxx_xxxx_xxx(MYSQL *xxxxx, xxxxx xxxx *xxxx)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch17-41-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-17-ITERM-4521" significance="normal"><primary>xxxxx_xxxx_xxx( ) xxxxxxxx</primary><secondary>C API</secondary></indexterm> -Txxx xxxxxxx x xxxxxxx xxx xxxxxxxxxx x xxxx xx xxxxxxxxx xxxxx xxx xxx xxxxxxx xxxxxxxxxx. Ax xxxxxxxxxx xxx xx xxxxx xx xxxxxx xxxxxxxxx xxxxx xxxxx xxxxx x xxxxxxx xxxxxxx. Txx <literal moreinfo="none">%</literal> xx <literal moreinfo="none">_</literal> xxxxxxxxxx xxx xx xxxx xx xxxxxxxxx. Ix NULL xx xxxxx xxx xxx xxxxxx xxxxxxxx, xxx xxxxx xx xxx xxxxxxxxx xx xxx xxxxxx xxxx xx xxxxxxxx xx xxx xxxxxxx xxx.</para> - <programlisting format="linespecific">... -MYSQL_RES *xxxxxx; -MYSQL_ROW xxx; -... -xxxxxx = xxxxx_xxxx_xxx(xxxxx, NULL); -xxxxx((xxx = xxxxx_xxxxx_xxx(xxxxxx)) != NULL) - { xxxxxx("%x \x", xxx[d]); } -xxxxx_xxxx_xxxxxx(xxxxxx); -...</programlisting> - <para><indexterm id="mysqlian-CHP-17-ITERM-4522" significance="normal"><primary>xxxxx_xxxxx_xxx( ) xxxxxxxx</primary><secondary>C API</secondary></indexterm> -Txxx xxxxxxx xxxxxxxx x xxxx xx xxxxxxxxx -xxxx xxx xxxxxx xxxxx xxx <literal moreinfo="none">xxxxx_xxxx_xxx( )</literal> -xxxxxxxx xxx xxxxxx xxx xxxxxxx. Uxxxx xxx <literal moreinfo="none">xxxxx_xxxxx_xxx( -)</literal> xxxxxxxx, xxxx xxx xx xxx xxxxxxx xxx xx xxxxxx -xxxxxxxxxxx xxx xxxxxxxx. Tx xxxxxxx x xxxx xx xxxxxxxxx xxxx -“xxxx” xx xxx xxxx, NULL xxxxx xx -xxxxxxxx xxxx "<literal moreinfo="none">%xxxx%</literal>“. Ax xxxx xxx xxxxxxx xxxx, xxxxxxx xxx xxxxxxxxx xxxx <literal moreinfo="none">xxxxx_xxxx_xxxxxx( )</literal> xxxx xxxxxxxx.<indexterm id="mysqlian-CHP-17-ITERM-4523" significance="normal"><primary>xxxxx_xxxx_xxxxxx( ) xxxxxxxx</primary><secondary>C API</secondary></indexterm></para> - </refsect1> - </refentry> - <refentry id="ch17-77047"> - <refmeta> - <refentrytitle>xxxxx_xxxx_xxxxxx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxxx_xxxx_xxxxxx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">MYSQL_RES *xxxxx_xxxx_xxxxxx(MYSQL *xxxxx, xxxxx xxxx *xxxxx, - xxxxx xxxx *xxxx)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch17-42-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-17-ITERM-4524" significance="normal"><primary>xxxxx_xxxx_xxxxxx( ) xxxxxxxx</primary><secondary>C API</secondary></indexterm> -Txxx xxxxxxx x xxxxxxx xxx xxxxxxxxxx x xxxx xx xxxxxx xxxxx xxx xxx xxxxx xxxxx xx xxx xxxxxx xxxxxxxx xx xxx xxxxxxxx. Ax xxxxxxxxxx xxx xx xxxxx xx xxx xxxxx xxxxxxxx xx xxxxxx xxxxxx xxxxx xxxxx xxxxx x xxxxxxx xxxxxxx. Txx <literal moreinfo="none">%</literal> xx xxx xx xxxx xx xxxxxxxxx. Ix NULL xx xxxxx xxx xxx xxxxx xxxxxxxx, xxx xxxxxx xxx xxx xxxxx xxx xxxxxxxx. Txx xxxxxxx xxx xxxx xx xxxxx xxxx xxxxxxxx.</para> - <programlisting format="linespecific">... -xxxxxx = xxxxx_xxxx_xxxxxx(xxxxx, "xxxxxx", "x%"); -xxx_xxxx = xxxxx_xxx_xxxx(xxxxxx); -xxxxxx("Rxxx: %x \x", xxx_xxxx); -xxxxx((xxx = xxxxx_xxxxx_xxx(xxxxxx)) != NULL) - { - xxx(x = d; x < xxx_xxxx; x++) - { xxxxxx("%x \x", xxx[x]); } - } -xxxxx_xxxx_xxxxxx(xxxxxx); -...</programlisting> - </refsect1> - </refentry> - <refentry id="ch17-77048"> - <refmeta> - <refentrytitle>xxxxx_xxxx_xxxxxxxxx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxxx_xxxx_xxxxxxxxx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">MYSQL_RES *xxxxx_xxxx_xxxxxxxxx(MYSQL *xxxxx)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch17-43-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-17-ITERM-4525" significance="normal"><primary>xxxxx_xxxx_xxxxxxxxx( ) xxxxxxxx</primary><secondary>C API</secondary></indexterm> -Txxx xxxxxxx x xxxxxxx xxx xxxxxxxxxx x xxxx xx MxSQL xxxxxx xxxxxxxxx xx xxxxxx xxxxxxx xxxxx xxx xxx xxxxxx xxxxx xx xxx xxxxxxxx xx xxx xxxxxxxx.</para> - <programlisting format="linespecific">... -xxxxxx = xxxxx_xxxx_xxxxxxxxx(xxxxx); -xxxxx((xxx = xxxxx_xxxxx_xxx(xxxxxx)) != NULL) - { - xxxxxx("Txxxxx ID: %x \x", xxx[d]); - xxxxxx("Uxxx: %x, Hxxx: %x \x", xxx[d], xxx[d]); - xxxxxx("Dxxxxxxx: %x, Cxxxxxx: %x \x", xxx[d], xxx[d]); - xxxxxx("Txxx: %x, Sxxxx: %x, Ixxx: %x \x\x", - xxx[d],xxx[d],xxx[d]); - } -xxxxx_xxxx_xxxxxx(xxxxxx); -...</programlisting> - <para><indexterm id="mysqlian-CHP-17-ITERM-4526" significance="normal"><primary>xxxxx_xxxx_xxxxxx( ) xxxxxxxx</primary><secondary>C API</secondary></indexterm><indexterm id="mysqlian-CHP-17-ITERM-4527" significance="normal"><primary>xxxxx_xxxxx_xxx( ) xxxxxxxx</primary><secondary>C API</secondary></indexterm><indexterm id="mysqlian-CHP-17-ITERM-4528" significance="normal"><primary>SHOW PROCESSES xxxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-17-ITERM-4529" significance="normal"><primary>xxxxxxxxx, xxxxxxxxxx</primary></indexterm> -Uxxxx xxx <literal moreinfo="none">xxxxx_xxxxx_xxx()</literal> xxxxxxxx, xxxx xxx xx xxx xxxxxxx xxx xx xxxx xxx xxxx xxxxx xxxxxxxxx xxxx xxx xxxxxxx xxxxx. Txx xxxxxxx xxx xxx xxxx xx xxx <literal moreinfo="none">SHOW</literal> <literal moreinfo="none">PROCESSES</literal> xxxxx xx MxSQL. Ix’x xxxxxxxxx xx xxx xxx <literal moreinfo="none">xxxxx_xxxx_xxxxxx( )</literal> xxxxxxxx xxxx xxxxxxxx xxxx x xxxxxxx xxx, xx xxxxx xxxx.</para> - </refsect1> - </refentry> - <refentry id="ch17-77049"> - <refmeta> - <refentrytitle>xxxxx_xxxx_xxxxxx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxxx_xxxx_xxxxxx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">MYSQL_RES *xxxxx_xxxx_xxxxxx(MYSQL *xxxxx, - xxxxx xxxx *xxxxxxxxxx)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch17-44-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-17-ITERM-4530" significance="normal"><primary>xxxxx_xxxx_xxxxxx( ) xxxxxxxx</primary><secondary>C API</secondary></indexterm> -Txxx xxxxxxx x xxxxxxx xxx xxxxxxxxxx x xxxx xx xxxxxx xx xxx xxxxxxxxx xxxxxxxx xxxxxxxx. Ax xxxxxxxxxx xxx xx xxxxx xx xxx xxxxxx xxxxxxxx xx xxx xxxxxxxx xx xxxxxx xxxxxx xxxxx xxxxx xxxxx x xxxxxxx xxxxxxx. Txx <literal moreinfo="none">%</literal> xx <literal moreinfo="none">_</literal> xxx xx xxxx xx xxxxxxxxx. Ix NULL xx xxxxx xxx xxx xxxxxx xxxxxxxx, xxx xxxxxx xx xxx xxxxxxxx xxxx xx xxxxxxxx.</para> - <programlisting format="linespecific">... -MYSQL_RES *xxxxxx; -MYSQL_ROW xxx; -... -xxxxxx = xxxxx_xxxx_xxxxxx(xxxxx, "x%"); -xxxxx((xxx = xxxxx_xxxxx_xxx(xxxxxx)) != NULL) - { xxxxxx("%x \x", xxx[d]); } -xxxxx_xxxx_xxxxxx(xxxxxx); -...</programlisting> - <para><indexterm id="mysqlian-CHP-17-ITERM-4531" significance="normal"><primary>xxxxx_xxxxx_xxx( ) xxxxxxxx</primary><secondary>C API</secondary></indexterm> -Txxx xxxxxxx xxxxxxxx x xxxx xx xxxxxx xxxxxxxxx xxxx xxx xxxxxx “x” xxxxx xxx <literal moreinfo="none">xxxxx_xxxx_xxxxxx( )</literal> xxxxxxxx xxx xxxxxx xxx xxxxxxx xx xxx <literal moreinfo="none">xxxxxx</literal> xxxxxxxx. Uxxxx xxx <literal moreinfo="none">xxxxx_xxxxx_xxx( )</literal> xxxxxxxx, xxxx xxx xx xxx xxxxxxx xxx xx xxxxxx xxxxxxxxxxx xx xxx <literal moreinfo="none">xxx</literal> xxxxxxxx xxx xxxxxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch17-77050"> - <refmeta> - <refentrytitle>xxxxx_xxxx_xxxxxxx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxxx_xxxx_xxxxxxx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">xx_xxxx xxxxx_xxxx_xxxxxx(MYSQL *xxxxx)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch17-45-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-17-ITERM-4532" significance="normal"><primary>xxxxx_xxxx_xxxxxxx( ) xxxxxxxx (C API)</primary></indexterm><indexterm id="mysqlian-CHP-17-ITERM-4533" significance="normal"><primary>xxxxx_xxxx_xxxxxx( ) xxxxxxxx (C API)</primary></indexterm> -Uxx xxxx xx xxxxxxxxx xxxxxxx xxxx xxxxxxx xxxxxx xx x xxxxxxx xxx xxxx xxxxx xxx <literal moreinfo="none">xxxxx_xxxx_xxxxxx()</literal> xxxxxxxx xx xxxxxxxx xxxx. Ix xxxxxxx d xx xxxxx xxx xxxx xxxxxxx, d xx xxx.</para> - </refsect1> - </refentry> - <refentry id="ch17-77051"> - <refmeta> - <refentrytitle>xxxxx_xxxx_xxxxxx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxxx_xxxx_xxxxxx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">xxx xxxxx_xxxx_xxxxxx(MYSQL *xxxxx)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch17-46-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-17-ITERM-4534" significance="normal"><primary>xxxxx_xxxx_xxxxxx( ) xxxxxxxx (C API)</primary></indexterm><indexterm id="mysqlian-CHP-17-ITERM-4535" significance="normal"><primary>xxxxx_xxxx_xxxxxxx( ) xxxxxxxx (C API)</primary></indexterm> -Uxx xxxx xx xxxx xxx xxxx xxx xx xxxx xxxx x xxxxxxx xxx. Ix xxxxxxx d xx xxxxxxxxxx xxx xx xxxxx xxx xxxx xxxxxxx xx xxxxxxxx xxx -d xx xx xxx xxxxxxxxxx xx xxxxxxxxxx xxxx, xxx xxxxx xxx xx xxxxxxx xxxx xx xxxxxxxx. Ix xxxxxxx xx xxxxx (xx x xxxxx xxxxxxx xxxx d) xx xx’x xxxxxxxxxxxx xxxxxxx xxx xxxxxxx xxx xxx xxx xxxxxx xxxx xxx xxxx. Yxx xxx xxx xxx <literal moreinfo="none">xxxxx_xxxx_xxxxxxx( )</literal> xxxxxxxx xx xxxxx xxx xxxx xxxxxxx xxxxxx xxxxxxxx xxxx xxxxxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch17-77052"> - <refmeta> - <refentrytitle>xxxxx_xxx_xxxxxx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxxx_xxx_xxxxxx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">xxxxxxxx xxx xxxxx_xxx_xxxxxx(MYSQL_RES *xxxxxx)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch17-47-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-17-ITERM-4536" significance="normal"><primary>xxxxx_xxx_xxxxxx( ) xxxxxxxx</primary><secondary>C API</secondary></indexterm><indexterm id="mysqlian-CHP-17-ITERM-4537" significance="normal"><primary>xxxxx_xxxxx_xxxxx( ) xxxxxxxx (C API)</primary></indexterm> -Txxx xxxxxxx xxx xxxxxx xx xxxxxx xx xxxx xxx xx x xxxxxxx xxx. Txxx xxxxxxxx xx xxxxxxx xx <literal moreinfo="none">xxxxx_xxxxx_xxxxx( )</literal> xxxxxx xxxx xxxx xxxxxxxx xxxxxxxx xx xxx MYSQL xxxxxx xxx xxx xxx xxxxxxx xxx.</para> - <programlisting format="linespecific">... -xxxxxxxx xxx xxx_xxxxxx = xxxxx_xxx_xxxxxx(xxxxxx); -...</programlisting> - <para><indexterm id="mysqlian-CHP-17-ITERM-4538" significance="normal"><primary>xxxxx_xxxxx_xxxxxxx( ) xxxxxxxx</primary><secondary>C API</secondary></indexterm> -Sxx <literal moreinfo="none">xxxxx_xxxxx_xxxxxxx( )</literal> xxx x xxxx xxxxxxxxx xxxxxxx xxxx xxxx xxxx xxxxxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch17-77053"> - <refmeta> - <refentrytitle>xxxxx_xxx_xxxx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxxx_xxx_xxxx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">xxx xxxxx_xxx_xxxx(MYSQL_RES *xxxxxx)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch17-48-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-17-ITERM-4539" significance="normal"><primary>xxxxx_xxx_xxxx( ) xxxxxxxx</primary><secondary>C API</secondary></indexterm><indexterm id="mysqlian-CHP-17-ITERM-4540" significance="normal"><primary>xxxxx_xxxxx_xxxxxx( ) xxxxxxxx (C API)</primary></indexterm> -Txxx xxxxxxx xxx xxxxxx xx xxxx xx xxx xxxxxxx xxx xxxx xxxxxx xxxxx xxx <literal moreinfo="none">xxxxx_xxxxx_xxxxxx()</literal> xxxxxxxx. Wxxx xxxxxx xxxxx <literal moreinfo="none">xxxxx_xxx_xxxxxx( )</literal>, xx xxxxxxx xxx xxxxxx xx xxxx xxxxxxx xxxxxxx.</para> - <programlisting format="linespecific">... -xx_xxxxxxxxx xxx_xxxx = xxxxx_xxx_xxxx(xxxxxx); -...</programlisting> - <para><indexterm id="mysqlian-CHP-17-ITERM-4541" significance="normal"><primary>xxxxx_xxxx_xxxxxx( ) xxxxxxxx</primary><secondary>C API</secondary></indexterm> -Sxx <literal moreinfo="none">xxxxx_xxxx_xxxxxx( )</literal> xxx x xxxx xxxxxxxxx xxxxxxx xxxx xxxx xxxx xxxxxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch17-77054"> - <refmeta> - <refentrytitle>xxxxx_xxxxxxx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxxx_xxxxxxx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">xxx xxxxx_xxxxxxx(MYSQL *xxxxx, xxxx xxxxx_xxxxxx <replaceable>xxxxxx</replaceable>, - xxxxx xxxx *<replaceable>xxxxx</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch17-49-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-17-ITERM-4542" significance="normal"><primary>xxxxx_xxxxxxx( ) xxxxxxxx (C API)</primary></indexterm><indexterm id="mysqlian-CHP-17-ITERM-4543" significance="normal"><primary>xxxxx_xxxxxxx( ) xxxxxxxx</primary><secondary>C API</secondary></indexterm><indexterm id="mysqlian-CHP-17-ITERM-4544" significance="normal"><primary>xxxxx_xxxx_xxxxxxx( ) xxxxxxxx (C API)</primary></indexterm> -Uxx xxxx xx xxx xxxxxxxxxx xxxxxxx xxxxxx x xxxxxxxxxx xxx xxxx xxxxxxxxxxx xxxx x xxxxxxxx xxxx xx <literal moreinfo="none">xxxxx_xxxx_xxxxxxx( )</literal> xx <literal moreinfo="none">xxxxx_xxxxxxx( )</literal>. Txxx xxxxxxxx xxx xx xxxx xxxxxxxx xxxxx xx xxx xxxxxxxxxx xxxxxxx xxxxxx xxxxxxxxxx. Fxx xxx xxxxxx xxxxxxxx xx xxx xxxxxxxx, xxxxxxxx xxxxxxx xxx xxx xxxxxxxxxx xxx xx xxxxx. A xxxxx xxxxxxxxxx xxxx xxx xxxxxx xxxxxx xxx xx xxxxx xxx xxx xxxxx xxxxxxxx.</para> - <programlisting format="linespecific">... -xxxxx = xxxxx_xxxx(NULL); -xxxxx_xxxxxxx(xxxxx, MYSQL_OPT_COMPRESS, NULL); -xxxxx_xxxx_xxxxxxx(xxxxx,xxxx,xxxx,xxxxxxxx,NULL,d,NULL,d); -...</programlisting> - <para>Txx xxxxxxx xxxxxxxxx xxx xxx xxxxxx xxxxxxxx xx xxx xxxxxxxx xxxxxx, xxxxx xxxx xxx xxxx xx xxxxxxxx xx xxxxx xxx xxx xxxxx xxxxxxxx xx xxxxxxxxxxx xxx x xxxxx xxxxxxxxxxx xx xxxx:</para> - <variablelist> - <varlistentry> - <term><literal moreinfo="none">MYSQL_OPT_CONNECT_TIMEOUT</literal> (xxxxxxxx xxx *)</term> - <listitem> - <para>Sxxx xxx xxxxxx xx xxxxxxx xxx xxxxxxxxxx xxxxxxx.<indexterm id="mysqlian-CHP-17-ITERM-4545" significance="normal"><primary>MYSQL_OPT_CONNECT_TIMEOUT xxxxxx (xxxxx_xxxxxxx)</primary></indexterm></para> - </listitem> - </varlistentry> - <varlistentry> - <term><literal moreinfo="none">MYSQL_OPT_READ_TIMEOUT</literal> (xxxxxxxx xxx *)</term> - <listitem> - <para>Sxxx xxx xxxxxxx xxx xxxxx xxxx x Wxxxxxx MxSQL xxxxxx.<indexterm id="mysqlian-CHP-17-ITERM-4546" significance="normal"><primary>MYSQL_OPT_READ_TIMEOUT xxxxxx (xxxxx_xxxxxxx)</primary></indexterm></para> - </listitem> - </varlistentry> - <varlistentry> - <term><literal moreinfo="none">MYSQL_OPT_WRITE_TIMEOUT</literal> (xxxxxxxx xxx *)</term> - <listitem> - <para>Sxxx xxx xxxxxxx xxx xxxxxx xx x Wxxxxxx MxSQL xxxxxx.<indexterm id="mysqlian-CHP-17-ITERM-4547" significance="normal"><primary>MYSQL_OPT_WRITE_TIMEOUT xxxxxx (xxxxx_xxxxxxx)</primary></indexterm></para> - </listitem> - </varlistentry> - <varlistentry> - <term> - <literal moreinfo="none">MYSQL_OPT_COMPRESS (NULL)</literal> - </term> - <listitem> - <para>Cxxxxxxxxx xxxxxxxxxxxxxx xxxxxxx xxx xxxxxx xxx xxxxxx xx xxxxxxxxx xx xxxx.<indexterm id="mysqlian-CHP-17-ITERM-4548" significance="normal"><primary>MYSQL_OPT_COMPRESS xxxxxx (xxxxx_xxxxxxx)</primary></indexterm></para> - </listitem> - </varlistentry> - <varlistentry> - <term><literal moreinfo="none">MYSQL_OPT_LOCAL_INFILE</literal> (xxxxxxx xx xxxxxxxx xxxxxxx)</term> - <listitem> - <para> -Rxxx xx x xxxx xxxxxxx xx xx xxx xxxxxxxx. Ix xxx xxxxxxx xx NULL, xxx <literal moreinfo="none">LOAD LOCAL INFILE</literal> xxxxxxxxx xx xxx xxxx xxxxxxxxxx.<indexterm id="mysqlian-CHP-17-ITERM-4549" significance="normal"><primary>MYSQL_OPT_LOCAL_INFILE xxxxxx (xxxxx_xxxxxxx)</primary></indexterm><indexterm id="mysqlian-CHP-17-ITERM-4550" significance="normal"><primary>LOAD LOCAL INFILE xxxxxxxxx</primary></indexterm> -</para> - </listitem> - </varlistentry> - <varlistentry> - <term> - <literal moreinfo="none">MYSQL_OPT_NAMED_PIPE (NULL)</literal> - </term> - <listitem> - <para>Ixxxxxxxx xxx xxxxxx xx xxx xxxxx xxxxx xxx xxxxxxxxxx xx x Wxxxxxx NT MxSQL xxxxxx.<indexterm id="mysqlian-CHP-17-ITERM-4551" significance="normal"><primary>MYSQL_OPT_NAMED_PIPE xxxxxx (xxxxx_xxxxxxx)</primary></indexterm></para> - </listitem> - </varlistentry> - <varlistentry> - <term><literal moreinfo="none">MYSQL_INIT_COMMAND</literal> (xxxx *)</term> - <listitem> - <para>Ixxxxxxxx xxx xxxxxx xx xxxxxxxxxx xx xxxxxxx xx xxxxxxx SQL xxxxxxxxx xxxxx xx xxx xxxxx xxxxxxxx xx xxx xxxxxxxx.<indexterm id="mysqlian-CHP-17-ITERM-4552" significance="normal"><primary>MYSQL_INIT_COMMAND xxxxxx (xxxxx_xxxxxxx)</primary></indexterm></para> - </listitem> - </varlistentry> - <varlistentry> - <term><literal moreinfo="none">MYSQL_READ_DEFAULT_FILE</literal> (xxxx *)</term> - <listitem> - <para>Ixxxxxxxx xxx xxxxxx xx xxxx x xxxxxxxxxxxxx xxxx xxxx xxxxx xx xxx xxxxx xxxxxxxx xx xxx xxxxxxxx xxxxxxx xx xxx xxxxxxx <emphasis>xx.xxx</emphasis> xxxxxxxxxxxxx xxxx xxx xxx xxxxxx.<indexterm id="mysqlian-CHP-17-ITERM-4553" significance="normal"><primary>MYSQL_READ_DEFAULT_FILE xxxxxx (xxxxx_xxxxxxx)</primary></indexterm></para> - </listitem> - </varlistentry> - <varlistentry> - <term><literal moreinfo="none">MYSQL_READ_DEFAULT_GROUP</literal> (xxxx *)</term> - <listitem> - <para>Ixxxxxxxx xxx xxxxxx xx xxxx x xxxxxx xxxxxxx xx xxxxx (x.x., <literal moreinfo="none">[xxxxxxx_xxxxxx]</literal>) xxxx xxxxxx xxx xxxxxxx <emphasis>xx.xxx</emphasis> xxxxxxxxxxxxx xxxx xx xxx xxx xxxxxxxxx xx xxx <literal moreinfo="none">MYSQL_READ_DEFAULT_FILE</literal> xxxxxx xx xxxx xxxxxxxx.<indexterm id="mysqlian-CHP-17-ITERM-4554" significance="normal"><primary>MYSQL_READ_DEFAULT_GROUP xxxxxx (xxxxx_xxxxxxx)</primary></indexterm></para> - </listitem> - </varlistentry> - <varlistentry> - <term><literal moreinfo="none">MYSQL_OPT_PROTOCOL</literal> (xxxxxxxx xxx *)</term> - <listitem> - <para>Sxxxxxxxx xxx xxxxxxx xxxxxxxx xxx xxxxxxxxxxxxx xxxx xxx xxxxxx.<indexterm id="mysqlian-CHP-17-ITERM-4555" significance="normal"><primary>MYSQL_OPT_PROTOCOL xxxxxx (xxxxx_xxxxxxx)</primary></indexterm></para> - </listitem> - </varlistentry> - <varlistentry> - <term><literal moreinfo="none">MYSQL_SHARED_MEMORY_BASE_NAME</literal> (xxxx *)</term> - <listitem> - <para>Nxxxx xxx xxxxxx xxxxxx xxxxxx xxx xxxxxxxxxx xx xxx xxxxxx.<indexterm id="mysqlian-CHP-17-ITERM-4556" significance="normal"><primary>MYSQL_SHARED_MEMORY_BASE_NAME xxxxxx (xxxxx_xxxxxxx)</primary></indexterm></para> - </listitem> - </varlistentry> - </variablelist> - </refsect1> - </refentry> - <refentry id="ch17-77055"> - <refmeta> - <refentrytitle>xxxxx_xxxx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxxx_xxxx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">xxx xxxxx_xxxx(MYSQL *xxxxx)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch17-50-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-17-ITERM-4557" significance="normal"><primary>xxxxx_xxxx( ) xxxxxxxx</primary><secondary>C API</secondary></indexterm> -Uxx xxxx xx xxxxxxxxx xxxxxxx xxx xxxxxxx <literal moreinfo="none">MYSQL</literal> xxxxxxxxxx xx xxxxx xxxx. Ix xx’x xxx xxxx, xxx xxxxxxxx xxxxxxxx xx xxxxxxxxxxx xxx xxxxxxxxxx. Ix xxx xxxxxxxxxx xx xxxx xx xx xxxxxxxxxxxxx, d xx xxxxxxxx. Oxxxxxxxx, x xxx-xxxx xxxxx xx xxxxxxxx.</para> - <programlisting format="linespecific">... -MYSQL *xxxxx; -xxx xxxx( ) -{ -... - xxxx_xxxxxxxxxx( ); - xxxxx_xxxxx(xxxxx); - xxxx_xxxxxxxxxx( ); -} -xxxx_xxxxxxxxxx( ) -{ - xxx xxxx; - xxxx = xxxxx_xxxx(xxxxx); - xx(xxxx){ xxxxxx("Cxxxxxxxxx xxx xxxxx. \x"); } - xxxx { xxxxxx("Cxxxxxxxxx xxxxx. \x"); } -}</programlisting> - <para>Txxx xxxxxxx xxxxxxx x xxxx xxxxxxxx xx xxxx xxx x MxSQL xxxxxxxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch17-77056"> - <refmeta> - <refentrytitle>xxxxx_xxxxx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxxx_xxxxx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">xxx xxxxx_xxxxx(MYSQL *xxxxx, xxxxx xxxx *xxxxx)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch17-51-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-17-ITERM-4558" significance="normal"><primary>xxxxx_xxxxx( ) xxxxxxxx</primary><secondary>C API</secondary></indexterm><indexterm id="mysqlian-CHP-17-ITERM-4559" significance="normal"><primary>xxxxx_xxxx_xxxxx( ) xxxxxxxx (C API)</primary></indexterm> -Uxx xxxx xx xxxxxxx xxx SQL xxxxx xxxxx xx xxx xxxxxx xxxxxxxx xx xxx xxxxxxxx. Oxxx xxx SQL xxxxxxxxx xxx xx xxxxx. Fxx xxxxxxx xxxxxxxxxx xxxxxx xxxx, xxx xxx <literal moreinfo="none">xxxxx_xxxx_xxxxx( )</literal> xxxxxxxx xxxxxxx. Ix xxxxxxxxxx, xxxx xxxxxxxx xxxx xxxxxx d; xxxxxxxxx, x xxx-xxxx xxxxx.</para> - <programlisting format="linespecific">... -MYSQL *xxxxx; -MYSQL_RES *xxxxxx; -MYSQL_ROW xxx; -MYSQL_FIELD *xxxxx; -xxx x, xxx_xxxxxx; -... -xxxxx = xxxxx_xxxx(NULL); -xxxxx_xxxx_xxxxxxx(xxxxx,xxxx,xxxx,xxxxxxxx,xxxxxxxx,d,NULL,d); -xxxxx xxxx *xxx_xxxxx = "SELECT * FROM xxxxxxx"; -xxxxx_xxxxx(xxxxx, xxx_xxxxx, xxxxx); -xxxxxx = xxxxx_xxxxx_xxxxxx(xxxxx); -xxx_xxxxxx = xxxxx_xxxxx_xxxxx(xxxxx); -xxxxx((xxx = xxxxx_xxxxx_xxx(xxxxxx)) != NULL) - { - xxx(x = d; x < xxx_xxxxxx; x++) - { xxxxxx("%x, ", xxx[x]); } - xxxxxx("\x"); - } -xxxxx_xxxx_xxxxxx(xxxxxx); -xxxxx_xxxxx(xxxxx); -...</programlisting> - <para><indexterm id="mysqlian-CHP-17-ITERM-4560" significance="normal"><primary>xxxxx_xxxx_xxxxxxx( ) xxxxxxxx (C API)</primary></indexterm><indexterm id="mysqlian-CHP-17-ITERM-4561" significance="normal"><primary>xxxxx_xxxxx( ) xxxxxxxx</primary><secondary>C API</secondary></indexterm><indexterm id="mysqlian-CHP-17-ITERM-4562" significance="normal"><primary>xxxxx_xxxxx_xxxxxx( ) xxxxxxxx (C API)</primary></indexterm><indexterm id="mysqlian-CHP-17-ITERM-4563" significance="normal"><primary>xxxxx_xxxx_xxxxxx( ) xxxxxxxx</primary><secondary>C API</secondary></indexterm> -Axxxxxxx xxxx xxxxxxx xx xxxxxx xxxxxxxx, xxx xxxxx xxxxxxxxx xxx xxxxxxxxx xxxxxxxxxx xxx xxxxxxxxxx xxxxxxxxxxx xxx xxx xxxxx. Sxx xxx xxxxxxx xxx xxx <literal moreinfo="none">xxxxx_xxxx_xxxxxxx( )</literal> xxxxxxxx xxx xxxxx xxxxxxx. Txx SQL xxxxxxxxx xx xxx xxxxxxxx xxxxxxx xx xxxxx xxxxxxx x xxxxxxxx, xxx xxxxx xx xxxxx xxxxxx xxx xxxxxxxx xx xxxxxxxx xxxxxx xxxxxx xxxxxx. Txx xxxxxxx xx xxx xxxxx xxx xxxxxx xx xxx <literal moreinfo="none">xxxxxx</literal> xxxxxxxx xx xxx xx xxx <literal moreinfo="none">xxxxx_xxxxx_xxxxxx( )</literal> xxxxxxxx. Ixxxxxxxxxxx, xx’x xxxxxxxxx xx xxxx xxx xxxxxx xxxxxxxxx xxx xxx xxxxxxx xxxx xxx <literal moreinfo="none">xxxxx_xxxx_xxxxxx( )</literal> xxxxxxxx xxxx xxxxxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch17-77057"> - <refmeta> - <refentrytitle>xxxxx_xxxx_xxxxxxx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxxx_xxxx_xxxxxxx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">MYSQL *xxxxx_xxxx_xxxxxxx(MYSQL *xxxxx, xxxxx xxxx *xxxx, - xxxxx xxxx *xxxx, xxxxx xxxx *xxxxxxxx, - xxxxx xxxx *xxxx, xxxxx xxxx *xxxxxxxx, - xxxxx xxxx *xxxxxxxx, xxxx xxxx, - xxxxx xxxx *xxxx, xxxxx xxxx *xxxxxxxx, - xxxxx xxxx *xxxxxxxx, xxxx xxxx, - xxxxx xxxx *xxxx_xxxxxx, xxxx xxxx)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch17-52-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-17-ITERM-4564" significance="normal"><primary>xxxxx_xxxx_xxxxxxx( ) xxxxxxxx (C API)</primary></indexterm><indexterm id="mysqlian-CHP-17-ITERM-4565" significance="normal"><primary>xxxxx_xxxx( ) xxxxxxxx (C API)</primary></indexterm> -Uxx xxxx xx xxxxxxxxx x xxxxxxxxxx xx x MxSQL xxxxxx. Txx <literal moreinfo="none">MYSQL</literal> xxxxxxxxx xxxxxxx xx <literal moreinfo="none">xxxxx_xxxx( )</literal> xx xxxxx xx xxx xxxxx xxxxxxxx xx xxx xxxxxxxx. Txx xxxxxxxx, xxxxxxxx, xxx xxxx’x xxxxxxxx xxx xxxxxxxxxx xx xxx xxxxxx xxx xxxxx xxxx. Txx xxxx xx xxx xxxxxxxx xx xxxxx xx xxx xxxxx xxxxxxxx. Txx xxxx, xxx xxxxxx xxxx xxxx xxx xxxx xxx Uxxx xxxxxxx, xxx xxx xxxxxx xxxxx xxx xxxxx xx xxx xxxxx, xxxxxxx, xxx xxxxxx xxxxxxxxx, xxxxxxxxxxxx. Fxx xxx xxxxxxxxx xxxxxxxxx x <emphasis>xxxx</emphasis> xxxxxxx, x xxxxx xx NULL xxx xx xxxxx xx xxxxxxxx xxx xxxxxx xx xxx xxx xxxxxxx xxxxxxx. Fxx <literal moreinfo="none">xxxxxxxx xxx</literal> xxxxxxxxx, x xxxxx xx d xxx xx xxxxx xx xxxx xx xxx xxxxxxx xxxxx.</para> - <programlisting format="linespecific">#xxxxxxx <xxxxx.x> -#xxxxxxx <xxxxxx.x> -#xxxxxxx <xxxxx/xxxxx.x> -xxx xxxx(xxxx) -{ - MYSQL *xxxxx; - MYSQL_RES *xxxxxx; - MYSQL_ROW xxx; - MYSQL_FIELD *xxxxx; - xxxxx xxxx *xxxx = "xxxxxxxxx"; - xxxxx xxxx *xxxx = "xxxx"; - xxxxx xxxx *xxxxxxxx = "xx_xxxxxxxx"; - xxxxx xxxx *xxxxxxxx = "xxxxxxxxxxxx"; - xxxxxxxx xxx xxxx = dddd; - xxxxx xxxx *xxxxxx = NULL; - xxxxxxxx xxxx xxxx = d; - xxx x, xxx_xxxxxx; - xxxxx = xxxxx_xxxx(NULL); - xxxxx_xxxx_xxxxxxx(xxxxx,xxxx,xxxx,xxxxxxxx,xxxxxxxx, - xxxx,xxxxxx,xxxx); - xxxxx xxxx *xxx_xxxxx = "SELECT * FROM xxxxxx"; - xxxxx xxxxx = xxxxxx(xxx_xxxxx); - xxxxx_xxxx_xxxxx(xxxxx, xxx_xxxxx, xxxxx); - xxxxxx = xxxxx_xxxxx_xxxxxx(xxxxx); - xxx_xxxxxx = xxxxx_xxxxx_xxxxx(xxxxx); - xxxxx((xxx = xxxxx_xxxxx_xxx(xxxxxx)) != NULL) - { - xxx(x = d; x < xxx_xxxxxx; x++) - { xxxxxx("%x, ", xxx[x]); } - xxxxxx("\x"); - } - xxxxx_xxxx_xxxxxx(xxxxxx); - xxxxx_xxxxx(xxxxx); - xxxxxx d; -}</programlisting> - <para><indexterm id="mysqlian-CHP-17-ITERM-4566" significance="normal"><primary>xxxxx_xxxx_xxxxxxx( ) xxxxxxxx (C API)</primary></indexterm><indexterm id="mysqlian-CHP-17-ITERM-4567" significance="normal"><primary>xxxxx_xxxxxx_xx( ) xxxxxxxx</primary><secondary>C API</secondary></indexterm> -Txxx xxxxxxx xx xxxxxx xxxxxxxx. Exxx xxxxxxxx xx xxxxxxxx xx xxx xxxxxxxxx xxxxx xx xxx xxxx xxxxxx xxx xx xxx xxxxxxxx, xxxxx xxxx xxxxx xxxxxxxxxx xxxxxx. Wxxxxxx xxxxxx xx xxxxxxxxxx xxx xxxxxxxxx, xxx xxx xxxxxx xxx xxxxxxxx xxxx xxx <literal moreinfo="none">xxxxx_xxxxxx_xx()</literal> xxxxxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch17-77058"> - <refmeta> - <refentrytitle>xxxxx_xxxx_xxxxxx_xxxxxx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxxx_xxxx_xxxxxx_xxxxxx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">xxxxxxxx xxxx xxxxx_xxxx_xxxxxx_xxxxxx(MYSQL *xxxxx, - xxxx *xxxxxx_xxxxxx, - xxxx *xxxxxx_xxxxxx, - xxxx *xxxxxxxx_xxxxxx, - xxxx *xxxxxx_xxxxxx, - xxxx *xxxxxxxx_xxxxxx, - xxxxxxxx xxxx xxx xxxxxx)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch17-53-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-17-ITERM-4568" significance="normal"><primary>xxxxx_xxxx_xxxxxx_xxxxxx( ) xxxxxxxx</primary><secondary>C API</secondary></indexterm> -Txxx xxxxxx x xxxxxx xxxxx xx xxx xxxxx xxxxxxxx, xx x xxxxxx xxxxx xx xxx xxxxxx xxxxxxxx, xxx xxxx xxxxxxx xxxxxxxxxx xxxxxxx xx xxxxxx xxxxxxxxxxx xx xxxxx xx xxxx. Txx xxxxxx xx xxxxx xx xx xxxxxx xxxx xxx xxxxxx xxxxxx xx xxxxx xxx xxx xxxxxx xxxxxxxx. Wxxx xxxxxxxxx xxx xxx xxxxxxx, xxx xxxxxxxxxxx xxxxxx xxxx xx xxxxxx xxx xxxx xx xxx xxxxxx xxxxxx, xxxx xxx xxxx.</para> - <programlisting format="linespecific">... -xxxxx xxxx xxxxxx_xxxx[ ] = "O'Rxxxxx Mxxxx"; -xxxxx xxxxx = xxxxxx(xxxxxx_xxxx); -xxxx xxxxxx_xxxx_xxx[(d * xxxxx)+d]; -xxxxx_xxxx_xxxxxx_xxxxxx(xxxxx, xxxxxx_xxxx_xxx, - xxxxxx_xxxx, xxxxx); -xxxx *xxx_xxxxx; -xxxxxxx(xxx_xxxxx, "INSERT INTO xxxxxxx (xxxxxx_xxxx) - VALUES('%x')", xxxxxx_xxxx_xxx); -xxxxx_xxxx_xxxxx(xxxxx, xxx_xxxxx, xxxxxx(xxx_xxxxx)); -...</programlisting> - <para><indexterm id="mysqlian-CHP-17-ITERM-4569" significance="normal"><primary>xxxxx_xxxx_xxxxx( ) xxxxxxxx (C API)</primary></indexterm> -Axxxx xxxxxxxxxxxx xxx xxxxxxx xxxxxxxx xxx xxxxxxx xxx xxxxxx’x xxxx, xxx C xxxxxxxx <literal moreinfo="none">xxxxxx( )</literal> xx xxxx xx xxxxxxxxx xxx xxxxxx xx xxxxx xxxxxxxxx xx xxx xxxxxx. Nxxx xxx xxxxxx xxxxxxxx xx xxxx xxx xxxxxx’x xxxx xx xxxxxxxx xxxx x xxxx xxxxxx xxx xxxx xx xxx xxxxx xxxxxxxx, xxxx xxx xxxx. Txx <literal moreinfo="none">xxxxx_xxxx_xxxxxx_xxxxxx( )</literal> xxxxxxxx xx xxx xxxx xxxx xxxxxxxxx xxx xxx xxxx xx xxx xxxxx. Ix xxxx xxxxxxx, xxx xxxxxxxx xxxx xxxxx x xxxxxxxxx xx xxxxx xx xxx xxxxxxxxxx xx xxx xxxxxx’x xxxx xx xx xxx xx xxxxx xx xxxxx xxxx xxx xxxxx xx xxx xxxxx. Uxxxx xxx C xxxxxxxx <literal moreinfo="none">xxxxxxx()</literal>, xxx xxxxxxx xxxxxx xxxx xx xxxxxxxx xxxx xxx SQL xxxxxxxxx xxxxx. Fxxxxxx, xxx SQL xxxxxxxxx xx xxx xxxx <literal moreinfo="none">xxxxx_xxxx_xxxxx( )</literal>.</para> - </refsect1> - </refentry> - <refentry id="ch17-77059"> - <refmeta> - <refentrytitle>xxxxx_xxxx_xxxxx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxxx_xxxx_xxxxx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">xxx xxxxx_xxxx_xxxxx(MYSQL *xxxxx, xxxxx xxxx *xxxxx, - xxxxxxxx xxx xxxxxx)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch17-54-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-17-ITERM-4570" significance="normal"><primary>xxxxx_xxxx_xxxxx( ) xxxxxxxx (C API)</primary></indexterm><indexterm id="mysqlian-CHP-17-ITERM-4571" significance="normal"><primary>xxxxx_xxxxx( ) xxxxxxxx</primary><secondary>C API</secondary></indexterm> -Uxx xxxx xx xxxxxxx xxx SQL xxxxx xxxxx xx xxx xxxxxx xxxxxxxx xx xxx xxxxxxxx. Oxxx xxx SQL xxxxxxxxx xxx xx xxxxx. Uxxxxx <literal moreinfo="none">xxxxx_xxxxx( )</literal>, xxxx xxxxxxxx xxx xxxxxxx xxxxxxx xxxxxxxxxx xxxxxx xxxx. Bxxxxxx xx xxxx xxxxxxx, xxx xxxxxx xx xxxxx xxxxxxxxx xx xxx xxxxx xxxxx xx xx xxxxx xxx xxx xxxxx xxxxxxxx. Txxx xxx xx xxxxxxxxxx xxxx xxx C xxxxxxxx <literal moreinfo="none">xxxxxx( )</literal>. Ix xxxxxxxxxx, xxx xxxxxxxx xxxx xxxxxx d; xxxxxxxxx, x xxx-xxxx xxxxx.</para> - <programlisting format="linespecific">... -xxxxx = xxxxx_xxxx(NULL); -xxxxx_xxxx_xxxxxxx(xxxxx,xxxx,xxxx,xxxxxxxx,xxxxxxxx,xxxx,xxxxxx,xxxx); -xxxxx xxxx *xxx_xxxxx = "SELECT * FROM xxxxxx"; -xxxxx xxxxx = xxxxxx(xxx_xxxxx); -xxxxx_xxxx_xxxxx(xxxxx, xxx_xxxxx, xxxxx); -xxxxxx = xxxxx_xxxxx_xxxxxx(xxxxx); -xxx_xxxxxx = xxxxx_xxxxx_xxxxx(xxxxx); -xxxxx((xxx = xxxxx_xxxxx_xxx(xxxxxx)) != NULL) - { - xxx(x = d; x < xxx_xxxxxx; x++) - { xxxxxx("%x, ", xxx[x]); } - xxxxxx("\x"); - } -...</programlisting> - <para><indexterm id="mysqlian-CHP-17-ITERM-4572" significance="normal"><primary>xxxxx_xxxx_xxxxx( ) xxxxxxxx (C API)</primary></indexterm> -Ix xxxx xxxxxxx, xxx xxxxxx xx xxxxx xx xxx xxxxxxxx xxxxxxxxxx xxx SQL xxxxxxxxx xx xxxxxxxxxx xxxx xxx C xxxxxxxx <literal moreinfo="none">xxxxxx( )</literal> xxx xx xxxxxx xx x xxxxxxxx xxxxxxxx xxxxxx <literal moreinfo="none">xxxxx</literal>. Ix xxxx, xxx <literal moreinfo="none">xxxxx</literal> xxxxxxxx xx xxxxx xx xxx xxxxx xxxxxxxx xx xxx <literal moreinfo="none">xxxxx_xxxx_xxxxx( )</literal> xxxxxxxx. Ax xx xxxxxxxxxxx, <literal moreinfo="none">xxxxxxx(xxx_xxxxx)</literal> xxxxx xx xxxxx xx xxx xxxxx xxxxxxxx xxxxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch17-77060"> - <refmeta> - <refentrytitle>xxxxx_xxxxxx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxxx_xxxxxx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">xxx xxxxx_xxxxxx(MYSQL *xxxxx)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch17-55-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-17-ITERM-4573" significance="normal"><primary>xxxxx_xxxxxx( ) xxxxxxxx (C API)</primary></indexterm><indexterm id="mysqlian-CHP-17-ITERM-4574" significance="normal"><primary>xxxxx_xxxxx( ) xxxxxxxx</primary><secondary>C API</secondary></indexterm><indexterm id="mysqlian-CHP-17-ITERM-4575" significance="normal"><primary>xxxxx_xxxx_xxxxx( ) xxxxxxxx (C API)</primary></indexterm><indexterm id="mysqlian-CHP-17-ITERM-4576" significance="normal"><primary>FLUSH PRIVILEGES xxxxxxxxx</primary><secondary>xxxxx_xxxxxx( ) xxx</secondary></indexterm> -Txxx xxxxxxxxx xxx MxSQL xxxxxx xx xxxxxx xxx xxxxxx xxxxx. Ix xxxxxxx d xx xxxxxxxxxx xxx x xxx-xxxx xxxxx xx xxxxxxxxxxxx. Txxx xxxxxxxx xxx xxxx xxxxxxxxxx. Uxx <literal moreinfo="none">xxxxx_xxxxx( )</literal> xx <literal moreinfo="none">xxxxx_xxxx_xxxxx()</literal> xxxx x <literal moreinfo="none">FLUSH PRIVILEGES</literal> xxxxxxxxx xxxxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch17-77061"> - <refmeta> - <refentrytitle>xxxxx_xxxxxxx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxxx_xxxxxxx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">xxx xxxxx_xxxxxxx(MYSQL *xxxxx, xxxxxxxx xxx <replaceable>xxxxxxx</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch17-56-fm2xml"> - <title/> - <para>Uxx xxxx xxxxxxxx xx xxxxx xxxxxx xxx xxxxxx. Ix xxx xxxx xx xxxx xx xxxxx x xxxxxxxxxxx xxxxxx. Ix xxxxxxx x xxxxx xx xxxx xx xxxxxxxxxx, xxx-xxxx xx xxx. Txx <literal moreinfo="none">RELOAD</literal> xxxxxxxxx xx xxxxxxxx xx xxx xx. Sxxxxxx xxxxxxx xxx xx xxxxx: <literal moreinfo="none">REFRESH_GRANT</literal>, <literal moreinfo="none">REFRESH_LOG</literal>, <literal moreinfo="none">REFRESH_TABLES</literal>, <literal moreinfo="none">REFRESH_HOSTS</literal>, <literal moreinfo="none">REFRESH_MASTER</literal>, <literal moreinfo="none">REFRESH_SLAVE</literal>, <literal moreinfo="none">REFRESH_STATUS</literal>, xxx <literal moreinfo="none">REFRESH_THREADS</literal>. Txxxx xxx xxxx xxxxxxxx xxxxxx xxxx xxx xxxxxxxx: <literal moreinfo="none">CR_COMMANDS_OUT_OF_SYNC</literal>, <literal moreinfo="none">CR_SERVER_GONE_ERROR</literal>, <literal moreinfo="none">CR_SERVER_LOST</literal>, <literal moreinfo="none">CR_UNKNOWN_ERROR</literal>.</para> - <programlisting format="linespecific">... -xxxxx_xxxxxxx(MYSQL xxxxx, xxxxxxxx xxx REFRESH_TABLES); -...</programlisting> - </refsect1> - </refentry> - <refentry id="ch17-77062"> - <refmeta> - <refentrytitle>xxxxx_xxxxxxxx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxxx_xxxxxxxx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">xx_xxxx xxxxx_xxxxxxxx(MYSQL *xxxxx)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch17-57-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-17-ITERM-4577" significance="normal"><primary>xxxxx_xxxxxxxx( ) xxxxxxxx (C API)</primary></indexterm><indexterm id="mysqlian-CHP-17-ITERM-4578" significance="normal"><primary>xxxxx_xxxxxx( ) xxxxxxxx (C API)</primary></indexterm><indexterm id="mysqlian-CHP-17-ITERM-4579" significance="normal"><primary>xxxxx_xxxxxx( ) xxxxxxxx (C API)</primary></indexterm> -Uxx xxxx xx xxxx xxxx xx xxxxxxx xxx xxxxxxx xxxxxxxxxxx. Txxx xxxx xxx xxxx xx xxx <literal moreinfo="none">xxxxx_xxxxxx( )</literal> xxxxxxxx xxx xxxxxxx xxxx xxxxxx xxx xxx xxxxxxxxxxx. Txx xxxxxxxx xxxxxxx d xx xxxxxxxxxx, x xxx-xxxx xxxxx xx xxxxxxxxxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch17-77063"> - <refmeta> - <refentrytitle>xxxxx_xxx_xxxx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxxx_xxx_xxxx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">MYSQL_ROW_OFFSET xxxxx_xxx_xxxx(MYSQL *xxxxxx, - MYSQL_ROW_OFFSET xxxxxx)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch17-58-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-17-ITERM-4580" significance="normal"><primary>xxxxx_xxx_xxxx( ) xxxxxxxx (C API)</primary></indexterm><indexterm id="mysqlian-CHP-17-ITERM-4581" significance="normal"><primary>xxxxx_xxx_xxxx( ) xxxxxxxx (C API)</primary></indexterm> -Uxx xxxx xx xxxx xxx xxxxxxx xx x xxxxxx xxx xx xxx xxx xxxxx xx xxx xxxxxx xxxxxxxx xx xxx xxxxxxxx. Txx xxxxxxx xxxxx xxxx xxx xxx <literal moreinfo="none">MYSQL_ROW_OFFSET</literal> xxxxxxxxx. Uxx x xxxxxxxx xxxx xx <literal moreinfo="none">xxxxx_xxx_xxxx( )</literal> xx xxxxxxxxx xxx xxxxxx xx xxx xxxxxx xxxxxx.</para> - <programlisting format="linespecific">... - MYSQL_ROW_OFFSET xxxxxxx_xxxxxxxx; - xxxxx((xxx = xxxxx_xxxxx_xxx(xxxxxx)) != NULL) - { - xx(xxxxxx(xxx[d], "dddd") == d) - { - xxxxxxx_xxxxxxxx = xxxxx_xxx_xxxx(xxxxxx); - xxxxxxxx; - } - xx(!xxxxx_xxxx_xxxxxxx(xxxxx)) - { - xxxxx_xxx_xxxx(xxxxxx, xxxxxxx_xxxxxxxx); - xxxxxx("%x (%x) \x", xxx[d], xxx[d]); - xxxxx; - } - xxxxxx("%x (%x) \x", xxx[d], xxx[d]); - } -...</programlisting> - <para><indexterm id="mysqlian-CHP-17-ITERM-4582" significance="normal"><primary>xxxxx_xxx_xxxx( ) xxxxxxxx (C API)</primary></indexterm><indexterm id="mysqlian-CHP-17-ITERM-4583" significance="normal"><primary>xxxxx_xxx_xxxx( ) xxxxxxxx (C API)</primary></indexterm><indexterm id="mysqlian-CHP-17-ITERM-4584" significance="normal"><primary>xxxxx_xxx_xxxx( ) xxxxxxxx (C API)</primary></indexterm><indexterm id="mysqlian-CHP-17-ITERM-4585" significance="normal"><primary>xxxxx_xxxx_xxxxxxx( ) xxxxxxxx (C API)</primary></indexterm><indexterm id="mysqlian-CHP-17-ITERM-4586" significance="normal"><primary>xxxxx_xxx_xxxx( ) xxxxxxxx (C API)</primary></indexterm> -Ix xxxx xxxxxxx, x xxxx xx xxxxxxx xxx xxxx xxxxxxxxx, xxx xxx xxxxxxxxx xxxxx xxx xxx xxxx x xxxxxx xxxxxxxxxxxxxx xxxxxx xx dddd xx xx xxxxxxxxx xxxx. Sx, xx <literal moreinfo="none">xx</literal> xxxxxxxxx xx xxxx xx xxxxx xxx xxx xxxxxxx xxxxxx. Wxxx xx xxxxx xxx xxx xxx xxxxx xx’x xxxxxxx, xxx <literal moreinfo="none">xxxxx_xxx_xxxx( )</literal> xxxxxxxx xx xxxx xx xxxx x xxxx xx xxx xxxxx xx xxx xxxxxxx xxx xx xxxxx xx xxx xxxxx. Txx xxxxxxxxx xx xxx <literal moreinfo="none">xxxxx</literal> xxxxxxxxx xx xxxxx xxx xxx xx xx xx xxxxxxx xx xxxx xxxxxxx. Uxxxx xxx <literal moreinfo="none">xxxxx_xxxx_xxxxxxx( )</literal> xxxxxxxx, xxxxxxx <literal moreinfo="none">xx</literal> xxxxxxxxx xxxxxxx xxx xxx xxx xx xxx xxxxxxx xxx. Ix xx xxxxxxxxxx xxxx xxxxx xxx xx xxxx xxxx xx xxx xxxxxxx xxx xx xxxxx, xx xxxx xxxx xxx xxxxxxx xxxx xx xxx xxxxxxx xxxxxx xxxxx xxx <literal moreinfo="none">xxxxx_xxx_xxxx( )</literal> xxxxxxxx xxx xxx xxxxxxx xxxxx xxxx <literal moreinfo="none">xxxxx_xxx_xxxx( )</literal>, xxxxx xxx xxxx xxxxxxxxxx xxx’x xxxx, xxx xxxx xxx xxx <literal moreinfo="none">xxxxx</literal> xxxxxxxxx xxxx <literal moreinfo="none">xxxxx</literal>. -</para> - </refsect1> - </refentry> - <refentry id="ch17-77064"> - <refmeta> - <refentrytitle>xxxxx_xxx_xxxx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxxx_xxx_xxxx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">MYSQL_ROW_OFFSET xxxxx_xxx_xxxx(MYSQL_RES *xxxxxx)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch17-59-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-17-ITERM-4587" significance="normal"><primary>xxxxx_xxx_xxxx( ) xxxxxxxx (C API)</primary></indexterm><indexterm id="mysqlian-CHP-17-ITERM-4588" significance="normal"><primary>xxxxx_xxx_xxxx( ) xxxxxxxx (C API)</primary></indexterm> -Txxx xxxxxxx xxx xxxxxxx xxx xxx xxxxxxx xxxxxxxx xx x xxxxxxx xxx xxxxxxxxx xxxx xxx <literal moreinfo="none">xxxxx_xxxxx_xxxxxx( )</literal> xxxxxxxx. Txx xxxxx xxxxxxxx xxx xx xxxx xxxx <literal moreinfo="none">xxxxx_xxx_xxxx( )</literal> xxx xxxxxxxx xxx xxxxxxx xxxxx xxxxxxxx xxxx. Sxx xxx <literal moreinfo="none">xxxxx_xxx_xxxx()</literal> xxxxxxxx xxx xx xxxxxxx xx xxx xxx.</para> - </refsect1> - </refentry> - <refentry id="ch17-77065"> - <refmeta> - <refentrytitle>xxxxx_xxxxxx_xx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxxx_xxxxxx_xx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">xxx xxxxx_xxxxxx_xx(MYSQL *xxxxx, xxxxx xxxx *xxxxxxxx)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch17-60-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-17-ITERM-4589" significance="normal"><primary>xxxxx_xxxxxx_xx( ) xxxxxxxx</primary><secondary>C API</secondary></indexterm> -Uxx xxxx xx xxxxxx x xxxxxxxxx xxxxxxxx xxx xxx xxxxxxx xxxxxxxxxx. Txx xxxx xx xxx xxx xxxxxxxx xx xxx xx xxxxx xx xxx xxxxxx xxxxxxxx xx xxx xxxxxxxx. Ix xxxxxxx d xx xxxxxxxxxx, x xxx-xxxx xxxxx xx xxxxxxxxxxxx.</para> - <programlisting format="linespecific">... -xxxxx = xxxxx_xxxx(NULL); -xxxxx_xxxx_xxxxxxx(xxxxx,"xxxxxxxxx","xxxxx","xxxxx",NULL,NULL,NULL,d); -xxxxx_xxxxxx_xx(xxxxx,"xxxxxxxxxxxx"); -...</programlisting> - </refsect1> - </refentry> - <refentry id="ch17-77066"> - <refmeta> - <refentrytitle>xxxxx_xxx_xxxxxxxxx_xxx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxxx_xxx_xxxxxxxxx_xxx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">xxx xxxxx_xxx_xxxxxxxxx_xxx(MYSQL *xxxxx, xxxxx xxxx *<replaceable>xxxx_xxx</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch17-61-fm2xml"> - <title/> - <para>Uxx xxxx xxxxxxxx xx xxx xxx xxxxxxx xxxxxxxxx xxx xx x xxxxxxxxxx xx xxx xxxxxxxxx xxx xxxxx. Ix xxxxxxx xxxx xx xxxxxxxxxx, xxx-xxxx xx xxx.</para> - <programlisting format="linespecific">... -xx (!xxxxx_xxx_xxxxxxxxx_xxx(xxxxx, 'xxxd')) -{ - xxxxxx("Cxxxxxxxx Sxx: %x", xxxxx_xxxxxxxxx_xxx_xxxx(xxxxx)); -} -...</programlisting> - </refsect1> - </refentry> - <refentry id="ch17-77067"> - <refmeta> - <refentrytitle>xxxxx_xxx_xxxxx_xxxxxx_xxxxxxx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxxx_xxx_xxxxx_xxxxxx_xxxxxxx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">xxxx xxxxx_xxx_xxxxx_xxxxxx_xxxxxxx(MYSQL *xxxxx)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch17-62-fm2xml"> - <title/> - <para>Uxx xxxx xxxxxxxx xx xxx xxx xxxxxxx xxx <literal moreinfo="none">LOAD LOCAL DATA INFILE</literal> xxxxxxxxx xx xxx xxxxxxxx xxxxxxxxx xxx xxxxxxxx xxx xx xxx C xxxxxx xxxxxxx. Ix xx xxxxxxxx xxxxxx xxxxxxxxxxxxx xx xxx C xxxxxxx.</para> - <programlisting format="linespecific"/> - </refsect1> - </refentry> - <refentry id="ch17-77068"> - <refmeta> - <refentrytitle>xxxxx_xxx_xxxxx_xxxxxx_xxxxxxx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxxx_xxx_xxxxx_xxxxxx_xxxxxxx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">xxxx xxxxx_xxx_xxxxx_xxxxxx_xxxxxxx(MYSQL *xxxxx, - xxx (*<replaceable>xxxxx_xxxxxx_xxxx</replaceable>)(xxxx **, xxxxx xxxx *, xxxx *), - xxx (*<replaceable>xxxxx_xxxxxx_xxxx</replaceable>)(xxxx *, xxxx *, xxxxxxxx xxx), - xxxx (*<replaceable>xxxxx_xxxxxx_xxx</replaceable>)(xxxx *), - xxx (*<replaceable>xxxxx_xxxxxx_xxxxx</replaceable>)(xxxx *, xxxx*, xxxxxxxx xxx), - xxxx *xxxxxxxx)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch17-63-fm2xml"> - <title/> - <para>Uxx xxxx xxxxxxxx xx xxxxxx xxxxxxxxx xxxx xxx xxxx xxx xxxx xxx <literal moreinfo="none">LOAD DATA LOCAL INFILE</literal> xxxxxxxxx. Txx xxxxxxxx xxxxxxxxx xxxx xx xxxxxxx xxxxx:</para> - <programlisting format="linespecific">... -xxx xxxxx_xxxxxx_xxxx(xxxx **xxx, xxxxx xxxx *xxxx_xxxx, xxxx *xxxx_xxxx); -xxx xxxxx_xxxxxx_xxxx(xxxx *xxx, xxxx *xxxxxx, xxxxxxxx xxx xxxxxx_xxx); -xxxx xxxxx_xxxxxx_xxx(xxxx *xxx); -xxx xxxxx_xxxxxx_xxxxx(xxxx *xxx, xxxx *xxxxx_xxx, xxxxxxxx xxx xxxxx_xxx_xxx); -...</programlisting> - </refsect1> - </refentry> - <refentry id="ch17-77069"> - <refmeta> - <refentrytitle>xxxxx_xxx_xxxxxx_xxxxxx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxxx_xxx_xxxxxx_xxxxxx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">xxx xxxxx_xxx_xxxxxx_xxxxxx(MYSQL *xxxxx, - xxxx xxxxx_xxx_xxxxxx <replaceable>xxxxxx</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch17-64-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-17-ITERM-4590" significance="normal"><primary>xxxxx_xxx_xxxxxx_xxxxxx( ) xxxxxxxx (C API)</primary></indexterm><indexterm id="mysqlian-CHP-17-ITERM-4591" significance="normal"><primary>MYSQL_OPTION_MULTI_STATEMENTS_OFF xxxxxx (xxxxx_xxx_xxxxxx_xxxxxx)</primary></indexterm><indexterm id="mysqlian-CHP-17-ITERM-4592" significance="normal"><primary>MYSQL_OPTION_MULTI_STATEMENTS_ON xxxxxx (xxxxx_xxx_xxxxxx_xxxxxx)</primary></indexterm> -Uxx xxxx xx xxxxxx xx xxxxxxx x xxxxxx xxxxxx. Txx xxxx xxxxxxx xxxxxxxxx xxxxxxxxx xxx <literal moreinfo="none">MYSQL_OPTION_MULTI_STATEMENTS_ON</literal> xxx <literal moreinfo="none">MYSQL_OPTION_MULTI_STATEMENTS_OFF</literal>, xx xxxxxx xxx xxxxxxx xxxxxxxx SQL xxxxxxxxxx, xxxxxxxxxxxx. Ix xxxxxxx d xx xxxxxxxxxx, x xxx-xxxx xxxxx xx xxx xxxxxxxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch17-77070"> - <refmeta> - <refentrytitle>xxxxx_xxxxxxxx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxxx_xxxxxxxx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">xxx xxxxx_xxxxxxxx(MYSQL *xxxxx)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch17-65-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-17-ITERM-4593" significance="normal"><primary>xxxxx_xxxxxxxx( ) xxxxxxxx (C API)</primary></indexterm> -Uxx xxxx xx xxxx xxxx xxx MxSQL xxxxxx. Ix xxxxxxx d xx xxxxxxxxxx xxx x xxx-xxxx xxxxx xx xxxxxxxxxxxx.</para> - <programlisting format="linespecific">... -xx(!xxxxx_xxxx(xxxxx)) - { - xxxxx_xxxxxxxx(xxxxx); - xxxxxx("Sxxxxxxx xxxx xxxxxx \x"); - xx(xxxxx_xxxx(xxxxx)) - { xxxxxx("MxSQL xxxxxx xx xxxx.\x"); } - } -...</programlisting> - <para><indexterm id="mysqlian-CHP-17-ITERM-4594" significance="normal"><primary>xxxxx_xxxx( ) xxxxxxxx</primary><secondary>C API</secondary></indexterm> -Txx <literal moreinfo="none">xxxxx_xxxx( )</literal> xxxxxxxx xx xxx xxxxxxx xxxxxx xx xxx xxxxxx xx xxxxx. Rxxxxx xxxx x xxxx, xxx x TRUE, xxxxxx xxxxxxxxx x xxxx xxxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch17-77071"> - <refmeta> - <refentrytitle>xxxxx_xxxxxxxx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxxx_xxxxxxxx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">xxxxx xxxx *xxxxx_xxxxxxxx(MYSQL *xxxxx)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch17-66-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-17-ITERM-4595" significance="normal"><primary>xxxxx_xxxxxxxx( ) xxxxxxxx (C API)</primary></indexterm> -Txxx xxxxxxx xxx SQLSTATE xxxxx xxxx xxx xxx xxxx xxxxx xxxx xxxxxxxx xxx xxx xxxxxxx xxxxxxxxxx. Txx xxxxxx xxxx xxxxxxx xxxx xxxxxxxxxx xxx xx xxxxxxxxxx xxxx x NULL xxxxxxxxx. A xxxx xx xxxxx xx xxxxxxxxx xx “ddddd” xxx xxxxxxxx xxxxxx xx “HYddd”.</para> - </refsect1> - </refentry> - <refentry id="ch17-77072"> - <refmeta> - <refentrytitle>xxxxx_xxx_xxx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxxx_xxx_xxx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">xx_xxxx xxxxx_xxx_xxx(MYSQL *xxxxx, - xxxxx xxxx *<replaceable>xxx_xxxx</replaceable>, - xxxxx xxxx *<replaceable>xxxx_xxxx</replaceable>, xxxxx xxxx *<replaceable>xx_xxxx</replaceable>, - xxxxx xxxx *<replaceable>xxx_xxxx</replaceable>, xxxxx xxxx *<replaceable>xxxxxx</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch17-67-fm2xml"> - <title/> - <para>Txxx xxxxxxxx xx xxxx xx xxxx x xxxxxx xxxxxxxxxx xxxx SSL. OxxxSSL xxxx xx xxxxxxx xx xx xxxx xx xxx xxxx xxxxxxxx, xxxxxx. Cxxx xx xxxxxx xxxxxxx <literal moreinfo="none">xxxxx_xxxx_xxxxxxx( )</literal>. Txxx xxxxxxxx xxxxxxx xxxx xxxxxx xxxxx xx x xxxxxxx, xx xxxxx xxxx xx xxxxx xxxx xx xxxxxxxx xxxx <literal moreinfo="none">xxxxx_xxxx_xxxxxxx( )</literal> xx xxxxxx. Txx <replaceable>xxx_xxxx</replaceable> xx xxx xxxx xx xxx xx xx xxxx; <replaceable>xxxx_xxxx</replaceable> xx xxx xxxx xx xxx xxxxxxxxxxx xxxx; <replaceable>xx_xxxx</replaceable> xx xxx xxxx xxxx xx xxx xxxxxxxxxxx xxxxxxxxx xxxx; <replaceable>xxx_xxxx</replaceable> xx xxx xxxxxxxxx xxxx xxxxxxx SSL CA xxxxxxxxxxxx, xxxxx xxx xx xxx xxx xxxxxx. Fxxxxxx, <replaceable>xxxxxx</replaceable> xxxxxxxx x xxxx xx xxxxxxx xxxxxxxxx xxx SSL xxxxxxxxxx. Yxx xxx xxxx NULL xxx xxxxxxxxxx xxxx xxx’x xxxxx.</para> - <programlisting format="linespecific"/> - </refsect1> - </refentry> - <refentry id="ch17-77073"> - <refmeta> - <refentrytitle>xxxxx_xxxx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxxx_xxxx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">xxxx * xxxxx_xxxx(MYSQL *xxxxx)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch17-68-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-17-ITERM-4596" significance="normal"><primary>xxxxx_xxxx( ) xxxxxxxx</primary><secondary>C API</secondary></indexterm> -Txxx xxxxxxx x xxxxxxxxx xxxxxx xxxxxxxxxx xxxxxxxxxxx xxxxx xxx xxxxxx xx xxx MxSQL xxxxxx xxx xxx xxxxxxx xxxxxxxxxx.</para> - <programlisting format="linespecific">... -xxxxxx("Sxxxxx Sxxxxx \x %x \x", xxxxx_xxxx(xxxxx)); -...</programlisting> - </refsect1> - </refentry> - <refentry id="ch17-77074"> - <refmeta> - <refentrytitle>xxxxx_xxxxx_xxxxxx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxxx_xxxxx_xxxxxx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">MYSQL_RES *xxxxx_xxxxx_xxxxxx(MYSQL *xxxxx)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch17-69-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-17-ITERM-4597" significance="normal"><primary>xxxxx_xxxxx_xxxxxx( ) xxxxxxxx (C API)</primary></indexterm><indexterm id="mysqlian-CHP-17-ITERM-4598" significance="normal"><primary>xxxxx_xxxx_xxxxxx( ) xxxxxxxx</primary><secondary>C API</secondary></indexterm> -Uxx xxxx xx xxxx xxx xxxxx xxx xx x xxxxxxx xxx xx x <literal moreinfo="none">MYSQL_RES</literal> xxxxxxxxx. Wxxx xxxxxxxx xxxx xxxxx xxxxxxx, xx’x xxxxxxxxx xx xxx xxx <literal moreinfo="none">xxxxx_xxxx_xxxxxx( )</literal> xxxxxxxx xx xxxx xxx xxxxxx xxxxxxxxx xxx xxxxxxx xxx xxxxxxx xxx. Txx xxxxxxxx xxxxxxx NULL xx xx’x xxxxxxxxxxxx xx xx xxx xxxxx xx xxx xxx xxxx xxxx xxxxx xxxxxx xxx xxxxxxx (x.x., xx <literal moreinfo="none">UPDATE</literal> xxxxxxxxx).</para> - <programlisting format="linespecific">... -xxxxx = xxxxx_xxxx(NULL); -xxxxx_xxxx_xxxxxxx(xxxxx,"xxxxxxxxx","xxxx","xxxxxxxx", - "xxxxxxxxxxxx",d,NULL,d); -xxxxx_xxxxx(xxxxx,"SELECT * FROM xxxxx"); -xxxxxx = xxxxx_xxxxx_xxxxxx(xxxxx); -xxx_xxxxxx = xxxxx_xxxxx_xxxxx(xxxxx); -xxxxx((xxx = xxxxx_xxxxx_xxx(xxxxxx)) != NULL) - { - xxx(x = d; x < xxx_xxxxxx; x++) - { - xxxxx = xxxxx_xxxxx_xxxxx_xxxxxx(xxxxxx, x); - xxxxxx("%x: %x, ", xxxxx->xxxx, xxx[x]); - } - xxxxxx("\x"); - } -xxxxx_xxxx_xxxxxx(xxxxxx); -...</programlisting> - <para><indexterm id="mysqlian-CHP-17-ITERM-4599" significance="normal"><primary>xxxxx_xxxxx_xxxxxx( ) xxxxxxxx (C API)</primary></indexterm><indexterm id="mysqlian-CHP-17-ITERM-4600" significance="normal"><primary>xxxxx_xxxxx_xxx( ) xxxxxxxx</primary><secondary>C API</secondary></indexterm> -Sxx xxx xxxxxxx xxx xxx <literal moreinfo="none">xxxxx_xxxxx_xxx( )</literal> xxxxxxxx xxx xx xxxxxxxxxxx xxxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch17-77075"> - <refmeta> - <refentrytitle>xxxxx_xxxxxx_xxx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxxx_xxxxxx_xxx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">xxxx xxxxx_xxxxxx_xxx(xxxx)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch17-70-fm2xml"> - <title/> - <para>Uxx xxxx xxxxxxxx xxxxxx xxxxxxx xx xxxx xxxxxx xxxx xx <literal moreinfo="none">xxxxx_xxxxxx_xxxx( )</literal>. Ix xxxxxxx xxxxxxx. Ix’x xxx xxxxxxxxxxxxx xxxxxx.</para> - <programlisting format="linespecific">... -xx(xxxxx_xxxxxx_xxxx( )) - { xxxxxx("Sxxx Exxxxxxxxxx \x"); } -xxxx{ xxxxxx("Uxxxxx Exxxxxxxxxx \x"); } -...</programlisting> - </refsect1> - </refentry> - <refentry id="ch17-77076"> - <refmeta> - <refentrytitle>xxxxx_xxxxxx_xx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxxx_xxxxxx_xx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">xxxxxxxx xxxx xxxxx_xxxxxx_xx(MYSQL *xxxxx)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch17-71-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-17-ITERM-4601" significance="normal"><primary>xxxxx_xxxxxx_xx( ) xxxxxxxx</primary><secondary>C API</secondary></indexterm> -Txxx xxxxxxx xxx xxxxxx xxxxxxxxxx xxxxxx xxx xxx xxxxxxx xxxxxxxxxx xx MxSQL. Txxxxx xxxxxxxxxxx xxx xxxxxx xx x xxxxxxxxxx xx xxxxxx xx xxxxxxxxx.</para> - <programlisting format="linespecific">... -xxx xxxxxx = xxxxx_xxxxxx_xx(xxxxx); -xxxxxx("Txxxxx ID: %x \x", xxxxxx); -...</programlisting> - </refsect1> - </refentry> - <refentry id="ch17-77077"> - <refmeta> - <refentrytitle>xxxxx_xxxxxx_xxxx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxxx_xxxxxx_xxxx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">xx_xxxx xxxxx_xxxxxx_xxxx(xxxx)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch17-72-fm2xml"> - <title/> - <para>Uxx xxxx xxxxxxxx xx xxxxxxxxxx xxxxxx xxxxxxxx xxxxxxxxx. Ix’x xxxxxxxxxxxxx xxxxxx xx <literal moreinfo="none">xxxxx_xxxxxxx( )</literal>, <literal moreinfo="none">xxxxx_xxxx( )</literal>, <literal moreinfo="none">xxxxx_xxxxxxx_xxxx( )</literal>, xxx <literal moreinfo="none">xxxxx_xxxxxx_xxxx( )</literal>. Ix xxxxxxx xxxx xx xxxxxxxxxx, xxx-xxxx xx xxx.</para> - </refsect1> - </refentry> - <refentry id="ch17-77078"> - <refmeta> - <refentrytitle>xxxxx_xxxxxx_xxxx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxxx_xxxxxx_xxxx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">xxxxxxxx xxx xxxxx_xxxxxx_xxxx(xxxx)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch17-73-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-17-ITERM-4602" significance="normal"><primary>xxxxx_xxxxxx_xxxx( ) xxxxxxxx (C API)</primary></indexterm> -Uxx xxxx xx xxxxxxxxx xxxxxxx xxx MxSQL xxxxxx xxxxxxx xx xxxx xxx x xxxxxxxx xxxxxxxxxxx. Ix xxxxxxx d xx xxxx, d xx xxx.</para> - <programlisting format="linespecific">... -xx(xxxxx_xxxxxx_xxxx( )) - { xxxxxx("Sxxx Exxxxxxxxxx \x"); } -xxxx{ xxxxxx("Uxxxxx Exxxxxxxxxx \x"); } -...</programlisting> - </refsect1> - </refentry> - <refentry id="ch17-77079"> - <refmeta> - <refentrytitle>xxxxx_xxx_xxxxxx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxxx_xxx_xxxxxx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">MYSQL_RES *xxxxx_xxx_xxxxxx(MYSQL *xxxxx)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch17-74-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-17-ITERM-4603" significance="normal"><primary>xxxxx_xxx_xxxxxx( ) xxxxxxxx (C API)</primary></indexterm><indexterm id="mysqlian-CHP-17-ITERM-4604" significance="normal"><primary>xxxxx_xxxxx_xxxxxx( ) xxxxxxxx (C API)</primary></indexterm><indexterm id="mysqlian-CHP-17-ITERM-4605" significance="normal"><primary>xxxxx_xxx_xxxxxx( ) xxxxxxxx (C API)</primary></indexterm> -Uxx xxxx xx xxxx xxx xxxxxxx xx x xxxxx, xxx xxx xx x xxxx. Txxx xxxxxxxxx xx x xxx xxxxxxx xx xxx <literal moreinfo="none">xxxxx_xxxxx_xxxxxx( )</literal> xxxxxxxx, xxxxxx xxxx xxxxxxxx xxxxxxxxx xxx xx xxx xxxx xx xxxx xxx xxxxxx xx xxx xxxxx xxx. Txx <literal moreinfo="none">xxxxx_xxx_xxxxxx( )</literal> xxxxxxxx xx xxxx xxxx xxxx x xxxxxxx xxx xxxxx xx xxxxx xxx xxxxx xx xxxxxxxxxx xx x xxxxxxx. Wxxx xxxx xxxxxxxx, xxxxxxxxxx xxx xx xxxxxxx xxxxxx, xxxxxxx xxxxxx xx xxxx xxx xxx xx xxx xxxx xx xx xxxxxxxxx. Oxx xxxxxxxx xx xxxx xxxxxxxx xx xxxx xxxxx xxxxxxx xxxxxx xx xxx xxxxx xxx xxxxxxx xxxx xxx xxxxx xxxxx xxx xx xxx. Axxx, xxxxxxxxx xxxx xx <literal moreinfo="none">xxxxx_xxxx_xxxx( )</literal> xxxxxx xx xxxx xxx xxx xxxxxx xxxxx xxxx xxxxxxx <literal moreinfo="none">xxxxx_xxx_xxxx( )</literal> xx xxxxxxx, xxxxxxx xxx xxxxxxxx xxxx xx xxx xxxxxxx xxx xx xxxxxxx.<indexterm id="mysqlian-CHP-17-ITERM-4606" significance="normal"><primary>xxxxx_xxxx_xxxx( ) xxxxxxxx</primary><secondary>C API</secondary></indexterm> -<indexterm id="mysqlian-CHP-17-ITERM-4607" significance="normal"><primary>xxxxx_xxx_xxxx( ) xxxxxxxx</primary><secondary>C API</secondary></indexterm></para> - <programlisting format="linespecific">... -xxxxx_xxxxx(xxxxx, "SELECT * FROM xxxxxxx"); -xxxxxx = xxxxx_xxx_xxxxxx(xxxxx); -xxx_xxxxxx = xxxxx_xxxxx_xxxxx(xxxxx); -xxxxx((xxx = xxxxx_xxxxx_xxx(xxxxxx)) != NULL) - { - xxx(x = d; x < xxx_xxxxxx; x++) - { - xxxxx = xxxxx_xxxxx_xxxxx_xxxxxx(xxxxxx, x); - xxxxxx("%x: %x, ", xxxxx->xxxx, xxx[x]); - } - xxxxxx("\x"); -} -xxxxx_xxxx_xxxxxx(xxxxxx); -...</programlisting> - <para><indexterm id="mysqlian-CHP-17-ITERM-4608" significance="normal"><primary>xxxxx_xxxxx_xxx( ) xxxxxxxx</primary><secondary>C API</secondary></indexterm><indexterm id="mysqlian-CHP-17-ITERM-4609" significance="normal"><primary>xxxxx_xxx_xxxxxx( ) xxxxxxxx (C API)</primary></indexterm> -Sxx xxx xxxxxxx xxx xxx <literal moreinfo="none">xxxxx_xxxxx_xxx( )</literal> xxxxxxxx xxx xx xxxxxxxxxxx xxxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch17-77080"> - <refmeta> - <refentrytitle>xxxxx_xxxxxxx_xxxxx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxxx_xxxxxxx_xxxxx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">xxxxxxxx xxx xxxxx_xxxxxxx_xxxxx(MYSQL *xxxxx)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch17-75-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-17-ITERM-4610" significance="normal"><primary>xxxxx_xxxxxxx_xxxxx( ) xxxxxxxx (C API)</primary></indexterm><indexterm id="mysqlian-CHP-17-ITERM-4611" significance="normal"><primary>IGNORE xxxx</primary><secondary>INSERT xxxxxxxxx</secondary></indexterm><indexterm id="mysqlian-CHP-17-ITERM-4612" significance="normal"><primary>INSERT xxxxxxxxx</primary><secondary>IGNORE xxxx</secondary></indexterm> -Txxx xxxxxxx xxx xxxxxx xx xxxxxxx xxxxxxxx xxxxxxxxxxx xxxx xxx xxxxxxxx xxxxx. Txxx xxx xx xxxxxx, xxx xxxxxxxx, xxxx xxxxxxxxxx xxxxxxxx <literal moreinfo="none">INSERT</literal> xxxxxxxxxx xxxx xxx <literal moreinfo="none">IGNORE</literal> xxxx.</para> - <programlisting format="linespecific">... -MYSQL *xxxxx; -xxxxx = xxxxx_xxxx(NULL); -xxxxx_xxxx_xxxxxxx(xxxxx,"xxxxxxxxx","xxxx","xxxxxxxx", - "xxxxxxxxxxxx",d,NULL,d); -... -xxxxxxxx xxx xxxxxxxx = xxxxx_xxxxxxx_xxxxx(xxxxx); -xxxxxx("Nxxxxx xx Wxxxxxxx: %x \x", xxxxxxxx); -...</programlisting> - </refsect1> - </refentry> - </sect1> - <sect1 id="mysqlian-CHP-17-SECT-3"> - <title>C API Dxxxxxxxx - C APIxxxxxxxxxxxxxxxxxxC API -Hxxx xx x xxxx xx C API xxxxxxxxx xxxx xxx xxxxx.x xxxxxx xxxx: - - - - MYSQL - - - -A xxxxxxxx xxxxxx xxxxxxxxx xxxxxxx xx xxxxx_xxxx( ) xxx xxxxxxxx xxxx xxxxx_xxxxx( ).MYSQL xxxxxxxx (C API)xxxxx_xxxx( ) xxxxxxxx (C API) - - - - - - MYSQL_RES - - - -A xxxxxxxxx xxx x xxxxxxx xxx xxxx xx SQL xxxxx. Txxx xxxxxxxxx xx xxxx xx xxxxx xxxxxxxxx xxx xx xxxxxxxx xxxx xxxxx_xxxx_xxxxxx().MYSQL_RES xxxxxxxx (C API) -xxxxx_xxxx_xxxxxx( ) xxxxxxxxC API - - - - - - MYSQL_ROW - - - -A xxxxxxxxx xxx xxxxxxx x xxx xx xxxx xxxx x xxxxxxx xxx. Txx xxxx xx xxxxxxxxx xxxx xxxx xxxxxxxxx xx xxxxx xxx xxxxx_xxxxx_xxx( ) xxxxxxxx.MYSQL_ROW xxxxxxxx (C API)xxxxx_xxxxx_xxx( ) xxxxxxxxC API - - - - - - MYSQL_FIELD - - - -A xxxxxxxxx xxx xxxxxxx xx xxxxx xx xxxxxxxxxxx xxxxx x xxxxx xx x xxxxxxx xxx. Txx xxxxx xxx xx xxx xxxx xxx xxxxx_xxxxx_xxxxx( ) xxxxxxxx. Txx xxxxxxxx xxxxxxx xxxx, xxxxx, xxx xxx xxx xxxxxxx xxxxx.MYSQL_FIELD xxxxxxxx (C API)xxxxx_xxxxx_xxxxx( ) xxxxxxxxC API - - - - - - MYSQL_FIELD_OFFSET - - - -Uxxx xxx xxxxxxxxx x xxxxxxx xxxxxxxx xxx x xxxxxxx xxx. Txx xxxxxx xxxxx xxx xx xxxxxxxxx xx xxx xxxxx_xxx_xxxx( ) xxxxxxxx xxx xxxxxxxx xxxx xxxxx_xxx_xxxx( ).MYSQL_FIELD_OFFSET xxxxxxxx (C API)xxxxx_xxx_xxxx( ) xxxxxxxx (C API) -xxxxx_xxx_xxxx( ) xxxxxxxx (C API) - - - - - - xx_xxxxxxxxx - - - -A xxxxxxxx xxxx xxx xxxxxxx xxx xxxxxx xx -xxxx xxx xxxxxxxxx xxxx xx xxxxx_xxxxxxxx_xxxx( ), xxxxx_xxx_xxxx( ), xxx xxxxx_xxxxxx_xx( -). Tx xxxxx xxx xxxxx xx x xxxxxxxx xxxxx xxxx xxxx, xxx -xxxxx xxxxxx xx xxxxxx xx xxxxxxx xxxxxxxx xxxx xxxx xxx xxxxxxxx xxxx xxxx.xx_xxxxxxxxx xxxxxxxx (C API)xxxxx_xxxxxx_xx( ) xxxxxxxxC API -xxxxx_xxx_xxxx( ) -xxxxxxxxC -API -xxxxx_xxxxxxxx_xxxx( ) -xxxxxxxxC -API -C APIxxxxxxxxx -xxxxxxxxxC API - - - - - - - - Pxxx API - DBI xxxxxxPxxx xxxxxxxx -Txx xxxxxxx xxxxxx xx xxxxxxxxxx xx MxSQL xxxx xxx xxxxxxxxxxx xxxxxxxx Pxxx xx xx xxx xxx Pxxx DBI xxxxxx, xxxxx xx xxxx xx xxx xxxx Pxxx xxxxxxxxxxxx. Yxx xxx xxxxxxxx xxxx Pxxx xxx xxx DBI xxxxxx xxxx CPAN (). Txxx xxxxxxx xxx xxxxxxx xxxx xxx xxxxxxxxxx xxxx xxx xxxxxx xxx Pxxx xxxxxxxxx xxxxx xxxx DBI.xx xxx xxxx xxx xxxxxx xxx x xxxxx xxxxxxxxx xx Pxxx. Ixx xxxxx, xxxxxxxxx, xx xx xxx xx xxxxxxx xx MxSQL, xxx SQL xxxxxxxxxx, xxx xxxxxxxxxxx xxxxxxxx xxxx xxxx MxSQL xxxxx Pxxx xxx DBI. Txx xxxxxxx xxxxxx xxxx x xxxxxxxx xx xxxxx Pxxx xxxx MxSQL. Ix’x xxxxxxxx xx x xxxx xx Pxxx DBI xxxxxxx xxx xxxxxxxxx xxxx xxxx MxSQL, xxxx xxx xxxxxx xxx xxxxxxxxxxxx xx xxxx xxx xxxxxxxx xxx xxxx. Fxx xxx xxxxxxxx xxxx, xxx xxxxxxxx xx x xxxxxxxxx’x xxxxxxxxx xx xxxx. - - Uxxxx Pxxx DBI xxxx MxSQL - Pxxx DBIxxxxxxxx -Txxx xxxxxxx xxxxxxxx xxxxx xxxxx xxxx xxx xxx xxxxxxx xxxx Pxxx DBI. Ix’x xxxxx xx x xxxxxx xxxxxxxx xxx xxxxxxx xxxxxxx xxxx xxx Pxxx DBI xxx MxSQL. - - Cxxxxxxxxx xx MxSQL - Tx xxxxxxxxx xxxx MxSQL, xxxxx xxx xxxx xxxx xxx DBI xxxxxx xxx xxxx xxxxxxx xx MxSQL. Tx xxxx x xxxxxxxxxx xx xxx xxxxxxxxx xxxxxxxx xxxxx xxx Pxxx DBI, xxxx xxx xxxxxxxxx xxxxx xxx xxxxxx xx x Pxxx xxxxxxx: - #!/xxx/xxx/xxxx -x -xxx xxxxxx; - -xxx DBI; - -xx $xxx = DBI->xxxxxxx ("DBI:xxxxx:xxxxxxxxx:xxxxxxxxx","xxxxxxx","xx_xxxdddd") - xx xxx "Cxxxx xxx xxxxxxx xx xxxxxxxx: " - . DBI->xxxxxx; - Txx xxxxx xxx xxxxx xxxxx Pxxx xxx xxx x xxxxxx xxxxxxxxx xxx xxxxxxxx xxxxxxxxxxx xxxxxx (xxx xxxxxx). Txx xxxxx xxxx xxxxx xxx DBI xxxxxx. Txx xxxx xxxxxxxxx (xxxxxx xxxx xxxx xxxx xxx xxxx xxxx) xxxx xx x xxxxxxxx xxxxxx xxxx xxxxxxxxx xxx xxxxxxxx xxxxxx (xxxxx), xxx xxxx xx xxx xxxxxxxx (xxxxxxxxx), xxx xxxxxxxx (xxxxxxxxx), xxx xxxxxxxx, xxx xxx xxxxxxxx. Ixxxxxxxxxxx, xxx xxxx xx xxx xxxxxxxx xxxxxx xxxxx’x xxxx xx xx xxxxxx $xxx--xxxxxxxx xxxx xx. Nxxx, xxx xx xxxxxxxx xxxxxxxx xxxxxxxxx xxxxxxxxxxxx xx xx xxxxxxxxx xx xxx xxxxxxxxxx xxxxx. Txxx xx, xxx xxxxxxx xxxx xxxxxxxxx (xxx) xxx xxxx xxxxxxx xxx xxxxxxx xx xxxxxx xxxxx xxxx xxxxxxxx xxxxx xxxxxxx xx xxxxxxxxx xx xxx xxxxxx xxxxx xxx xxxxxx xxxxxx xxxx xxx DBI--xxx xxx (.) xxxxxx xxxx xxxxxxxx. - - - Exxxxxxxx xx SQL Sxxxxxxxx - xxxxx xxxxxxPxxx API xxx -Mxxxxx x xxxxxxxxxx xx MxSQL xxxx xxxxxx xxxx xxxxxx xx SQL xxxxxxxxx xx xxxxxxxx. Axx SQL xxxxxxxxx xxxx xxx xx xxxxxxx xxxx xxx xxxxx xxxxxx xxx xx xxxxxxxx xxxxxxx xxx API. Cxxxxxxxxx xxx xxxxxxxx xxxxxxx xxx xxxxx x xxxxxxxxx xxxxxxxx xx x xxxxxxxxx, xxx’x xxxx xx xxx xx SQL xxxxxxxxx xxxx xxxxxxxxx x xxxx xx xxxxx xxx xxxxx xxxxxxx xxxx x xxxxx xxxxxxxxxx xxxx xxxxxxxxxxx xxxxx xxxx: - xx $xxx_xxxxx = "SELECT xxxxx, xxxxxx FROM xxxxx"; - -xx $xxx = $xxx->xxxxxxx($xxx_xxxxx); - -$xxx->xxxxxxx(); - Txx xxxxx xxxx xxxx xx x xxxxxxxx ($xxx_xxxxx) xx xxxxx xxx SQL xxxxxxxxx. Txx xxxx xxxx xxxx xxxxxxxx xxx xxxxxxxx xxxxxx xxxxxxx xxxxxxx xxx xxx SQL xxxxxxxxx xx xxxx xxx SQL xxxxxxxxx xxxxxx ($xxx). Fxxxxxx, xxx xxxxx xxxx xxxxxxxx xxx xxxxxxxxx xxxxxx xx xxx xxxxxxxxxx xxxxxx xx xxx DBI xxxxxx. - - - Cxxxxxxxx Dxxx - xxxxxxxxxxxxx -Hxxxxx xxxxxxxxx xx MxSQL xxx xxxxxxx xx SQL xxxxxxxxx, xxxx xxxxxxx xx xx xxxxxxx xxx xxxx xxxxxxx xxx xx xxxxxxx xxxx. MxSQL xxxxxxx xxx xxxxxxxxx xxxx xx Pxxx xx xxxxxxx xxx xxxx, xx xx xxxxx xxxx xxx xxxxx xxxxxx, xxx xxxxxxx xxxxx xxxxxxxxxx. Ix Pxxx, xxxx xxx xxxxxxxx xxx xx x xxxx xx MxSQL xxx xxx xxxxxxxxx xxxxxxx xx x xxxx xx Pxxx. Exxx xxx xx xxxxxxxx xx xx xxxxx, xxx xxxxxxx xxx xxxxxx xx xxx xxx. Fxx xxxx xxxxx, xxxx xxxxxxx xxx xx xxxxxx xxxx xxxxxxxxx xxx xxxxxxxx xxx xxxxxxxxxxxx xxxxxx xxxxxxxxx xx xxxxxxxxxx xxx xxxx xxx. Yxx xxx xx xxxx xxxx x xxxxx xxxxxxxxx xxxx xx: - xxxxx (xx($xxxxx, $xxxxxx) = $xxx->xxxxxxxx_xxxxx()) { - xxxxx "$xxxxx ($xxxxxx) \x"; -} - xxxxxxxx_xxxxx( ) xxxxxxxx (Pxxx DBI)xxxxxxxxx xxxx -Ax xxx xxxx xx xxxx xxxxx xx xxxx xx xxx xxxxxxxx_xxxxx( ) xxxxxx xxxxxxxxx xx xxx DBI xxxxxx. Ax xxx xxxx xxxxxxxx, xx xxxxxxx xxxx xxx xx xxxxx xx xxxxxxx, xxx xxxxx xx x xxxx. Txx xxxxx xxxxxxxxx xxxxxxxx xxx xxxxx xx xxxx xxxxxxxxxx xx xxxx xx xxxxx xxx xxxxxx xx xxxxxxx. Txx xxxxx xx xxxx xxxxxxx xx xxxx xxxxx xx xxxxxx xx xxx xxx xxxxxxxxx $xxxxx xxx $xxxxxx--xxx xxxxxxxxxxx xxxx xxxx xxxx. Txxx xxx xxxxxxxxx xxx xxxxxxx xx xxx xxxxxx xxxx x xxxxxxx xxxxxxxxx xxxxx xxxx xxxx. - - - Dxxxxxxxxxxxx xxxx MxSQL - Oxxx xxxxx xx xx xxxxxx x xxxx xx xxxxxxxx x xxxxxxxxxx xx xxx MxSQL xxxxxxxx, xx xxxxxx xx xxxxxxxxxx. Ix xxx xxxxxxxxxx xxxxx xxxx xxx xxx xxxx, MxSQL xxxx xxxxxxxxxx xxxxx xxx xxxxxxxxxx xx xxx xxx. Tx xxxxxxxx xxx xxxxx xx xxxxxx xxxxxxxxx, xxxxxxx, xx’x x xxxx xxxxxxxx xx xxxx xxxxxxxx xxx xxxxx xxxxxxxx xxxx xx: - $xxx->xxxxxx(); -$xxx->xxxxxxxxxx(); - -xxxx(); - Txxx xxxxx xxxx xxxxxx xxx SQL xxxxxxxxx xxxxxx. Ax xxxx xx xxx xxxxxxxxxx xx MxSQL xx xxx xxxxxx, xx xx xxxx xx xx xxx xxxxxx xxxx xxxx, xxxx SQL xxxxxxxxx xxxxxxx xxxxx xx xxxxxx, xxxxxxxx, xxx xxxxxxxx xxxxxxx xxxxxx xx xxxxxxxxx xx MxSQL. Txx xxxx xxxx xx xxxx xxxx xxxx xxx Pxxx xxxxxxx. - - - Txxxxxxxxxx Sxxxxxx Rxxxxxx - xxxxxxxx_xxxxx( ) xxxxxxxx (Pxxx DBI)xxxxxxx xxxxxxxxxxxxxxxxxxxxxx xxxxxxx xxxxxxxxxxxxxxx_xxxxxxxx( ) xxxxxxxx (Pxxx DBI) -Pxxxxxx x xxxxxxx xxxxxx xx xxxxxxxxxx xxxx xxxx MxSQL xxxx xxx xxx xxxx xxxxxxxxx xxxxxxxx xxxxxxxxx xxx xx xxx xxxx xx xxxxxx xxx xxxxx xxx xx x xxxxxxx, xxxx xxxxxxxx xxx xxxxxxxxxx xx MxSQL xx xxx xxxxxx xxxxxxxxxx xxx xxxxxxxxxx xxx xxxx. Pxxxxxx MxSQL xx xxxx xxxxx xxxxxxxxxx xxxx xxx xx xxxxx xxxxxxx xxx xxxx xxxx x xxxxxxx, xxxxxxxxxx xxxx xxxxxxx xxxx xxxxx xxxxxxx xx xxxx. Ix’x xxxxxxxxx xxxxxx xx xxxxxx x xxxxxxx xxxx xxxxxxxxx (xx xxxxx xx xxxxxx) xxx xxxx xxxxx xxx xxxx xxxxxxxxx xx xxxxxx, xxxx xxxxxxx xxxxxx x xxxxxxxxx xxxxxx xx xxx xxxxxxxx xx xxxxxx. Tx xx xxxx, xxxxxxx xx xxxxx xxxxxxxx_xxxxx( ), xxx’x xxx xxx xxxxxxxx_xxxxxxxx( ) xxxxxx. Ax xxx xxxxxx’x xxxx xxxxxxxxx, xx xxxxxxx xxx xx xxx xxxx xx xxxx, xxxx xx xxxx xx xxxxx (xx xxxxx xx xxxx xx xxxx), xxx xxxxxxx xxx xxxxx’x xxxxxxxx xxxxxxxx xx xxxxxx. Hxxx xx x Pxxx xxxxxxx xxxx xxxx xxxxxxxx_xxxxxxxx( ): - #!/xxx/xxx/xxxx -x -xxx xxxxxx; -xxx DBI; - -# Cxxxxxx xx MxSQL xxx xxxxxxx SQL xxxxxxxxx -xx $xxx = DBI->xxxxxxx("DBI:xxxxx:xxxxxxxxx:xxxxxxxxx", - "xxxxxxxx","xxxxxxxx") - || xxx "Cxxxx xxx xxxxxxx xx xxxxxxxx: " - . DBI->xxxxxx; - -xx $xxx_xxxxx = "SELECT xxxxx, xxxxxx - FROM xxxxx"; -xx $xxx = $xxx->xxxxxxx($xxx_xxxxx); -$xxx->xxxxxxx(); - -# Rxxxxxxx xxxxxxxxx xxxxxx xx xxxxxxx -xx $xxxxx = $xxx->xxxxxxxx_xxxxxxxx(); - -$xxx->xxxxxx(); -$xxx->xxxxxxxxxx(); - -# Lxxx xxxxxxx xxxxx xxxxxxxxxx xxxx (xxxxxx) - -xxxxxxx xx $xxxx (@$xxxxx){ - # Pxxxx xxxx xxx xxx xxxxxxx - xx ($xxxxx, $xxxxxx) = @$xxxx; - xxxxx "$xxxxx xx $xxxxxx\x"; -} - -xxxx(); - xxxxxxxx_xxxxxxxx( ) xxxxxxxx (Pxxx DBI) -Ixxxxxx xx xxxxxxxxx xxx xxxxx xxxxxx xxxxxx x xxxx xxxxxxx xxxxxxxxx, xxx xxxxxxx xx xxx SQL xxxxxxxxx xxxxx xxxxxxxx_xxxxxxxx( ) xxx xxxxxx xx xxxxxx. A xxxxxxxxx xxxxxx xx xxx xxxxxxxx xx xxxxx xxxxxxx xx xxxxxx xx xxx $xxxxx xxxxxxxx xxx xxx xxxxxxxxxx xx MxSQL xx xxxx xxxxxx. A xxxxxxx xxxxxxxxx xx xxxxxxxx xx xxxxxxx xxxx xxxxxxxxx xx xxxx xxxxx (x.x., xxxx xxx, xxxx $xxxx) xx xxx xxxxxxx xxxxx. Exxx xxxxxx’x xxxxx xx xxxxxx xxxx xxxxxxxx xxxxxxxxx ($xxxxx xxx $xxxxxx). Txx xxxxxx xx xxx xxxxxxxxx xxx xxxxxxxxx xxxxx xxxxx. Ixxxxxxxxxxx, xx xxxxx xxxx xxxxx xxxxxxxxxx, xxx Rxxxxx Sxxxxxxx’x xxxx Ixxxxxxxxxxx Pxxx (O’Rxxxxx). -xxxxxxx xxxxxxxxx (Pxxx DBI) - - Txxx xxxx xx xxxxx xxxxxxxxxx xx xx SQL xxxxxxxxx xxx xxx xxxxx xxxxxxxxx xx xxxxxxxx xxxxxxxx SQL xxxxxxxxxx xx xx xxxxxxxxx xxxxxxx xxxx xxxxxxxx xxxx xxxx xxxxx, xxxxx xxxxx xxxxxxxxxx xxxxxxx xxxxxxx. Fxx xxxxxxxx, xxxxxxx xxxx xx xxxx xx xxx x xxxx xx xxxxx xxxxxxx xx Hxxxx Jxxxx, xxxxxxx xx xxxxx, xxxx xx xxxxxxxxx, xxx xxxx xx xxxx. Txxx xx xxxx xxxxxx xx MxSQL. Sxxxxxx xxxx xx xxxx xxxx xxx xxxxxxxxx xxxxx xx xxxx xxxxx, xxxxxxxxx xx xxxxxxxxx, xxxx xxxx xxxxxxx xxxxxxxxxxx xx xx xxxxxxxxx xxxxxxx xxx xxxxxxx xxx xxxx xxxxx. Txxx xxxxxxx x xxxxxx xxxxxxxxxxx. Oxx xxx xx xx xxxx xx xx xxx x SELECT xxxxxxxxx xxxx xxxxxxxxx x xxxx xx xxxxx xxxxxxxxx xxx xxxxx xxxxxxxx xxxxxxxxxxx (x.x., xxxxx xxxxxxx xxx xxxxxxxxx xxxxxx) xxx xx xxxx x xxxxxxxxx xx xxx xxxx xx xxxxxx. Txxx xx xxxxx xxxxx xxxxxxx SQL xxxxxxxxx xx xxxxxxxx xxx xxxx xxxxxxxxx xxxx xxx xxxx xxxxx xxx MxSQL xxxxxxxxxx. Wxxx x xxxx xxxxxxx xxxxxxxxx, xx xxxxx xxxx xxxxx x xxxxx xxxxxx xxxxxxxx xx xxx xxxxx’x xxxxxxxx xxxxxxxxx xxxxxxxxxxx xxx xxxx xxxx xxxxxx xxxxxx xx xx xxx xxxx xxxxx. Ix xxxxx xxxxxxxxx xxxx xxxx xxxx: - ... # Sxxxx xxxxxxx xxx xxxxxxx xx MxSQL - -# Rxxxxxxx xxxx xx xxxxxx -xx $xxx_xxxxx = "SELECT xxxxx_xx, xxxxx_xxxx, - xxxxxxx, xxxx, xxxxx, xxxxxxxxx - FROM xxxxxx"; -xx $xxx = $xxx->xxxxxxx($xxx_xxxxx); -$xxx->xxxxxxx(); -xx $xxxxxx = $xxx->xxxxxxxx_xxxxxxxx(); -$xxx->xxxxxx(); - -# Rxxxxxxx xxxx xx xxxxx -xx $xxx_xxxxx = "SELECT xxxxx, xxxxxxxxx, - xxx_xxxx, xxxxx_xx, xxxxxxxx - FROM xxxxx - JOIN xxxxxxxxx USING(xxxx_xx) - WHERE xxxxxx = 'Hxxxx Jxxxx' - ORDER BY xxxxx, xxxxxxxxx, xxx_xxxx"; -xx $xxx = $xxx->xxxxxxx($xxx_xxxxx); -$xxx->xxxxxxx(); -xx $xxxxx = $xxx->xxxxxxxx_xxxxxxxx(); -$xxx->xxxxxx(); -$xxx->xxxxxxxxxx(); - -xxxxxxx xx $xxxxx (@$xxxxxx){ - - xx ($xxxxx_xx, $xxxxx_xxxx, $xxxxxxx, - $xxxx, $xxxxx, $xxxxxxxxx) = @$xxxxx; - - xxxxx "$xxxxx_xxxx\x - $xxxxxxx\x$xxxx, $xxxxx\x - $xxxxxxxxx\x\x"; - - xxxxxxx xx $xxxx (@$xxxxx){ - - xx ($xxxxx, $xxxxxxxxx, - $xxx_xxxx, $xxxxx, $xxx) = @$xxxx; - - xx($xxxxx xx $xxxxx_xx) { xxxx; } - - xxxxx "$xxxxx ($xxxxxxxxx $xxx_xxxx) $xxx\x"; - } -} - -xxxx(); - xxxxxx( ) xxxxxxxx (Pxxx DBI)xxxxxxx xxxxxxx xxxxxxxxxxx_xxxxxxxx( ) xxxxxxxx (Pxxx DBI) -Tx xxxx xxxxx, I xxxx xxx xxx xxxxxxx xxxxx xxx xxx xxxxxxx, xxxxxxx xxxx xxx xxx xxxx xx xx xxx xxxxxxxx xxxxxxx. Ix xxx xxxxx SQL xxxxxxxxx xxxx, xx’xx xxxxxxxxx xxx xxxxx xxxxxxxxxxx. Wxxx xxx xxxxxxxx_xxxxxxxx( ) xxxxxx, xx’xx xxxxxxx xxx xxxxxxxxx xxx xxx xxxx xx $xxxxxx. Ix xx xxxx xx xxxxx xxx xxxx xxxxxxxx, xx xxxxx xxx xxxx x xxxx xxxxxx xxx xxx xxx xxxxxx xxxx. Axxxxxxx xx SQL xxxxxxxxx xxx xxxxxxxx xxxx xxxx xx xxxx, xxx xx xxx xxxx xxxx xx xxxxxx xx xxxxxx. Txxxxxxxx, xx xxx xxxxx xxxxxx( ) xxx, xx xxxx xx xx xxx’x xxxxxxxxxx xxxx MxSQL, xx xxx xxxxx xxxxxxx SQL xxxxxxxxx. Txx xxxx SQL xxxxxxxxx xxxxxxx xxx xxxx xxxxxxxxx xxxxxxxxxxx. Ix xxx SELECT xxxxxxxxx xx’xx xxxx-xxxxxx xx xxx xxxxxx’x xxxx. Wx xxxxxx xxxxxx xxxxxxx xxxx xxxx x xxxxxxxx (x.x., $xxxxxx) xxx xxxxx xxx xxxx xx xxx xxx xxxxxxxx xxxxxxx xx xxx xxxxxxx. Oxxx xxx xxxx xxxxxxxxx xxxxxxxxx xxxxxxxxxxx xxx xxxx xxxxxxxxx, xxx xxxxxxxxxx xx MxSQL xx xxxxxxxxxx xxx xx xxx xxxxx xxxxxxxxxx xxx xxxx xxxx xxx xxx xx xxxx xxxxxxx xxxxxxxxxx. - - xxxxxxx xxxxxxxxx (Pxxx DBI) -Txx xxxxx xxxxxxx xxxxxxxxx xxxxx xxxxxxx xxx xxxx xx xxxx xxxxx xxx xxxxxx xxx xxx xxxxxxx xxxxxxxxxxx. Wxxxxx xxxx xxxx xx xxxxxxx xxxxxxx xxxx xxx xxxxxxxxxx xxx xx xxx xxxxxx xxx xxx xxxxxxxxxx xxxxx. Nxxxxx xxx xx xxxxxxxxx xxx xxx xxxx xxxxxxxxx xxxx. Txx xxxxx xxxxxx xx xxxxx xxx xxx xxxxx xxxxx xx xxxx xxx xxx xxxxx xxxxx xxxxxxxxxxx xx xxxxxxxxx. Txxx xxx xxxxx xxxxx xxx xxx xxxxxxxxx xx xxxxxxxxx xxxx xxx xxxxxxx xxxxx xxx xxx xxxxxxxx xxxxxx xxxx xxxxxxxxx. Ix xxxxx (xxxxx xx xxx xxxxx_xx) xxxxx’x xxxxx xxx xxx xxxx xxx xx, Pxxx xxxxx xx xx xxx xxxx xxxxxx. Txx xxxxxx xx xxxx x xxxxx xxxxxx xx xxxxxxxxx xxx xxx xx xxx xxxxxxxxx xxxxxxxxxxx xxxxxxxxx xx xxxxxxxxx xxx xxx xxxxx xxxxxx xxxxx xx xx xxx xxxx xxxxx’x xxxx. - - Yxx xxx xxxxxxxxxx xxxx xxxx xx xxxx xxxx--xxxx xxxxxxx xxx xxxx xxxxxxx--xxx xxxx xxxxx xxx x xxxxxxx xxxx xx xxx xx xxxxxxx xxxx x xxxx, xxxxxxx xxxxxxx xxx xxxxxxxxxx xx MxSQL xxxx xxxxx xxxxxxxxxx xxxx. Fxx xxxx xxxxxxx xx xxxxx xxx Pxxx DBI xxxx MxSQL, xxx Axxxxxxxx Dxxxxxxxx xxx Txx Bxxxx’x xxxx, Pxxxxxxxxxx xxx Pxxx DBI (O’Rxxxxx). - - - - Pxxx DBI Mxxxxx xxx Fxxxxxxx Rxxxxxxxx - xxxxxxxxxPxxx DBIPxxx DBIxxxxxxx xxx xxxxxxxxx -Txx xxxxxxxxx xx x xxxx xx DBI xxxxxxx xxx xxxxxxxxx xx xxxxxxxxxxxx xxxxx. Txx xxxxxx xxx xx xxxxxxxxxxx xx xxxx xx xxxx xx xxxxxxxx xxx xxxx xx xxxxxxxx. Hxxxxxx, xx xxxx xxxxx, xxx xxxxxxxx xxx xxxx xxxxxxxx xxx xxx xxxxxxx xxxx xxxxxxxxxx, xxxx xx xxx xxxxxxx xx xxx DBI xxxxxx xxx xxx xxxxxxxx xx x xxxxxxxx xxxxxx. Axxx, xx xxxxx xx xxx xxxxxxxxxx xxxxxx xx xxxxxxxx xxxxxxxxx, x xxxx xxxxxx xxxxx xxxxxxxxxx x xxxx xx xxxxx xxx xxx xxxxx xx xxxxx xxxxxxx xx xxxx xxxx xxx xxxx SELECT xxxxxxxxx. Sxx xxx xxxxxxxx xxxxxxxx xxx xx xxxxxxx xx x xxxxxxxx, xxxxxx x xxxxxx Pxxx DBI xxxxxxx. Ix xxxxxxxx xx xxxxxxx xxxxxxxxxx, xxx xxx xxxxxx xxx xxxxxxxx xx xxxxxxx xxxxxxx xx xxxxxxx xxxxxx xxxxxx xxxxxx xxxxxxxxxx. Sxx xxx xxx xx xxxx xxxxxxx xxx x xxxx xx xxxxxxxxxx. - - - - xxxxxxxxx_xxxxxxx( ) - - - xxxxxxxxx_xxxxxxx( ) - - - - DBI->xxxxxxxxx_xxxxxxx([xxxxxx]) - - - - <para><indexterm id="mysqlian-CHP-18-ITERM-4117" significance="normal"><primary>xxxxxxxxx_xxxxxxx( ) xxxxxxxx (Pxxx DBI)</primary></indexterm> -Txxx xxxxxxx x xxxx xx xxxxxxxxx DBD xxxxxxx. Axx xxxxxxx xxxxxxxx xxx xx xxxxxxxxxx xx xxxxxxxxx xxx xxxx <replaceable>xxxxxx</replaceable> xx xx xxxxxxxx.</para> - <programlisting format="linespecific">... -xx @xxxxxxx = DBI->xxxxxxxxx_xxxxxxx(); - -xxxxxxx xx $xxxxxx(@xxxxxxx) { - xxxxx "$xxxxxx \x"; -}</programlisting> - </refsect1> - </refentry> - <refentry id="ch18-77012"> - <refmeta> - <refentrytitle>xxxxx_xxxx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxxx_xxxx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">$xxx->xxxxx_xxxx( )</synopsis> - </refsynopsisdiv> - <refsect1 id="ch18-01-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-18-ITERM-4118" significance="normal"><primary>xxxxx_xxxx( ) xxxxxxxx (Pxxx DBI)</primary></indexterm><indexterm id="mysqlian-CHP-18-ITERM-4119" significance="normal"><primary>xxxxxxxx( ) xxxxxxxx (Pxxx DBI)</primary></indexterm><indexterm id="mysqlian-CHP-18-ITERM-4120" significance="normal"><primary>xxxxxx( ) xxxxxxxx (Pxxx DBI)</primary></indexterm> -Txxx xx xxxx xxx xxxxxxxxxxxx xxxx x xxxxxxxx. Ix xxxxxxxxxxx xxxxx <literal moreinfo="none">AxxxCxxxxx</literal> xxx xxxxx <literal moreinfo="none">xxxxxx( )</literal> xx <literal moreinfo="none">xxxxxxxx( )</literal> xx xxx. Txxxx xxx xx xxxxxxxxx xx xxxx xxxxxxxx xxxxxx xxxxxx. Ix MxSQL, xxxx xx xxxxxxx xx xxxxxxxxx xxx SQL xxxxxxxxx <literal moreinfo="none">BEGIN</literal> xx <literal moreinfo="none">BEGIN WORK</literal>. Ix xxxx xxxx xx xxxxxxxxx xxxx x xxxxxxxxxxxxx xxxxxxx xxxxxx xxxx IxxxDB. Ax xxx xxxx xx xxxx xxxxxxx, xxxxx xx x xxx xx xxxx xxxxxxxx xx xxxx xx xxxxxxx xx xxxxx xx <literal moreinfo="none">AUTOCOMMIT</literal> xx xxxxxxx xxx. Txx xxxxx xxxxxx, <emphasis>Txxxxxxxxxxx xxx xxxxxxxxx xx xxxxxxxx...</emphasis>.</para> - </refsect1> - </refentry> - <refentry id="ch18-77013"> - <refmeta> - <refentrytitle>xxxx_xxx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxx_xxx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">$xxx->xxxx_xxx(<replaceable>xxxxx</replaceable>, \$<replaceable>xxxxxxxx</replaceable>[, \%<replaceable>xxxxx</replaceable>|<replaceable>xxxx</replaceable>])</synopsis> - </refsynopsisdiv> - <refsect1 id="ch18-02-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-18-ITERM-4121" significance="normal"><primary>xxxx_xxx( ) xxxxxxxx (Pxxx DBI)</primary></indexterm> -Txxx xxxxxxxxxx xx xxxxx x xxxxxx xxxx x xxxxxxxxx xxxxxx xx x xxxxx xxxxxxxx. Txx xxxxxx xxx xxxxxxx xxxx xxx xxxxxxx xxx xx xxxxxxxxx xxxxx x xxxxx xxxxxx, xxxxxxx xxxxx xxxxxxx xx xxxx.</para> - <programlisting format="linespecific">... -xx $xxx_xxxxx = "SELECT xxxxx, xxxxxx FROM xxxxx"; -xx $xxx = $xxx->xxxxxxx($xxx_xxxxx); -$xxx->xxxxxxx(); - -$xxx->xxxx_xxx(d, \$xxxxx); -$xxx->xxxx_xxx(d, \$xxxxxx); - -xxxxx($xxx->xxxxx()) { - xxxxx "$xxxxx xx $xxxxxx \x"; -}</programlisting> - <para><indexterm id="mysqlian-CHP-18-ITERM-4122" significance="normal"><primary>xxxx_xxxxxxx( ) xxxxxxxx (Pxxx DBI)</primary></indexterm> -Ix xxxx xxxxxxx, xx’xx xxxxxxxxxx xxxx xxx xxxxx (d) xxxxxx xx xxxxx xx xxx xxxxxxxx <replaceable>$xxxxx</replaceable>, xxx xxx xxxxxx xx <replaceable>$xxxxxx</replaceable>. A xxxxxxxx xxxxxxxxx xxx xx xx xxxxxx xxx xxxx xxxx. Tx xxxx xxxxxxxx xxxxxxx xx xxx xxxxxxxxx, xxx <literal moreinfo="none">xxxx_xxxxxxx( )</literal>. -</para> - <para>Tx xxxxxxx xxx xxxxxx xxxx xxxx xx xxx xxx xxx xxxxxxxx--xxxx xxx xxxxxxxxxxx xxxxxx xxx xxxx--xxxxx xxx xxxxxxx SQL xxxxxxxx xxxx xx xxx xxxxx xxxxxxxxx:</para> - <programlisting format="linespecific">... -xx $xxx_xxxxx = "SELECT xxxxx, xxxxxx FROM xxxxx"; -xx $xxx = $xxx->xxxxxxx($xxx_xxxxx); -$xxx->xxxxxxx(); - -$xxx->xxxx_xxx(d, \$xxxxx, { TYPE=>SQL_VARCHAR } ); -$xxx->xxxx_xxx(d, \$xxxxxx, { TYPE=>SQL_VARCHAR } ); - -xxxxx($xxx->xxxxx()) { - xxxxx "$xxxxx xx $xxxxxx \x"; -}</programlisting> - <para>Tx xxx x xxxx xx SQL xxxxxxxx xxxx xxxx xxxxxxxxx xx xxxx xxxxxx, xxx xxx xxxxxxx xxxxx:</para> - <programlisting format="linespecific">#!/xxx/xxx/xxxx -x -xxx DBI; - -xxxxxxx (@{ $DBI::EXPORT_TAGS{xxx_xxxxx} }) { - xxxxxx "%x=%x\x", $_, &{"DBI::$_"}; -}</programlisting> - </refsect1> - </refentry> - <refentry id="ch18-77014"> - <refmeta> - <refentrytitle>xxxx_xxxxxxx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxx_xxxxxxx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">$xxx->xxxx_xxxxxxx(@<replaceable>xxxxxxxxx</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch18-03-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-18-ITERM-4123" significance="normal"><primary>xxxx_xxxxxxx( ) xxxxxxxx (Pxxx DBI)</primary></indexterm> -Txxx xxxxxxxxxx xx xxxxx xxxxxxx xxxx x xxxxxxxxx xxxxxx xx x xxxxx xxxx (<replaceable>@xxxxxxxxx</replaceable>) xx xxxxxxxxx. Txx xxxxxx xxx xxxxxxx xxxx xxx xxxxxxx xxx xx xxxxxxxxx xxxxx x xxxxx xxxxxx xxxxxxx xxxxx xxxxxxx xx xxxx. Txx xxxxxx xx xxxxxxxxx xxxxx xxxx xxxxx xxx xxxxxx xx xxxxxxx xxxxxxxx xxx xxx xxxxxxx xxx xxxxxxxx xx xxxxxxxxx xx xxx xxxxx xxx xxxxxxx xxx xxxxxxxx. -</para> - <programlisting format="linespecific">... -xx $xxx_xxxxx = "SELECT xxxxx, xxxxxx FROM xxxxx"; -xx $xxx = $xxx->xxxxxxx($xxx_xxxxx); -$xxx->xxxxxxx(); - -$xxx->xxxx_xxxxxxx(\$xxxxx, \$xxxxxx); - -xxxxx($xxx->xxxxx()) { - xxxxx "$xxxxx xx $xxxxxx \x"; -}</programlisting> - </refsect1> - </refentry> - <refentry id="ch18-77015"> - <refmeta> - <refentrytitle>xxxx_xxxxx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxx_xxxxx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">$xxx->xxxxx(<replaceable>xxxxx</replaceable>, <replaceable>xxxxxx</replaceable>[, <replaceable>\%xxxx</replaceable>|<replaceable>xxxx</replaceable>])</synopsis> - </refsynopsisdiv> - <refsect1 id="ch18-04-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-18-ITERM-4124" significance="normal"><primary>xxxx_xxxxx( ) xxxxxxxx (Pxxx DBI)</primary></indexterm> -Txxx xxxxxxxxxx xx xxxxx x xxxxx xx xx SQL xxxxxxxxx xx x xxxxxxxxxxx. Pxxxxxxxxxxx xxx xxxxxxxxx xx <literal moreinfo="none">?</literal> xx SQL xxxxxxxxxx xxx xxx xxxxxxxx xx xxx xxxxx xxxx xxxxxx xx xxx xxxxxxxxx, xxxxxxxx xxxx d. Txx xxxxx xxxxxxxx xxxxxxxxx xxxxx xxxxxxxxxxx xx xxxxxxx xxxx x xxxxx xxxxx, xxx xxxxxx xxxxxxxx. Txx xxxxxxxx xxx xx xxxxxxxxx xx x xxxxx xxxxxxxx.</para> - <programlisting format="linespecific">... -xx $xxx_xxxxx = "SELECT xxxxx, xxxxxxxxx - FROM xxxxx WHERE xxxxxx = ? - AND xxxxxx = ?"; -xx $xxx = $xxx->xxxxxxx($xxx_xxxxx); -$xxx->xxxx_xxxxx(d, $xxxxxx); -$xxx->xxxx_xxxxx(d, $xxxxxx); -$xxx->xxxxxxx(); -xxxxx(xx ($xxxxx,$xxxxxxxxx) = $xxx->xxxxxxxx_xxxxx()) { - xxxxx "$xxxxx ($xxxxxxxxx) \x"; -}</programlisting> - <para>Ix xxxx xxxxxxx, x xxxxxxxxxxx (x xxxxxxxx xxxx) xx xxxxx xx xxx SQL xxxxxxxxx xxx xx xxxxxxxx xxxx xxx xxxxxx xxxxx xx <literal moreinfo="none">$xxxxxx</literal> xxxxx <literal moreinfo="none">xxxx_xxxxx( )</literal>. Txxx xxxx xx xxxx xxxxxx xxx <literal moreinfo="none">xxxxxxx( )</literal> xx xxxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch18-77016"> - <refmeta> - <refentrytitle>xxxx_xxxxx_xxxxx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxx_xxxxx_xxxxx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">$xxx->xxxx_xxxxx_xxxxx(<replaceable>xxxxx</replaceable>, {<replaceable>xxxxx_xxx</replaceable>|<replaceable>xxxxxx</replaceable>}[, \%<replaceable>xxxxx</replaceable>|<replaceable>xxxx</replaceable>])</synopsis> - </refsynopsisdiv> - <refsect1 id="ch18-05-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-18-ITERM-4125" significance="normal"><primary>xxxx_xxxxx_xxxxx( ) xxxxxxxx (Pxxx DBI)</primary></indexterm><indexterm id="mysqlian-CHP-18-ITERM-4126" significance="normal"><primary>xxxxxxx( ) xxxxxxxx (Pxxx DBI)</primary><secondary>xxxx_xxxxx_xxxxx( ) xxx</secondary></indexterm> -Txxx xxxxxxxxxx xx xxxxx xx xxxxx xx xxxxxx xx xx SQL xxxxxxxxx xxxxxx x <literal moreinfo="none">xxxxxxx( )</literal> xxxxx xxxxxxxxxxxx. Txx xxxxx xxxxxxxx xxxxxxxxx xxxxx xxxxxxxxxxx xx xxxxxxx xxxx xxx xxxxx xx xxxxx xxxxxx, xxx xxxxxx xxxxxxxx. Txx xxxxxx xxx xxxxxxx xxxx xxx xxxxxxx xxx xx xxxxxxxxx xxxxx x xxxxx xxxxxx. Axxxxxxxxx xxx xx xxxxx xx xxx xxxxxxxx xxxxx xx x xxxxx xxxxxxxx. -</para> - <programlisting format="linespecific">... -xx @xxx_xxxxx = ('Gxxxxx Gxxxx', 'Vxxxxxxx Wxxx'); -xx @xxx_xxxxx = ('Gxxxxx Gxxxxx', 'Vxxxxxxx Wxxxx'); - -xx $xxx_xxxxx = "UPDATE xxxxx - SET xxxxxx = ?, - xxxxxx = ? - WHERE xxxxxx = ?"; - -xx $xxx = $xxx->xxxxxxx($xxx_xxxxx); - -$xxx->xxxx_xxxxx_xxxxx(d,\@xxx_xxxxx); -$xxx->xxxx_xxxxx_xxxxx(d, 'xxxxxx'); -$xxx->xxxx_xxxxx_xxxxx(d, \@xxx_xxxxx); - -$xxx->xxxxxxx_xxxxx(xxxxx); - -$xxx->xxxxxx();</programlisting> - <para>Nxxxxx xx xxx xxxxxxx xxxx xxxx xxx xxxxx xxxxx xxxxxxxx xxx xx xxx xxxxxx xxxxx, xxx xxxxxxxxx xxxx. Ix’x xxx x xxxxxxx xx x xxxxxxxx xx xxx. Ixxxxxx, xx’x xxx xx xxx xxxxxx xx xx xxxx xxx xxx xxxxx xxxxxxxxxxx xx xxx SQL xxxxxxxxx. Txx xxxxxx xxxxx xxxxx xxxxxxxx xxx xxx xxxxx xx xxx xxxx xxxxx xx xx xxxx xx xxx <literal moreinfo="none">WHERE</literal> xxxxxx. Ixxxxxxxxxxx, xxx xxxx-xxxxx xxxxxx xxxx xxxxx xxxxx xxxx xx xxxxxxxxx xxxxx xx xxxxx xxxxxxxxx xxxx xx xxxxx. Txx <literal moreinfo="none">xxxxxx xxxx_xxxxx_xxxxx()</literal> xxx xxxxx xxxx xxxx x xxxxxx (x.x., <replaceable>'xxxxxx'</replaceable>). Txxx xxxxx xxxx xx xxxx xxx xxx xxxx xxxxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch18-77017"> - <refmeta> - <refentrytitle>xxxx_xxxxx_xxxxx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxx_xxxxx_xxxxx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">$xxx->xxxx_xxxxx_xxxxx(<replaceable>xxxxx</replaceable>, \<replaceable>$xxxxx</replaceable>, <replaceable>xxx_xxxxxx</replaceable>[, \%<replaceable>xxxxx</replaceable>|<replaceable>xxxx</replaceable>])</synopsis> - </refsynopsisdiv> - <refsect1 id="ch18-06-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-18-ITERM-4127" significance="normal"><primary>xxxx_xxxxx_xxxxx( ) xxxxxxxx (Pxxx DBI)</primary></indexterm> -Txxx xxxxxxxxxx xx xxxxx x xxxxx xx xx SQL xxxxxxxxx xxxxx x xxxxxxxxxxx. Txx xxxxx xxxxxxxx xxxxxxxxx xxxxx xxxxxxxxxxx xx xxxxxxx xxxx x xxxxx xxxxx, xxx xxxxxx xxxxxxxx. Ix xxxx xx xxxxx xx x xxxxxxxxx (x.x., x xxxxxxxx xxxxxxxx xx x xxxx-xxxxx) Txx xxxxxx xxx xxxxxxx xxxx xxx xxxxxxx xxx xx xxxxxxxxx xxxxx x xxxxx xxxxxx. Txx xxxxxxx xxxxxx xx x xxxxx xx xxxxx xx xxx xxxxx xxxxxxxx. Axxxxxxxxx xxx xx xxxxx xx xxx xxxxxxxx xxx xx xxxxx xx x xxxxxx xxxxxxxx. Txxx xxxxxxxx xx xxxxxxxxx xxxx xxxx xxxxxx xxxxxxxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch18-77018"> - <refmeta> - <refentrytitle>xxx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">$xxxxxx->xxx($<replaceable>xxxxxx_xxxx</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch18-07-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-18-ITERM-4128" significance="normal"><primary>xxx( ) xxxxxxxx (Pxxx DBI)</primary></indexterm> -Txxx xxxxxxx xxxx xx xxx xxxxxx xxxxx xx xxxxxxxxxxx xx xxx xxxxxx. Yxx xxx xxx xxxx xxxxxx xxxxxx x xxxxxxx xx xxxxxxxxx xx x xxxxxx xxx x xxxxxx xx xxxxxxxxx. Ix xxx xxxxxxx xxxxx, xxxxx xxxxxxxx xxx xxxxxxx, xxxxxxx xxx xxxxxxxx xxx xxxxxxxxx xxxxxxx, xx xxx xxx <literal moreinfo="none">xxx( )</literal> xxxxxx: -</para> - <programlisting format="linespecific">... -xx @xxxxxxx = xx(xxxxxxxx_xxxxx xxxxxxxx_xxxxxx); - -xxxxxxx $xxxxxx(@xxxxxxx) { - xx($xxx->xxx($xxxxxx)) { xxxxx "\$xxx->$xxxxxx xx xxxxxxxxxxx.\x"; } - xxxx { xxxxx "\$xxx->$xxxxxx xx xxx xxxxxxxxxxx.\x\x"; } -}</programlisting> - <para>Bxxxx xxx xxx xxxxxxx xx xxxxxxx xxxx xxxx xx xxx xxxxxxx. Nxxxxx xxxx xxx xxxxxx, xxxxxxxx xxxxxx xxxxx xx xxx xxxxxxxxx.</para> - <programlisting format="linespecific">$xxx->xxxxxxxx_xxxxx xx xxxxxxxxxxx. -$xxx->xxxxxxxx_xxxxxx xx xxx xxxxxxxxxxx.</programlisting> - </refsect1> - </refentry> - <refentry id="ch18-77019"> - <refmeta> - <refentrytitle>xxxxx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxxx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">$xxx->xxxxx([\%<replaceable>xxxxx</replaceable>])</synopsis> - </refsynopsisdiv> - <refsect1 id="ch18-08-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-18-ITERM-4129" significance="normal"><primary>xxxxx( ) xxxxxxxx (Pxxx DBI)</primary></indexterm> -Uxx xxxx xx xxxxxx x xxx xxxxxxxx xxxxxx xx xxxxxxx xxx xxxxxxxxxx xx xxx xxxxxxxx xxxxxx xxxxxxx xxx xxxxxx. Axxxxxxxxx xxxxxxxxxx xxx xx xxxxx xxxx xxx xxxxxx. Txxxx xxxxxx xxxx xxxxxxx xxx xxxxxxxx xxxxxx. Axx xxxxxxxxxx xxxxx xx xxx xxxxxxxx xxxxxxxx xxxxxx xxxx xx xxxx xx xxx xxx xxxxxx.</para> - <programlisting format="linespecific">xx $xxxd = $xxx->xxxxx({AxxxCxxxxx=>d});</programlisting> - <para>Txx xxxxx xx xxxx xxxxxx xx xxxx xxx xxx xxxxxx x xxxxxx MxSQL xxxxxxx xxxx xx xxxxxxx xxxxxx xx xxxxxxx xxx xxxxxxxxxx xxxx xxxxxxx. Yxx xxx xxxx xxx xx xx xxx <literal moreinfo="none">xxxxxxxxxx( )</literal> xxx xxxxxxx xxxx xxxxxx xxx xxx xxxxxxxx xxxxxxxx xxxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch18-77020"> - <refmeta> - <refentrytitle>xxxxxx_xxxx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxxxx_xxxx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">$xxx->xxxxxx_xxxx($<replaceable>xxxxxxx</replaceable>, $<replaceable>xxxxxxxx</replaceable>, $<replaceable>xxxxx</replaceable>, $<replaceable>xxxxxx</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch18-09-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-18-ITERM-4130" significance="normal"><primary>xxxxxx_xxxx( ) xxxxxxxx (Pxxx DBI)</primary></indexterm> -Txxx xxxxxxx x xxxxxxxxx xxxxxx xxx xxxxxxxx xxxxxxxxxxx xxxxx xxxxxxx xx x xxxxx. Bxxxx xx xx xxxxxxx xx xx’x xxx:</para> - <programlisting format="linespecific">... -xx $xxx = $xxx->xxxxxx_xxxx(xxxxx, 'xxxxxxxxx', 'xxxxx', '%'); -xx $xxx_xxxx = $xxx->xxxxxxxx_xxxxxxxx(); - -xxxxxxx xx $xxxx(@$xxx_xxxx) { - xxxxxxx (@$xxxx) { - xx($_) { xxxxx $_ . "|"; } - } - xxxxx "\x"; -}</programlisting> - <para>Txxx xxxxxxx xxxxxxx xxxx xxxxxxx x xxxx xx xxxxxxx xx xxx <replaceable>xxxxx</replaceable> xxxxx xx xxx <replaceable>xxxxxxxxx</replaceable> xxxxxxxx. Bxxxx xx x xxxxxx xxxxx xx xxx xxxxxxx xx xxx xxxxxxx:</para> - <programlisting format="linespecific">xxxxxxxxx|xxxxx|xxxx_xx|d|INT|dd|dd|d|d|NO|d|xxx(dd)| -xxxxxxxxx|xxxxx|xxxxx|dd|VARCHAR|dd|d|dd|d|YES|xxxxxxx(dd)| -...</programlisting> - <para>Txx xxxxxx xx xxx xxxxxx xx xxxxx xxx: <literal moreinfo="none">TABLE_CAT</literal> (xxxxxxx xxxxx), <literal moreinfo="none">TABLE_SCHEM</literal>, <literal moreinfo="none">TABLE_NAME</literal>, <literal moreinfo="none">COLUMN_NAME</literal>, <literal moreinfo="none">DATA_TYPE</literal>, <literal moreinfo="none">TYPE_NAME</literal>, <literal moreinfo="none">COLUMN_SIZE</literal>, <literal moreinfo="none">BUFFER_LENGTH</literal>, <literal moreinfo="none">DECIMAL_DIGITS</literal>, <literal moreinfo="none">NUM_PREC_RADIX</literal>, <literal moreinfo="none">NULLABLE</literal>, <literal moreinfo="none">REMARKS</literal>, <literal moreinfo="none">COLUMN_DEF</literal>, <literal moreinfo="none">SQL_DATA_TYPE</literal>, <literal moreinfo="none">SQL_DATETIME_SUB</literal>, <literal moreinfo="none">CHAR_OCTET_LENGTH</literal>, <literal moreinfo="none">ORDINAL_POSITION</literal>, <literal moreinfo="none">IS_NULLABLE</literal>.</para> - </refsect1> - </refentry> - <refentry id="ch18-77021"> - <refmeta> - <refentrytitle>xxxxxx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxxxx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">$xxx->xxxxxx( )</synopsis> - </refsynopsisdiv> - <refsect1 id="ch18-10-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-18-ITERM-4131" significance="normal"><primary>xxxxxx( ) xxxxxxxx (Pxxx DBI)</primary></indexterm> -Txxx xxxxxxx xx xxxxx xxxxxxxxx xxxxxxx xx x xxxxxxxx, xxx xxxxxxxxxxxxx xxxxxx (x.x., IxxxDB). Ix’x xxxxxxxxxxx xx <literal moreinfo="none">AxxxCxxxxx</literal> xx xxxxxxx xxxxxxx; x xxxxxxx xxxxxxx xxxxxx "<emphasis>Cxxxxxx xxxxxxxxxxx xxxxx AxxxCxxxxx xx xx</emphasis>" xxxx xx xxxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch18-77022"> - <refmeta> - <refentrytitle>xxxxxxx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxxxxx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">DBI->xxxxxxx(DBI:<replaceable>xxxxxx</replaceable>:<replaceable>xxxxxxxx</replaceable>[:<replaceable>xxxx</replaceable>:<replaceable>xxxx</replaceable>], - <replaceable>xxxxxxxx</replaceable>, <replaceable>xxxxxxxx</replaceable>[, \%<replaceable>xxxxx</replaceable>])</synopsis> - </refsynopsisdiv> - <refsect1 id="ch18-11-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-18-ITERM-4132" significance="normal"><primary>xxxxxxx( ) xxxxxxxx (Pxxx DBI)</primary></indexterm> -Uxx xxxx xxxxxx xx xxxxxxxxx x xxxxxxxxxx xx MxSQL xxx xx xxxxxx xxx xxxxxxx xxxxxxxx. Txx xxxxx xxxxxxxx xx x xxxx xx xxxxxxxx xxxxxx xxxxxxxxx xx xxxxxx: xxx xxxxxx (<literal moreinfo="none">DBI</literal>), xxx xxxxxx (<literal moreinfo="none">xxxxx</literal>), xxx xxx xxxxxxxx xxxx. Txx xxxxxxxx xx IP xxxxxxx xxx xxxx xxxxxx xxx xxxxxxxx. Txx xxxxxx xxxxxxxx xx xxx xxxxxxxx xxx xxx xxxxx xx xxx xxxx’x xxxxxxxx. Yxx xxx xxxxxxxxxx xxx xx xxxxx xxxxxxxx xx xxxxxx xxxx xxxxxxxxx--xxxx xx xxxx xx xxxxxxx xxxx xxxxxxxx xxxxxxxxxx xxxxxxxxx xxxx xxxxxx xxxxxx xx xxxx xxx xxxxxx xxxx xx xxxxxxxxxxxx. Fxxxxxx, xxxxxxxxxx xxx xx xxxxx xx xxx xxxxxx xxxxxxxx. Bxxxx xx xx xxxxxxx xx xxxx xxxxxx: -</para> - <programlisting format="linespecific">xx $xxx = DBI->xxxxxxx('DBI:xxxxx:xxxxxxxxx:xxxxxxxxx', - 'xxxxx','xxxxxxxxxdddd', {AxxxCxxxxx=>d});</programlisting> - <para><indexterm id="mysqlian-CHP-18-ITERM-4133" significance="normal"><primary>xxxxxxx( ) xxxxxxxx (Pxxx DBI)</primary></indexterm><indexterm id="mysqlian-CHP-18-ITERM-4134" significance="normal"><primary>xxxxxxxx( ) xxxxxxxx (Pxxx DBI)</primary></indexterm> -Ix xxxx xxxxxxx, Pxxx xx xxxxxxxxxx xx xxx MxSQL xxxxxx xxxx xxx xxxxxxxx xx <emphasis>xxxxx</emphasis> xxx xxx xxxxxxxx xx <emphasis>xxxxxxxxdddd</emphasis>, xxxx xxx xxxxxxxx <emphasis>xxxxxxxxx</emphasis>. Txx xxxxxxxxx xx <literal moreinfo="none">AxxxCxxxxx</literal> xx xxx xx xxx xx xxxx xxxxxxx xx xxx xxxx xxx xx xxxxxx xxxxx <literal moreinfo="none">xxxxxxxx( )</literal>. Sxx xxx xxx xx xxxx xxxxxxx xxx x xxxx xx xxxxxxxxxx. -</para> - <para>Ix xxx xxx’x xxxxxxx xxx xxxxxxxx xx xxx xxxx’x xxxxxxxx (x.x., <literal moreinfo="none">xxxxx</literal> xx xxxxx xxxxxxx), xxx xxxxx xx xxx xxxxxxxxxxx xxxxxxxxx, <literal moreinfo="none">DBI_USER</literal> xxx <literal moreinfo="none">DBI_PASS</literal> xxxx xx xxxx xx xxxx xxx xxxxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch18-77023"> - <refmeta> - <refentrytitle>xxxxxxx_xxxxxx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxxxxx_xxxxxx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">DBI->xxxxxxx_xxxxxx(DBI:<replaceable>xxxxxx</replaceable>:<replaceable>xxxxxxxx</replaceable>[:<replaceable>xxxx</replaceable>:<replaceable>xxxx</replaceable>], - <replaceable>xxxxxxxx</replaceable>, <replaceable>xxxxxxxx</replaceable>[, \%<replaceable>xxxxx</replaceable>])</synopsis> - </refsynopsisdiv> - <refsect1 id="ch18-12-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-18-ITERM-4135" significance="normal"><primary>CxxxxxKxxx xxxxxxxxx (Pxxx DBI)</primary></indexterm><indexterm id="mysqlian-CHP-18-ITERM-4136" significance="normal"><primary>xxxxxxx_xxxxxx( ) xxxxxxxx (Pxxx DBI)</primary></indexterm> -Txxx xx xxxxxxx xx <literal moreinfo="none">xxxxxxx( )</literal>, xxxxxx xxxx xxx xxxxxxxx xxxxxx xx xxxxxx xx x xxxx xxxx xxx xxxxx xxxxxxxxxx. Txxx xxxxxx xxx xxxxxxxx xxxxxx xx xx xxxxxx xx <literal moreinfo="none">xxxxxxx_xxxxxx( )</literal> xx xxxxxx xxxxx. Yxx xxx xxxxxx xxx xxxxxxxxx xxxx xxx <literal moreinfo="none">CxxxxxKxxx</literal> xxxxxxxxx. Txxx xxxxxx xxx xxxxx xxxxxxxx xxxx x xxxxxxxx xxxxxx xx xxxxxxxxxxxxx xxxxxxx xxx xxxx xxxxxxxxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch18-77024"> - <refmeta> - <refentrytitle>xxxx_xxxx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxx_xxxx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">DBI::xxxx_xxxx(<replaceable>xxxxxx</replaceable>, <replaceable>xxxxxx</replaceable>[, <replaceable>xxxxxx</replaceable>])</synopsis> - </refsynopsisdiv> - <refsect1 id="ch18-13-fm2xml"> - <title/> - <para> -Txxx xxxxxxx xxx xxxxxxx xx xxxx <literal moreinfo="none">xxxx_xxxxxx_xxxx( )</literal> xxx <literal moreinfo="none">xxxx_xxxxxx_xxxx( )</literal>, xxxxxxxxxx xxx xxxxxxxxxx xxxxxxx xxx xxx xxxxx xxxxxxx. Rxxxxxx xx xxxxx xxxxxx xx xxxxxxx xxxxx xxx xxxxxxxxx.</para> - <programlisting format="linespecific">... -xx $xxxxxxxx_xxxxxx = 'Gxxxxx Gxxxxx'; - -xx $xxx_xxxxx = "SELECT xxxx_xx, xxxxxx - FROM xxxxx - WHERE xxxxxx LIKE 'Gxxxxx%' - LIMIT d"; -xx $xxx = $xxx->xxxxxxx($xxx_xxxxx); -$xxx->xxxxxxx(); - -xxxxx( xx($xxxx_xx,$xxxxxx) = $xxx->xxxxxxxx_xxxxx()) { - xx $xxxx = DBI->xxxx_xxxx($xxxxxxxx_xxxxxx, $xxxxxx); - xx($xxxx) { - xxxxx "$xxxxxxxx_xxxxxx <=> $xxxxxx\x$xxxx \x"; - $xxxxxxxx_xxxxxx = $xxxxxx; - } -}</programlisting> - <para>Hxxx xxx xxx xxxxxxx xx xxxxxxx xxxx xxxxxxx:</para> - <programlisting format="linespecific">Gxxxxx Gxxxx <=> Gxxxxx Gxxxxx -x: UTFd xxx, ASCII, d xxxxxxxxxx d xxxxx -x: UTFd xxx, ASCII, dd xxxxxxxxxx dd xxxxx -Sxxxxxx xxxxxx xx xxxxx d: x[d]=D, x[d]=G</programlisting> - </refsect1> - </refentry> - <refentry id="ch18-77025"> - <refmeta> - <refentrytitle>xxxx_xxxxxxx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxx_xxxxxxx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">DBI->xxxx_xxxxxxx([<replaceable>xxxxxx</replaceable>, \%<replaceable>xxxxx</replaceable>])</synopsis> - </refsynopsisdiv> - <refsect1 id="ch18-14-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-18-ITERM-4137" significance="normal"><primary>DBI_DRIVER xxxxxxxxxxx xxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-18-ITERM-4138" significance="normal"><primary>xxxx_xxxxxxx( ) xxxxxxxx (Pxxx DBI)</primary></indexterm> -Txxx xxxxxxx x xxxx xx xxxxxxxxx xxxxxxxxxx xxxx x xxxxx xxxxxx. Ix xxxx xx xxxxxxxxx, xxx xxxxxx xxxxx xx xxx xxxxxxxxxxx xxxxxxxx <literal moreinfo="none">DBI_DRIVER</literal> xx xxxx. Axxxxxxxxx xxx xx xxxxx xx x xxxxxx xxxxxxxx.</para> - <programlisting format="linespecific">... -xx @xxxxxxx = DBI->xxxxxxxxx_xxxxxxx(); - || xxx "Nx xxxxxxx xxxxx."; -xxxxxxx xx $xxxxxx(@xxxxxxx) { - xx @xxxxxxx = DBI->xxxx_xxxxxxx($xxxxxx); - xxxxxxx xx $xxxxxx(@xxxxxxx) { - xxxxx "$xxxxxx: $xxxxxx\x"; - } -}</programlisting> - </refsect1> - </refentry> - <refentry id="ch18-77026"> - <refmeta> - <refentrytitle>xxxx_xxxxxx_xxxx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxx_xxxxxx_xxxx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">DBI::xxxx_xxxxxx_xxxx(<replaceable>xxxxxx</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch18-15-fm2xml"> - <title/> - <para>Rxxxxxx x xxxxxxxxxxx xx xxxxx xxxxxx.</para> - <programlisting format="linespecific">... -xxxxx DBI->xxxx_xxxxxx_xxxx('Gxxxxx Gxxxxx');</programlisting> - <para>Hxxx xxx xxx xxxxxxx xxxx xx xxx xxxxx xxxx:</para> - <programlisting format="linespecific">UTFd xxx, ASCII, d xxxxxxxxxx d xxxxx</programlisting> - </refsect1> - </refentry> - <refentry id="ch18-77027"> - <refmeta> - <refentrytitle>xxxx_xxxxxx_xxxx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxx_xxxxxx_xxxx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">DBI::xxxx_xxxxxx_xxxx(<replaceable>xxxxxx</replaceable>[, <replaceable>xxxxxx</replaceable>])</synopsis> - </refsynopsisdiv> - <refsect1 id="ch18-16-fm2xml"> - <title/> - <para>Txxx xxxxxxx x xxxxxxxxxxx xx xxx xxxxxxxxxx xxxxxxx xxx xxxxx xxxxxxx. Rxxxxxx xx xxxxx xxxxxx xx xxxxxxx xxxxx xxx xxxxxxxxx.</para> - <programlisting format="linespecific">... -xx $xxxx = DBI->xxxx_xxxxxx_xxxx($xxxxxxxx_xxxxxx, $xxxxxx); -...</programlisting> - <para>Uxxxx xxx xxxxxx xxxxxxx xxxxx xx <literal moreinfo="none">xxxx_xxxx( )</literal> xxxxxxx, xxx xxxxx xxxx xxxxxxxx xxxxxxx xx xxxxx xxxx, xxxxx xxx xxx xxxxxxx xx xxxxxxx xxxx xxxxxxx:</para> - <programlisting format="linespecific">(Gxxxxx Gxxxx, Gxxxxx Gxxxxx) -Sxxxxxx xxxxxx xx xxxxx d: x[d]=D, x[d]=G</programlisting> - </refsect1> - </refentry> - <refentry id="ch18-77028"> - <refmeta> - <refentrytitle>xxxxxxxxxx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxxxxxxxx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">$<replaceable>xxx</replaceable>->xxxxxxxxxx( )</synopsis> - </refsynopsisdiv> - <refsect1 id="ch18-17-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-18-ITERM-4139" significance="normal"><primary>xxxxxx( ) xxxxxxxx (Pxxx DBI)</primary><secondary>xxxxxxxxxx( ) xxx</secondary></indexterm><indexterm id="mysqlian-CHP-18-ITERM-4140" significance="normal"><primary>xxxxxxxxxx( ) xxxxxxxx (Pxxx DBI)</primary></indexterm> -Txxx xxxxxxxxxxx x Pxxx xxxxxxx xxxx x xxxxxxxx; xx xxxx x MxSQL xxxxxxx. Txxxx xxx xx xxxxxxxxx xxx xxxx xxxxxxxx. Dxxxxxxxx xx xxxx xxxxxx, xxxx xxxxxxxx xxx xx xxx xxx xxxxxx xx xxxxxxxx xxx xxxx xxxxxxxxxxxx xxxxxxx xx xxx xxxxxxxx xxxxxx. Tx xx xxxx, xxxxxxxxxxxxx xxxxxx xx xxxxxxxx xxxx xxxxxxxxxxxx xxxxxx xxxxxxxxxxxxx. Axxx, xx xxxx xx xxxxx xxx xxxx xxxxxxxxx xxxxxxx xx xxxxxxxxx <literal moreinfo="none">xxxxxx( )</literal> xxx xxxx xxxxxxxxx xxxxxx xxxxxx xxxxxxxxxxxxx:</para> - <programlisting format="linespecific">$xxx->xxxxxx(); -$xxx->xxxxxxxxxx();</programlisting> - </refsect1> - </refentry> - <refentry id="ch18-77029"> - <refmeta> - <refentrytitle>xx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">$<replaceable>xxx</replaceable>->xx(<replaceable>$xxx_xxxxx</replaceable>[, \%<replaceable>xxxxx</replaceable>, @<replaceable>xxxxxx</replaceable>])</synopsis> - </refsynopsisdiv> - <refsect1 id="ch18-18-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-18-ITERM-4141" significance="normal"><primary>xxxxxxx( ) xxxxxxxx (Pxxx DBI)</primary><secondary>xx( ) xxx</secondary></indexterm><indexterm id="mysqlian-CHP-18-ITERM-4142" significance="normal"><primary>xx( ) xxxxxxxx (Pxxx DBI)</primary></indexterm> -Txxx xxxxxxxx xx SQL xxxxxxxxx xxxxxxx xxxxxx xx xxx xxx <literal moreinfo="none">xxxxxxx( )</literal> xxxxxx. Ix xxxxxxx xxx xxxxxx xx xxxx xxxxxxx. Txx xxxxx xxxxxxxx xxxxxxxx xx SQL xxxxxxxxx. Ix xxxxxxxxxxxx xxx xxxx xx xxx SQL xxxxxxxxx, xxxxx xxxxxx xxx xxxxxxxx xx x xxxxx-xxxxxxxxx xxxx xx xx xxxxx xx xxx xxxxx xxxxxxxx. Sxxxxxxxx xxxxxx xxxxxxxxxx xxx xx xxxxx xxx xxx xxxxxx xxxxxxxx. Yxx xxxxx xxx xxxx xxxxxx xxxx xxxx SQL xxxxxxxxxx xxxxx xx xxx xxxxxx xxxx xxxxxx (x.x., xxx xxxx <literal moreinfo="none">UPDATE</literal>, xxx <literal moreinfo="none">SELECT</literal>).</para> - <programlisting format="linespecific">... -xx $xxx_xxxxx = "UPDATE xxxxx SET xxxxxxxxx = ? - WHERE xxxxxxxxx = ?"; - -xx @xxxxxx = ('Oxxxxx Uxxx. Pxxxx', 'OUP'); - -$xxx->xx($xxx_xxxxx, xxxxx, @xxxxxx); - -$xxx->xxxxxxxxxx();</programlisting> - <para><indexterm id="mysqlian-CHP-18-ITERM-4143" significance="normal"><primary>xxxxxx( ) xxxxxxxx (Pxxx DBI)</primary><secondary>xx( ) xxx</secondary></indexterm><indexterm id="mysqlian-CHP-18-ITERM-4144" significance="normal"><primary>xxxxxxx( ) xxxxxxxx (Pxxx DBI)</primary><secondary>xx( ) xxx</secondary></indexterm> -Ix xxxx xxxxxxx, xxx xxxxxxxx xx x xxxxxxxxxx xxxxxxxxx xxx xxxxxxx xx xxx xxxxxxxxx’x xxxx. Txx SQL xxxxxxxxx xx xxxxxxxx xxxxxxx x <literal moreinfo="none">xxxxxxx( )</literal> xx xx <literal moreinfo="none">xxxxxxx( )</literal>--xxxxxxx x xxxxxxxxx xxxxxx. Txxxxxxxx, x <literal moreinfo="none">xxxxxx( )</literal> xxx’x xxxxxxxx, xxxx x <literal moreinfo="none">xxxxxxxxxx( )</literal>. Ix xxx xxxx xx xxxx xxx xxxxxx xx xxxx xxxxxxx, xxxxxx xxx xxxxx xxxx xx: -</para> - <programlisting format="linespecific">... -xx $xxxx_xxxxxxx = $xxx->xx($xxx_xxxxx, xxxxx, @xxxxxx); -xxxxx "Rxxx Cxxxxxx: $xxxx_xxxxxxx";</programlisting> - </refsect1> - </refentry> - <refentry id="ch18-77030"> - <refmeta> - <refentrytitle>xxxx_xxxxxxx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxx_xxxxxxx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">$<replaceable>xxx</replaceable>->xxxx_xxxxxxx(<replaceable>xxxxxx</replaceable>, <replaceable>xxx_xxxxxxxxx</replaceable>, <replaceable>xxxxxx_xxxxxxxxx</replaceable>, <replaceable>xxxxxxxxxx</replaceable>})</synopsis> - </refsynopsisdiv> - <refsect1 id="ch18-19-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-18-ITERM-4145" significance="normal"><primary>xxxx_xxxx( ) xxxxxxxx (Pxxx DBI)</primary></indexterm><indexterm id="mysqlian-CHP-18-ITERM-4146" significance="normal"><primary>xxxx_xxxxxxx( ) xxxxxxxx (Pxxx DBI)</primary></indexterm> -Txxx xxxxxxxx xxx xxxxxxx xx x xxxxxxxxx xxxxx xxx <literal moreinfo="none">xxxx_xxxx( )</literal> xxxxxxxx xx xxxx xxx xxx xxx xxxxxxxxx xxxxxx xxxxx. Txx xxxxx xxxxxxxx xx xxx xxxxxxx xxxxxx xx xxxx xxxxxx’x xxxxxxx. Fxx xxxxxxx xxxxxxxxxx xxxx xxxxxxxxxx xxxx xxx xxxxxxx xxxxxx, xxx xxxxxx xxxx xx xxxxxxx xxx xxxxxxxx xxxx xx xxxxxxxxx xx xxx xxxxx. Txx xxxxxxx xxxxxx xx dd xxxxxxxxxx. Fxx xxx xxxxxx xxxxxxxx, xxx xxxxxxxxx xxx xxxx xxx xxx xx xxxxx--xxx xxxxxxx xx <literal moreinfo="none">\x</literal>. Txx xxxxxxxxx xxx xxxxxxx xxx xxxx xx xxxxxxx xxxx xxx xxxxxxx xx x xxxxx xxx x xxxxx xx xxx xxxxx xxxxxxxx. Ix xxx xxxx xxxxxxxx xx xxx xxxxxxxx, x xxxx xxxxxx xx xxxxx xx xxxxxx xxx xxxxxxx xx xxx xxxxxxxx xxx xx xxxxx. Ix xxx xx xxx xxxxxxxxx, <literal moreinfo="none">xxxxxx</literal> xx xxxx.</para> - <programlisting format="linespecific">... -xx $xxx_xxxxx = "SELECT xxxxx, xxxxxxx - FROM xxxxx - WHERE xxxxxx= 'Hxxxx Jxxxx' LIMIT d"; -xx $xxx = $xxx->xxxxxxx($xxx_xxxxx); -$xxx->xxxxxxx(); -$xxxxxxx = $xxx->xxxx_xxxxxxx(dd, "\x", '|'); -...</programlisting> - <para>Txx xxxxxxx xx xxx xxxxxxxxx xxxxxxx xxxxx xxxx xxxx xxxx:</para> - <programlisting format="linespecific">'Txx Bxxxxx...'|'Hxxxx Jxxxx' -'Txx Mxxx'|'Hxxxx Jxxxx' -'Wxxxxxxxxx...'|'Hxxxx Jxxxx' -d xxxx</programlisting> - </refsect1> - </refentry> - <refentry id="ch18-77031"> - <refmeta> - <refentrytitle>xxx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">$<replaceable>xxxxxx</replaceable>->xxx( )</synopsis> - </refsynopsisdiv> - <refsect1 id="ch18-20-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-18-ITERM-4147" significance="normal"><primary>xxx( ) xxxxxxxx (Pxxx DBI)</primary></indexterm> -Txxx xxxxxxx xxx xxxxx xxxxx xxxx xxx xxxx xxxxxx xxxxxx xxxx.</para> - <programlisting format="linespecific">. . . -xx $xxx = DBI->xxxxxxx('DBI:xxxxx:xxxxxxxxx:xxxxxxxxx','xxxxxxx','xxxxx_xxxxxxxx') - || xxx DBI->xxx();</programlisting> - <para>Nxxxxx xxx <literal moreinfo="none">xxx( )</literal> xxxxxx xxx xxxxx xx xxx xxx xx xxx xxxxxxxx xxxxxx xxxx xx xxxx xx xxx <literal moreinfo="none">xxx</literal> xxxxxxxx xxxx Pxxx. Bxxxx xxx xxx xxxxxxx xx xxxxxxxxx xxxx <literal moreinfo="none">xxxxxxx( )</literal> xxxx xxx xxxxx xxxxxxxx:</para> - <programlisting format="linespecific">DBI xxxxxxx('xxxxxxxxx:xxxxxxxxx','xxxxxxx',...) xxxxxx: -Axxxxx xxxxxx xxx xxxx 'xxxxxxx'@'xxxxxxxxx' (xxxxx xxxxxxxx: YES) -xx ./xxx_xxxx_xxxxxxx.xxx xxxx d...</programlisting> - </refsect1> - </refentry> - <refentry id="ch18-77032"> - <refmeta> - <refentrytitle>xxxxxx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxxxx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">$<replaceable>xxxxxx</replaceable>->xxxxxx( )</synopsis> - </refsynopsisdiv> - <refsect1 id="ch18-21-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-18-ITERM-4148" significance="normal"><primary>xxxxxx( ) xxxxxxxx (Pxxx DBI)</primary></indexterm> -Txxx xxxxxxx xxx xxxxx xxxxxxxx xxxx xxx xxxx xxxxxx xxxxxx xxxxxx.</para> - <programlisting format="linespecific">. . . -xx $xxx = DBI->xxxxxxx('DBI:xxxxx:xxxxxxxxx:xxxxxxxxx','xxxxxxxx","xxxxx_xxxxxxxx') - || xxx DBI->xxxxxx;</programlisting> - <para>Nxxxxx xxx <literal moreinfo="none">xxxxxx( )</literal> xxxxxx xxx xxxxx xx xxx xxx xx xxx xxxxxxxx xxxxxx xxxx xx xxxx xx xxx <literal moreinfo="none">xxx</literal> xxxxxxxx xxxx Pxxx. Bxxxx xxx xxx xxxxxxx xx xxxxxxxxx xxxx <literal moreinfo="none">xxxxxxx( )</literal> xxxx xxx xxxxx xxxxxxxx:</para> - <programlisting format="linespecific">DBI xxxxxxx('xxxxxxxxx:xxxxxxxxx','xxxxxxx',...) xxxxxx: -Axxxxx xxxxxx xxx xxxx 'xxxxxxx'@'xxxxxxxxx' (xxxxx xxxxxxxx: YES) -xx ./xxx_xxxx_xxxxxxx.xxx xxxx d...</programlisting> - <para>Nxxxxx xxxx xxx xxxxx xxxxxxx xxxx xxx xxxxxxx xxx xxxxxxxx xxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch18-77033"> - <refmeta> - <refentrytitle>xxxxxxx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxxxxx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">$<replaceable>xxx</replaceable>->xxxxxxx([<replaceable>@xxxxxx</replaceable>])</synopsis> - </refsynopsisdiv> - <refsect1 id="ch18-22-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-18-ITERM-4149" significance="normal"><primary>xxxxxxx( ) xxxxxxxx (Pxxx DBI)</primary><secondary>xxxxxxx( ) xxx</secondary></indexterm><indexterm id="mysqlian-CHP-18-ITERM-4150" significance="normal"><primary>xxxxxxx( ) xxxxxxxx (Pxxx DBI)</primary><secondary>xxxxxx</secondary></indexterm> -Txxx xxxxxxxx x xxxxxxxxx xxxxxx xxxx xxx xxxx xxxxxxxxx xxxx xxx <literal moreinfo="none">xxxxxxx( )</literal> xxxxxx. A xxxxx xx <literal moreinfo="none">xxxxx</literal> xx xxxxxxxx xx xxxxx’x xx xxxxx. Rxxxxxx xxxx xx xxxxxxx, xxxx xxxx xxx xxxxxxx xxx xxx xxxxx xx xxxx. Fxx xxxxxxxxxx xxxxx xxxx <literal moreinfo="none">SELECT</literal> xxxxxxxxxx, xxx xxxxxx xx xxxx xxxxxxxx xx xxxxxxxx</para> - <programlisting format="linespecific">. . . -xx $xxx = DBI->xxxxxxx ("$xxxx_xxxxxx","$xxxx","$xxx") - -xx $xxx_xxxx = 'dddd'; -xx $xxxxx = 'xxxxx'; - -xx $xxx_xxxxx = "SELECT xxxxx, xxxxxx - FROM xxxxx - WHERE xxx_xxxx = '$xxx_xxxx' - AND xxxxx = '$xxxxx'"; -xx $xxx = $xxx->xxxxxxx($xxx_xxxxx); - -xx $xxxx_xxx = $xxx->xxxxxxx(); - -xxxxx( xx($xxxxx,$xxxxxx) = $xxx->xxxxxxxx_xxxxx()) { - xxxxx "$xxxxx xx $xxxxxx \x"; -}</programlisting> - <para><indexterm id="mysqlian-CHP-18-ITERM-4151" significance="normal"><primary>xxxxxxxx_xxxxx( ) xxxxxxxx (Pxxx DBI)</primary><secondary>xxxxxxx( ) xxx</secondary></indexterm> -Yxx xxx xxx xxxxxxxxxxxx xx xxx SQL xxxxxxxxx (x.x., xxx <replaceable>$xxx_xxxx</replaceable> xxx <replaceable>$xxxxx</replaceable>) xx xxxxxx xxx xxxxxx xxxx xxx <literal moreinfo="none">xxxxxxx( )</literal>: -</para> - <programlisting format="linespecific">. . . -xx @xxxxxx = ('dddd','xxxxx'); - -xx $xxx_xxxxx = "SELECT xxxxx, xxxxxx - FROM xxxxx - WHERE xxx_xxxx = ? - AND xxxxx = ?"; -xx $xxx = $xxx->xxxxxxx($xxx_xxxxx); - -$xxx->xxxxxxx(@xxxxxx); - -xxxxx( xx($xxxxx,$xxxxxx) = $xxx->xxxxxxxx_xxxxx()) { - xxxxx "$xxxxx xx $xxxxxx \x"; -}</programlisting> - <para>Vxxxxx xxx’x xxxx xx xx xxx xxxx xx xxxxx xxx xxx xxxx xxxx xxxxxx. Yxx xxx xxx xxx xxxxxxx xxxxxx xxx xxxxxxxxxxx xx xxx xxxxxxxx (x.x., <literal moreinfo="none">$xxx->xxxxxxx($xxx_xxxx,$xxxxx);</literal>).</para> - </refsect1> - </refentry> - <refentry id="ch18-77034"> - <refmeta> - <refentrytitle>xxxxxxx_xxxxx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxxxxx_xxxxx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">$<replaceable>xxx</replaceable>->xxxxxxx_xxxxx(\%<replaceable>xxxxx</replaceable>[, @<replaceable>xxxxxx</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch18-23-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-18-ITERM-4152" significance="normal"><primary>xxxx_xxxxx_xxxxx( ) xxxxxxxx (Pxxx DBI)</primary></indexterm><indexterm id="mysqlian-CHP-18-ITERM-4153" significance="normal"><primary>xxxxxxx_xxxxx( ) xxxxxxxx (Pxxx DBI)</primary></indexterm> -Uxx xxxx xx xxxxxxx x xxxxxxxx xxxxxxxxx xxxxxxxx xxxxx, xxxx xxx xxxx xxx xx xxxxxx xxxxx xxxxxx xx xxx xxxxxx xxxxxxxx xx xxx xxxxxx xx xxxx xxxxxxxx xxxx xx xxx <literal moreinfo="none">xxxx_xxxxx_xxxxx( )</literal> xxxxxx. Ix xxx xxx xxx <literal moreinfo="none">xxxx_xxxxx_xxxxx( )</literal> xxxxxx, xxx xxx’x xxxxxxx xxx xxxxx xxxxxx xxxx xxxx <literal moreinfo="none">xxxxxxx_xxxxx( )</literal> xxxxxx. Fxx xx xxxxxxx xx xxxx xxxxxxxxx’x xxx xxxx xxx <literal moreinfo="none">xxxx_xxxxx_xxxxx( )</literal> xxxxxx xxx xxxx xxxxxxxxxxx xxxxxxx xx xxxx xxxxxxx. Bxxxx xx xx xxxxxxx xxxxxxx xxxx xxxxxx:</para> - <programlisting format="linespecific">... -xx @xxx_xxxxx = ('Gxxxxx Gxxxx', 'Vxxxxxxx Wxxx'); -xx @xxx_xxxxx = ('Gxxxxx Gxxxxx', 'Vxxxxxxx Wxxxx'); - -xx $xxx_xxxxx = "UPDATE xxxxx - SET xxxxxx = ?, - xxxxxx = ? - WHERE xxxxxx = ?"; - -xx $xxx = $xxx->xxxxxxx($xxx_xxxxx); - -xx ($xxxxx, $xxxx_xxx) = $xxx->xxxxxxx_xxxxx(xxxxx, \@xxx_xxxxx, 'xxxxxx', \@xxx_xxxxx); - -$xxx->xxxxxx();</programlisting> - <para>Nxxxxx xxxx xx xxx xxxx xx xxxxxxx xxx xxxxxx xx xxxx xxxxxxx xx xxx SQL xxxxxxxxx. Sxxxx xx xxxx’x xxxxxxx xxx xxxxxxxxxx, xxx <replaceable>$xxxxxx</replaceable> xxxxxxxx xxxx xx xxxxx. Ixxxxxxxxxxx, x xxxxx xx xx xxxxxxx xxxx xx xxxxxx xx xxxxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch18-77035"> - <refmeta> - <refentrytitle>xxxxxxx_xxx_xxxxx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxxxxx_xxx_xxxxx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">xxxxxxx_xxx_xxxxx($<replaceable>xxxxx</replaceable>[, \@<replaceable>xxxxxx</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch18-24-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-18-ITERM-4154" significance="normal"><primary>xxxxxxx_xxx_xxxxx( ) xxxxxxxx (Pxxx DBI)</primary></indexterm> -Uxx xxxx xxxxxx xx xxxxxxx xxxxxxxx xxxxxxxxxx xxxxx xx xxx xxxxxxxx xx xxx xxxxxx, xx x <literal moreinfo="none">xxx</literal> xxxxxx. A xxxxxxxxx xx x xxxxxxxxxx xxxxx xxxxxxx xx xxxxx xx xxxxxx xx xxxx xxx xx xxxxx. Ox xxx xxx xxxx xxx xxxxx xx xxxxxx xx xxxxx xx xxx xxxxxxx xxxxx xxxxxxx. Txxxx xxxxxx xxx xx xxxxx xx xx xxxxx xxxxxxxxx xxx xxx xxxxxx xxxxxxxx. -</para> - <programlisting format="linespecific">... -xx @xxxx = ('xxx','xxx','xxxxx'); -xx @xxxx = ('xxx','xxx','xxx'); -xx @xxxx = ('xxxx','xxxx','xxxx'); - -xx @xxxxx_xxxxxx =(\@xxxx, \@xxxx, \@xxxx); - -xx $xxx = $xxx->xxxxxxx("INSERT INTO xxxxx_xxxxx - (xxxd, xxxd, xxxd) - VALUES (?,?,?)"); -xx ($xx) = $xxx->xxxxxxx_xxx_xxxxx( xxx { xxxxx @xxxxx_xxxxxx }, xxxxx);</programlisting> - <para>Txx xxxxx xx <replaceable>$xx</replaceable> xxxxx xx d. Sxxxx xxx xxxxxx xxxxxx xxx xxxxxxxxx xx xxxx xxxxxxx, xxxxx xx xxxx. Hxxxxxx, xx xxx xxxx xx xxxx xxx xxxx xxx xxxxxx, xxx xxxxx xxxxxxx xxx xxxxx xxxxxx, xx xxxx (x.x., <literal moreinfo="none">xx ($xxxxx,$xx) = $xxx->xxxxxxx_xxx_xxxxx(...);</literal>). Bxxxx xxx xxx xxxxxxxx xx xxx xxxx xxxxx xxxxx xxxxxxx xxx Pxxx xxxxxxx xxxxx:</para> - <programlisting format="linespecific">SELECT * FROM xxxxx_xxxxx; - -+------+------+-------+ -| xxxd | xxxd | xxxd | -+------+------+-------+ -| xxx | xxx | xxxxx | -| xxx | xxx | xxx | -| xxxx | xxxx | xxxx | -+------+------+-------+</programlisting> - </refsect1> - </refentry> - <refentry id="ch18-77036"> - <refmeta> - <refentrytitle>xxxxx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxxx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">$<replaceable>xxx</replaceable>->xxxxx( )</synopsis> - </refsynopsisdiv> - <refsect1 id="ch18-25-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-18-ITERM-4155" significance="normal"><primary>xxxxx( ) xxxxxxxx (Pxxx DBI)</primary></indexterm><indexterm id="mysqlian-CHP-18-ITERM-4156" significance="normal"><primary>xxxxxxxx_xxxxxxxx( ) xxxxxxxx (Pxxx DBI)</primary></indexterm> -Txxx xxxxxxx x xxxxxxxxx xx xx xxxxx xx xxx xxx xxxx xxx xxxxxxx xx x xxxxxxxxx xxxxxx. Ix’x xxxxxxx xx <literal moreinfo="none">xxxxxxxx_xxxxx( )</literal> xxxxxx xxxx xx xxxxxxxx xxx xxx xx <literal moreinfo="none">xxxx_xxxxxx( )</literal> xx <literal moreinfo="none">xxxx_xxxxxx( )</literal> xxx xxxxxxx xxxxxxxxx xx xxxxxx xxxxxxx. Txxxx xxx xx xxxxxxxxx xxx xxxx xxxxxxxx.</para> - <programlisting format="linespecific">... -xx $xxx_xxxxx = "SELECT xxxxx, xxxxxx FROM xxxxx"; -xx $xxx = $xxx->xxxxxxx($xxx_xxxxx); -$xxx->xxxxxxx(); -xx ($xxxxx, $xxxxxx); - -$xxx->xxxx_xxxxxxx(\$xxxxx, \$xxxxxx); - -xxxxx( $xxx->xxxxxxxx_xxxxx()) { - xxxxx "$xxxxx xx $xxxxxx \x"; -} -...</programlisting> - </refsect1> - </refentry> - <refentry id="ch18-77037"> - <refmeta> - <refentrytitle>xxxxxxxx_xxxxxxxx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxxxxxx_xxxxxxxx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">$<replaceable>xxx</replaceable>->xxxxxxxx_xxxxxxxx( )</synopsis> - </refsynopsisdiv> - <refsect1 id="ch18-26-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-18-ITERM-4157" significance="normal"><primary>xxxxxxxx_xxxxxxxx( ) xxxxxxxx (Pxxx DBI)</primary></indexterm> -Txxx xxxxxxxx xxx xxxxxxx xx x xxxxxxxxx xxx xxxxxxx x xxxxxxxxx xx xxx xxxx. Txx xxxxxxx xx x xxxxxxx xxxx xxxxxxxxx: xx xxxxx xx xxxxxxxxxx, xxxx xxxx xxxxxxxxx xx xx xxxxx xxx xxxx xxx xx xxxx xxxxxxxxx. Yxx xxx xxxxxx xxx xxxxxxxxx xxxxxx xxxxx xxxxxxxxx xxxx xxxxxx xxxxx xxx xxxxxxx xxx xxxxxx xx xxxxxx. -</para> - <programlisting format="linespecific">... -xx $xxx_xxxxx = "SELECT xxxxx, xxxxxx FROM xxxxx"; -xx $xxx = $xxx->xxxxxxx($xxx_xxxxx); -$xxx->xxxxxxx(); -xx $xxxxx = $xxx->xxxxxxxx_xxxxxxxx(); -$xxx->xxxxxx(); - -xxxxxxx xx $xxxx (@$xxxxx) { - xx ($xxxxx, $xxxxxx) = @$xxxx; - xxxxx "$xxxxx xx $xxxxxx \x"; -} -$xxx->xxxxxx();</programlisting> - <para>Nxxxxx xxxx xxxxx <literal moreinfo="none">xxxxxxxx_xxxxxxxx( )</literal> xxx xxxx xxxxxx, <literal moreinfo="none">xxxxxx( )</literal> xx xxxx xxxxxx xxx xxxx xx xxxxxx. Uxxxx <literal moreinfo="none">xxxxxxx</literal>, xxxxx xxx xxxxx xxxxxxxxx xx xxxxxxxxxxxx (x.x., <literal moreinfo="none">@$xxxxx</literal>) xxx xxx xxxxxxxxx xx xxxx xxxxx xxxxxxxxxx x xxx xxxx xxx xxxxxxx xx xxxxxx xx x xxxxxxxx (<literal moreinfo="none">$xxxx</literal>). Txxx xxxx xxxxx xxxxxxxxx xx xxxxxxxxxx (<literal moreinfo="none">@$xxxx</literal>) xx xxxxx xxx xxxxxx xxxx xxxxxxxxx xxx xxx.</para> - </refsect1> - </refentry> - <refentry id="ch18-77038"> - <refmeta> - <refentrytitle>xxxxxxxx_xxxxxxx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxxxxxx_xxxxxxx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">$<replaceable>xxx</replaceable>->xxxxxxxx_xxxxxxx(<replaceable>xxx_xxxxxx</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch18-27-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-18-ITERM-4158" significance="normal"><primary>xxxxxxxx_xxxxxxx( ) xxxxxxxx (Pxxx DBI)</primary></indexterm> -Txxx xxxxxx xxxxxxxx xxx xxxxxx xx xx SQL xxxxxxxxx xxx xxxxxxx x xxxxxxxxx xx xxx xxxx. Txx xxxxxx xx x xxxxxxx xxxx xxxxxxxxx: xx xxxxxxx x xxxxxxxxx xx x xxxx xxxxx xxx xxxx xx xxx xxx xxxxxx xxxxx xx xxx xxx xxx xxx xxxxx xx xxx xxx xxxxxx xxxxx xx xxx xxxxx. Exxx xxx xxxxxx xxxxx xx xxxx xxxx xx xxx xxx xx xxxxxxx xxxx xxxx x xxxxxxxxx xx xxx xxxxxxx xxxx xxx xxxx. Txxx xxxxx xxxx xxx xxx xxxxxx xxxxx xxxx xxx SQL xxxxxxxxx xx xxx xxxx xxx xxx xxxxxx xx xxxx xxx xx xxxx xxxxxxxxx xx xxxxx xxxxxxxxxx xxxx xxxxxx. Txx xxxxxxxxxxx xx xxxx x xxxx xxxxxxxxx xxx xx xxxxxxx xx xxxxxxxx xxx xxxxxxxxx xxxx xxxxxxx: -</para> - <programlisting format="linespecific">... -xx $xxx_xxxxx = "SELECT xxxx_xx, xxxxx, xxxxxx - FROM xxxxx"; -xx $xxx = $xxx->xxxxxxx($xxx_xxxxx); -$xxx->xxxxxxx(); - -xx $xxxxx = $xxx->xxxxxxxx_xxxxxxx('xxxx_xx'); - -$xxx->xxxxxx(); - -xxxxxxx xx $xxxx(xxxx %$xxxxx) { - xx $xxxx_xx = $xxxxx->{$xxxx}->{'xxxx_xx'}; - xx $xxxxx = $xxxxx->{$xxxx}->{'xxxxx'}; - xx $xxxxxx = $xxxxx->{$xxxx}->{'xxxxxx'}; - xxxxx "$xxxxx ($xxxx_xx) xx $xxxxxx\x"; -}</programlisting> - <para>Nxxxxx xxx xxx SQL xxxxxxxxx xx xxx xxxx xx xxxxxx xxxx xxxx xxx xxxxxxx--xxxx’x xxxxxxx xxxx xx xxx x xxxxxx xxxx, xxx x xxxx xx xxxxxx (x xxx/xxxxx xxxxxxx xx xxxxxxx xxxxxxxxxx xxxx xxx xxxxxx xxxxx xxx xxxxx xxxxxxxxxx xxxxxx). Nxxxxx xxxx xxx <literal moreinfo="none">xxxxxxxx_xxxxxxx( )</literal> xxxx xxx xxxxxxx xxx xxxxxx xx <replaceable>xxxx_xx</replaceable> xx xxxxx xxxxxx xxxxxx, xx x xxxxxx. Sxxxx xxxx xx x xxxx, x xxxxxx xxxx xxxxxx xxxxxx xx xxxxx. Lxxxxxx xx xxx <literal moreinfo="none">xxxxxxx</literal>, xx xxx <literal moreinfo="none">xxxx</literal> xx xxxxxxx xxxx xxx xxxx xx xxx xxxxxxxxxxxx xxxx xxxxxxxxx. Wx xxx’x xxxx xxx xxxxxx (xxxxx xxx xxx xxxxxx xxx xxxx xxx xx xxxx xxxx xxx xxxxxxx xxx) xx xxxx xxxxx: xx’xx xxx xx xxxx xxxxx xxxxxx xxx xxxx xxxxx xx xxx <literal moreinfo="none">xxxxxxx</literal> xxxxxxxxx. Exxx xxx xx xxxx xxxxxx xx xxx xxxxxxxx <literal moreinfo="none">$xxxx</literal>. Uxxxx xxxx xxx, xx xxx xxxxxxx xxx xxxxxx xxxx xxx xxxxxxxxx xx xx xxxxxx xxxxxxxx xxxxxx: <literal moreinfo="none">$xxxx_xxx->{$xxx_xxx}->{'xxx_xxxx'}</literal>. Ix xxxxx xxxx x xxx xx xxx xxx xxxx xxxxx, xxx xxxx xxx xxxx xxx xxxxxx xx xxx xxxxx xxxx xxx xxxx xxxx xxxxxxx xxxxxxx. Wx’xx xxxx xx xxx x <literal moreinfo="none">xxxxx</literal> xxxxxxxxx xxxx xxx <literal moreinfo="none">xxxx</literal> xxxxxxxx:</para> - <programlisting format="linespecific">... -xxxxx( xx ($xxxx_xxx,$xxxx_xxxxxx) = xxxx(%$xxxxx)) { - xx $xxxx_xx = $xxxxx->{$xxxx_xxx}->{'xxxx_xx'}; - xx $xxxxx = $xxxxx->{$xxxx_xxx}->{'xxxxx'}; - xx $xxxxxx = $xxxxx->{$xxxx_xxx}->{'xxxxxx'}; - xxxxx "$xxxxx\->$xxxx_xxx\->$xxxx_xxxxxx\->\x - {xxxx_xx->'$xxxx_xx',xxxxx->'$xxxxx',xxxxxx->'$xxxxxx'}\x\x"; -}</programlisting> - <para>Bxxxx xxx xxx xxxxx xx xxx xxxxxxx xx xxx xxxxxxx. Yxx xxx xxx xxx xxx xxxxxx xxxxxxxxx xxxxxx. Axxxx xxx xxxxx xxxx, xxxxxx xxx xxxxx xx <replaceable>xxxx_xx</replaceable> xx xxx xxx xx xxx xxxx xxx xxx xxx xx xxxx. Txx <replaceable>xxxx_xx</replaceable> xx xxxx xxxxxxxx xx xxx xxxxx xxxx.</para> - <programlisting format="linespecific">HASH(dxddxddxd)->dddd->HASH(dxddxdxdd)-> -{xxxx_xx->'dddd', xxxxx->'Mxx. Dxxxxxxx', xxxxxx->'Vxxxxxxx Wxxxx'} - -HASH(dxddxddxd)->dddd->HASH(dxddxdxdd)-> -{xxxx_xx->'dddd', xxxxx->'Txx Exx xx xxx Axxxxx', xxxxxx->'Gxxxxx Gxxxxx'}</programlisting> - </refsect1> - </refentry> - <refentry id="ch18-77039"> - <refmeta> - <refentrytitle>xxxxxxxx_xxxxx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxxxxxx_xxxxx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">$<replaceable>xxx</replaceable>->xxxxxxxx_xxxxx( )</synopsis> - </refsynopsisdiv> - <refsect1 id="ch18-28-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-18-ITERM-4159" significance="normal"><primary>xxxxxxxx_xxxxx( ) xxxxxxxx (Pxxx DBI)</primary><secondary>xxxxxx</secondary></indexterm> -Txxx xxxxxxxxx xxxxxx xxxxxx xxxxxxx xxx xxx, xxx xxxx xxxx xxx xxxxxxx xx xx SQL xxxxxxxxx xx xxx xxxx xx xx xxxxx, xxxx xx xxxxx xxxxxxx xx x xxxxx xx xxxx. Nxxx xxxxxx xxxxxxxxx xxx xxxxxxxx xx xxxxxxxxx. Ax xxxxx xxxxx xx xxxxxxxx xxxx xxxxx xx xx xxxxx, xx xxxx xxxxx xxx xx xxxx xxxx xxxxxxxxx xx xxx xxxxxxx xxx. Txxxxxxxx, xx xxxx xx x xxxx xxxxxxx xxxxxxxxx xxxx <literal moreinfo="none">xxxxx</literal>, xxx xxxxx xxxxx xxxxxxxx xxxx xxx xxx xxxx xxxxxxxxx. Bxxxx xx xx xxxxxxx xx xxxx xxxxxx’x xxx: -</para> - <programlisting format="linespecific">... -xx $xxx_xxxxx = "SELECT xxxxx, xxxxxx FROM xxxxx"; -xx $xxx = $xxx->xxxxxxx($xxx_xxxxx); -$xxx->xxxxxxx(); - -xxxxx (xx ($xxxxx, $xxxxxx) = $xxx->xxxxxxxx_xxxxx(){ - xxxxx "$xxxxx xx $xxxxxx \x"; -} - -$xxx->xxxxxx();</programlisting> - <para>Ix xxx xxxx xxxx xxx SQL xxxxxxxxx xxxx xxxx xxxxxx xxx xxx, xxx xxx’x xxxx xxx <literal moreinfo="none">xxxxx</literal> xxxxxxxxx. Ixxxxxx, xxx xxx xxxx xxx xxxxxx xxxxxxxx xxxx x xxxxx xxxx xx xxxxxxxxx:</para> - <programlisting format="linespecific">... -xx $xxx_xxxxx = "SELECT xxxxx, xxxxxx - FROM xxxxx LIMIT d"; -xx $xxx = $xxx->xxxxxxx($xxx_xxxxx); -$xxx->xxxxxxx(); - -xx ($xxxxx, $xxxxxx) = $xxx->xxxxxxxx_xxxxx(); - -xxxxx "$xxxxx xx $xxxxxx \x"; -...</programlisting> - </refsect1> - </refentry> - <refentry id="ch18-77040"> - <refmeta> - <refentrytitle>xxxxxxxx_xxxxxxxx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxxxxxx_xxxxxxxx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">$<replaceable>xxx</replaceable>->xxxxxxxx_xxxxxxxx( )</synopsis> - </refsynopsisdiv> - <refsect1 id="ch18-29-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-18-ITERM-4160" significance="normal"><primary>xxxxxxxx_xxxxxxxx( ) xxxxxxxx (Pxxx DBI)</primary></indexterm><indexterm id="mysqlian-CHP-18-ITERM-4161" significance="normal"><primary>xxxxx( ) xxxxxxxx (Pxxx DBI)</primary></indexterm> -Txxx xxxxxxx x xxxxxxxxx xx x xxxxx xx xxxxxx xxxxxxxxxx xx xxxxx xx xxx xxx, xxx xxxx xxx xxxx xxx xxxxxxx xx x xxxxxxxxx xxxxxx. Txxxx xxx xx xxxxxxxxx xxx xxxx xxxxxxxx. Nxxx xxxxxx xxxxxxxxx xxx xxxxxxxx xx xxxxxxxxx. Ax xxxxx xxxxx xx xxxxxxxx xxxx xxxxx xx xx xxxxx, xx xxxx xxxxx xxx xx xxxx xxxx xxxxxxxxx xx xxx xxxxxxx xxx. Txxxxxxxx, xx xxxx xx x xxxx xxxxxxx xxxxxxxxx xxxx <literal moreinfo="none">xxxxx</literal>, xxx xxxxx xxxxx xxxxxxxx xxxx xxx xxx xxxx xxxxxxxxx. Bxxxx xx xx xxxxxxx xx xxxx xxxxxx’x xxx:</para> - <programlisting format="linespecific">... -xx $xxx_xxxxx = "SELECT xxxxx, xxxxxx FROM xxxxx"; -xx $xxx = $xxx->xxxxxxx($xxx_xxxxx); -$xxx->xxxxxxx(); - -xxxxx (xx $xxxx = $xxx->xxxxxxxx_xxxxxxxx()) { - xx ($xxxxx, $xxxxxx) = @$xxxx; - xxxxx "$xxxxx xx $xxxxxx \x"; -} - -$xxx->xxxxxx();</programlisting> - <para>Nxxxxx xxxx <literal moreinfo="none">xxxxxxxx_xxxxxxxx( )</literal> xx xxxxxx xx xxx xxxxxxxxx xx xxxx xxxx xxxxxxx xxx <literal moreinfo="none">xxxxx</literal> xxxxxxxxx. Txxx xx xxxxxxx x xxxxxxxxx xx xxx xxx xx xxxxxxxxx xx x xxxx. Txx xxxx xxxxxxxxx xx xxxx xxx xxxx xxx xxxxxxxxx: xxx xxxxx xx xxxxxxxx xxxx xxxx xxxx. Ix xxx xxxx xx xxx xxxxx xxxxxxxxxx, xxx xxxxx xxxx xx xxx <literal moreinfo="none">xxxxxxxx_xxxxxxxx( )</literal> xxxxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch18-77041"> - <refmeta> - <refentrytitle>xxxxxxxx_xxxxxxx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxxxxxx_xxxxxxx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">$<replaceable>xxx</replaceable>->xxxxxxxx_xxxxxxx([<replaceable>xxxx</replaceable>] )</synopsis> - </refsynopsisdiv> - <refsect1 id="ch18-30-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-18-ITERM-4162" significance="normal"><primary>xxxxxxxx_xxxxxxx( ) xxxxxxxx (Pxxx DBI)</primary></indexterm> -Txxx xxxxxxx x xxxxxxxxx xx x xxxxx xx xxxxxx xxxxxxxxxx x xxxx xx xxxx xxx xxxxxx xxx xxx xxx xxxx xxx xxxxxxx xx x xxxxxxxxx xxxxxx. Txx xxxxxxx xxxxxxxx xx xxxx xxxxxx xx xx xxxx xxx xxxxxxxxx xxxxxx <literal moreinfo="none">xxxx</literal> xxxxxxxxx: <literal moreinfo="none">NAME</literal> (xxx xxxxxxx), <literal moreinfo="none">NAME_xx</literal>, <literal moreinfo="none">NAME_xx</literal>. Sxx xxx xxx xx xxxx xxxxxxx xxx x xxxxxxxxxxx xx xxxxx xxxxxxxxxx. Txx <literal moreinfo="none">xxxx</literal> xxxx xx xxxxx xxxxxx xxxxxx xx xxxxx xx x xxxxxx. Nxxx xxxxxx xxxxxxxxx xx xxxx xxxxxx xxx xxxxxxxx xx xxxxxxxxx. Ax xxxxx xxxxx xx xxxxxxxx xxxx xxxxx xx xx xxxxx, xx xxxx xxxxx xxx xx xxxx xxxx xxxxxxxxx xx xxx xxxxxxx xxx. Txxxxxxxx, xx xxxx xx x xxxx xxxxxxx xxxxxxxxx xxxx <literal moreinfo="none">xxxxx</literal>, xxx xxxxx xxxxx xxxxxxxx xxxx xxx xxx xxxx xxxxxxxxx. Bxxxx xx xx xxxxxxx xx xxxx xxxxxx’x xxx:</para> - <programlisting format="linespecific">... -xx $xxx_xxxxx = "SELECT xxxxx, xxxxxx FROM xxxxx"; -xx $xxx = $xxx->xxxxxxx($xxx_xxxxx); -$xxx->xxxxxxx(); - -xxxxx (xx $xxxx_xxx = $xxx->xxxxxxxx_xxxxxxx('NAME_xx')) { - xxxxx "$xxxx_xxx->{'TITLE'} xx $xxxx_xxx->{'AUTHOR'} \x"; -} - -$xxx->xxxxxx();</programlisting> - <para>Nxxxxx xxxx xxx <literal moreinfo="none">xxxx</literal> xxxxx xxxx xxxx xxxx xxxxxx xxxxxxxxx xxx xxxx xx xxx xxx xxxxxxxxx xxxxxxx xxx xxx xxx xxxxx. Txxxxxxxx, xxxx xxxxxxx xxx xxxxxxxxxx xxxx, xxx xxxxxx xxxxx xxx xxxxx xx xxx xxxxxxxxx xxxxxxx. Ix xx xxxxxxxxx xxx xxxxx, xx xxxxx xxx xxx xxxxxx xxxxx xx xxxx xxx xx xxx xxxxx. Txx <literal moreinfo="none">xxxxxxxx_xxxxxxx( )</literal> xxxxxx xx xxxx xxxxxxx xxxx <literal moreinfo="none">xxxxxxxx_xxxxxxx( )</literal>, xxx xxx xxx’x xxxxx xxx xxxxxxxxx xxxxxx xxxxx xxx’xx xxxxxxxx xxxxxxxxxx xxx xxxxxxx. Txxxxxxxx, xxx xxx xxxx xx xxxxxxxx xxxxx xx xxxxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch18-77042"> - <refmeta> - <refentrytitle>xxxxxx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxxxx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">$<replaceable>xxx</replaceable>->xxxxxx( )</synopsis> - </refsynopsisdiv> - <refsect1 id="ch18-31-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-18-ITERM-4163" significance="normal"><primary>xxxxxxx( ) xxxxxxxx (Pxxx DBI)</primary><secondary>xxxxxx( ) xxx</secondary></indexterm><indexterm id="mysqlian-CHP-18-ITERM-4164" significance="normal"><primary>xxxxxx( ) xxxxxxxx (Pxxx DBI)</primary><secondary>xxxxxx</secondary></indexterm> -Txxx xxxxxx xxxx x xxxxxxxxx xxxxxx xxxxx xxxx xxx xxxxxxxxxxx xx xxx <literal moreinfo="none">xxxxxxx( )</literal> xxxxxx. Txxxx xxx xx xxxxxxxxx xx xxx xxxxxx. Ix xxxxxxxxx xxx xxxx xx xxxx xxxxxx xxxxxxxxx. Ix xxxxxx xxxx xx xxxxxx xxxx xxx xxx xxxxxxxxx xxxxxx xx xxx xxxxx xx xx xxxxxx xx xx xx xx xxxxxxxx. -</para> - <programlisting format="linespecific">... - -xx $xxx_xxxxx = "REPLACE INTO xxxxx (xxxxx, xxxxxx) - VALUES(?,?)"; -xx $xxx = $xxx->xxxxxxx($xxx_xxxxx); - -xxxxx( xx ($xxxxx,$xxxxxx) = xxxx(%xxxxx) ) { - $xxx->xxxxxxx($xxxxx,$xxxxxx); -} - -$xxx->xxxxxx(); -$xxx->xxxxxxxxxx();</programlisting> - <para><indexterm id="mysqlian-CHP-18-ITERM-4165" significance="normal"><primary>xxxxxxxxxx( ) xxxxxxxx (Pxxx DBI)</primary></indexterm> -Ix xxxx xxxxxxx, xxxxx xx’xx xxxxxxx xxx xxxxxxxxx xxxxxx (xxxxxxxx <literal moreinfo="none">%xxxxx</literal> xxxxxxx xxxxxxx xx xxx xxxxxxx xxx xxxxxx xx xxxx), xx xxxxxxxxxx xxx’x xxxx xx xxxx xxx <literal moreinfo="none">xxxxxx( )</literal> xxxxxx xxxxx xxxx xxxxxxxxx xx xxx SQL xxxxxxxxx. Axxxxxxx x xxxxxxxxx xxxxxx xxx xxxx xxxx xxxxxx xxxx <literal moreinfo="none">xxxxxx( )</literal>, xxxx xxxxxxxxx xxxxxxx xxx xx xxxxxxx xxx xxxxxxxx xx xxxx xx xxx xxxxxxxx xxxxxx xxx xxx xxxx xxxxxx xxxxx <literal moreinfo="none">xxxxxxxxxx( )</literal>. -</para> - </refsect1> - </refentry> - <refentry id="ch18-77043"> - <refmeta> - <refentrytitle>xxxxxxx_xxx_xxxx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxxxxx_xxx_xxxx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">$<replaceable>xxx</replaceable>->xxxxxxx_xxx_xxxx($<replaceable>xx_xxxxxxx</replaceable>, $<replaceable>xx_xxxxxxxx</replaceable>, $<replaceable>xx_xxxxx</replaceable>, - $<replaceable>xx_xxxxxxx</replaceable>, $<replaceable>xx_xxxxxxxx</replaceable>, $<replaceable>xx_xxxxx</replaceable>[, \%<replaceable>xxxxx</replaceable>])</synopsis> - </refsynopsisdiv> - <refsect1 id="ch18-32-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-18-ITERM-4166" significance="normal"><primary>xxxxxxx_xxx_xxxx( ) xxxxxxxx (Pxxx DBI)</primary></indexterm> -Txxx xxxxxxx x xxxxxxxxx xxxxxx xxx xxxxxxxx xxxxxxxxxxx xxxxx xxxxxxx xxxx xx x xxxxx xxxxx. Ix’x xxxxx xxxxxx xxx xxx xxxx xxx xxxx xx xx xxxx xxxxxxxxxx xxxx MxSQL xxx.</para> - </refsect1> - </refentry> - <refentry id="ch18-77044"> - <refmeta> - <refentrytitle>xxxx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">$<replaceable>xxxxxx</replaceable>->xxxx(@<replaceable>xxxxxxxxx</replaceable>, <replaceable>xxxxxxxx_xxxx</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch18-33-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-18-ITERM-4167" significance="normal"><primary>xxxx( ) xxxxxxxx (Pxxx DBI)</primary></indexterm> -Txxx xxxxx xxxxxxx xxx-xxxxxxxx xxx xxx-xxxxxxxx xxxxxxx xxx xxxxxxx. Txx xxxx xx xxx xxxxxxxx xx xxxxx xx xxx xxxx xxxxxxxx. Axx xxxxxxxxx xxx xxx xxxxxxxx xxxxxxxxx xxx xxxxx xxxxx. Yxx xxx xxxx xxxxxxx xxxxxxx xxxxx-xx xxxxxxxxx: <literal moreinfo="none">_LxxxDBx</literal> xxxx xxx xxxxxxxx xxx xxxxxxxx xxx xxxx xx xxx xxxxx xxxxxxxxx (xxx <literal moreinfo="none">xxxx_xxxxxxx()</literal> xxxxxxx); <literal moreinfo="none">_LxxxTxxxxx</literal> (xxxxxxxxxx; xxx <literal moreinfo="none">xxxxxx()</literal> xxxxxxx); <literal moreinfo="none">_CxxxxxDB</literal> xxxx xxx xxxxxxxx xxxx xx xxxxx xxxxxxxxx; <literal moreinfo="none">_DxxxDB</literal> xxxx xxx xxxxxxxx xxxx xx xxxxx xxxxxxxxx. -</para> - <programlisting format="linespecific">... -xx @xxxxxx = $xxx->xxxx('_LxxxTxxxxx'); - -xxxxxxx xx $xxxxx(@xxxxxx) { - xxxxx $xxxxx, "\x"; -}</programlisting> - <para>Ax xxx xxxxxx xxxxx xxxxxxxxx, xxx xxx xxxxxx xxxx xxx xxxxxxx DBI xxxxxxxxx xxxx xxxx xxxxxx. Ix’x xxx xxxx xxxxxxxxx xx MxSQL, xxxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch18-77045"> - <refmeta> - <refentrytitle>xxx_xxxx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxx_xxxx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific"><replaceable>$xxx</replaceable>->xxx_xxxx(<replaceable>xxxx</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch18-34-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-18-ITERM-4168" significance="normal"><primary>xxx_xxxx( ) xxxxxxxx (Pxxx DBI)</primary></indexterm> -Txxx xxxxxxx xxxxxxxxxxx xxxxx xxx xxxxxxxx xxxxxx xxx xxx xxxxxxx xxxx xxxx (xxxxx xx SQL xxxxxxxxx) xxxxx xx xx xxxxxxxx xx xxx xxxxxx. Ixxxxxxxxxx xxx xxxxxxx xxx xxxxxx xxx xxx xxxxxxxxxxxx xx xxx xxxx xxxxxx. Txx xxxxxxxx xxxxxxx <literal moreinfo="none">xxxxx</literal> xxx xx xxxxxxx xxxx. Bxxxx xx xxx xxxxxxx xx xxx xxx:</para> - <programlisting format="linespecific">... -xxx DBI::Cxxxx::GxxIxxxTxxx; -... - -xx($xxx->xxx_xxxx($GxxIxxxTxxx{SQL_DBMS_VER}) xx 'd.d') { - xxxxx "Oxx xxxxxxx xx MxSQL. Uxxxxxx!" -};</programlisting> - <para>Tx xxx x xxxx xx xxxxx xxxxxxxxxx xxxxxxxxx xxx xxxxx xxxxxx xx xxxx xxxxxx, xxx xxx xxxxxxxxx xxxx xxxx xxxxxx:</para> - <programlisting format="linespecific">... -xxx DBI; -xxx DBI::Cxxxx::GxxIxxxTxxx; -... -xxxxx( xx ($xxx,$xxxxx) = xxxx(%GxxIxxxTxxx) ) { - xx $xxxx = $xxx->xxx_xxxx( $GxxIxxxTxxx{"$xxx"} ); - xxxxx "$xxx\->$xxxx \x"; -}</programlisting> - </refsect1> - </refentry> - <refentry id="ch18-77046"> - <refmeta> - <refentrytitle>xxxxxxxxx_xxxxxxx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxxxxxxx_xxxxxxx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">DBI->xxxxxxxxx_xxxxxxx([<replaceable>xxxxxx</replaceable>])</synopsis> - </refsynopsisdiv> - <refsect1 id="ch18-35-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-18-ITERM-4117a" significance="normal"><primary>xxxxxxxxx_xxxxxxx( ) xxxxxxxx (Pxxx DBI)</primary></indexterm> -Txxx xxxxxxx x xxxx xxxxxxx xxxxxx xxxxx xxx xxxxxxx xxxxxx xxx xxx xxxxxxx xxxxxxx. Txxx xx xxxx xxx xxxxxxx xxxx xxx xxxxxx xxx xxx xxxxxxx xxxx’x xxxxxxx, xxx xxxxxxxxx xxx xxxxxxxxx. Fxx xxxx xxxxxxxxxxx, xxx <literal moreinfo="none">xxxxxxxxx_xxxxxxx( )</literal>. Bxxxx xx xx xxxxxxx xx xxxx xxxxxx’x xxx:</para> - <programlisting format="linespecific">... -xx %xxxxxxx = DBI->xxxxxxxxx_xxxxxxx(); - -xxxxx( xx ($xxx,$xxxxxx) = xxxx(%xxxxxxx)) { - xxxxx "$xxx -> $xxxxxx \x"; -}</programlisting> - </refsect1> - </refentry> - <refentry id="ch18-77047"> - <refmeta> - <refentrytitle>xxxxxxxxx_xxxxxxxx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxxxxxxx_xxxxxxxx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">DBI->xxxxxxxxx_xxxxxxxx( )</synopsis> - </refsynopsisdiv> - <refsect1 id="ch18-36-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-18-ITERM-4169" significance="normal"><primary>xxxxxxxxx_xxxxxxxx( ) xxxxxxxx (Pxxx DBI)</primary></indexterm> -Txxx xxxxxxx x xxxx xx xxxxxxxxx xxxxxxx. Txxxx xxx xx xxxxxxxxx xx xxxx xxxxxx. Axxxxxxx xx xxx xx xxxx xxxx xxxxxx x xxxxxxx, xx xxxxx xxxxxx xxx xxxx xxxx xxx xxxxxxx-xxxx. Exxxx xxx xxxxxxxxx xxxx xxx xxxxxxx-xxxx xx xxx xxxxxx:</para> - <programlisting format="linespecific">xxxx -MDBI -x 'DBI->xxxxxxxxx_xxxxxxxx'</programlisting> - </refsect1> - </refentry> - <refentry id="ch18-77048"> - <refmeta> - <refentrytitle>xxxx_xxxxxx_xx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxx_xxxxxx_xx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">$<replaceable>xxx</replaceable>->xxxx_xxxxxx_xx(<replaceable>$xxxxxxx</replaceable>, <replaceable>$xxxxxxxx</replaceable>, <replaceable>$xxxxx</replaceable>, <replaceable>$xxxxxx</replaceable>[, <replaceable>\%xxxx</replaceable>])</synopsis> - </refsynopsisdiv> - <refsect1 id="ch18-37-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-18-ITERM-4170" significance="normal"><primary>LAST_INSERT_ID( ) xxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-18-ITERM-4171" significance="normal"><primary>xxxx_xxxxxx_xx( ) xxxxxxxx (Pxxx DBI)</primary></indexterm> -Txxx xxxxxxx xxx xxxxx xxxxxx xx xxx xxx xxxxxxxxxxxxxx xxxxxx xx xxx xxxx xxxxxx xxx xxxxxxxx xxx xxx xxxxxxx MxSQL xxxxxxx, xxxxxxxx xxx xxxxxxxxxxxxxx xxxxxx xxx xxxxxxxxxxx xxxxx <literal moreinfo="none">AUTO_INCREMENT</literal> xx MxSQL. Ix xxxxx xxxx xxx <literal moreinfo="none">LAST_INSERT_ID( )</literal> xxxxxxxx xx MxSQL. Nx xxxxxxxxx xxx xxxx xxxxxxxx xxx xxxxxxxxx xxxx MxSQL: xx xxxxx, xxxxx xxxxxx xxx xxxxxxx; <literal moreinfo="none">xxxxx</literal> xx xxxxxxxx xx x xxxxxxx, xxxxxx. Fxx xxxxx xxxxxxx, xxxxx xxxxxxx xxx xx xxxxxxxx. Txxx xxxxxxxx xxxxx’x xxxx xxxx MxSQL xxxxxx Vxxxxxx d.dd xx DBI. Ix xxxxxxx xxxxxxxxx xx xx xxxxxx xxxxxxxx xxx xxxxxx (xxxx xx xxxxxxxxx xxxxxx xxxxx xxx xxxxxx, xxxxxx xxxxxxx xxxxxxxxx xx MxSQL) xx xx xxx xxxxxx xxxx xxx xxxxxxx xxxx xxxxxxxx. -</para> - <programlisting format="linespecific">... -xx $xxx = $xxx->xxxxxxx("INSERT INTO xxxxx (xxxxx, xxxxxx) - VALUES (?,?)"); -$xxx->xxxxxxx($xxxxx,$xxxxxx); - -xx $xxxx_xx = $xxx->xxxx_xxxxxx_xx(xxxxx,xxxxx,xxxxx,xxxxx,xxxxx); - -xxxxx "Nxx Bxxx ID: $xxxx_xx \x"; -$xxx->xxxxxx();</programlisting> - </refsect1> - </refentry> - <refentry id="ch18-77049"> - <refmeta> - <refentrytitle>xxxxx_xxxx_xxxxxx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxxx_xxxx_xxxxxx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">DBI->xxxxx_xxxx_xxxxxx(@<replaceable>xxxxx</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch18-38-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-18-ITERM-4172" significance="normal"><primary>xxxxx_xxxx_xxxxxx( ) xxxxxxxx (Pxxx DBI)</primary></indexterm>Txxx xxxxxx xx xxxx xxx xxxxxxx x xxxxx xxxxx xx xxxxxxxxx xx xxxx xxxxxxx xxxxx xx xx x xxxxxx xx xxx. Ix xxxxxxx d xxx xxxx xxxxxxx xx xx xxxxx xxxx xxxxxxx xx xx x xxxxxx; d xx xxx. Rxxxxxx xxxxxxxxx xx xxxxxxx xx xxxxx xx xxxxxxxxx.</para> - <programlisting format="linespecific">... -xx $xxx_xxxxx = "SELECT xxxx_xx, xxxxx, xxxxxx, xxxx - FROM xxxxx LIMIT d"; -xx $xxx = $xxx->xxxxxxx($xxx_xxxxx); -$xxx->xxxxxxx(); -xx (@xxxx) = $xxx->xxxxxxxx_xxxxx(); - -xx @xxx_xxxxxxxxxx = DBI->xxxxx_xxxx_xxxxxx(@xxxx); -xx $xxx = d; - -xxxxxxx (@xxx_xxxxxxxxxx) { - xx($_) { xxxxx "Axxxx Exxxxxx $xxx xxxxx xxxx x xxxxxx.\x" }; - ++$xxx; -}</programlisting> - <para>Txx xxxxxxx xxxx xxxx xxxx xxxxxxxx d xxx d xxxx xxxx xxxxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch18-77050"> - <refmeta> - <refentrytitle>xxxx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">DBI::xxxx(<replaceable>xxxxxx</replaceable>[, <replaceable>xxxxxx</replaceable>])</synopsis> - </refsynopsisdiv> - <refsect1 id="ch18-39-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-18-ITERM-4173" significance="normal"><primary>xxxx( ) xxxxxxxx (Pxxx DBI)</primary></indexterm> -Txxx xxxxxxx x xxxxxx xxxxx xx xxx xxxxx xxxxxxxx xx xxx xxxxxxxx, xxxxxx xx xxxxxx, xxx xx xxxxxxxx xxxxxxx xxxxxx xxxxx xx xxx xxxxxx xxxxxxxx. Ix xxxx xxx xxxxxx xxxxxx xxxxxx xxx xxxxxx. Ix xxxxx x xxxxxxx xxxxx xxxxxxx xx xxxxxx, xxx xxxxxxx xxxx xxx xx xxxxxxxx xxxxxx xxxxxx. NULL xxxxxx xxxx xx xxxxxxxx xx xxxxxxxxx.</para> - <programlisting format="linespecific">... -xx $xxxx = "Txxx xx Rxxxxxx'x xxxx!"; -xxxxx "Txxx: " . DBI::xxxx($xxxx, dd) . "\x";</programlisting> - <para>Hxxx xxx xxx xxxxxxx xx xxxxxxx xxxx xxxxxxx:</para> - <programlisting format="linespecific">Txxx: 'Txxx xx Rxxxxxx'x x...'</programlisting> - <para><indexterm id="mysqlian-CHP-18-ITERM-4174" significance="normal"><primary>xxxx_xxxx( ) xxxxxxxx (Pxxx DBI)</primary></indexterm> -Nxxxxx xxxx xxx xxxxxxx xxx xx xxxxxx xxxxxx, xxxx xxx xxxx xxx xxxxxxxxx xxxx xxxxxx xxx xxxxxxx xxxxxx xxxxx xxx xxxxxx xx xxxx xxxxxxxxx xxx xxxxxx. Ix x xxxxx xx dd, xxx xxxx xxxx xxxxxx xxx xxxx xxxxx, xxxx xxx xxxx xxxx xxxxx xxxx xxxxxxxxx xxxxxxx xxxxxxxx. Txxx xxxxxxxx xxx xxxxxxxx xxx xxxxxxxx xxx xx DBI xxx xxxxx xxxxxxxx xxx xxxxxxx’x xx xxxx xx xxxxxxxxxx. Tx xxxxxx x xxxx xx xxxxxxx, xxx xxx <literal moreinfo="none">xxxx_xxxx( )</literal> xxxxxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch18-77051"> - <refmeta> - <refentrytitle>xxxx_xxxx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxx_xxxx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">DBI::xxxx_xxxx(\@<replaceable>xxxxxxx</replaceable>[, <replaceable>xxxxxx</replaceable>, <replaceable>xxxxxxxxx</replaceable>])</synopsis> - </refsynopsisdiv> - <refsect1 id="ch18-40-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-18-ITERM-4175" significance="normal"><primary>xxxx_xxxx( ) xxxxxxxx (Pxxx DBI)</primary></indexterm> -Txxx xxxxxxx x xxxx xx xxxxxxx xxxxx xx xxx xxxxx xxxxxxxx xx xxx xxxxxxxx, xxxxxx xx xxxxxx, xxxx xxxxxxxxx xx xx xxxxxxxx xxxxxxx xxxxxx xxxxx xx xxx xxxxxx xxxxxxxx. Ax xxxxxxxx xxxxx xxxxxxxx xxx xxxxxxx x xxxxxxxxx xx xxxxx xxxxxxx xxx xxxxxxxx xx xxx xxxx xx xxxxx xxxxx xx xxx xxxxx xxxxxxxx. A xxxxx xxx x xxxxx xxxx xx xxxx xx xxxxxxx xx xx xxxxxxxxx xx xxxxxxxxx.</para> - <programlisting format="linespecific">... -xx @xxxx = ("Txxx xx x xxxx.", "Axxxxxx xxxx"); -xxxxx "Txxx: " . DBI::xxxx_xxxx(\@xxxx, dd, '|');</programlisting> - <para>Hxxx xxx xxx xxxxxxx xx xxxx xxxxxxx:</para> - <programlisting format="linespecific">Txxx: 'Txxx xx...'|'Axxxxxx...'</programlisting> - </refsect1> - </refentry> - <refentry id="ch18-77052"> - <refmeta> - <refentrytitle>xxxxx_xxx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxxx_xxx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">DBI->xxxxx_xxx($<replaceable>xxxx_xxxxxx_xxxx</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch18-41-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-18-ITERM-4176" significance="normal"><primary>DSN (Dxxx Sxxxxx Nxxx)</primary></indexterm><indexterm id="mysqlian-CHP-18-ITERM-4177" significance="normal"><primary>Dxxx Sxxxxx Nxxx (DSN)</primary></indexterm><indexterm id="mysqlian-CHP-18-ITERM-4178" significance="normal"><primary>xxxxx_xxx( ) xxxxxxxx (Pxxx DBI)</primary></indexterm> -Txxx xxxxxxx xxx xxxxxxxxxx xx xxx DBI Dxxx Sxxxxx Nxxx (DSN) xxxxxx: xxx xxxxxx (x.x., <literal moreinfo="none">xxx</literal>); xxx xxxxxx (x.x, <literal moreinfo="none">$ENV{DBI_DRIVER}</literal>); xx xxxxxxxx xxxxxxxxx xxxxxx; x xxxxxxxxx xx x xxxx xxxx xxx xxxxxxxxx xxxxx xxx xxxxxx; xxx xxx DSN DBI xxxxxx. -</para> - <programlisting format="linespecific">... -xxx DBI; -xx $xxx = "DBI:xxxxx:xxxxxxxx=xxxxxxxxx;xxxx=xxxxxxxxx;xxxx=dddd"; -xx $xxx = DBI->xxxxxxx ($xxx,$xxxx,$xxx) xx xxx DBI->xxxxxx; - -xx ($xxxxxx, $xxxxxx, $xxxx_xxxxxx, $xxxx_xxxx, $xxxxxx_xxx) = DBI->xxxxx_xxx($xxx); -xxxxx "DSN: ($xxxxxx, $xxxxxx, $xxxx_xxxxxx, $xxxx_xxxx, $xxxxxx_xxx) \x";</programlisting> - <para>Bxxxx xxx xxx xxxxxxx:</para> - <programlisting format="linespecific">DSN: (xxx, xxxxx, , , xxxxxxxx=xxxxxxxxx;xxxx=xxxxxxxxx;xxxx=dddd)</programlisting> - </refsect1> - </refentry> - <refentry id="ch18-77053"> - <refmeta> - <refentrytitle>xxxxx_xxxxx_xxxx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxxx_xxxxx_xxxx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">$<replaceable>xxxxxx</replaceable>->xxxxx_xxxxx_xxxx($<replaceable>xxxxxxxx</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch18-42-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-18-ITERM-4179" significance="normal"><primary>xxxxx_xxxxx_xxxx( ) xxxxxxxx (Pxxx DBI)</primary></indexterm> -Txxx xxxxxxx x xxx xxxx xxx x xxxxx xxxx xxxx xxxxx xx xx xxxxxxxx xx xxxx xxxxxx. Tx xxxxx x xxxx xx xxxxx xxxxx, xxx <literal moreinfo="none">xxxxx_xxxxx_xxxxx( )</literal>.</para> - </refsect1> - </refentry> - <refentry id="ch18-77054"> - <refmeta> - <refentrytitle>xxxxx_xxxxx_xxxxx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxxx_xxxxx_xxxxx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">$<replaceable>xxxxxx</replaceable>->xxxxx_xxxxx_xxxxx($<replaceable>xxxxxxxx</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch18-43-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-18-ITERM-4180" significance="normal"><primary>xxxxx_xxxxx_xxxxx( ) xxxxxxxx (Pxxx DBI)</primary></indexterm> -Uxx xxxx xx xxxxx x xxxxxx xxxxx xx xx xxxxxxxx xxxx xxxxxxxx x xxxx xx xxxxx xxxxxxxx. Txxxx xxxxxxxx xxx xxxxxx xxxxx xxxx xxxxx xx xxxxxxxx xxxxxxxxxxxx xxxxx xxxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch18-77055"> - <refmeta> - <refentrytitle>xxxx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">$<replaceable>xxx</replaceable>->xxxx( )</synopsis> - </refsynopsisdiv> - <refsect1 id="ch18-44-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-18-ITERM-4181" significance="normal"><primary>xxxx( ) xxxxxxxx (Pxxx DBI)</primary></indexterm> -Uxx xxxx xx xxxxxxxxx xx x MxSQL xxxxxx xx xxxxx xxxxxxx xxx xxx xxxxxxxx xxxxxxxxxx xx xxxxx xxxxxxxxx. Txxxx xxx xx xxxxxxxxx xxx xxxx xxxxxx.</para> - <programlisting format="linespecific">... -$xxx->xxxxxx(); - -xx $xxxxx = $xxx->xxxx(); -xx($xxxxx) { xxxxx "MxSQL xxxxxxxxxx xx xxxxx xxxxx.\x"} -xxxx{ xxxxx "MxSQL xxxxxxxxxx xx xxx xxxxx.\x"} - -$xxx->xxxxxxxxxx(); - -xx($xxx->xxxx()) { xxxxx "MxSQL xxxxxxxxxx xx xxxxx xxxxx.\x"} -xxxx{ xxxxx "MxSQL xxxxxxxxxx xx xxx xxxxx.\x"} - -...</programlisting> - <para>Txx xxxxxxx xxxx xxxx xxxx xxx xxxxxxxxxx xx xxxxx xxxxx xxx <literal moreinfo="none">xxxxxx( )</literal> xx xxxxxx, xxx xxx xxxxx <literal moreinfo="none">xxxxxxxxxx( )</literal>.</para> - </refsect1> - </refentry> - <refentry id="ch18-77056"> - <refmeta> - <refentrytitle>xxxxxxx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxxxxx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific"><replaceable>$xxx </replaceable>= <replaceable>$xxx</replaceable>->xxxxxxx(<replaceable>xxxxxxxxx</replaceable>[, \%<replaceable>xxxx</replaceable>])</synopsis> - </refsynopsisdiv> - <refsect1 id="ch18-45-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-18-ITERM-4182" significance="normal"><primary>xxxxxxx( ) xxxxxxxx (Pxxx DBI)</primary><secondary>xxxxxxx( ) xxx</secondary></indexterm><indexterm id="mysqlian-CHP-18-ITERM-4183" significance="normal"><primary>xxxxxxx( ) xxxxxxxx (Pxxx DBI)</primary><secondary>xxxxxx</secondary></indexterm> -Txxx xxxxxxx x xxxxxxxxx xxxxxx xx xxxxxxxxx xx SQL xxxxxxxxx xxxxx xx xxx xxxxx xxxxxxxx xxx xxxxxxxxxx xxxxxxxxx xxxx <literal moreinfo="none">xxxxxxx( )</literal>. Ix xxxxxxx x xxxxxxxxx xx xxx xxxxxxxxx xxxxxx. Txx xxxxxx xxxxxxxx xx x xxxx xx xxxxxxxxxx xxx xx xxxxxxxx. A xxxxxxxx xxxxxxxxx, x xxxxxxxxx xxxxxx xxx xx xxxx xxxxxxxx xxxxx xxxxx xxx <literal moreinfo="none">xxxxxxxxxx( )</literal> xx xxxxxx xx xxx xxxxxxxxx xxxxxx xxxxx xx xxxxxxxxxxx xx xxxxxxx xxxx xx <literal moreinfo="none">xxxxxxx( )</literal> xxx xxx xxxx xxxxxxxxx xxxxxx xxxxxxxx. Mxxx xxxx xxx xxxxxxxxx xxxxxxx xxx xx xxxxxxxx xx xxxxxxxxx xxxxxxxxx xxx xxxx xxx xxxxxxx xxx xxxxxx xxxxxxxxxx. -</para> - <programlisting format="linespecific">xx $xxx = DBI->xxxxxxx ("$xxx","$xxxx","$xxx") -xx $xxx_xxxxx = "SELECT xxxxx, xxxxxx FROM xxxxx"; -xx $xxx = $xxx->xxxxxxx($xxx_xxxxx, {RxxxxExxxx => d, CxxxBxxxxx => d});</programlisting> - <para>Ix xxxx xxxxxxx, xxxxxxx xxxxxxxx xxx xxxxxxx xxx xxxxxxxx xxxxxx xx xxxxx-xxxxx xxxxxxxxx xxxxxxx xxx xxxxxxx. Sxx xxx xxx xx xxxx xxxxxxx xxx x xxxx xx xxxxxxxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch18-77057"> - <refmeta> - <refentrytitle>xxxxxxx_xxxxxx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxxxxx_xxxxxx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">$<replaceable>xxx</replaceable>->xxxxxxx_xxxxxx($<replaceable>xxx_xxxxxxxx</replaceable>[, \%<replaceable>xxxx</replaceable>, $<replaceable>xxxxxx</replaceable>])</synopsis> - </refsynopsisdiv> - <refsect1 id="ch18-46-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-18-ITERM-4184" significance="normal"><primary>xxxxxxx_xxxxxx( ) xxxxxxxx (Pxxx DBI)</primary></indexterm><indexterm id="mysqlian-CHP-18-ITERM-4185" significance="normal"><primary>xxxxxxx( ) xxxxxxxx (Pxxx DBI)</primary><secondary>xxxxxxx_xxxxxx( ) xxx</secondary></indexterm> -Txxx xxxxxxx x xxxxxxxxx xxxxxx xxxx <literal moreinfo="none">xxxxxxx( )</literal>, xxx xxxxxx xxx xxxxxxxxx xxxxxxxxx xxxxxx xx x xxxx. Axxxxxxxxx xxx xxx xxxxxxxxx xxxxxx xxx xx xxxxx xx xxx xxxxxx xxxxxxxx xx xxx xxxx xx x xxxx. Txx xxxxx xxxxxxxx xx xxx xxxxxx xxxxxxx xxx xxxxxxxx xx xxx xxxxxx xx xx xxxxxx xxxxxxxxx xxxxxx xx xxxxxxx xx xxx xxxxx. <xref linkend="mysqlian-CHP-18-TABLE-1"/> xxxxx xxx xxxx xxxxxxx xxx xxxx xxxxxxxx. -</para> - <para>Txx xxxxxxxxx xxxxxx xxxx xxxx xxxxxx xxxxxxxxx xx xxxxxxxxx xxxx xxx xxxx xx xxxxxxxxx xxxxxx xxxxxxxxx xx <literal moreinfo="none">xxxxxxx( )</literal>. Hxxxxxx, xx xxx xxx xxxxxxxxx xx xxxxxxx xxxxxx xxxxxxxx xx xxx xxxx xxxxxxxx. Txxxxxxxx, xxx <literal moreinfo="none">xxxxxxx( )</literal> xxxxxxx.</para> - <table id="mysqlian-CHP-18-TABLE-1"> - <title>Axxxxx xxxxxxxx xxx xxxxxxx_xxxxxx( ) - - - - - - - Axxxxx xxxxx - - - Rxxxxx - - - - - - - d - - - Wxxxxxx xxxxxxxx xxxx xx xxxxxx, xxx xxxxxx( ) xxx xxx xxxxxxxxx xxxxxx xxxx xx xxxxxxxx. - - - - - d - - - Nx xxxxxxx xxxx xx xxxxxxxxx, xxx xxxxxx( ) xxxx xx xxxxxxxx. - - - - - d - - - Dxxxxxxx xxxxxxxx xxx xx xxxxxx xxxxxx. - - - - - d - - - Cxxxxx xxx xxx xxxxxxxxx xxxxxx xx xxxxxxx xxx xxxxxx xxx. - - - - - - - - - - xxxxxxx_xxx( ) - - - xxxxxxx_xxx( ) - - - - $xxx->xxxxxxx_xxx($xxxxxxx, $xxxxxxxx, $xxxxx) - - - - <para><indexterm id="mysqlian-CHP-18-ITERM-4186" significance="normal"><primary>xxxxxxx_xxx( ) xxxxxxxx (Pxxx DBI)</primary></indexterm> -Txxx xx xxxxx xx xxxxxx x xxxx xx xxxxxxx xxx xxxxxx xxxxx xxx x xxxxx xxxxx. Ix xxxxx xxx xx xxxxxxx xxxx, xx xxxxx xxxx xxxx xx xxxxxxxx. Txxx xxxxxx xxxx xxx xxx xxxx xx xx xxxxxxxxx xx MxSQL.</para> - </refsect1> - </refentry> - <refentry id="ch18-77059"> - <refmeta> - <refentrytitle>xxxxxxx_xxx_xxxx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxxxxx_xxx_xxxx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">$<replaceable>xxx</replaceable>->xxxxxxx_xxx_xxxx($<replaceable>xxxxxxx</replaceable>, $<replaceable>xxxxxxxx</replaceable>, $<replaceable>xxxxx</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch18-48-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-18-ITERM-4187" significance="normal"><primary>xxxxxxx_xxx_xxxx( ) xxxxxxxx (Pxxx DBI)</primary></indexterm> -Txxx xx xxxxx xx xxxxxx x xxxxxxxxx xxxxxx xxx xxxxxxxx xxxxxxxxxxx xxxxx xxxxxxx xxx xxxxxxx xxx x xxxxx. Txx xxxxxx xxx xxxx xx x xxxx xxx xxx xxxxxxxxx xxxxxx: <literal moreinfo="none">TABLE_CAT</literal>, <literal moreinfo="none">TABLE_SCHEM</literal>, <literal moreinfo="none">TABLE_NAME</literal>, xxx <literal moreinfo="none">KEY_SEQ</literal>. Ix xxxxx xx xx xxxxxxx xxx xxx xxx xxxxx xxxxx, xx xxxx xxx xxxxxxxx. Txxx xxxxxx xxxx xxx xxx xxxx xx xx xxxxxxxxx xx MxSQL. -</para> - </refsect1> - </refentry> - <refentry id="ch18-77060"> - <refmeta> - <refentrytitle>xxxxxxx_xxxxxxxxx_xxxx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxxxxx_xxxxxxxxx_xxxx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">$<replaceable>xxxxxx</replaceable>->xxxxxxx_xxxxxxxxx_xxxx($<replaceable>xxxxxxxx</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch18-49-fm2xml"> - <title/> - <para>Txxx xx xxxxx xx xxxxxx x xxxxxxxxx xx x xxxx xxxxxxxxxx xxx xxxxxxx xxxxxxxxxx xxxxxxxxx xxx xxx xxxxxx xxxx xxxxx xx xx xxxxxx. Txxxx xxx xx xxxxxxxxxx xx xxxx xxxxxx xxx xx xxxx xxx xxx xxxx xx xx xxxxxxxxx xx MxSQL.</para> - </refsect1> - </refentry> - <refentry id="ch18-77061"> - <refmeta> - <refentrytitle>xxxxx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxxx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">$<replaceable>xxx</replaceable>->xxxxx(<replaceable>xxxxxx</replaceable>[, <replaceable>xxxx_xxxx</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch18-50-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-18-ITERM-4188" significance="normal"><primary>xxxxx( ) xxxxxxxx (Pxxx DBI)</primary></indexterm> -Uxx xxxx xxxxxx xx xxxxxx xxxxxxx xxxxxxxxxx xxxxxxxxx xx x xxxxx xxxxxx. Ix’x xxxxxx xx SQL xxxxxxxxxx xxxxxxxxxxxx xxx xxxxxxx xxxx xxxxx xxxx xxxxx xxxxxxx xxxxxxxxxxxxxx xxxx xxxxx xxxxx xxxxxxxxxxx xxxxxxxx xx MxSQL. Yxx xxx xxxxxxx xxx xxxx xxxx xx x xxxxxx xxxxxxxxx. Dxx’x xxx xxxx xxxxxx xxxx xxxx xxxxxx xxx xxxxxxxxxxxx. -</para> - <programlisting format="linespecific">... -xx $xxxxxxx = xxxxx; -xx $xxxxxx_xxxxxxx = $xxx->xxxxx($xxxxxxx); - -xx $xxx_xxxxx = "UPDATE xxxxx SET xxxxxxx = ?"; -xx $xxx = $xxx->xxxxxxx($xxx_xxxxx); -$xxx->xxxxxxx($xxxxxx_xxxxxxx); - -xxxxx "Oxxxxxxx: $xxxxxxx \x Qxxxxx: $xxxxxx_xxxxxxx \x";</programlisting> - <para>Bxxxx xxx xxx xxxxxxx-xxxx xxxxxxx xx xxxx xxxxxxx xxxxxxx:</para> - <programlisting format="linespecific">Oxxxxxxx: Hxxxx Jxxxx' xxxx "Txx Mxxx" xx xxxxxxxxx! -Qxxxxx: 'Hxxxx Jxxxx\' xxxx \"Txx Mxxx\" xx xxxxxxxxx!'</programlisting> - </refsect1> - </refentry> - <refentry id="ch18-77062"> - <refmeta> - <refentrytitle>xxxxx_xxxxxxxxxx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxxx_xxxxxxxxxx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">$<replaceable>xxx</replaceable>->xxxxx_xxxxxxxxxx({$<replaceable>xxxx</replaceable>|$<replaceable>xxxxxxx</replaceable>, $<replaceable>xxxxxxxx</replaceable>[, $<replaceable>xxxxx</replaceable>, \%<replaceable>xxxxx</replaceable>]})</synopsis> - </refsynopsisdiv> - <refsect1 id="ch18-51-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-18-ITERM-4189" significance="normal"><primary>xxxxx_xxxxxxxxxx( ) xxxxxxxx (Pxxx DBI)</primary></indexterm> -Uxx xxxx xx xxxxxx xxxxxxx xxxxxxxxxx xx xx xxxxxxxxxx (x.x., x xxxxxxxx, xxxxx, xx xxxxxx xxxx) xxx xxx xx xx SQL xxxxxxxxx. Yxx xxx xxxxxxx xxxx xxx xxxxx xxxxxxxxx (x xxxxxx xxxxxxxxxx xx xxxxxxxxxx xxxx), xx xxx xxx xxxxxxx xxx xxxxxxx xxxx (<literal moreinfo="none">xxxxx</literal> xx xxxxxxxxxx xxxx MxSQL), x xxxxxxxx xxxx, x xxxxx xxxx, xxx xxxxxxxxxx xxxxxxx xxxxxxxx xxxxxxxxxx.</para> - <programlisting format="linespecific">xx $xxxd = $xxx->xxxxx_xxxxxxxxxx('xxxxxx'); -xx $xxxd = $xxx->xxxxx_xxxxxxxxxx('xxxxx'); -xx $xxxxx = $xxx->xxxxx_xxxxxxxxxx('xxxxx'); - -xx $xxx_xxxxx = "SELECT $xxxd, $xxxd FROM $xxxxx"; -xxxxx $xxx_xxxxx;</programlisting> - <para>Bxxxx xx xxx xxxxxxxxx SQL xxxxxxxxx:</para> - <programlisting format="linespecific">SELECT `xxxxxx`, `xxxxx` FROM `xxxxx`</programlisting> - </refsect1> - </refentry> - <refentry id="ch18-77063"> - <refmeta> - <refentrytitle>xxxxxxxx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxxxxxx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">$<replaceable>xxx</replaceable>->xxxxxxxx( )</synopsis> - </refsynopsisdiv> - <refsect1 id="ch18-52-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-18-ITERM-4190" significance="normal"><primary>xxxxxx( ) xxxxxxxx (Pxxx DBI)</primary></indexterm><indexterm id="mysqlian-CHP-18-ITERM-4191" significance="normal"><primary>xxxxxxxx( ) xxxxxxxx (Pxxx DBI)</primary></indexterm> -Uxx xxxx xx xxxx x xxxxxxxxxxx xxxxx xxx xxx xxx xxxx xxxxxxxxx. Txxx xxx xxxx xx xxxx xxxx xxxxxxxxxxxxx (x.x., IxxxDB xx BDB) xxxxxx. Ix xxxxxxxx xxxx xxx xxxxxxxx xxxxxx xxx xxxxxxx xxxx xxx xxxxxxxxx xx <literal moreinfo="none">AxxxCxxxxx</literal> xxx xx xxxxx xx d, xxx xxxx xxx xxxxxxx xxxx xxx xxxxxxxxx xxxxx xxx <literal moreinfo="none">xxxxxx( )</literal> xxxxxxxx xx xx xxx xxxxx xxxxxx xxxxx xxxxx xxxxxxxxxxxxxxx xxxxxx x xxxxxxxxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch18-77064"> - <refmeta> - <refentrytitle>xxxx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">$<replaceable>xxx</replaceable>->xxxx( )</synopsis> - </refsynopsisdiv> - <refsect1 id="ch18-53-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-18-ITERM-4192" significance="normal"><primary>DELETE xxxxxxxxx</primary><secondary>xxxx( ) xxx</secondary></indexterm><indexterm id="mysqlian-CHP-18-ITERM-4193" significance="normal"><primary>INSERT xxxxxxxxx</primary><secondary>xxxx( ) xxx</secondary></indexterm><indexterm id="mysqlian-CHP-18-ITERM-4194" significance="normal"><primary>UPDATE xxxxxxxxx</primary><secondary>xxxx( ) xxx</secondary></indexterm><indexterm id="mysqlian-CHP-18-ITERM-4195" significance="normal"><primary>xxxx( ) xxxxxxxx (Pxxx DBI)</primary></indexterm> -Txxx xxxxxxx xxx xxxxxx xx xxxx xxxxxxxx xx xxx xxxx xxxxxxxxx xxxxxx xxxxxxxx. Ix xxxxx xxxx <literal moreinfo="none">UPDATE</literal>, <literal moreinfo="none">INSERT</literal>, xxx <literal moreinfo="none">DELETE</literal> xxxxxxxxxx. Ix xxxxx’x xxxx xxxxxxxxxxx xxxx <literal moreinfo="none">SELECT</literal> xxxxxxxxxx xxxxxx xxx xxxx xx x xxxxx xxx xxxxxxxx. Ix xxx xxxxxx xx xxxx xx xxxxxxx, -d xx xxxxxxxx. Txxxx xxx xx xxxxxxxxx xx xxxx xxxxxx.</para> - <programlisting format="linespecific">... -xx $xxx_xxxxx = "UPDATE xxxxx SET xxxxxx = 'Rxxxxx B. Pxxxxx' - WHERE xxxxxx = 'Rxxxxx Pxxxxx'"; -xx $xxx = $xxx->xxxxxxx($xxx_xxxxx); -$xxx->xxxxxxx(); -xx $xxxxxx_xxxxx = $xxx->xxxx(); -xxxxx "$xxxxxx_xxxxx xxxx xxxx xxxxxxx.";</programlisting> - <para>Txxx xxxxxxx xxxxxxxx xxx xxxxxxxxx xxxx xxx:</para> - <programlisting format="linespecific">d xxxx xxxx xxxxxxx</programlisting> - </refsect1> - </refentry> - <refentry id="ch18-77065"> - <refmeta> - <refentrytitle>xxxxxxxxx_xxxxxxxx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxxxxxxx_xxxxxxxx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">$<replaceable>xxx</replaceable>->xxxxxxxxx_xxxxxxxx($<replaceable>xxxxxxxxx</replaceable>[, \%<replaceable>xxxxx</replaceable>][, @<replaceable>xxxx_xxxxxx</replaceable>])</synopsis> - </refsynopsisdiv> - <refsect1 id="ch18-54-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-18-ITERM-4196" significance="normal"><primary>xxxxxxxx_xxxxxxxx( ) xxxxxxxx (Pxxx DBI)</primary></indexterm><indexterm id="mysqlian-CHP-18-ITERM-4197" significance="normal"><primary>xxxxxxx( ) xxxxxxxx (Pxxx DBI)</primary><secondary>xxxxxxxxx_xxxxxxxx( ) xxx</secondary></indexterm><indexterm id="mysqlian-CHP-18-ITERM-4198" significance="normal"><primary>xxxxxxx( ) xxxxxxxx (Pxxx DBI)</primary><secondary>xxxxxxxxx_xxxxxxxx( ) xxx</secondary></indexterm><indexterm id="mysqlian-CHP-18-ITERM-4199" significance="normal"><primary>xxxxxxxxx_xxxxxxxx( ) xxxxxxxx (Pxxx DBI)</primary></indexterm> -Txxx xxxxxxx x xxxxxxxxx xx xx xxxxx, xxxxx xx xxx xxxxxxx xxx xx xxx SQL xxxxxxxxx xxxxxxxx. Fxx xxxx xxx xx xxx xxxxxxx, xxxxxxx xxxxxxxxx xx xx xxxxx xx xxxxxxxx xxx xxxx xxx xx xxxx. Ax xxxxxxxx xxxxxx xxxxxxxx xxx xxxxxxx xxx xx xxx xxxxxxxxxx xxxxxxx xxx xxx xxxxxxxxx xxxxxx. Ix xxxxxxxxxxxx xxx xxxx xx xxx SQL xxxxxxxxx, xxxxx xxxxxx xxx xx xxxxx xx xx xxxxx xxx xxx xxxxx xxxxxxxx. Txxx xxxxxx xxxxxxxx <literal moreinfo="none">xxxxxxx( )</literal>, <literal moreinfo="none">xxxxxxx( )</literal>, xxx <literal moreinfo="none">xxxxxxxx_xxxxxxxx( )</literal>. Bxxxx xx xx xxxxxxx xx xxx xxx xx xxx xx xxxxx xx xxxxxxxxxxxx: -</para> - <programlisting format="linespecific">xx $xxx_xxxxx = "SELECT xxxxx, xxxxxx - FROM xxxxx WHERE xxxx_xx = ?"; -xx $xxxxx = $xxx->xxxxxxxxx_xxxxxxxx($xxx_xxxxx, xxxxx, 'dddd'); - -xxxxxxx xx $xxxx (@$xxxxx) { - xx ($xxxxx, $xxxxxx) = @$xxxx; - xxxxx "$xxxxx xx $xxxxxx \x"; -}</programlisting> - <para>Nxxxxx xxxx xx xxxx xxxxxx, xxx <literal moreinfo="none">xxxxxxx( )</literal> xxxxxx xxx’x xxxxxx xx xxxxxxx xxx SQL xxxxxxxxx xx xx xxxxxx x xxxxxxxxx xxxxxx. Txxx xxxxx xxxx <literal moreinfo="none">xxxxxx( )</literal> xxxxx’x xxxx xx xx xxxxxx. Hxxxxxx, xxxxxxx xx xxxxxx xx SQL xxxxxxxxx, x xxxxxxxxx xxxxxx xxxxx xx xxxxx. Sxxxx xxx xxxxxx xx xx xxxxx xxxxxxxxx, xx xxxx xx xxxxxxxxxx xx xxxxxxx xxx xxxx (x.x., xxx <literal moreinfo="none">@$xxxxx</literal>). Uxxxx xxx <literal moreinfo="none">xxxxxxx</literal>, xxxx xxxxxxx xx xxx xxxxx xx xxxxxxxxx--xxx xxxxx xxxxxxxxx xxx xxxx xxx, xxxxx xx xxxx xxxxxxxxxx xxxxxx xxx xxxx xxxxx (<literal moreinfo="none">@$xxxx</literal>). Fxxx xx, xxx xxxxxx xxx xxx xxxxxxxxxx xxxxxx xxx xx xxxxxx xxx xxxxx xx xxxxxxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch18-77066"> - <refmeta> - <refentrytitle>xxxxxxxxx_xxxxxxx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxxxxxxx_xxxxxxx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">$<replaceable>xxx</replaceable>->xxxxxxxxx_xxxxxxx($<replaceable>xxxxxxxxx</replaceable>, $<replaceable>xxx_xxxxx</replaceable>[, \%<replaceable>xxxxx</replaceable>][, @<replaceable>xxxx_xxxxxx</replaceable>])</synopsis> - </refsynopsisdiv> - <refsect1 id="ch18-55-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-18-ITERM-4200" significance="normal"><primary>xxxxxxxx_xxxxxxx( ) xxxxxxxx (Pxxx DBI)</primary></indexterm><indexterm id="mysqlian-CHP-18-ITERM-4201" significance="normal"><primary>xxxxxxx( ) xxxxxxxx (Pxxx DBI)</primary><secondary>xxxxxxxxx_xxxxxxx( ) xxx</secondary></indexterm><indexterm id="mysqlian-CHP-18-ITERM-4202" significance="normal"><primary>xxxxxxx( ) xxxxxxxx (Pxxx DBI)</primary><secondary>xxxxxxxxx_xxxxxxx( ) xxx</secondary></indexterm><indexterm id="mysqlian-CHP-18-ITERM-4203" significance="normal"><primary>xxxxxxxxx_xxxxxxx( ) xxxxxxxx (Pxxx DBI)</primary></indexterm> -Txxx xxxxxxx x xxxxxxxxx xx x xxxx xx xxxxxxxxxx xx xxxxxx, xxx xxx xxxx xxx xxxx xxx xxxxxxx xx xx SQL xxxxxxxxx xxxxx. Txxx xxxxxx xxxxxxxx <literal moreinfo="none">xxxxxxx( )</literal>, <literal moreinfo="none">xxxxxxx( )</literal>, xxx <literal moreinfo="none">xxxxxxxx_xxxxxxx( )</literal>. Fxx xxx xxxxxx xxxxxxxx, x xxxxxx xxx xxxxx xxxx xx xxxxx. Txxx xxxx xx xxxx xxx xxx xxx xx xxx xxxx xxxx xx xxxx xxxx xxx xxxxxxx xxx. Ax xxxxxxxx xxxxx xxxxxxxx xxx xxxxxxx xxx xx xxx xxxxxxxxxx xxxxxxx xxx x xxxxxxxxx xxxxxx. Ix xxxxxxxxxxxx xxx xxxx xx xxx SQL xxxxxxxxx, xxxxx xxxxxx xxxx xx xxxxx xx xx xxxxx xxx xxx xxxxx xxxxxxxx. -</para> - <programlisting format="linespecific">... -xx $xxx_xxxxx = "SELECT xxx_xx, xxxxx, xxxxxx - FROM xxxxx"; - -xx $xxxxx = $xxx->xxxxxxxxx_xxxxxxx($xxx_xxxxx, 'xxxx_xx'); - -xxxxxxx xx $xxxx_xx (xxxx %$xxxxx) { - xxxxx "$xxxxx->{$xxxx_xx}{xxxxx} - xx $xxxxx->{$xxxx_xx}{xxxxxx} \x"; -}</programlisting> - <para>Nxxxxx xxxx xx xxxx xxxxxx, xxx <literal moreinfo="none">xxxxxxx( )</literal> xxxxxx xxx’x xxxxxx xx xxxxxxx xxx SQL xxxxxxxxx xx xx xxxxxx x xxxxxxxxx xxxxxx. Txxx xxxxx xxxx <literal moreinfo="none">xxxxxx( )</literal> xxxxx’x xxxx xx xx xxxxxx. Hxxxxxx, xxxxxxx xx xxxxxx xx SQL xxxxxxxxx, x xxxxxxxxx xxxxxx xxxxx xx xxxxx. Sxxxx xxx xxxxxx xx x xxxx xxxxxxxxx, xx xxxx xx xxxxxxxxxx xx xxxxxxx xxx xxxx (x.x., xxx <literal moreinfo="none">%$xxxxx</literal>). Uxxxx xxx <literal moreinfo="none">xxxxxxx</literal> xxx xxx <literal moreinfo="none">xxxx</literal> xxxxxxxx, xxxx xxx xx xxx xxxx xx xxxxxxxxx--xxx xxxx xxxxxxxxx xxx xxxx xxx, xxxxx xx xxxx xxxxxxxxxx xxxxxx xxx xxxx xxxxx (<literal moreinfo="none">%$xxxx</literal>). Fxxx xx, xxx xxxxxx xxx xxx xxxxxxxxxx xxxxxx xxx xx xxxxxxxxx xx xxx xxxxxx xxxxxxxx xxxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch18-77067"> - <refmeta> - <refentrytitle>xxxxxxxxx_xxxxxxxx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxxxxxxx_xxxxxxxx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">$<replaceable>xxx</replaceable>->xxxxxxxxx_xxxxxxxx($<replaceable>xxx_xxxxxxxxx</replaceable>[, \%<replaceable>xxxxx</replaceable>][, @<replaceable>xxxx_xxxxxx</replaceable>])</synopsis> - </refsynopsisdiv> - <refsect1 id="ch18-56-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-18-ITERM-4204" significance="normal"><primary>xxxxxxx( ) xxxxxxxx (Pxxx DBI)</primary><secondary>xxxxxxxxx_xxxxxxxx( ) xxx</secondary></indexterm><indexterm id="mysqlian-CHP-18-ITERM-4205" significance="normal"><primary>xxxxxxx( ) xxxxxxxx (Pxxx DBI)</primary><secondary>xxxxxxxxx_xxxxxxxx( ) xxx</secondary></indexterm><indexterm id="mysqlian-CHP-18-ITERM-4206" significance="normal"><primary>xxxxxxxxx_xxxxxxxx( ) xxxxxxxx (Pxxx DBI)</primary></indexterm> -Txxx xxxxxxx x xxxxxxxxx xx xx xxxxx xxxxxxxxxx x xxxxx xx xxx xxxxx xxxxxx xx xxxx xxx xxxxxxxx. Txx SQL xxxxxxxxx xx xxxxx xx xxx xxxxx xxxxxxxx xx xxx xxxxxxxx. Txxx xxx xx xxxxxxxxxxxx xxxxxx xx xxx xxxxx xxxxxx xx x xxx xxxxx. Txxx xxxxxxxx xxxxxxxx <literal moreinfo="none">xxxxxxx( )</literal> xxx <literal moreinfo="none">xxxxxxx( )</literal> xx xxx SQL xxxxxxxxx. -</para> - <programlisting format="linespecific">... -xx $xxx_xxxxx = "SELECT * FROM xxxxx"; - -xx $xxxx = $xxx->xxxxxxxxx_xxxxxxxx($xxx_xxxxx); - -xxxxxxx xx $xxxxxx_xx (@$xxxx){ - xxxxx "$xxxxxx_xx \x"; -}</programlisting> - <para>Txx <literal moreinfo="none">xxxxxxx( )</literal> xxxxxx xxx’x xxxxxx xx xxxxxx x xxxxxxxxx xxxxxx xx xxx SQL xxxxxxxxx xx xxxxx xxxx xxxx xxxxxx, xxxxxx <literal moreinfo="none">xxxxxx( )</literal> xxxxxxxxxxx. Hxxxxxx, x xxxxxxxxx xxxxxx xxxxx xx xxxxx xxxxxxx. Sxxxx xxx xxxxxx xx xx xxxxx xxxxxxxxx, xx xxxx xx xxxxxxxxxx xx xxxxxxx xxx xxxx (x.x., <literal moreinfo="none">@$xxxx</literal>). Uxxxx <literal moreinfo="none">xxxxxxx</literal>, xxxx xxxxxxx xx xxx xxxxx xx xxxxxxxxx, xxx xxxxxxx xxx xxx xx xxx xxxxxxx xxx, xxx xxx xxxxx xx xxxx xxxxxxxxxxx xxxxxx xx x xxxxxxxx xxxx (<literal moreinfo="none">$xxxxxx_xx</literal>, xxx xxxxx xxxxxx xx xxx xxxxx).</para> - </refsect1> - </refentry> - <refentry id="ch18-77068"> - <refmeta> - <refentrytitle>xxxxxxxxx_xxxxx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxxxxxxx_xxxxx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">$<replaceable>xxx</replaceable>->xxxxxxxxx_xxxxx($<replaceable>xxx_xxxxxxxxx</replaceable>[, \%<replaceable>xxxxx</replaceable>, @<replaceable>xxxxxx</replaceable>])</synopsis> - </refsynopsisdiv> - <refsect1 id="ch18-57-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-18-ITERM-4207" significance="normal"><primary>xxxxxxxx_xxxxx( ) xxxxxxxx (Pxxx DBI)</primary><secondary>xxxxxxxxx_xxxxx( ) xxx</secondary></indexterm><indexterm id="mysqlian-CHP-18-ITERM-4208" significance="normal"><primary>xxxxxxx( ) xxxxxxxx (Pxxx DBI)</primary><secondary>xxxxxxxxx_xxxxx( ) xxx</secondary></indexterm><indexterm id="mysqlian-CHP-18-ITERM-4209" significance="normal"><primary>xxxxxxx( ) xxxxxxxx (Pxxx DBI)</primary><secondary>xxxxxxxxx_xxxxx( ) xxx</secondary></indexterm><indexterm id="mysqlian-CHP-18-ITERM-4210" significance="normal"><primary>xxxxxxxxx_xxxxx( ) xxxxxxxx (Pxxx DBI)</primary></indexterm> -Txxx xxxxxxx xxx xxx xxxx xxx xxxxxxx xx xx SQL xxxxxxxxx xx xxx xxxx xx xx xxxxx, xxxxx xxxx xxxxxx xxxxxxxx xx xxxxxxxxxxx xx xx xxxxxxx xx xxx xxxxx, xx xxxxx. Txxx xxxxxx xxxxxxxx <literal moreinfo="none">xxxxxxx( )</literal>, <literal moreinfo="none">xxxxxxx( )</literal>, xxx <literal moreinfo="none">xxxxxxxx_xxxxx( )</literal>. Nx xxxxxxxxx xxxxxx xx xxxxxxx, xx <literal moreinfo="none">xxxxxx( )</literal> xx xxxxxxxxxxx. Ax xxxxxxxx xxxxxx xxxxxxxx xxx xxxxxxx xxx xx xxx xxxxxxxxxx xxxxxxx xxx x xxxxxxxxx xxxxxx. Ix xxxxxxxxxxxx xxx xxxx xx xxx SQL xxxxxxxxx, xxxxx xxxxxx xxxx xx xxxxx xx xx xxxxx xxx xxx xxxxx xxxxxxxx. -</para> - <programlisting format="linespecific">... -xx $xxx_xxxxx = "SELECT xxxxx, xxxxxx - FROM xxxxx WHERE xxxx_xx = ?"; - -xx ($xxxxx, $xxxxxx) = $xxx->xxxxxxxxx_xxxxx($xxx_xxxxx, xxxxx, 'dddd'); - -xxxxx "$xxxxx xx $xxxxxx \x";</programlisting> - <para>Nx xxxxxxxxxx xxx xxxxx xxx xxx SQL xxxxxxxxx xx xxxx xxxxxxx, xx <literal moreinfo="none">xxxxx</literal> xx xxxx xxx xxx xxxxxx xxxxxxxx. Txx xxxxx xxxxxxxx xxxxxxxx xxx <emphasis>xxxx_xx</emphasis> xxxxx xxx xxx xxxxxxxxxxx xx xxx SQL xxxxxxxxx. Nxxxxx xxxx xxx xxxx <literal moreinfo="none">xxxxxx_</literal> xxxx xx xxxxxxxx xxxxxx xxxxxx xxxx xxx xxxxxxx xxx xxx xx x xxxxxxx xxxxxxxxx xx xxxxx xxx xxxx xxxxx xx xxxx xxxxxxxxx xxx xxx xx xxxx. Txx <literal moreinfo="none">xxxxxxx( )</literal> xxxxxx xxx’x xxxxxx xx xxxxxx x xxxxxxxxx xxxxxx xx xxx SQL xxxxxxxxx xx xxxxx xx xx xx xxxx, xxxxxx <literal moreinfo="none">xxxxxx( )</literal> xxxxxxxxxxx. Hxxxxxx, x xxxxxxxxx xxxxxx xxxxx xx xxxxx xxxxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch18-77069"> - <refmeta> - <refentrytitle>xxxxxxxxx_xxxxxxxx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxxxxxxx_xxxxxxxx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">$<replaceable>xxx</replaceable>->xxxxxxxxx_xxxxxxxx($<replaceable>xxx_xxxxxxxxx</replaceable>[, \%<replaceable>xxxxx</replaceable>][, @<replaceable>xxxxxx</replaceable>])</synopsis> - </refsynopsisdiv> - <refsect1 id="ch18-58-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-18-ITERM-4211" significance="normal"><primary>xxxxxxxx_xxxxxxxx( ) xxxxxxxx (Pxxx DBI)</primary></indexterm><indexterm id="mysqlian-CHP-18-ITERM-4212" significance="normal"><primary>xxxxxxx( ) xxxxxxxx (Pxxx DBI)</primary><secondary>xxxxxxxxx_xxxxxxxx( ) xxx</secondary></indexterm><indexterm id="mysqlian-CHP-18-ITERM-4213" significance="normal"><primary>xxxxxxx( ) xxxxxxxx (Pxxx DBI)</primary><secondary>xxxxxxxxx_xxxxxxxx( ) xxx</secondary></indexterm><indexterm id="mysqlian-CHP-18-ITERM-4214" significance="normal"><primary>xxxxxxxxx_xxxxxxxx( ) xxxxxxxx (Pxxx DBI)</primary></indexterm> -Txxx xxxxxxx x xxxxxxxxx xx xx xxxxx xx xxx xxx xxxx xxx xxxxxxx xx xx SQL xxxxxxxxx xxxxx. Txxx xxxxxx xxxxxxxx <literal moreinfo="none">xxxxxxx( )</literal>, <literal moreinfo="none">xxxxxxx( )</literal>, xxx <literal moreinfo="none">xxxxxxxx_xxxxxxxx( )</literal>. Ax xxxxxxxx xxxxxx xxxxxxxx xxx xxxxxxx xxx xx xxx xxxxxxxxxx xxxxxxx xxx x xxxxxxxxx xxxxxx. Ix xxxxxxxxxxxx xxx xxxx xx xxx SQL xxxxxxxxx, xxxxx xxxxxx xxxx xx xxxxx xx xx xxxxx xxx xxx xxxxx xxxxxxxx. -</para> - <programlisting format="linespecific">... -xx $xxx_xxxxx = "SELECT xxxxx, xxxxxx - FROM xxxxx WHERE xxxx_xx = ?"; - -xx $xxxx = $xxx->xxxxxxxxx_xxxxxxxx($xxx_xxxxx, xxxxx, 'dddd'); - -xx ($xxxxx, $xxxxxx) = @$xxxx; -xxxxx "$xxxxx xx $xxxxxx \x";</programlisting> - <para>Txx <literal moreinfo="none">xxxxxxx( )</literal> xxxxxx xxx’x xxxxxx xx xxxxxx x xxxxxxxxx xxxxxx xx xxx SQL xxxxxxxxx xx xxxxx xx xx xx xxxx, xxxxxx <literal moreinfo="none">xxxxxx( )</literal> xxxxxxxxxxx. Hxxxxxx, x xxxxxxxxx xxxxxx xxxxx xx xxxxx xxxxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch18-77070"> - <refmeta> - <refentrytitle>xxxxxxxxx_xxxxxxx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxxxxxxx_xxxxxxx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">$<replaceable>xxx</replaceable>->xxxxxxxxx_xxxxxxx($<replaceable>xxx_xxxxxxxxx</replaceable>[, \%<replaceable>xxxxx</replaceable>, @<replaceable>xxxxxx</replaceable>])</synopsis> - </refsynopsisdiv> - <refsect1 id="ch18-59-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-18-ITERM-4215" significance="normal"><primary>xxxxxxxx_xxxxxxx( ) xxxxxxxx (Pxxx DBI)</primary></indexterm><indexterm id="mysqlian-CHP-18-ITERM-4216" significance="normal"><primary>xxxxxxx( ) xxxxxxxx (Pxxx DBI)</primary><secondary>xxxxxxxxx_xxxxxxx( ) xxx</secondary></indexterm><indexterm id="mysqlian-CHP-18-ITERM-4217" significance="normal"><primary>xxxxxxx( ) xxxxxxxx (Pxxx DBI)</primary><secondary>xxxxxxxxx_xxxxxxx( ) xxx</secondary></indexterm><indexterm id="mysqlian-CHP-18-ITERM-4218" significance="normal"><primary>xxxxxxxxx_xxxxxxx( ) xxxxxxxx (Pxxx DBI)</primary></indexterm> -Txxx xxxxxxx x xxxxxxxxx xx x xxxx xx xxx xxx xxxx xxx xxxxxxx xx xx SQL xxxxxxxxx xxxxx. Txxx xxxxxx xxxxxxxx <literal moreinfo="none">xxxxxxx( )</literal>, <literal moreinfo="none">xxxxxxx( )</literal>, xxx <literal moreinfo="none">xxxxxxxx_xxxxxxx( )</literal>. Hxxxxxx, x xxxxxxxxx xxxxxx xxxxx xx xxxxx. Axxxxxxxxx xxxx xxx xx xxxxx xxx x xxxxxxxxx xxxxxx xxx xx xxxxxxxx xx x xxxx xxx xxx xxxxxx xxxxxxxx xx xxxx xxxxxx. Ix xxxxxxxxxxxx xxx xxxx xx xxx SQL xxxxxxxxx, xxxxx xxxxxx xxx xx xxxxx xx xx xxxxx xxx xxx xxxxx xxxxxxxx. -</para> - <programlisting format="linespecific">... -xx $xxx_xxxxx = "SELECT xxxxx, xxxxxx - FROM xxxxx WHERE xxxx_xx = ?"; - -xx $xxxx_xxx = $xxx->xxxxxxxxx_xxxxxxx($xxx_xxxxx, xxxxx, 'dddd'); - -xxxxx "$xxxx_xxx->{xxxxx} xx $xxxx_xxx->{xxxxxx} \x";</programlisting> - <para><indexterm id="mysqlian-CHP-18-ITERM-4219" significance="normal"><primary>xxxxxxxxx_xxxxxxx( ) xxxxxxxx (Pxxx DBI)</primary></indexterm> -Nxxxxx xxxx xxx xxxxxx xxxxxxxx xxx xxxxx xx xxx xxxxxxx xx xxx xxxx xx xxx xxxxxx xx xxx xxxx xxxxxxxxx. Nxxxxx xxxx xxxx xxxxx xxxx xxx xxx xx xxxxxxxx, x xxxxxxx xxxxxxxxx xx xxxxxxxxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch18-77071"> - <refmeta> - <refentrytitle>xxx_xxx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxx_xxx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">$<replaceable>xxxxxx</replaceable>->xxx_xxx($<replaceable>xxx</replaceable>, $<replaceable>xxxxxx</replaceable>[, $<replaceable>xxxxx</replaceable>[, $<replaceable>xxxxxx</replaceable>[, $<replaceable>xxxxxx_xxxxx</replaceable>]]])</synopsis> - </refsynopsisdiv> - <refsect1 id="ch18-60-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-18-ITERM-4220" significance="normal"><primary>xxx_xxx( ) xxxxxxxx (Pxxx DBI)</primary></indexterm> -Txxx xxxx xxx xxxxxx xxx <literal moreinfo="none">xxx</literal>, <literal moreinfo="none">xxxxxx</literal>, xxx <literal moreinfo="none">xxxxx</literal> xxx xxx xxxxxx. Txx <literal moreinfo="none">xxxxxx</literal> (x.x., <literal moreinfo="none">RxxxxExxxx</literal>) xxx xx xxxxxxx, xx xxxx. Ix xxxxxxx <literal moreinfo="none">xxxxx</literal>, xxxxxx x xxxxxxxxx xxxxxx xxxxx xx xxxxx xx xxx xxxxx xxxxxxxx xx xxxx xxxxxx. -Yxx xxx xxx xxxx xxxxxxxx xx xxxxxxxx xx xxxxx xxxxxxx xx x xxxx. Bxxxx xx xx xxxxxxx xx xxx xxx: -</para> - <programlisting format="linespecific">... -xx $xxxx_xx = xxxxx; -xx $xxxxx = &xxx_xxxx_xxx($xxxx_xx) - xx xxxxx "Exxxx: " . DBI->xxx . DBI->xxxxxx; -... - -xxx xxx_xxxx_xxx { - xx $xxxx_xx = xxxxx; - - xx($xxxx_xx =~ x/\D/x) { - xxxxxx $xxx->DBI::xxx_xxx(ddd, "\xYxx xxxxxxx '$xxxx_xx'.\xBxx Bxxx ID!"); - xxxx; - } - ... -}</programlisting> - <para>Nxxxxx xxxx xx xxx xxxxxxxxxx xxxx xx xx xx xxxxx x xxxx xxxxxxxxxx xxxx xxxxxxxx xxx xxx-xxxxxxx xxxxxxxxxx, xx xxxx xxx xxxxxxx xxx xxxxxxx xxxxxxx xxx xxxxx xx xxx xx <literal moreinfo="none">xxx_xxx</literal>. Txx xxxx xx xxxx xx xxx xxx xx xxx xxxxxxx xxxx xxxxxx xxx xxxxxxxxxx xxxx xxxxxxx xxx xxxxxxx xx xxxx, xx xxxxxxx xxx xxxxx xxxxxx xxx xxxxxx. Bxxxx xxx xxx xxxxxxx xx xxx xxxxx xxxxxxx xxxx x xxxx xxxxxx x xxxx ID xxxx xxxxxxxx x xxxxxx:</para> - <programlisting format="linespecific">Exxxx: ddd -Yxx xxxxxxx 'dddx'? -Bxx Bxxx ID!</programlisting> - </refsect1> - </refentry> - <refentry id="ch18-77072"> - <refmeta> - <refentrytitle>xxxxx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxxx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">$<replaceable>xxxxxx</replaceable>->xxxxx( )</synopsis> - </refsynopsisdiv> - <refsect1 id="ch18-61-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-18-ITERM-4221" significance="normal"><primary>xxxxx( ) xxxxxxxx (Pxxx DBI)</primary></indexterm> -Txxx xxxxxx xxxxxxx xxx xxxxx xxxx xx xx xxxxx xx x xxxx-xxxxxxxxx xxxxxx, xx xxx <literal moreinfo="none">SQLSTATE</literal> xxxxxx. Ix xxxxx’x xxxx xx xx xxxxxxxxx xx MxSQL xxx, xx xxxxxx xx xxxxx xxxxx xx xxxxxxxx xx xxx x xxxxxxx xxxxx, <literal moreinfo="none">Sdddd</literal>xx xxxxxxxx. -</para> - <programlisting format="linespecific">$xxxxx = $xxx->xxxxx(); -xxxxx "SQLSTATE: $xxxxx";</programlisting> - </refsect1> - </refentry> - <refentry id="ch18-77073"> - <refmeta> - <refentrytitle>xxxxxxxxxx_xxxx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxxxxxxxx_xxxx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">$<replaceable>xxx</replaceable>->xxxxxxxxxx_xxxx($<replaceable>xxxxxxx</replaceable>, $<replaceable>xxxxxxxx</replaceable>, $<replaceable>xxxxx</replaceable>, <replaceable>xxxxxx_xxxx</replaceable>, <replaceable>xxxxx</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch18-62-fm2xml"> - <title/> - <para>Txxx xxxxxx xx xxxxx xx xxxxxx xx xxxxxx xxxxxxxxx xxxxxx xxxx xxx xx xxxx xx xxxxxxxx xxxxxxxxxxx xxxxxxxxxxx xxxxx x xxxxx xxxxx xxx xxx xxxxxxx. Ix’x xxxxxxxxxxxx xx xxx xxxx xx xxxx xxxxxxx xxx xxx xxxxxx, xxxxxxx, xxx xxxxx xxx xxxxxx. Txx <replaceable>xxxxxx_xxxx</replaceable> xxx xx xxx xx d xx d xx xxxxxxxx xxxxxxx xx xxx xxxx xxxxxxxxxxx xx xxxxxx xxxxxxx xxxxxx xx xxxxxxxxx. Ix <replaceable>xxxxx</replaceable> xx xxx xx d, xxxx xxxx xxxxxxxxxxx xx xxx xxxxxxxx xxxxxx xx xxx xx xxxxxxxxx xxxxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch18-77074"> - <refmeta> - <refentrytitle>xxxx_xxxxx_xxxxxx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxx_xxxxx_xxxxxx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">$<replaceable>xxxxxx</replaceable>->xxxx_xxxxx_xxxxxx($<replaceable>xxxxxx</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch18-63-fm2xml"> - <title/> - <para>Txxx xxxxxx xx xxxx xx xxxx xxxxxxx. Ix’x xxxxxx xx xxxxxx xxx xxxxxxx xx xxx xxxx xxxxx xxxxxx xxxxxx xxxx xxxxxxx. Bxxx xxx xxxxxx xxxxx xxxxx xxx xxxxxx xxx xxx xxxxx xxxxxx xxxxx xxx xxx xxxxxxxxx xx xxxx xxxxxx xxxx xx xxx xxxx xxxx xx xxxxxx xxx xxxx xxx xxxx xxxxxx (x.x., <replaceable>$xxx</replaceable> xx xxxxxx xx xxxx <replaceable>$xxxd</replaceable> xxx <replaceable>$xxxd</replaceable>).</para> - </refsect1> - </refentry> - <refentry id="ch18-77075"> - <refmeta> - <refentrytitle>xxxxx_xxxx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxxx_xxxx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">$<replaceable>xxx</replaceable>->xxxxx_xxxx($<replaceable>xxxxxxx</replaceable>, $<replaceable>xxxxxxxx</replaceable>, $<replaceable>xxxxx</replaceable>, $<replaceable>xxxx</replaceable>[, \%<replaceable>xxxxx</replaceable>])</synopsis> - </refsynopsisdiv> - <refsect1 id="ch18-64-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-18-ITERM-4222" significance="normal"><primary>xxxxx_xxxx( ) xxxxxxxx (Pxxx DBI)</primary></indexterm> -Txxx xxxxxxx x xxxxxxxxx xxxxxx xxx xxxxxxxx xxxxxxxxxxx xxxxx xxx xxxxxx xx x xxxxx xxxxxxxx. Ix MxSQL, xxx xxxxxxxxxx xxxxx xxx xxxxxxx, xxx xxx xxxxxx xxxx xxx xxxxxxxx xxxxxx xxx xxxx xxxxxxx xxx x xxxx xx xxxxxx xxx xxxxx xxx xxx xxxxxxxx xx xxxxxxxx. -</para> - <programlisting format="linespecific">... -xx $xxxxxx = $xxx->xxxxx_xxxx(); - -xxxxx( xx($xxxxxxxxx,$xxxxx,$xxxx,$xxxx,$xxxxxxx) = - $xxxxxx->xxxxxxxx_xxxxx()) { - xxxxxxx ($xxxxxxxxx,$xxxxx,$xxxx,$xxxx,$xxxxxxx) { - $_ = '' xxxxxx xxxxxxx $_; - } - xxxxx "$xxxxxxxxx $xxxxx $xxxx $xxxx $xxxxxxx \x"; -}</programlisting> - </refsect1> - </refentry> - <refentry id="ch18-77076"> - <refmeta> - <refentrytitle>xxxxxx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxxxx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">$<replaceable>xxx</replaceable>->xxxxxx($<replaceable>xxxxxxx</replaceable>, $<replaceable>xxxxxxxx</replaceable>, $<replaceable>xxxxx</replaceable>, $<replaceable>xxxx</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch18-65-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-18-ITERM-4224" significance="normal"><primary>xxxxxx( ) xxxxxxxx (Pxxx DBI)</primary></indexterm> -Txxx xxxxxxx xx xxxxx xxxxxxxxxx x xxxx xx xxxxxx xxx xxxxx xxx x xxxxxxxx xxxxxx. Wxxx MxSQL, xxx xxxxxxxxxx xxx xxxxxxx xxx xxx xxxxxx xxx xxxxx xxxx xxx xxxxxxxx xxxxxx. -</para> - <programlisting format="linespecific"> -xx @xxxxxx = $xxx->xxxxxx(); - -xxxxxxx $xxxxx(@xxxxxx) { - xxxxx "$xxxxx \x"; -}</programlisting> - </refsect1> - </refentry> - <refentry id="ch18-77077"> - <refmeta> - <refentrytitle>xxxx_xxx_xxxx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxx_xxx_xxxx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">$<replaceable>xxx</replaceable>->xxxx_xxx_xxxx($<replaceable>xxxxxxx</replaceable>, $<replaceable>xxxxxxxx</replaceable>, $<replaceable>xxxxx</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch18-66-fm2xml"> - <title/> - <para>Txxx xxxxxx xxxxxx xxx xxxxxxxx xxxxxx xxxx xxxxx xx xxxx xxx API xxxxxxxxxx xxxx. Ix xxxxxxx x xxxxxx xxxxxx xx xxxxxxxxxxxxxx xxxx xxxx xxx xxxxxx xxxxx xxx xxxxxxxxxx xxxx xxx xxxxxxx. Txxx xxxxxx xxx xxxxx xxxxxxxx xxx xxxxxxx’x xx xxxx xxxxxxxxx. Ix’x xxxxxxxxx xxxx xxxx xxxxxxxxxxx x xxxxx-xxxxxxxx xxxxxxxxxx xxxx.</para> - </refsect1> - </refentry> - <refentry id="ch18-77078"> - <refmeta> - <refentrytitle>xxxxx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxxx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">$<replaceable>xxxxxx</replaceable>->xxxxx(<replaceable>xxxxx</replaceable>[, <replaceable>xxx</replaceable>]) | -<replaceable>DBI</replaceable>->xxxxx()</synopsis> - </refsynopsisdiv> - <refsect1 id="ch18-67-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-18-ITERM-4225" significance="normal"><primary>xxxxx( ) xxxxxxxx (Pxxx DBI)</primary></indexterm> -Txxx xxxx xxx xxxxx xxxxx xxx x xxxxxx. A xxxxx xx d xxxxxxxx xxxxxxx; xxxxx d xxxxxx xxx xxxxxxxxx xx xxx xxxxxxxx xxxxxx; xxxxx d xxxxxxxx xxxx xxxxxxx xxxxxxxxx xxxxxxxxx xxxxxx. Ix x xxxxxxxx xx xxxxx xx xxx xxxxxx xxxxxxxx, xxxxx xxxxxxxxxxx xxxx xx xxxxxxxx xx xxxx xxxxxxx xxxxxxx xx <literal moreinfo="none">xxxxxx</literal>. Ix <literal moreinfo="none">DBI->xxxxx()</literal> xxxxxx xx xxxx xxxxxxx xx x xxxxxxxxx xxxxxx, xx xxxx xxx xxx xxxxx xxxxx xxxxxxxx. Ix xxxx xxxxxx xxx xxxxx xxxxxxxx xxxx xxxxxx xx xxx xxxxxx, xx xxxx. -</para> - </refsect1> - </refentry> - <refentry id="ch18-77079"> - <refmeta> - <refentrytitle>xxxxx_xxx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxxx_xxx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">$<replaceable>xxxxxx</replaceable>->xxxxx_xxx(<replaceable>xxxxxxx</replaceable>[, <replaceable>xxxxxxx_xxxxx</replaceable>]) | -<replaceable>DBI</replaceable>->xxxxx_xxx()</synopsis> - </refsynopsisdiv> - <refsect1 id="ch18-68-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-18-ITERM-4226" significance="normal"><primary>xxxxx( ) xxxxxxxx (Pxxx DBI)</primary></indexterm><indexterm id="mysqlian-CHP-18-ITERM-4227" significance="normal"><primary>xxxxx_xxx( ) xxxxxxxx (Pxxx DBI)</primary></indexterm> -Txxx xxxx xxxx xxxxx xx xxxxx xxxxxxxx xx xxxxx xxxx. A xxxxxxx xxxxx xxxxx (xxx <literal moreinfo="none">xxxxx( )</literal> xxxxxx) xxxxxxxx xxx xxx xxxxxxx xx xx xxxx xxx xx xxxxxxxxx xx x xxxxxx xxxxxxxx. Txx <literal moreinfo="none">DBI->xxxxx_xxx()</literal> xxxxxx xxxx xxx xxxxxxx xxxxx xxxxxxxx. -</para> - </refsect1> - </refentry> - <refentry id="ch18-77080"> - <refmeta> - <refentrytitle>xxxx_xxxx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxx_xxxx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">$<replaceable>xxx</replaceable>->xxxx_xxxx([$<replaceable>xxxx_xxxx</replaceable>])</synopsis> - </refsynopsisdiv> - <refsect1 id="ch18-69-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-18-ITERM-4228" significance="normal"><primary>xxxx_xxxx( ) xxxxxxxx (Pxxx DBI)</primary></indexterm> -Txxx xxxxxxx x xxxx xxxxxxxxxx xxxxxxxxxxx xx x xxxxx xxxxxxxx. Ix xx xxxx xxxx xx xxxxx xx xx <literal moreinfo="none">SQL_ALL_TYPES</literal> xx xxxxx, xxxx xxx xxxx xx xxxxxxxx xx xxx xxxx. Txx xxxxxxxxx xxxxx xxx xxxx xxxxxx xxxxx xx xxxx xxx xxxx xxxx xxx xx xxx xxxxxxxx xxxxxxx: -</para> - <programlisting format="linespecific">... -xx $xxxxxx = $xxx->xxxx_xxxx(); - -xxxxx(xx($xxx, $xxxxx) = xxxx(%$xxxxxx)){ - xxxxx "$xxx => $xxxxx\x"; -}</programlisting> - </refsect1> - </refentry> - <refentry id="ch18-77081"> - <refmeta> - <refentrytitle>xxxx_xxxx_xxx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxx_xxxx_xxx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">$<replaceable>xxx</replaceable>->xxxx_xxxx_xxx( )</synopsis> - </refsynopsisdiv> - <refsect1 id="ch18-70-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-18-ITERM-4229" significance="normal"><primary>xxxx_xxxx_xxx( ) xxxxxxxx (Pxxx DBI)</primary></indexterm> -Txxx xxxxxxx x xxxxxxxxx xx xx xxxxx xx xxx xxxxxxxxx xxxxxxxxx xx xxx xxxxxx. Txx xxxxxxx xxxxxxx xxxxx xxxxx xxx xx xxx xx xxxx xxx xxxx xxxx xxx xxxxxxx xx xxx xxxxxx: -</para> - <programlisting format="linespecific">xx @xxxxxx = $xxx->xxxx_xxxx_xxx(); -xx $xxxxxx_xxxxxxx = $xxxxxx[d]; - -xxxxx( xx($xxx,$xxxxx) = xxxx(%$xxxxxx_xxxxxxx)){ - xxxxx "$xxx => @$xxxxx\x"; -}</programlisting> - </refsect1> - </refentry> - </sect1> - <sect1 id="mysqlian-CHP-18-SECT-3"> - <title>Axxxxxxxxx xxx Hxxxxxx - xxxxxxxxxxxxxxxxx, xxxxxx -Txxx xxxxxxx xxxxx xxx xxxxxxxxx xxxx xxx xxxxxx xxxx xxx xx xxxxx xx xxx xxxxxxx xx xxxx Pxxx DBI xxxxxxx, xx xxxxxxxxx xxxxx xxxx %xxxxx xx xxxx xxxxxx’x xxxxxx. Txx xxxxx xxxxxx xx xxx xx xxxxxxxxx xx $xxxxxx->xxxxxxxxx=>'xxxxxxx'. Axxxxxxxx xxx/xxxxx xxxxx xxx xxxxxxxxx xx xxxxxx xxx xxx xxx xxxxxxxxx xxxxxx x xxxx xx xxxxx-xxxxxx. Fxx xxxxxxx, xx xxx xxxxxxxx DBI xxx xx xxxxxx xxxxx xxxxxxxx xxx x xxxxxxxx xxxxxx, xxx xxxxx xx xxx xxxxxxxxx xxxx xx’x xxxxxxx: - xx $xxx = DBI->xxxxxxx('DBI:xxxxx:xxxxxxxxx:xxxxxxxxx', - 'xxxxx','xxxxxxxxxdddd', {RxxxxExxxx=>d}); - Tx xxxxxxxx x xxxxxxx xxx $xxxxxx->{xxxxxxxxx}. Txxx xxx xx xxxxxx xx x xxxxxxxx xx xxxxxxx: - xxxxx "xxx->{RxxxxExxxx=>" . $xxx->{RxxxxExxxx} . "}"; - Ix xxx xxx xxxx xxxxxx xxxx xx xxxx, xxxx xx xxxx xxxx xx xxxxxxxxx xxxx xx xxx xx d xxxx xxxxxx xx xxxxx xxxxx. - - - <emphasis role="bold">Axxxxxxxxx xxx Axx Hxxxxxx</emphasis> - - xxxxxxxxx xxxxxxx, xxxxxxxxxx xxxxxxxxxxx xxxxxxx, xxxxxxxxxx xxx -Yxx xxx xxx xxx xxxxxxxxx xxxxxxxxxx xxxx xxxx xxxxxxxx xxxxxxx xxx xxxxxxxxx xxxxxxx. - - - - - Axxxxx (xxxxxxx, xxxx-xxxx) - - - -Txxx xxxxxxxxx xxxxxxxxx xxxx xxx xxxxxx xxxxxx xx xxxxxx. Ix xxx xxxx xx x xxxxxxxx xxxxxx, xx xxxxxxxxx xxxx xxx xxxxxxxxxx xx xxxx. Txx xxxxxxxxxx( ) xxxxxx xxxx xxxx xxxxxxxxx xx d xx x xxxxxxxx xxxxxx; xxxxxx( ) xxxx xx xx d xx x xxxxxxxxx xxxxxx.Axxxxx xxxxxxxxx (Pxxx DBI) -xxxxxxxxxx( ) xxxxxxxx (Pxxx DBI) -xxxxxx( ) xxxxxxxx (Pxxx DBI)Axxxxx xxxxxxxxx xxx - - - - - - AxxxxxKxxx (xxxxxxx, xxxx-xxxx) - - - Pxxxxxxx xxx xxxxxx xx xxxxxx xxxxxxx xxxxx xxx xxxxxx xxxx xxxxxxxx xxx xxxxxxxxx. Ix xxxxxx xx x xxxxxx xxxxxx, xxx xxxxxx xx xxxxxxxx xxxxxxx xxxx xx xxxxxxxx. Ix xx’x xxxxxx xx x xxxxxxxx xxxxxx, xxxx xxx xxxxxx xx xxxxxx xxxxxxxxx xxxxxxx xxxx xx xxxxxxxx.AxxxxxKxxx xxxxxxxxx (Pxxx DBI) - - - - - - CxxxxKxxx (xxxx xxx) - - - -Rxxxxxx x xxxxxxxxx xx x xxxx xxxxxxxxxx xxxxx xxxxxxx xxx x xxxxxx xx x xxxxxxxx xxxxxx xxxx xxx xxxxxxx xx xxx xxxxxxx_xxxxxx( ) xx xxxxxxx_xxxxxx( ) xxxxxxx, xxxxxxxxxxxx.CxxxxxKxxx xxxxxxxxx (Pxxx DBI) -xxxxxxx_xxxxxx( ) xxxxxxxx (Pxxx DBI) xxxxxxx_xxxxxx( ) xxxxxxxx (Pxxx DBI) - - - - - - CxxxxHxxxxxx (xxxxx xxx) - - - Rxxxxxx x xxxxxxxxx xx xx xxxxx xx xxx xxxxxxxxxx xxxxxxx xxxxxxx xx xxx xxxxxx xxxx xxxxxx xxxx xxxxxx. Txxxx xxx xxxx xxxxxxxxxx xxx xxx xxxxxxxxxx xxxxxx xxx xxx xxxxxxxxxx xx xxxxxxxxx. - - - - - CxxxBxxxxx (xxxxxxx, xxxxxxxxx) - - - Txxxx xxxxxxxx xxxxxx xxxx xxxxx-xxxxx xxxxxxxxx xxxxxx (x.x. CHAR xxxxxx xx xxxxxxx xxxx).CxxxBxxxxx xxxxxxxxx (Pxxx DBI) - - - - - - CxxxxxMxxx (xxxxxxx, xxxxxxxxx) - - - Mxxxx xxxxxxxxx xxxxxx xxxxxxxxxx xxxx x xxxxxx xxxxxx. Nxx xxxxxxxx xxxx xx xxxxxxxxxxxx.CxxxxxMxxx xxxxxxxxx (Pxxx DBI) - - - - - - ExxCxxxx (xxxxxxxx xxxxxxx) - - - -Kxxxx x xxxxx xx xxx xxxxxx xx xxxxxx xxxxxx xx xxx_xxx( ).ExxCxxxx xxxxxxxxx (Pxxx DBI) -xxx_xxx( ) xxxxxxxx (Pxxx DBI) - - - - - - Exxxxxxx (xxxxxxx) - - - Dxxxxxxxxx xxxxxxx x xxxxxx xx xxx xx xxx xxxxxxxx xxx xxxx xxxxxxxx.Exxxxxxx xxxxxxxxx (Pxxx DBI) - - - - - - FxxxxHxxxKxxNxxx (xxxxxx, xxxxxxxxx) - - - -Uxxx xx xxxxxxxxx xxxxxxxx_xxxxxxx( ) xxxxx xx xxxxxxx xxxxxx xxxxx xx xxxxxx xxx xxxxxxxxx (NAME_xx) xx xxx xxxxxxxxx (NAME_xx) xxxxxxx. Txx xxxxxxx xx NAME, xxxxx xxxxxxxxx xx xxxxxxxxxx xxxxxx xx xxxxxxxxx.FxxxxHxxxKxxNxxx xxxxxxxxx (Pxxx DBI) -xxxxxxxx_xxxxxxx( ) xxxxxxxx (Pxxx DBI) - - - - - - HxxxxxExxxx (xxxx xxx, xxxxxxxxx) - - - Cxxxxxxxxx xxx xxxxxxxx xx xx xxxxx xxxxxx xx xxx xxxxxx. Yxx xxxxx xxx xxxx xxxxxxxxx xx xxx x xxxxxxxxxx xx xxx xxxxx xx xx xxxxx.HxxxxxExxxx xxxxxxxxx (Pxxx DBI) - - $xxx->{HxxxxxExxxx=> \&xx_xxx_xxxxxxx }); - - - - - HxxxxxSxxExx (xxxx xxx, xxxxxxxxx) - - - -Cxxxxxxxxx xxx xxxxxxxx xxx xxx, xxxxxx, xxx xxxxx xxxxxx xx xx xxxxx xxxxxx xx xxx xxxxxx. Ix’x xxxxxxx xx xxx HxxxxxExxxx xxxxxxxxx, xxx xx xxxxxxx xx xxx_xxx( ).HxxxxxSxxExx xxxxxxxxx (Pxxx DBI) -xxx_xxx( ) xxxxxxxx (Pxxx DBI) - - - - - - IxxxxxxxDxxxxxx (xxxxxxx) - - - -Pxxxxxxx xxx xxxxxx xxxx xxxxxxxxxx x xxxxxx xxxx xx xxx xx xxxxx, xxxxxx xx xx xxxxxx xxxxxxxxxxxxx xxxx x xxxxxxxx xxxx xxxxxx( ) xx xxxxxxxxxx( ).IxxxxxxxDxxxxxx xxxxxxxxx (Pxxx DBI) -xxxxxxxxxx( ) xxxxxxxx (Pxxx DBI) -xxxxxx( ) xxxxxxxx (Pxxx DBI)IxxxxxxxDxxxxxx xxxxxxxxx xxx - - - - - - Kxxx (xxxxxxx, xxxx-xxxx) - - - Pxxxxxxx xxx xxxxxx xx xxx xxxxxxx (xxxxxx xxx xxxxxxxx) xxxxx xxx xxxxxx xxxx xxxxxxxx xxx xxxxxxxxx. Ix xx’x xxxxxx xx x xxxxxxxx xxxxxx, xxx xxxxxx xx xxxxxxxxx xxxxxxx xxxx xx xxxxxxxx. Ix xx’x xxxxxx xx x xxxxxx xxxxxx, xxx xxxxxx xx xxxxxxxx xxxxxxx xxxx xx xxxxxxxx.Kxxx xxxxxxxxx (Pxxx DBI) - - - - - - LxxxRxxxLxx (xxxxxxxx xxxxxxx, xxxxxxxxx) - - - Sxxx xxx xxxxxxx xxxxxx xx xxxx xxxxxxxxx xxxx xxxx xxxxxxxx xxxxxxx (x.x., BLOB xxx TEXT).LxxxRxxxLxx xxxxxxxxx (Pxxx DBI) - - - - - - LxxxTxxxxOK (xxxxxxx, xxxxxxxxx) - - - Ix xxx xx xxxx, xxx xxxxxxx x xxxxx xxxxxx xxxx xxxxxxx xx x xxxxxx’x xxxx xxxxxx xxxxxxx xxx xxxxxxx xxxxxx xxx xx xxx LxxxRxxxLxx xxxxxxxxx.LxxxTxxxxOK xxxxxxxxx (Pxxx DBI) - - - - - - PxxxxExxxx (xxxxxxx, xxxxxxxxx) - - - Ix xxxx xxxxxxxxx xx xxx xx d, xxxxx xxxxx xxx xxxxx xxxxxxxx xxxxxxxxxx xxxx xxx xxxxxx xxxx xx xxxxxx. Ix xxx xx d, xxxx xxx’x xx xxxxxx.PxxxxExxxx xxxxxxxxx (Pxxx DBI) - - - - - - PxxxxWxxx (xxxxxxx, xxxxxxxxx) - - - Sxxxxxx xxxx xxxxxxxxx xx d xxxx xxxxxxxx DBI xx xxx xxxxxxx xxxxxxxx xxx xxx xxxxxx. Sxxxxxx xx xx d xxxx xxxxxxxx xx xxx xx xxx xxxx.PxxxxWxxx xxxxxxxxx (Pxxx DBI) - - - - - - xxxxxxx_* - - - Sxxxxx xxxxxxxxxxx xx xxx xxxxxx xx x xxxxxxx xxxxxxxxx xxxx x xxxxxxxxxx xxxx xxxxxxxx xxxx xxxxxxx_.xxxxxxx_ xxxxxxxxx (Pxxx DBI) - - - - - - Pxxxxxx (xxxxxxxxx) - - - Exxxxxx xxxxxxx xx xxxxxx xxxx xxxxxx xxxxxxxxxx.Pxxxxxx xxxxxxxxx (Pxxx DBI) - - - - - - RxxxxExxxx (xxxxxxx, xxxxxxxxx) - - - Ixxxxxxxx DBI xx xxxxxx xxxxxxxxxx xxxx xxxxxx xxx xxxxxxxxxx xxxx xxx xxxxxx. Bx xxxxxxx xx’x xxx xx d. Ix xxx xx d, xxx DBI xxxxx xxxx xxxxx xxx xxxxxxx xx xxx. Ix xxx xxx xxxx xxxxxxxxx xx xxxx, xxx xxxxxx xxxx xxx xxx PxxxxExxxx xx xxxx.RxxxxExxxx xxxxxxxxx (Pxxx DBI) - - - - - - RxxxOxxx (xxxxxxx, xxxxxxxxx) - - - Sxxxxxx xxxx xxxxxxxxx xx x xxxxxx xx xxxx xxxxxxxxx xxxx xxx xxxxxxx xxxxxxxxxx xxxx xxx xxxxxx xxxx xx xxxx-xxxx xxxxxxxxxx--xxxx xxx’x xx xxxxxxx xxxxx xxx xxxxxx. - - - - - SxxxExxxxSxxxxxxxx (xxxxxxx, xxxxxxxxx) - - - Ix xxx xx xxxx, xxxx xxxxxxxxxx xxxxxxxxx xxxx xx SQL xxxxxxxxx xxxx xx x xxxxxxxxx xxxxxx xxxxxx xx xxxxxxxx xx xxxxx xxxxxxxx xxxxxxxx xxxx xxx PxxxxExxxx, PxxxxWxxx, xxx RxxxxExxxx xxxxxxxxxx xxxxx xxx xx xxxx.SxxxExxxxSxxxxxxxx xxxxxxxxx (Pxxx DBI) - - - - - - Txxxx (xxxxxxx, xxxxxxxxx) - - - Cxxxxxxx TxxxxIx xxx TxxxxOxx xxxxxxxxxx. Wxxxxxxx xxxxx xxx xxx xxxx xxxx xxxxxxxxx xxxx xx xxx xxx xxx xxxxx xxx xxxxxxxxxx.Txxxx xxxxxxxxx (Pxxx DBI) - - - - - - TxxxxIx (xxxxxxx, xxxxxxxxx) - - - Ixxxxxxxx DBI xx xxxxx xx xxxxxx xxxxx xxx xxxxxxx, xxxx Pxxx xx xxx xx xxxxx xxxx.TxxxxIx xxxxxxxxx (Pxxx DBI) - - - - - - TxxxxOxx (xxxxxxx, xxxxxxxxx) - - - Ixxxxxxxx DBI xx xxxxxx xxxx xxxx xxxxxxx xx xxxxxxx, xxxx Pxxx xx xxxxxxx xx xxxxx xxxx.TxxxxOxx xxxxxxxxx (Pxxx DBI) - - - - - - TxxxxLxxxx (xxxxxxx, xxxxxxxxx) - - - -Sxxx xxxxx xxxxxx xxx xxxxx xxx x xxxxxx. Ix’x xx xxxxxxxxxxx xx xxx xxxxx( ) xxxxxx.TxxxxLxxxx xxxxxxxxx (Pxxx DBI) -xxxxx( ) xxxxxxxx (Pxxx DBI) - - - - - - Txxx (xxxxxx, xxxx-xxxx) - - - Txxx xxxxxxxxx xx xxxx xx xxxxxxxxx xxx xxxx xx xxxxxx. Ix xxxxxxx xx xxx x xxxxxx xxxxxx, xx xxx x xxxxxxxx xxxxxx, xxx xx xxx x xxxxxxxxx xxxxxx. - - - - - Wxxx (xxxxxxx, xxxxxxxxx) - - - Exxxxxx xx xxxxxxxx xxxxxxx xxxxxxxx xxx xxxx xxxxxxxx xxxxxxxxxx.Wxxx xxxxxxxxx (Pxxx DBI) - - - - - - - <emphasis role="bold">Axxxxxxxxx</emphasis> Oxxx <emphasis role="bold">xxx Dxxxxxxx Hxxxxxx</emphasis> - - - - AxxxCxxxxx (xxxxxxx) - - - -Axxxxx xxx xxxxxxxx( ) xxxxxxxx xx xx xxxx xx xxxxxxxxx xx d. Ax xxxx xx xxxx xxxxxxx, x xxx xxxxxxxx xx xxxxx xxxx xxxxx xxxx xxxxxxxxx xxxxxxxxx.AxxxCxxxxx xxxxxxxxx (Pxxx DBI) -xxxxxxxx( ) xxxxxxxx (Pxxx DBI) - - - - - - Dxxxxx (xxxxxx) - - - Pxxxxxxx xxx xxxx xx xxx xxxxxx xxxxxx: $xxx->{Dxxxxx}->{Nxxx}Dxxxxx xxxxxxxxx (Pxxx DBI) - - - - - - Nxxx (xxxxxx) - - - Pxxxxxxx xxx xxxx xx xxx xxxxxxxx xxx xxx xxxxxxxx xxxxxx.Nxxx xxxxxxxxx (Pxxx DBI) - - - - - - RxxCxxxxSxxx (xxxxxxx) - - - Uxxx xx xxxxxxx x xxxxx xxxx xxx xxxx xxxxxxxxx xxx SELECT xxxxxxxxxx. Ix xx’x d, DBI xxxxxxxxxxxxx xxxxxxxxxx xxx xxxxx xxxx. A xxxxx xx d xxxxxxxx xxxxx xxx xxxxxxx.RxxCxxxxSxxx xxxxxxxxx (Pxxx DBI) - - - - - - Sxxxxxxxx (xxxxxx, xxxx-xxxx) - - - Pxxxxxxx xxx xxxx SQL xxxxxxxxx xxxxxxxx xxxx xxx xxxxxxxx xxxxxx xxxxxxxxxx xx xxxxxxx xx xxxxxxxxx.Sxxxxxxxx xxxxxxxxx (Pxxx DBI) - - - - - - Uxxxxxxx (xxxxxx) - - - -Pxxxxxxx xxx xxxx xx xxx xxxx xxx xxx xxxxxxxx xxxxxx.Uxxxxxxx xxxxxxxxx (Pxxx DBI) - - - - - - - - <emphasis role="bold">Axxxxxxxxx</emphasis> Oxxx <emphasis role="bold">xxx Sxxxxxxxx Hxxxxxx</emphasis> - - - - CxxxxxNxxx (xxxxxx, xxxx-xxxx) - - - Rxxxxxx xxx xxxx xx xxx xxxxxx xxx xxx xxxxxxxxx xxxxxx.CxxxxxNxxx xxxxxxxxx (Pxxx DBI) -xxxxxxxxx xxxxxxx, xxxxxxxxxx xxx - - - - - - Dxxxxxxx (xxx, xxxx-xxxx) - - - Rxxxxxx xxx xxxxxxxx xxxxxx xx xxx xxxxxxxxx xxxxxx.Dxxxxxxx xxxxxxxxx (Pxxx DBI) - - - - - - NAME (xxxxx-xxx, xxxx-xxxx) - - - Cxxxxxxx x xxxxxxxxx xx xx xxxxx xxxxxxxxxx xxx xxxxx xx xxx xxxxxxx xx xxx SQL xxxxxxxxx xxxx xxx xxxxxxxxx xxxxxx.Nxxx xxxxxxxxx (Pxxx DBI) - - - - - - NAME_xxxx (xxxx-xxx, xxxx-xxxx) - - - Rxxxxxx x xxxxxxxxx xx x xxxx xxxxxxxxxx xxxxxx xxxx xxxxxxxxxxx. - - - - - NAME_xx (xxxxx-xxx, xxxx-xxxx) - - - Rxxxxxx x xxxxxxxxx xx xx xxxxx xxxxxxxxxx xxxxxx xxxx xxxxxxxxxxx. Txx xxxx xxx xxx xxxxxx xxxxx xx xxxxxxxxx xxxxxxx. - - - - - NAME_xx_xxxx (xxxx-xxx, xxxx-xxxx) - - - Rxxxxxx x xxxxxxxxx xx x xxxx xxxxxxxxxx xxxxxx xxxx xxxxxxxxxxx. Txx xxxx xxx xxx xxxxxx xxxxx xx xxxxxxxxx xxxxxxx. - - - - - NAME_xx (xxxxx-xxx, xxxx-xxxx) - - - Rxxxxxx x xxxxxxxxx xx xx xxxxx xxxxxxxxxx xxxxxx xxxx xxxxxxxxxxx. Txx xxxx xxx xxx xxxxxx xxxxx xx xxxxxxxxx xxxxxxx. - - - - - NAME_xx_xxxx (xxxx-xxx, xxxx-xxxx) - - - Rxxxxxx x xxxxxxxxx xx x xxxx xxxxxxxxxx xxxxxx xxxx xxxxxxxxxxx. Txx xxxx xxx xxx xxxxxx xxxxx xx xxxxxxxxx xxxxxxx. - - - - - NULLABLE (xxxxx-xxx, xxxx-xxxx) - - - Rxxxxxx x xxxxxxxxx xx xx xxxxx xxxxxxxxxx xxxxxxx xxxx xxxxxx xx xxx SQL xxxxxxxxx xx xxx xxxxxx xxx xxxxxxx x NULL xxxxx.NULLABLE xxxxxxxxx (Pxxx DBI) - - - - - - NUM_OF_FIELDS (xxxxxxx, xxxx-xxxx) - - - Rxxxxxx xxx xxxxxx xx xxxxxxx xx xxx SQL xxxxxxxxx xx xxx xxxxxx.NUM_OF_FIELDS xxxxxxxxx (Pxxx DBI) - - - - - - NUM_OF_PARAMS (xxxxxxx, xxxx-xxxx) - - - Rxxxxxx xxx xxxxxx xx xxxxxxxxxxxx xx xxx SQL xxxxxxxxx xx xxx xxxxxx.NUM_OF_PARAMS xxxxxxxxx (Pxxx DBI) - - - - - - PxxxxAxxxxx (xxxx xxx, xxxx-xxxx) - - - Rxxxxxx x xxxxxxxxx xx x xxxx xxxxxxxxxx xxx xxxxx xx xxxxxxxxxxxx xx xxxx xxx xxxxx xxxxxxxxxx xxxxxx xxx xxxxx xxxx xx xxxx_xxxxx_xxxxx( ) xxx xxxxxxx_xxxxx( ) - - - - - PxxxxTxxxx (xxxx xxx, xxxx-xxxx) - - - Rxxxxxx x xxxxxxxxx xx x xxxx xxxxxxxxxx xxxxxxxxxxx xxxxx xxxxxxxxxxxx xxxx xxx xxxxx xx xxx xxxxx xxxx xx xxxx_xxxxx( ). Txx xxxxxxxxxxx xxxxx xxx xxxx xx xxx xxxx xx xxx xxxx. - - - - - PxxxxVxxxxx (xxxx xxx, xxxx-xxxx) - - - Rxxxxxx x xxxxxxxxx xx x xxxx xx xxxxx xxxxxxxxxx xxx xxxxx xxxxxx.PxxxxVxxxxx xxxxxxxxx (Pxxx DBI) - - - - - - RxxxIxCxxxx (xxxxxxx, xxxx-xxxx) - - - Rxxxxxx xxx xxxxxx xx xxxxxxxxx xxxx xx xxx xxxxx xx xxx xxxxxx xxxxxxxx xxx-xxxxx xxxxxxx. - - - - - Sxxxxxxxx (xxxxxx, xxxx-xxxx) - - - -Ix xxx SQL xxxxxxxxx xxxxxx xx xxxxxxx( ).Sxxxxxxxx xxxxxxxxx (Pxxx DBI) -xxxxxxx( ) xxxxxxxx (Pxxx DBI)Sxxxxxxxx xxxxxxxxx xxx - - - - - - TYPE (xxxxx-xxx, xxxx-xxxx) - - - Cxxxxxxx x xxxxxxxxx xx xx xxxxx xx xxxxx xxx xxxxxxxxxxxxx xxxxxxxx xxxxxx xxx xxxx-xxxxx (x.x., d xxx SQL_CHAR, d xxx SQL_INTEGER).TYPE xxxxxxxxx (Pxxx DBI) - - - - - - PRECISION (xxxxx-xxx, xxxx-xxxx) - - - Cxxxxxxx x xxxxxxxxx xx xx xxxxx xxxxxxxxxx xxx xxxxxx xx xxxxxxx (xx xxx xx xxx xxxxx xxxxxxxxxx) xx xxx SQL xxxxxxxxx xx xxx xxxxxx.PRECISION xxxxxxxxx (Pxxx DBI) - - - - - - SCALE (xxxxx-xxx, xxxx-xxxx) - - - Cxxxxxxx x xxxxxxxxx xx xx xxxxx xxxxxxxxxx xxx xxxxxx xx xxxxxxx xxxxxx xxx xxxxxxx xx xxx SQL xxxxxxxxx xx xxx xxxxxx.SCALE xxxxxxxxx (Pxxx DBI) - - - - - - - - <emphasis role="bold">DBI Dxxxxxx Axxxxxxxxx</emphasis> - - Txxxx xxxxxxxxxx xxx xxxxxxx xx xxx xxxx xxxxxx xxxx, xxxxxxxxxx xx xxx xxxx xx xxxxxx. Txx xxxxxx xx xxxx xx xxxxx xx $DBI::xxxxxxxxx. - - - - xxx - - - Ix xxxxxxxxxx xxxx $xxxxxx->xxx.xxx xxxxxxxxx (Pxxx DBI) - - - - - - xxxxxx - - - Ix xxxxxxxxxx xxxx $xxxxxx->xxxxxx.xxxxxx xxxxxxxxx (Pxxx DBI) - - - - - - xxxxx - - - Rxxxxxx xxx xxxxxx xxxx xx xxx xxxx xxxxxx xxxx.xxxxx xxxxxxxxx (Pxxx DBI) - - - - - - xxxx - - - Ix xxxxxxxxxx xxxx $xxxxxx->xxxx.xxxx xxxxxxxxx (Pxxx DBI) - - - - - - xxxxx - - - Ix xxxxxxxxxx xxxx $xxxxxx->xxxxx.xxxxxxxxxxxxxxxx -xxxxx xxxxxxxxx (Pxxx DBI) - - - - - - - - - PHP API - Oxx xx xxx xxxx xxxxxxx xxxxxxxxxxx xxxxxxxx xxx xxxxxxxx xxxxxx xxxxxxxxxxxx xxx xxx Wxx xx PHP xxxx MxSQL. Txxx xxxxxxxxxxx xxxxx xxxx xxx xxxx xxxxxxx: xxxxxxxxx xxx xxxxx, xxxxxxxxx, xxx xxxxxxxxxx xx xxxx xxxxxxxxxxxx. Txx xxxxx xxxx xx xxxx xxxxxxx xxxxxxxx x xxxxx xxxxxxxx xx xxx xx xxxxxxx xx MxSQL xxx xxx xx xxxxx MxSQL xxxx PHP. Fxxxxxxxx xxx xxxxxxxx xx x xxxxxxxxx xx PHP MxSQL xxxxxxxxx xx xxxxxxxxxxxx xxxxx. Fxx xxx xxxxxxxx xx xxxx xxxxxxx, x xxxxxxxx xxx x xxxxxxxxxx xxxxxxxx xxxxxxx xxxxxxxx xx xxxx. Txx xxxxxxxx xxxxxxxx xxx xxxxx xxxx xxxxxx xxxx xxxxxxxx (xxxxxxx) xxx xxxxxxx xxxx xxxxxx xxxxxxx xxxxxxxxxxx (xxxxxxx). - - Uxxxx PHP xxxx MxSQL - PHPxxxxxxxx -Txxx xxxxxxx xxxxxxxx xxx xxxxx xxxxx xxx xxxx xx xxxxx x MxSQL xxxxxxxx xxxx PHP. Pxxxx xx PHP d, MxSQL xxx xxxxxxx xx xxxxxxx. Ax xx PHP d, xx’x xxx xxxxxxx xxx xxx MxSQL xxxxxxx xx xxx xxxxxxxx xxxx PHP. Tx xxxxxx MxSQL xxxx PHP, xxx xxxx xxxx xx xxxxxxxxx PHP xxxx xxx --xxxx-xxxxx[=/xxxx_xx_xxxxx] xxxxxx. - - - Cxxxxxxxxx xx MxSQL - Fxx x PHP xxxxxx xx xxxxxxxxx xx MxSQL, xxxxx xxx xxxxxx xxxx xxxx x xxxxxxxxxx xx MxSQL, xxxx xxxxxxxxxxxx x MxSQL xxxxxxx. Tx xxxxxxx xx xxx xxxxxxxxxx xxxxxxxx, xxxxxxxxxxxx, x PHP xxxxxx xxxxx xxxxx xxxx xx: - <?xxx - -$xxxx = 'xxxxxxxxx'; -$xxxx = 'xxxxxxx'; -$xx = 'xxxx'; -$xx = 'xxxxxxxxxxxx'; - -xxxxx_xxxxxxx($xxxx, $xxxx, $xx) - xx xxx(xxxxx_xxxxx); -xxxxx_xxxxxx_xx($xx); - -?> - Txxx xxxxxxx xx PHP xxxx xxxxxx xx xxxxxxxxxxxx xxx xxxxxxxxx xxxx -xxxxxxxxxxx xxxxxxxxx xxx xxxxxxxxxx xx MxSQL xxx xxx xxxxxxxx. Axxxx xxxx, PHP xxxxxxxx xx MxSQL xx xxxxxx xxx xxxx xxx xxxx xxxxxxxxx. Ix xx’x xxxxxxxxxxxx, xxx xxxxxx xxxx xxxx xx xxxxx xxxxxxx. Ix xxx xxxxxxxxxx xx xxxxxxxxxx, xxxxxx, xxx xxxxxxxxxxxx xxxxxxxx xx xxxxxxxx xxx xxx. Exxx PHP xxxxxx xxxxxxx xx xxxx xxxxxxx xxxxxx xxxx x xxxxxxx xx xxxx xxxx xxxx xxx. - - - Qxxxxxxx MxSQL - xxxxxxxPHP -Ix xxx xxxxxxxxxx xxxxxxxx xx x xxxxx xxxxxx xxxxxxx xxxx xxxxxxxx xxxxxxxxxxx xx xxxxxx xxxx xxxxxxxx. Tx xxxxxxxx x xxxx xx xxxx xxxxxxxx xxx xxxx xxxxx xxxxxxxxxxx xx xxxxxxx, x PHP xxxxxx xxxxxx xx xxxxxxxxxx xx MxSQL, xx xxxxx xx xxx xxxxxxxx xxxxxx xxxxxxx. Txxx xx xxxxxxxx xx xxx xxxxx xx x xxx xxxx xxx xxxx xxx xxxxxxxxxx xx xx SQL xxxxxxxxx xx xxxxxxxx xxx xxxxxxx xxx xxxx. Yxx xxx xxxxxxx xxxx xxxx xxxx xxxx xx xxx xxxxxxxxx: - ... // Cxxxxxx xx MxSQL - - <xxxx> - <xxxx> - <xd>Wxxx Rxxxxxxx</xd> - - <?xxx - $xxx_xxxxx = "SELECT xxxx, xxxxxx_xxxx, - xx_xxxx, xxxxxxxxxxx - FROM xxxxxxx, xxxxxxx - WHERE xxxxxx = 'xxxx' - AND xxxxxxx.xxxxxxxx = xxxxxxx.xxxxxxxx"; - - $xxxxxxx = xxxxx_xxxxx($xxx_xxxxx) - xx xxx('Ixxxxxx xxxxx: ' . xxxxx_xxxxx()); - - xxxxx($xxx = xxxxx_xxxxx_xxx($xxxxxxx)) { - xxxx($xxxx, $xxxxxx_xxxx, $xx_xxxx, $xxxxxxxxxxx) = $xxx; - xxxxx "<x xxxx='xxxxxx.xxx?xxxx=$xxxx'>$xxxxxx_xxxx - - $xxxxxxxxxx ($xx_xxxx)</x><xx/>"; - } - - xxxxx_xxxxx( ); - ?> - </xxxx> - </xxxx> - Axxxx xxxxxxxxxx xx MxSQL (xxxxxxxxxxx xxxx xxxxxxxx xxxx) xxx xxxxxxxx xxx xxx xxxx, x xxxxxxxx ($xxx_xxxxx) xxxxxxxxxx xxx SQL xxxxxxxxx xx xxxxxxx. Txxx xxx xxxxxxxx xx xxxxxxx xxxx xxx SQL xxxxxxxxx xxx x xxxxxxxxx xx xxx xxxxxxx xxx xx xxxxxx xx x xxxxxxxx ($xxxxxxx). Txx xxxxx xx xxxxxxxx xx xx xx xxxxxxxxx, x xxxxxx PHP xxxxxx xxx xxxxx xxxxxxxx. Txx xxxxx xxxxxxxxx xxxxxxxx xxxx xx xx xxxxxxx xxxx xxxxx. - Axxxxxxx PHP xxx xxxxxxxxxx xx xxxxxxxx xxx xxxxxxxx, x xxxxx xxxxxxxxx xx xxxx xx xxxx xxxxxxx xxxx xxx xx xxxx xxxxxxxxx xxxx MxSQL. Wxxx xxxx xxxx, xxxxx xxx xxxxx_xxxxx_xxx( ) xxxxxxxx, PHP xxxx xxxxxxxxxxx xxxxx xxx xxxxxx xx xxxx xxx xxxx xxx xx xx xxxxx ($xxx). Wxxxxx xxx xxxx xxxxx xx xxx xxxxx xxxxxxxxx, xxx PHP xxxx( ) xxxxxxxx xxxxxx xxx xxxxxxxx xx xxx $xxx xxxxx xxxx xxxxx xxxxxxxxxx xxxxxxxxx. Txx xxxxxxxxx xxxx xxx xxxxx xx xxxxx xxxxx xxxxxx xxxxxxxxxxxx. Txxx xx xxx xxxxxxxxx, xxxxxx. Txxx xxx xx xxxxx xxxxxxxx. Txx xxxxx xxxxx xxxx xx xxxx xx xx xx xxx xxx xxxxxxxxxxx xxxxxxxx xxxxxx xxxxxxxxxx xx xxxxxxxx xxxx. Fxx xxxxxxxx, xxx xxx xxxx xx xxx xxxx xxxxxxx, $xxx[d] xxxxx xx xxxx, xxxxxxx xx’x xxx xxxxx xx xxx xxxxxxxx (d xx xxxxx). Nxxxxx xxx xxxxxxxxx xx xxxx xxx xxxx, xxxxxx, xxxxx xx xxxxxx xx xxxx xxx xxxx xxx xxxxxx xxx xxxxxx xx xxxxxx xxxxx. - Txx xxxxxx xxxx xx xxxx xxxxxx xxx xxxxx xxxxxxxxx -xxxxxxxx xxx xxxx xx xxx xxxxxx xxxxxxxx xxx xxx xxx xxxx. Txx xxxx xx xxxxxxx xx x xxxxxxxxx xxxx x xxxxxxxxx xx xxxxxxx PHP xxxxxx (xxxxxxx.xxx), xxxxx xxxx xxxxxxxx xxx xx xxx xxxxxxx xxx xxx xxxxxxxxxx xxxx xxxxxxx xxxxxxxx xx x xxxx. Txxx xxxx xxxxxxx xxxx xx xxxxxxxxxx xx xxx xxxx xxxxxxx xxxxxx (x.x., xxxx), xxxxx xx x xxx xxxxxx xxx xxx xxxxxxx.xxx PHP xxxxxx. Txx xxxxx xxx xxxx xxxxxxxxx xxxx xxxxxxxxxxxxx xx xxxxxx xx x xxxxxxxx xx xxx xxxx xxxx ($xxxx) xxxxxxxxxx xx xxxx xxx xxxxxxxx xx xxxxx xx xxxx xxxxxx. Ix’x xxxxx xx xxx xxxx xxxxx xx xxx xxxxxxxxx xx xxxxxx xxx. Txxx xxxx xxxxxx xx xxx xxx.xxx xxxxxxxxxxxxx xxxx xxx xxxxxxxx_xxxxxxx xxx xx xx, xxxxxxxxx xxxxx xx xxx xxx xxxx xx xxxxxx xxxxxxxx xx PHP. Ox Uxxx xxx Lxxxx xxxxxxx, xxxx xxxx xx xxxxxxx xx xxx /xxx xxxxxxxxx. Ox x Wxxxxxx xxxxxx, xx’x xxxxxxx xxxxx xx xxx x:\xxxxxxx xxxxxxxxx. Ix xxx, xxx xxxxx xxx xx xxxxxxxxxx xxxxx xxx $_GET xxxxxxxxxxx xxxxx, xxxxx xx xxxxxxxx xx PHP’x xxxxxx xxxxxxxxxxxxx (xxxx://xxx.xxx.xxx). - -Txx xxxxxx xx xxxx xxxxxx xx x xxxx xxx xxxx xxxxxxxxxxx xxxx xxxxxxx xxxxx xx xxx xxxxxxxx. Exxx xxxx xxxx xx xxxxxx xx xxxxxxx xxxxxx xxxx xxxxxxxxxx xxxxx xxxxxxx xxxxxxx xx xxx xxxx xxxxxxx xxxxxxxx. Ix xxxx xxxxxx xxxxxxx, xxxx x xxx xx xxx xxxx PHP MxSQL xxxxxxxxx xxx xxxx xx xxxxxxx xxxx. Ix xxx xxxx xxxxxxx xx xxxx xxxxxxx, xxxx xxxxxxxx xx xxxxxxxxx xxxx xxxxxx xxxxxxxx xx xxxxxxxx xx xxxxx xxx. - - - - - - PHP MxSQL Fxxxxxxxx xx Axxxxxxxxxxx Oxxxx - xxxxxxxxxPHPPHPxxxxxxxxx -Txx xxxx xx xxxx xxxxxxx xxxxxxxx x xxxx xx PHP MxSQL xxxxxxxxx xx xxxxxxxxxxxx xxxxx. Exxx xxxxxxxx xx xxxxx xxxx xxx xxxxxx xxx xx xxxxxxxxxxx. Ax xxxxxxx xxxxxx, xx xxxxxx xxxxxxx, xx xxxxxxxx xx xxxx xxx xxx xxx xxx xxx xxxxxxxx. Tx xxxx xxxxx, xxxxxx xxx xx xxx xxxxxx xxxxxxxx xxx xxxxx xxxxxxx xxx xxxxx xx xxxx xxxxxxxxx xx xxxxx x PHP xxxxxx xxx xx xxxxxxx xx MxSQL, xx xxxx xxxx xxxxxx xxxxxx xx xxxxx xxx xxxxxxxxxx xxx xx xxx xxx xxxxxx. Fxx xx xxxxxxx xxxxxxx xxx xx xxxxx xxxxx xxxxxxx xxx xxxxxxx xxxxx, xxx xxx xxxxxxxx xx xxx xxxxxxxx xxxxxxx. - - - - xxxxx_xxxxxxxx_xxxx( ) - - - xxxxx_xxxxxxxx_xxxx( ) - - - - xxx xxxxx_xxxxxxxx_xxxx([xxxxxxxxxx]) - - - - <para><indexterm id="mysqlian-CHP-19-ITERM-4307" significance="normal"><primary>xxxxx_xxxxxxxx_xxxx( ) xxxxxxxx</primary><secondary>PHP</secondary></indexterm><indexterm id="mysqlian-CHP-19-ITERM-4308" significance="normal"><primary>SELECT xxxxxxxxx</primary><secondary>xxxxx_xxx_xxxx( ) xxx</secondary></indexterm><indexterm id="mysqlian-CHP-19-ITERM-4309" significance="normal"><primary>DELETE xxxxxxxxx</primary><secondary>xxxxx_xxxxxxxx_xxxx( ) xxx</secondary></indexterm><indexterm id="mysqlian-CHP-19-ITERM-4310" significance="normal"><primary>UPDATE xxxxxxxxx</primary><secondary>xxxxx_xxxxxxxx_xxxx( ) xxx</secondary></indexterm><indexterm id="mysqlian-CHP-19-ITERM-4311" significance="normal"><primary>INSERT xxxxxxxxx</primary><secondary>xxxxx_xxxxxxxx_xxxx( ) xxx</secondary></indexterm><indexterm id="mysqlian-CHP-19-ITERM-4312" significance="normal"><primary>xxxxx_xxx_xxxx( ) xxxxxxxx</primary><secondary>PHP</secondary></indexterm> -Txxx xxxxxxx xxx xxxxxx xx xxxx xxxxxxxx xx x xxxxxxxx SQL xxxxxxxxx xxxx xxxxxxxx xxxx xx xxxx xxx xxx xxxxxxx MxSQL xxxxxxx. Txx xxxxxxxx xxxxxxx -d xx xxx xxxxxxxx xxxxxxxxx xxxxxx. Ix xxxxx xxxx xxxxx <literal moreinfo="none">INSERT</literal>, <literal moreinfo="none">UPDATE</literal>, xxx <literal moreinfo="none">DELETE</literal> xxxxxxxxxx. Sxx <literal moreinfo="none">xxxxx_xxx_xxxx( )</literal> xxx xxx xxxxxx xx xxxx xxxxxxxx xx x <literal moreinfo="none">SELECT</literal> xxxxxxxxx. Txx xxxxxxxxxx xxxxxxxxxx xxx xx xxxxx xx xx xxxxxxxx xx xxxxxxxx xxx xxxxxx xx xxxx xxxxxxxx xx x xxxxxxxxx xxxxxxxxxx. -</para> - <programlisting format="linespecific">... -$xxx_xxxxx = "UPDATE xxxxxxx - SET xxx_xxxx = ADDDATE(xxx_xxxx, INTERVAL d DAY) - WHERE xxx_xxxx = 'dddd-dd-dd'"; -xxxxx_xxxxx($xxx_xxxxx); -$xxxxxxx = xxxxx_xxxxxxxx_xxxx( ); -xxxxx "Nxxxxx xx Rxxx Uxxxxxx: $xxxxxxx \x"; -...</programlisting> - <para><indexterm id="mysqlian-CHP-19-ITERM-4313" significance="normal"><primary>xxxxx_xxxxxxxx_xxxx( ) xxxxxxxx</primary><secondary>PHP</secondary></indexterm> -Txxx xxxxxx xxxxxxx xxx xxx xxxxx xxx xxx xxxx xxxxxxxx xx xxx xxx. -</para> - </refsect1> - </refentry> - <refentry id="ch19-77007"> - <refmeta> - <refentrytitle>xxxxx_xxxxxx_xxxx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxxx_xxxxxx_xxxx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">xxx xxxxx_xxxxxx_xxxx(<replaceable>xxxx</replaceable>, <replaceable>xxxxxxxx</replaceable>[<replaceable>, xxxxxxxx, xxxxxxxxxx</replaceable>])</synopsis> - </refsynopsisdiv> - <refsect1 id="ch19-2-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-19-ITERM-4314" significance="normal"><primary>xxxxx_xxxxxx_xxxx( ) xxxxxxxx</primary><secondary>PHP</secondary></indexterm><indexterm id="mysqlian-CHP-19-ITERM-4315" significance="normal"><primary>xxxxx_xxxxxxx( ) xxxxxxxx</primary><secondary>PHP</secondary></indexterm> -Txxx xxxxxxxx xxx xx xxxx xx xxxxxx xxx xxxxxxxx xxx x MxSQL xxxxxxxxxx. Txx xxx xxxxxxxx xx xxxxx xx xxx xxxxx xxxxxxxx xxx xxx xxxxxxxx xxx xxxx xxxx xx xxx xxxxxx. A xxxxxxxxx xxxxxxxx xxxx xxx xxx xx xxx xxx xx xxxxx xx x xxxxx xxxxxxxx. Txx xxxx xxxxxxxxxxx xxx xx xxxxxxx xxx x xxxxxxxxx MxSQL xxxxxxxxxx xx xxxxxxxxxx xx xx xxx xxxxxx xxxxxxxx. Ix xxx xxxxxxxx xx xxxxxxxxxx, xxxx xx xxxxxxxx; xxxxx xx xxxxxxxx xx xx’x xxxxxxxxxxxx. Txxx xxxxxxxx xx xx xxxxxx xxxxxxxxx xx xx Vxxxxxx d xx PHP. Ixxxxxx, x xxx xxxxxxxxxx xxxxxx xx xxxxxxxxxxx xxxx x xxxxxxxxx xxxx xx xxxxx xxx <literal moreinfo="none">xxxxx_xxxxxxx( )</literal> xxxxxxxx. -</para> - </refsect1> - </refentry> - <refentry id="ch19-77008"> - <refmeta> - <refentrytitle>xxxxx_xxxxxx_xxxxxxxx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxxx_xxxxxx_xxxxxxxx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">xxxxxx xxxxx_xxxxxx_xxxxxxxx([<replaceable>xxxxxxxxxx</replaceable>])</synopsis> - </refsynopsisdiv> - <refsect1 id="ch19-3-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-19-ITERM-4316" significance="normal"><primary>xxxxx_xxxxxx_xxxxxxxx( ) xxxxxxxx (PHP)</primary></indexterm> -Txxx xxxxxxx xxx xxxx xx xxx xxxxxxx xxxxxxxxx xxx xxx xxx xxxxxxx MxSQL xxxxxxxxxx xx, xx <replaceable>xxxxxxxxxx</replaceable> xx xxxxxxxx, xxx xxxx xxxxxxxxxx.</para> - <programlisting format="linespecific">... -$xxxx = xxxxx_xxxxxx_xxxxxxxx( ); -xxxxx "Exxxxxxx xx Uxx: $xxxx \x"; -...</programlisting> - <para>Hxxx xxx xxx xxxxxxx xx xxxx xxxxxx xx xx xxxxxx:</para> - <programlisting format="linespecific">Exxxxxxx xx Uxx: xxxxxd</programlisting> - </refsect1> - </refentry> - <refentry id="ch19-77009"> - <refmeta> - <refentrytitle>xxxxx_xxxxx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxxx_xxxxx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">xxxx xxxxx_xxxxx([<replaceable>xxxxxxxxxx</replaceable>])</synopsis> - </refsynopsisdiv> - <refsect1 id="ch19-4-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-19-ITERM-4317" significance="normal"><primary>xxxxx_xxxxx( ) xxxxxxxx</primary><secondary>PHP</secondary></indexterm><indexterm id="mysqlian-CHP-19-ITERM-4318" significance="normal"><primary>xxxxx_xxxxxxxx( ) xxxxxxxx (PHP)</primary></indexterm> -Txxx xxxxxx xxx xxxxxxx xx xxxx MxSQL xxxxxxxxxx, xx x xxxxx xxxxxxxxxx. Txx xxxxxxxx xxxxxxx xxxx xx xx’x xxxxxxxxxx; xxxxx xx xxxxxxxxxxxx. Txxx xxxxxxxx xxxx xxx xxxxx xxxxxxxxxx xxxxxxxxxxx xxxxxxx xxxx <literal moreinfo="none">xxxxx_xxxxxxxx( )</literal>. -</para> - <programlisting format="linespecific">... -$xxxxxxxxxx = xxxxx_xxxxxxx('xxxxxxxxx', 'xxxxx', 'xxxxx'); -xxxxx_xxxxxx_xx('xxxxxxxxxxxx', $xxxxxxxxxx); -... -xxxxx_xxxxx($xxxxxxxxxx); -...</programlisting> - <para>Ix x xxxxxx xxx xxxxxx xxxx xxx xxxxxxxxxx xx MxSQL, xx’x xxx xxxxxxxxx xx xxxxxxx xxx xxxxxxxxxx xxxx xx xxxxx xx xxxxx xxxx.</para> - </refsect1> - </refentry> - <refentry id="ch19-77010"> - <refmeta> - <refentrytitle>xxxxx_xxxxxxx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxxx_xxxxxxx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">xxxxx_xxxxxxx(<replaceable>xxxxxx[:xxxx|xxxxxx], xxxx, xxxxxxxx</replaceable>[, - <replaceable>xxx_xxxx</replaceable>, <replaceable>xxxxx</replaceable>])</synopsis> - </refsynopsisdiv> - <refsect1 id="ch19-5-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-19-ITERM-4319" significance="normal"><primary>xxxxx_xxxxxxx( ) xxxxxxxx</primary><secondary>PHP</secondary></indexterm><indexterm id="mysqlian-CHP-19-ITERM-4320" significance="normal"><primary>xxxxx_xxxxx( ) xxxxxxxx</primary><secondary>PHP</secondary></indexterm><indexterm id="mysqlian-CHP-19-ITERM-4321" significance="normal"><primary>MYSQL_CLIENT_SSL xxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-19-ITERM-4322" significance="normal"><primary>MYSQL_CLIENT_INTERACTIVE xxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-19-ITERM-4323" significance="normal"><primary>MYSQL_CLIENT_IGNORE_SPACE xxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-19-ITERM-4324" significance="normal"><primary>MYSQL_CLIENT_COMPRESS xxxxxxxx</primary></indexterm> -Uxx xxxx xx xxxxx x MxSQL xxxxxxxxxx. Txx xxxxx xxxxxxxx xx xxx xxxxxxxx xx xxx xxxxxx xxxx. Ix xxxx xx xxxxxxxxx, <emphasis>xxxxxxxxx</emphasis> xx xxxxxxx. A xxxx xxx xx xxxxxxxxx xxxx xxx xxxxxx xxxx (xxxxxxxxx xx x xxxxx) xx x xxxxxx xxxxx xxxx xxx xxxx. Ix xx xxxx xx xxxxx, xxxx dddd xx xxxxxxx. Txx xxxxxxxx xx xx xx xxxxx xx xxx xxxxxx xxxxxxxx xxx xxx xxxx’x xxxxxxxx xx xxx xxxxx. Ix x xxxxxxxxxx xx xxxxxxxxx xxxx xxxx xxx xxxx xxxxxxxxxx xx x xxxxxxxx xxx, xxx xxxxxxxx xxxxxxxxxx xxxx xx xxxx xxx x xxx xxxxxxxxxx xxxx xxxx xxx xx xxxxxxx xxxxxx <replaceable>xxx_xxxx</replaceable> xx xxxxxxxxx xx xxx xxxxxx xxxxxxxx xx xxxx xxxxxxxx. Ax xx xxxxxxxx xxxxx xxxxxxxx, xxxxxx xxxxx xxx xx xxxxx xxx xxx MxSQL xxxxxxxxx <literal moreinfo="none">MYSQL_CLIENT_COMPRESS</literal>, <literal moreinfo="none">MYSQL_CLIENT_IGNORE_SPACE</literal>, <literal moreinfo="none">MYSQL_CLIENT_INTERACTIVE</literal>, xxx <literal moreinfo="none">MYSQL_CLIENT_SSL</literal>. Txx xxxxxxxx xxxxxxx x xxxxxxxxxx xxxxxxxxxx xx xxxxxxxxxx; xx xxxxxxx xxxxx xx xx’x xxxxxxxxxxxx. Uxx <literal moreinfo="none">xxxxx_xxxxx()</literal> xx xxxxx x xxxxxxxxxx xxxxxxx xx <literal moreinfo="none">xxxxx_xxxxxxx( )</literal>. -</para> - <programlisting format="linespecific">#!/xxx/xxx/xxx -x -<? - xxxxx_xxxxxxx('xxxxxxxxx', 'xxxxx', 'xxxxx'); - xxxxx_xxxxxx_xx('xxxxxxxxxxxx'); -...</programlisting> - <para>Tx xx xxxx xx xxxxxxxx xxx xxxxxxxxxx xxxx xxxxx, xxxxxxxxxx xxxx x xxxxxx xxxx xx xxxxx xxxx xxxx xxx xxxx, xxxxxxx xxx xxxxxxx xx <literal moreinfo="none">xxxxx_xxxxxxx( )</literal>. Hxxx xx x xxxxxxxx xxxxxx xxxx xxxx xx xxx xxxxxxxxxxx xx MxSQL xxx xxxxxxxx xxx xxxxxxxx xxxxxxxxxxxxxx xxxxxx xxx xxxx xxxx:</para> - <programlisting format="linespecific">#!/xxx/xxx/xxx -x -<? -$xxxxd = 'xxxxx'; -$xxxxd = 'xxxx'; -$xxxxxxxxxxd = xxxxx_xxxxxxx('xxxxxxxxx', $xxxxd, 'xxxxxxxxxxddd'); -$xxxxxxxxxxd = xxxxx_xxxxxxx('xxxxxxxxx', $xxxxd, 'xxxxxxxxxxddd'); -xxxxx_xxxxxx_xx('xxxxxxxxxxxx', $xxxxxxxxxxd); -xxxxx_xxxxxx_xx('xxxxxxxxxxxx', $xxxxxxxxxxd); -xxxxxxx($xxxxxxxxxxd,$xxxxd); -xxxxxxx($xxxxxxxxxxd,$xxxxd); -xxxxxxxx xxxxxxx($xxxxxxxxxx,$xxxx) { - $xxx_xxxxx = "SELECT * FROM xxxxxxx"; - $xxxxxxx = xxxxx_xxxxx($xxx_xxxxx, $xxxxxxxxxx); - xx(xxxxx_xxxxx($xxxxxxxxxx)){ - xxxxx "Cxxxx xxx SELECT xxxx $xxxxxxxxxx xxx $xxxx. \x"; - xxxxxx; - } - $xxxxx = xxxxx_xxx_xxxx($xxxxxxx); - xxxxx "Nxxxxx xx Rxxx Fxxxx xxxx $xxxxxxxxxx xxx $xxxx: - $xxxxx. \x"; -} -xxxxx_xxxxx($xxxxxxxxxxd); -xxxxx_xxxxx($xxxxxxxxxxd); -?></programlisting> - <para><indexterm id="mysqlian-CHP-19-ITERM-4325" significance="normal"><primary>xxxxx_xxxxxxx( ) xxxxxxxx</primary><secondary>PHP</secondary></indexterm><indexterm id="mysqlian-CHP-19-ITERM-4326" significance="normal"><primary>xxxxx_xxxxx( ) xxxxxxxx</primary><secondary>PHP</secondary></indexterm><indexterm id="mysqlian-CHP-19-ITERM-4327" significance="normal"><primary>xxxxx_xxxxxx_xx( ) xxxxxxxx</primary><secondary>PHP</secondary></indexterm> -Ix xxxx xxxxxxx, xxx xxxxx xxx xxxxxxxxxxx xxxx xxxxxxxxx xxxxxxxxx. Txx <literal moreinfo="none">xxxxxxx( )</literal> xxxxxxxxxx xx xxxxxx xxxxx, xxxx xxxx xxxx xxxxxxxxxx xxxxxxxxxx xxx xxxxxxxx xxxxxx xx xxx xxxx-xxxxxxx xxxxxxxx. Fxx xxx xxxxx xxxxxxxxxx, xxx xxxx <emphasis>xxxxx</emphasis> xxxx xxx xxxx <literal moreinfo="none">SELECT</literal> xxxxxxxxxx, xx xxx SQL xxxxxxxxx xx xxxxxxxxxxxx. Ax xxxxx xx xxxxxxxxx xxx xxx xxxxxx xx xxxx xx xxx xxxxxxxxxx xxx xx xxx <literal moreinfo="none">xxxxxx</literal> xxxxxx xxx xxxxxxxx xxxx. Fxx xxx xxxxxx xxxxxxxxxx, xxx xxxx <emphasis>xxxx</emphasis> xxx xxx xxxxxxxxx xxxxxxxxxx, xx xxx xxxxxxxx xx xxxxxxxxx xxxxxxxxxxxx. Txx xxxxxx xxxx xxxxxxx xxxx xxxxxx xx xx xxxxxx xxxxxxx. -</para> - <programlisting format="linespecific">Cxxxx xxx SELECT xxxx Rxxxxxxx xx #d xxx xxxxx. -Nxxxxx xx Rxxx Fxxxx xxxx Rxxxxxxx xx #d xxx xxxx: ddd.</programlisting> - </refsect1> - </refentry> - <refentry id="ch19-77011"> - <refmeta> - <refentrytitle>xxxxx_xxxxxx_xx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxxx_xxxxxx_xx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">xxxxxxxx xxxxx_xxxxxx_xx(<replaceable>xxxxxxxx</replaceable>[, <replaceable>xxxxxxxxxx</replaceable>])</synopsis> - </refsynopsisdiv> - <refsect1 id="ch19-6-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-19-ITERM-4328" significance="normal"><primary>xxxxx_xxxxxx_xx( ) xxxxxxxx</primary><secondary>PHP</secondary></indexterm><indexterm id="mysqlian-CHP-19-ITERM-4329" significance="normal"><primary>CREATE DATABASE xxxxxxxxx</primary><secondary>xxxxx_xxxxx( ) xxx</secondary></indexterm><indexterm id="mysqlian-CHP-19-ITERM-4330" significance="normal"><primary>xxxxx_xxxxx( ) xxxxxxxx</primary><secondary>PHP</secondary></indexterm> -Uxx xxxx xx xxxxxx x xxxxxxxx xx MxSQL xxx xxx xxxxxxx xxxxxxxxxx. Txx xxxx xx xxx xxxxxxxx xx xxxxxx xx xxxxx xx xxx xxxxx xxxxxxxx xx xxx xxxxxxxx. A xxxxxxxxx MxSQL xxxxxxxxxx xxxxxxxxxx xxx xx xxxxx xx x xxxxxx xxxxxxxx. Txx xxxxxxxx xxxxxxx xxxx xx xx’x xxxxxxxxxx, xxxxx xx xxxxxxxxxxxx. Txxx xxxxxxxx xx xxxxxxxxxx. Uxx xxx <literal moreinfo="none">xxxxx_xxxxx( )</literal> xxxxxxxx xxxx xxx <literal moreinfo="none">CREATE DATABASE</literal> xxxxxxxxx xxxxxxx. -</para> - <programlisting format="linespecific">... -xxxxx_xxxxxx_xx('xxx_xx'); -$xxxxxxxxx = xxxxx_xxxx_xxx( ); -xxxxx($xx = xxxxx_xxxxx_xxx($xxxxxxxxx)) { - xxxxx $xx[d] . "\x"; -} -...</programlisting> - <para>Txxx xxxxxx xxxx xxxxxx x xxx xxxxxxxx xxx xxxx xxxxxxx x xxxx xx xxxxxxxxx xx xxxxx xxx xxxx xx xxxxxxx xxxx xx xxx xxxxxxxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch19-77012"> - <refmeta> - <refentrytitle>xxxxx_xxxx_xxxx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxxx_xxxx_xxxx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">xxxx xxxxx_xxxx_xxxx(<replaceable>xxxxxxxxxx</replaceable>, <replaceable>xxx</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch19-7-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-19-ITERM-4331" significance="normal"><primary>xxxxx_xxxx_xxxx( ) xxxxxxxx</primary><secondary>PHP</secondary></indexterm><indexterm id="mysqlian-CHP-19-ITERM-4332" significance="normal"><primary>xxxxx_xxxxx_xxx( ) xxxxxxxx</primary><secondary>PHP</secondary></indexterm> -Uxx xxxx xx xxxxxxxxxxx xxxx xxx <literal moreinfo="none">xxxxx_xxxxx_xxx( )</literal> xxxxxxxx xx xxxxxx xxx xxxxxxx xxx xxxxx xxxxxxx xx xxx xxx xxxxxxxxx xx xxx xxxxxx xxxxxxxx xx xxxx xxxxxxxx. Txx xxxxxxxxxx xxxxxxxxxx xx xxxxx xx xxx xxxxx xxxxxxxx. Txx xxxxxxxx xxxxxxx xxxx xx xx’x xxxxxxxxxx; xx xxxxxxx xxxxx xx xx’x xxxxxxxxxxxx. -</para> - <programlisting format="linespecific">... -$xxx_xxxxx = "SELECT xxxx, xxxxxxxx, xxxxxxxxxxx - FROM xxxxxxx"; -$xxxxxxx = xxxxx_xxxxx($xxx_xxxxx); -$xxxxx = xxxxx_xxx_xxxx($xxxxxxx); -xx ($xxxxx > d) xxxxx_xxxx_xxxx($xxxxxxx, $xxxxx - d); -$xxx = xxxxx_xxxxx_xxx($xxxxxxx); -xxxxx($xxx = xxxxx_xxxxx_xxxxxx($xxxxxxx)) { - xxxxx "WR-" . $xxx->xxxx . " Cxxxxx-" . $xxx->xxxxxxxx . - " - " . $xxx->xxxxxxxxxxx . "\x"; -} -...</programlisting> - <para><indexterm id="mysqlian-CHP-19-ITERM-4333" significance="normal"><primary>xxxxx_xxxx_xxxx( ) xxxxxxxx</primary><secondary>PHP</secondary></indexterm><indexterm id="mysqlian-CHP-19-ITERM-4334" significance="normal"><primary>xxxxx_xxx_xxxx( ) xxxxxxxx</primary><secondary>PHP</secondary></indexterm> -Ix xxxx xxxxxx xxxxxxx, xxx SQL xxxxxxxxx xx xxxxxxxxx xxx xxxx xxxxxxx xxxxxxxxxxxxxx xxxxxxx xxx xxx xxxx xx xxx xxxxx. Txx xxxxxxx xxx xx xxxxxx xx <literal moreinfo="none">$xxxxxxx</literal>. Uxxxx <literal moreinfo="none">xxxxx_xxx_xxxx()</literal> xxxxxxxx, xxx xxxxxx xx xxxx xx xxxxxxxxxx xxx xxxxxx xx xxx <literal moreinfo="none">$xxxxx</literal> xxxxxxxx. Tx xx xxxx xx xxxxxxx xxxx xxx xxxx xxxx xxxx xxxxxxxx, xxx xxxxxx xxxxx <literal moreinfo="none">xxxxx_xxxx_xxxx( )</literal>. Txx xxxxxxx xxx xx xxxxx xx xxx xxxxx xxxxxxxx. Ix xxxxx xx xxx xxx xxxxx xxx xx x xxxxxxx xxx, xxx xxxxxx xxxxx xx xxx xx d: xx xx x xxxxxxx xxx xxxxxxxx xxxx xxx xxx, xxx xxx xxxxx xx d xxxx d xxxxx xxxx xx xx xxxxx xx xxx xxxxxx xxxxxxxx xx <literal moreinfo="none">xxxxx_xxxx_xxxx( )</literal>. Fxx xxx xxxxxxx xxxx, xx xxx xxx xxxx xxxx xxxxxxx xx xxx xxxxxxx xxx, xxx xxxxxx xx xxxx xx xxxxxxx xx xxx xx xxxx xxx xxxxxxx xx xxx xxx xxxxxx xxx xxxxx-xx-xxxx xxx. Hxxx xx xxx xxxx xxxx xx xxx xxxxxx xx xxxx xxxxxx: -</para> - <programlisting format="linespecific">WR-dddd Cxxxxx-dddd - Cxx'x xxxxxxx xx xxxxxxx.</programlisting> - </refsect1> - </refentry> - <refentry id="ch19-77013"> - <refmeta> - <refentrytitle>xxxxx_xx_xxxx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxxx_xx_xxxx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">xxxxxx xxxxx_xx_xxxx(<replaceable>xxxxxxxxx</replaceable>, <replaceable>xxxxxx</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch19-8-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-19-ITERM-4335" significance="normal"><primary>xxxxx_xx_xxxx( ) xxxxxxxx (PHP)</primary></indexterm><indexterm id="mysqlian-CHP-19-ITERM-4336" significance="normal"><primary>xxxxx_xxxx_xxx( ) xxxxxxxx</primary><secondary>PHP</secondary></indexterm> -Txxx xxxxxxx xxx xxxx xx xxx xxxxxxxx xxxx xxx xxxxxxx xx xxx <literal moreinfo="none">xxxxx_xxxx_xxx( )</literal> xxxxxxxx, xxxxx xxxxxxx x xxxxxxx xx x xxxxxxx xxx xxxxxxxxxx xxx xxxxx xx xxxxxxxxx xxx x MxSQL xxxxxx. Txx xxxxxxxxx xx xxx xxxx xx xxxxxxxxx xx xxxxx xx xxx xxxxx xxxxxxxx. A xxxxxx xxxxxxxxxxx xxx xxx xx xxxxxxxx xxxx xxx xxxx xx xxx xxxxxx xxxxxxxx. -</para> - <programlisting format="linespecific">... -$xxxxxxxxx = xxxxx_xxxx_xxx( ); -$xxx = xxxxx_xxx_xxxx($xxxxxxxxx); -xxx($xxxxx = d; $xxxxx < $xxx; $xxxxx++) { - xxxxx xxxxx_xx_xxxx($xxxxxxxxx, $xxxxx) . "\x"; -} -...</programlisting> - <para><indexterm id="mysqlian-CHP-19-ITERM-4337" significance="normal"><primary>xxxxx_xxx_xxxx( ) xxxxxxxx</primary><secondary>PHP</secondary></indexterm><indexterm id="mysqlian-CHP-19-ITERM-4338" significance="normal"><primary>xxxxx_xx_xxxx( ) xxxxxxxx (PHP)</primary></indexterm><indexterm id="mysqlian-CHP-19-ITERM-4339" significance="normal"><primary>xxxxx_xxxx_xxx( ) xxxxxxxx</primary><secondary>PHP</secondary></indexterm><indexterm id="mysqlian-CHP-19-ITERM-4340" significance="normal"><primary>xxxxx_xx_xxxx( ) xxxxxxxx (PHP)</primary></indexterm> -Ix xxxx xxxxxx xxxxxxx, x xxxxxxx xxx xxxxxxxxxx x xxxx xx xxxxxxxxx xx xxxxxxxxx xxx xxxxxx xx xxx <literal moreinfo="none">$xxxxxxxxx</literal> xxxxxxxx xxxxx xxx <literal moreinfo="none">xxxxx_xxxx_xxx( )</literal> xxxxxxxx. Txxx xxxxxxx xxx xx xxxxxxxx xx <literal moreinfo="none">xxxxx_xxx_xxxx( )</literal> xx xxxxxxxxxx xxx xxxxxx xx xxxxxxx (x.x., xxx xxxxxx xx xxxxxxxx xxxxx) xxxx xx xxxxxxxx. Uxxxx x <literal moreinfo="none">xxx</literal> xxxxxxxxx xxx xxx xxxxxx xx xxxxxxxxx (<literal moreinfo="none">$xxx</literal>), xxx xxxxxx xxxxx xxxxxxx xxx xxxxxxx xxx xxxxxxxxx xx <literal moreinfo="none">$xxxxxxxxx</literal>. Wxxx xxxx xxxx, <literal moreinfo="none">xxxxx_xx_xxxx( )</literal> xxxxxxxx xxx xxxx xx xxxx xxxxxxxx xx xxxxxxxx xxx xxxxxx xxxxxxxx xx xxx xxxxxxxx xx xxx xxxxx xx <literal moreinfo="none">$xxxxx</literal> xxxxxxxxxx xxxx d xx xxx xxxxx xx <literal moreinfo="none">$xxx</literal>. -</para> - </refsect1> - </refentry> - <refentry id="ch19-77014"> - <refmeta> - <refentrytitle>xxxxx_xx_xxxxx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxxx_xx_xxxxx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">xxxxxxxx xxxxx_xx_xxxxx(<replaceable>xxxxxxxx</replaceable>, <replaceable>xxx_xxxxxxxxx</replaceable>[, <replaceable>xxxxxxxxxx</replaceable>])</synopsis> - </refsynopsisdiv> - <refsect1 id="ch19-9-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-19-ITERM-4341" significance="normal"><primary>xxxxx_xx_xxxxx( ) xxxxxxxx (PHP)</primary></indexterm><indexterm id="mysqlian-CHP-19-ITERM-4342" significance="normal"><primary>xxxxx_xxxxx( ) xxxxxxxx</primary><secondary>PHP</secondary></indexterm> -Txxx xxxxxxxx xxx xx xxxx xx xxxxx xxx xxxxxxxx xxxxx, xxx xxx xxxxxxx MxSQL xxxxxxxxxx (xxxxxx xxxxxxx xx xxxxxxxxx), xxx xx xxxxxxx xxx SQL xxxxxxxxx xxxxx xx xxx xxxxxx xxxxxxxx. Ix xxxxx xxx’x xxxxxxxxx x xxxxxxxxxx xx xxx xxxxxx, xx xxxx xxxxxxx xx xxxxxxxxx xxx. Fxx SQL xxxxxxxxxx xxxx xxxxx xxx xxxxxx x xxxxxxx xxx (x.x., <literal moreinfo="none">UPDATE</literal> xxxxxxxxxx), xxxx xxxx xx xxxxxxxx xx xxx xxxxxxxx xx xxxxxxxxxx xxx xxxxx xx xx’x xxxxxxxxxxxx. Txxx xxxxxxxx xx xxxxxxxxxx, xx xxx <literal moreinfo="none">xxxxx_xxxxx( )</literal> xxxxxxx. -</para> - <programlisting format="linespecific">... -$xxx_xxxxx = "SELECT xxxx, xxxxxxxx, xxxxxxxxxxx - FROM xxxxxxx"; -$xxxxxxx = xxxxx_xx_xxxxx('xxxxxxxxxxxx', $xxx_xxxxx); -xxxxx($xxx = xxxxx_xxxxx_xxxxxx($xxxxxxx)) { - xxxxx "WR-" . $xxx->xxxx . ", - Cxxxxx-" . $xxx->xxxxxxxx . " " . - $xxx->xxxxxxxxxxx . "\x"; -} -...</programlisting> - <para><indexterm id="mysqlian-CHP-19-ITERM-4343" significance="normal"><primary>xxxxx_xxxxxx_xx( ) xxxxxxxx</primary><secondary>PHP</secondary></indexterm> -Bxxxxxxxx, xxxxx <literal moreinfo="none">xxxxx_xx_xxxxx( )</literal> xxxxxxxxxx xxx xxxx xx xxx <literal moreinfo="none">xxxxx_xxxxxx_xx( )</literal> xxx <literal moreinfo="none">xxxxx_xxxxx( )</literal>. -</para> - </refsect1> - </refentry> - <refentry id="ch19-77015"> - <refmeta> - <refentrytitle>xxxxx_xxxx_xx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxxx_xxxx_xx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">xxxx xxxxx_xxxx_xx(<replaceable>xxxxxxxx</replaceable>[, <replaceable>xxxxxxxxxx</replaceable>])</synopsis> - </refsynopsisdiv> - <refsect1 id="ch19-10-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-19-ITERM-4344" significance="normal"><primary>xxxxx_xxxx_xx( ) xxxxxxxx</primary><secondary>PHP</secondary></indexterm><indexterm id="mysqlian-CHP-19-ITERM-4345" significance="normal"><primary>DROP DATABASE xxxxxxxxx</primary><secondary>xxxxx_xxxxx( ) xxx</secondary></indexterm><indexterm id="mysqlian-CHP-19-ITERM-4346" significance="normal"><primary>xxxxx_xxxxx( ) xxxxxxxx</primary><secondary>PHP</secondary></indexterm> -Uxx xxxx xx xxxxxx xxx xxxxxxxx xxxxx xxxx xxx MxSQL xxxxxx. A xxxxxxxxx xxxxxxxxxx xxxxxxxxxx xxx xx xxxxx xx x xxxxxx xxxxxxxx. Txx xxxxxxxx xxxxxxx xxxx xx xx’x xxxxxxxxxx; xx xxxxxxx xxxxx xx xx’x xxxxxxxxxxxx. Txxx xxxxxxxx xxx xxxx xxxxxxxxxx. Uxx xxx <literal moreinfo="none">xxxxx_xxxxx( )</literal> xxxxxxxx xxxx x <literal moreinfo="none">DROP DATABASE</literal> xxxxxxxxx xxxxxxx. -</para> - <programlisting format="linespecific">... -xxxxx_xxxxxx('xxx_xx'); -...</programlisting> - </refsect1> - </refentry> - <refentry id="ch19-77016"> - <refmeta> - <refentrytitle>xxxxx_xxxxx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxxx_xxxxx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">xxx xxxxx_xxxxx([<replaceable>xxxxxxxxxx</replaceable>])</synopsis> - </refsynopsisdiv> - <refsect1 id="ch19-11-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-19-ITERM-4347" significance="normal"><primary>xxxxx_xxxxx( ) xxxxxxxx</primary><secondary>PHP</secondary></indexterm> -Txxx xxxxxxx xxx xxxxx xxxx xxxxxx xxx xxx xxxx MxSQL xxxxxxxxx xxxxxx. Txx xxxxxxxx xxxxxxx d xx xxxxx xxx xx xxxxx. Axxxxxx MxSQL xxxxxxxxxx xxxxxxxxxx xxx xx xxxxx xx xx xxxxxxxx xxx xxx xxxxxxxx.</para> - <programlisting format="linespecific">... -$xxx_xxxxx = "SELECT * FROM xxxxxxxx"; -$xxxxxxx = xxxxx_xx_xxxxx('xxxxxxxxxxxx', $xxx_xxxxx) - xx xxx (xxxxx_xxxxx( ) . " " . xxxxx_xxxxx( ) . "\x"); -$xxxxx = xxxxx_xxx_xxxx($xxxxxxx); -xxxxx "Nxxxxx xx Rxxx Fxxxx: $xxxxx \x"; -...</programlisting> - <para>I’xx xxxxxxxxxxxxx xxxxx xxx xxxx xx xxx xxxxx xxxxxxxxxxx xx xxx xxxxxxxxx SQL xxxxxxxxx. Ix xxxxxx xxxx <emphasis>xxxxxxx</emphasis> xxx xxx <emphasis>xxxxxxxx</emphasis>. Txx xxxxxx xx xxxx xxxxxx xxxxxxx:</para> - <programlisting format="linespecific">dddd Txxxx 'xxxxxxxxxxxx.xxxxxxxx' xxxxx'x xxxxx</programlisting> - <para>Nxxxxx xxxx xxx xxxxx xxxxxx xxxx xx xxxxx xx <literal moreinfo="none">xxxxx_xxxxx( )</literal> xxx xxx xxxxxxx xxxx xxxxxxx xx xx xxxxx xx <literal moreinfo="none">xxxxx_xxxxx( )</literal>, xxxxx xxxxxxxx xx xxxxx xxxxxxx xxxxxx xxxx x xxxx.</para> - </refsect1> - </refentry> - <refentry id="ch19-77017"> - <refmeta> - <refentrytitle>xxxxx_xxxxx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxxx_xxxxx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">xxxxxx xxxxx_xxxxx([<replaceable>xxxxxxxxxx</replaceable>])</synopsis> - </refsynopsisdiv> - <refsect1 id="ch19-12-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-19-ITERM-4348" significance="normal"><primary>xxxxx_xxxxx( ) xxxxxxxx</primary><secondary>PHP</secondary></indexterm><indexterm id="mysqlian-CHP-19-ITERM-4349" significance="normal"><primary>xxxxx_xxxxx( ) xxxxxxxx</primary><secondary>PHP</secondary></indexterm> -Txxx xxxxxxx xxx xxxxx xxxxxxx xxx xxx xxxx MxSQL xxxxxxxxx xxxxxx. Txx xxxxxxxx xxxxxxx xxxxxxx xx xxxxx xxx xx xxxxx. Axxxxxx MxSQL xxxxxxxxxx xxxxxxxxxx xxx xx xxxxx xx xx xxxxxxxx xxx xxx xxxxxxxx. Sxx <literal moreinfo="none">xxxxx_xxxxx( )</literal> xxx xx xxxxxxx xx xxx <literal moreinfo="none">xxxxx_xxxxx( )</literal> xxx xx xxxx. -</para> - </refsect1> - </refentry> - <refentry id="ch19-77018"> - <refmeta> - <refentrytitle>xxxxx_xxxxxx_xxxxxx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxxx_xxxxxx_xxxxxx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">xxxxxx xxxxx_xxxxxx_xxxxxx(<replaceable>xxxxxx</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch19-13-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-19-ITERM-4350" significance="normal"><primary>xxxxx_xxxxxx_xxxxxx( ) xxxxxxxx</primary><secondary>PHP</secondary></indexterm><indexterm id="mysqlian-CHP-19-ITERM-4351" significance="normal"><primary>xxxxx_xxxx_xxxxxx_xxxxxx( ) xxxxxxxx</primary><secondary>PHP</secondary></indexterm><indexterm id="mysqlian-CHP-19-ITERM-4352" significance="normal"><primary>xxxxx_xxxxx( ) xxxxxxxx</primary><secondary>PHP</secondary></indexterm> -Txxx xxxxxxx xxx xxxxxx xxxxx xxxx xxxxxxx xxxxxxxxxx xxxxxxxx xx xxxxxxxxxxx xx xxxx xxxx xxx xxxxxxxxx xxxx xxxxx xxxxxxxxxxx xx xxx SQL xxxxxxxxxxx. Txxx xxxxxxxx xx xxxx xx xxxxxxxxxxx xxxx <literal moreinfo="none">xxxxx_xxxxx( )</literal> xx xxxx xxxx SQL xxxxxxxxxx xxxx. Txxx xxxxxxxx xx xxxxxxxxxx. Uxx <literal moreinfo="none">xxxxx_xxxx_xxxxxx_xxxxxx( )</literal> xxxxxxx. -</para> - <programlisting format="linespecific">... -$xxxxxxxx = 'dddd'; -$xxxxxxxxxxx = "Cxx'x xxxxxxx xx xxxxxxx."; -$xxxxxxxxxxx = xxxxx_xxxxxx_xxxxxx($xxxxxxxxxxx); -$xxx_xxxxx = "INSERT INTO xxxxxxx - (xxxx, xxxxxxxx, xxxxxxxxxxx) - VALUES(NOW( ), '$xxxxxxxx', '$xxxxxxxxxxx')"; -xxxxx_xxxxx($xxx_xxxxx); -...</programlisting> - <para>Txx xxxxxx xxxxxxxxx xx xxx <literal moreinfo="none">$xxxxxxxxxxx</literal> xxxxxxxx xxxxxxxx xx xxxxxxxxxx, xxxxx xxxxx xxxxx xxx SQL xxxxxxxxx xx xxxx. Ix xxxx xxxx xxxxxxx xxx xxxxxxx xxxxx xx xxx SQL xxxxxxxxx xx xxxxxxxxxx xx xxxxxx xxxxxx; xx xxxxxxxxxx xxxxx xx xxxxxxxx xxx x xxxxxx xxxxx, xxxxx xxx xxxxxxx xxxxxxx xx MxSQL.</para> - </refsect1> - </refentry> - <refentry id="ch19-77019"> - <refmeta> - <refentrytitle>xxxxx_xxxxx_xxxxx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxxx_xxxxx_xxxxx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">xxxxx xxxxx_xxxxx_xxxxx(<replaceable>xxxxxxx</replaceable>[, <replaceable>xxxx</replaceable>])</synopsis> - </refsynopsisdiv> - <refsect1 id="ch19-14-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-19-ITERM-4353" significance="normal"><primary>xxxxx_xxxxx_xxxxx( ) xxxxxxxx (PHP)</primary></indexterm> -Txxx xxxxxxx xx xxxxx xxxxxxxxxx x xxx xx xxxx xxxx xx SQL xxxxx xxxxxxx xxx. Dxxx xx xxxx xxxxxx xx xx xxxxxxxxxxx xxxxx xxxxxxxxxx xxx xxxxx xxxxx xx xxx xxxx xxx xxx xxxxxx. Fxxxx xxxxx xxx xxxxxxx xxxx xxxxxx xxxxxx xxxxx xx xxxxxxx. Tx xxxxxx xxxxxxx xxxx xx xxxxx xx xxxxxxxx xx xxxx xx xxxxxxxxxxx xxxxx xx xxxxxxxx, xx xxxx, xxx xx xxx xxxxxxxxx xxx xx xxxxx xx x xxxxxx xxxxxxxx xx xxx xxxxxxxx, xxxxxxxxxxxx: <literal moreinfo="none">MYSQL_NUM</literal>, <literal moreinfo="none">MYSQL_ASSOC</literal>, xx <literal moreinfo="none">MYSQL_BOTH</literal>. Txxx xxxxxxxx xx xxxxxxxxx xxxx xxxx x xxxx xxxxxxxxx xx xxxx xxxxxxx x xxxxxxx xxx xxxxxxxxxx xxxxxxxx xxxx xx xxxx. Wxxx xxxxx xxx xx xxxx xxxx xx xxxxxx, xxxxx xx xxxxxxxx, xxxxx xxxxxxxxx xxxxxxxx xxx xxx xx xxx xxxx.</para> - <programlisting format="linespecific">... -$xxx_xxxxx = "SELECT xxxx, xxxxxxxx, xxxxxxxxxxx - FROM xxxxxxx"; -$xxxxxxx = xxxxx_xxxxx($xxx_xxxxx); -xxxxx($xxx = xxxxx_xxxxx_xxxxx($xxxxxxx)) { - xxxxx "WR-" . $xxx[d] . ", Cxxxxx-" . - $xxx['xxxxxxxx'] . " " . $xxx['xxxxxxxxxxx'] . "\x"; -} -...</programlisting> - <para>Nxxxxx xxxx xxxx xxxxxxx xx xxxxxxxxxx xxxx xxxx xxx xxx xxxxxxx xxx xxxx xxxx: xxx xxxx xxxxxxx xxxxxx xx xxxxxxxxx xxxxx x xxxxxxxx xxxxx xxxx xxxxxxxxx xxxxxx (x.x., xxxxxxx xxx xxxxx xxxxxx xx xxx xxxxx xxxxxxx xx xxxxxx xxxxxxxx); xxx xxxxx xxxxxx xx xxxx xxx xxxxxxxxx xxxxx xxx xxxxxxxxxxx xxxxx xxxxxx (x.x., xxxxxxx xxx xxxxx xxxx xxx xxx xxx xxxx xx xxxxxxxx).</para> - </refsect1> - </refentry> - <refentry id="ch19-77020"> - <refmeta> - <refentrytitle>xxxxx_xxxxx_xxxxx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxxx_xxxxx_xxxxx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">xxxxx xxxxx_xxxxx_xxxxx(<replaceable>xxxxxxx</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch19-15-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-19-ITERM-4354" significance="normal"><primary>xxxxx_xxxxx_xxxxx( ) xxxxxxxx (PHP)</primary></indexterm><indexterm id="mysqlian-CHP-19-ITERM-4355" significance="normal"><primary>xxxxx_xxxxx_xxxxx( ) xxxxxxxx (PHP)</primary></indexterm> -Txxx xxxxxxx xx xxxxxxxxxxx xxxxx xxxxxxxxxx x xxx xx xxxx xxxx xx SQL xxxxx xxxxxxx xxx. Fxxxx xxxxx xx xxx xxxxxxx xxx xxx xxxx xx xxx xxxx xxx xxx xxxxxx. Fxxxx xxxxx xxx xxxxxxx xxxx xxxxxx xxxxx xxxxxx xx xxxxx xx xxxxxxxx xx xxx SQL xxxxxxxxx. Txxx xxxxxxxx xx xxxxxxxxx xxxx xxxx x xxxx xxxxxxxxx xx xxxx xxxxxxx x xxxxxxx xxx xxxxxxxxxx xxxxxxxx xxxx xx xxxx. Wxxx xxxxx xxx xx xxxx xxxx xx xxxxxx, xxxxx xx xxxxxxxx, xxxxx xxxx xxx x xxxx xxxxxxxxx. Txxx xxxxxxxx xx xxxxxxxxxx xxxx <literal moreinfo="none">xxxxx_xxxxx_xxxxx( )</literal> xxxx <literal moreinfo="none">MYSQL_ASSOC</literal> xx xxx xxxxxx xxxxxxxx. -</para> - <programlisting format="linespecific">... -$xxx_xxxxx = "SELECT xx_xx, xxxxxx_xx, xxxxxxxxxxx - FROM xxxxxxx"; -$xxxxxxx = xxxxx_xxxxx($xxx_xxxxx); -xxxxx($xxx = xxxxx_xxxxx_xxxxx($xxxxxxx)) { - xxxxx "WR-" . $xxx['xx_xx'] . ", Cxxxxx-" . - $xxx['xxxxxx_xx'] . " " . $xxx['xxxxxxxxxxx'] . "\x"; -} -...</programlisting> - <para><indexterm id="mysqlian-CHP-19-ITERM-4356" significance="normal"><primary>xxxxx_xxxxx_xxxxx( ) xxxxxxxx (PHP)</primary></indexterm><indexterm id="mysqlian-CHP-19-ITERM-4357" significance="normal"><primary>xxxxx_xxxxx_xxxxx( ) xxxxxxxx (PHP)</primary></indexterm> -Txxx xxxx xx xxxxxxxxx xx xxx xxx xxx <literal moreinfo="none">xxxxx_xxxxx_xxxxx( )</literal> xxxxxx xxxx xxxx xxx <literal moreinfo="none">xxxxx_xxxxx_xxxxx( )</literal> xxxxxxxx, xxx xxxxx xxx x xxxxxxxx xxxxx xxxxx xxx xx xxxx xx xxx xxx xxxx xxxxxxx xxxxxx--xxx <literal moreinfo="none">xx_xx</literal> xxx xxx xxx xxxxxxxxxxx xxxxx xxxxxx xx <literal moreinfo="none">$xxx</literal> xxx xx xx xxxx xxxxxxx. -</para> - </refsect1> - </refentry> - <refentry id="ch19-77021"> - <refmeta> - <refentrytitle>xxxxx_xxxxx_xxxxx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxxx_xxxxx_xxxxx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">xxxxxx xxxxx_xxxxx_xxxxx(<replaceable>xxxxxxx</replaceable>[, <replaceable>xxxxxx</replaceable>])</synopsis> - </refsynopsisdiv> - <refsect1 id="ch19-16-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-19-ITERM-4358" significance="normal"><primary>xxxxx_xxxxx_xxxxx( ) xxxxxxxx</primary><secondary>PHP</secondary></indexterm><indexterm id="mysqlian-CHP-19-ITERM-4359" significance="normal"><primary>SELECT xxxxxxxxx</primary><secondary>xxxxx_xxxxx_xxxxx( ) xxx</secondary></indexterm> -Txxx xxxxxxx xx xxxxxx xxxxxxxxxx xxxxxxxxxxx xxxxx x xxxxx xxxx x xxxxxxx xxx xxxxx. Ixxxxxxxxxx xx xxxxx xx xxx xxxxx xxxxx xx x xxxxxxx xxx xxxxxxx xx xx xxxxxxxx; xxx xxxxxxxx xxx xx xxxxxx xxxxxxxxxx xx xxxxxx xx xxxx xxxxx xx x <literal moreinfo="none">SELECT</literal> xxxxxxxxx. A xxxxxx xxx xx xxxxx xx xxx xxxxxx xxxxxxxx xx xxxx xxx xx xxxx xxxxxx. Txx xxxxxxxx xx xxx xxxxxx xxx xx xxxxxxx: <emphasis>xxxx</emphasis> xxx xxxxxx xxxx; <emphasis>xxxxx</emphasis> xxx xxxxx xxxx, <emphasis>xxx_xxxxxx</emphasis> xxx xxx xxxxxxx xxxxxx xx xxx xxxxxx; <emphasis>xxx_xxxx</emphasis>, xxxxx xxx x xxxxx xx d xx xxx xxxxxx xxx xxx xxxx x NULL xxxxx; <emphasis>xxxxxxx_xxx</emphasis>, xxxxx xxx x xxxxx xx d xx xxx xxxxxx xx x xxxxxxx xxx xxxxxx; <emphasis>xxxxxx_xxx</emphasis>, xxxxx xxxxxxx d xx xx’x x xxxxxx xxx; <emphasis>xxxxxxxx_xxx</emphasis>, xxxxx xxxxxxx d xx xx’x xxx xxxxxx; <emphasis>xxxxxxx</emphasis>, xxxxx xxxxxxx d xx xx’x x xxxxxxx xxxxxxxx; <emphasis>xxxx</emphasis>, xxxxx xxxxxxx d xx xx’x x <literal moreinfo="none">BLOB</literal> xxxxxxxx; <emphasis>xxxx</emphasis>, xxxxx xxxxxxx xxx xxxxxxxx; <emphasis>xxxxxxxx</emphasis>, xxxxx xxxxxxx d xx xxx xxxxxx xx xxxxxxxx; xxx <emphasis>xxxxxxxx</emphasis>, xxxxx xxxxxxx d xx xx’x x xxxx-xxxx xxxxxx. -</para> - <programlisting format="linespecific">... -$xxx_xxxxx = "SELECT * FROM xxxxxxx LIMIT d"; -$xxxxxxx = xxxxx_xxxxx($xxx_xxxxx); -$xxx_xxxxxx = xxxxx_xxx_xxxxxx($xxxxxxx); -xxx ($xxxxx = d; $xxxxx < $xxx_xxxxxx; $xxxxx++) { - $xxxx = xxxxx_xxxxx_xxxxx($xxxxxxx, $xxxxx); - xxxxx "$xxxx->xxxx ($xxxx->xxxx $xxxx->xxx_xxxxxx) \x"; -} -...</programlisting> - <para><indexterm id="mysqlian-CHP-19-ITERM-4360" significance="normal"><primary>xxxxx_xxx_xxxxxx( ) xxxxxxxx</primary><secondary>PHP</secondary></indexterm> -Hxxx xxx xx xxx xxxxxxx xxx xxx xxxxxx xxx xxxxxxxx xxx xxxxxx xx <literal moreinfo="none">$xxxxxxx</literal>. Txx xxxxxx xx xxxxxx xx xxxxxxxxxx xx <literal moreinfo="none">xxxxx_xxx_xxxxxx( )</literal> xxx xxx <literal moreinfo="none">xxx</literal> xxxxxxxxx xxxx xxxxxxx. Txx <literal moreinfo="none">xxx</literal> xxxxxxxxx xxxxx xxxxxxx xxxx xxxxx xx xxx xxxxxxx xxx xxx xxxx <literal moreinfo="none">xxxxx_xxxxx_xxxxx( )</literal> xx xxxxxx xxx xxxxx xxxxxxxxxxx xx xxx xxxx xx xx xxxxxx. Txxx xxx xxxxxxx xxxxxx xxx xxx xxxx xx xxx xxxxx, xxx xxxxxxxx, xxx xxx xxxxxxx xxxxxx. Hxxx xxx xxx xxxxx xxx xxxxx xx xxx xxxxxx xxxx xxxx xxxxxx: -</para> - <programlisting format="linespecific">xx_xx (xxx d) -xx_xxxx (xxxx dd) -xxxxxxxx (xxxxxx d) -...</programlisting> - </refsect1> - </refentry> - <refentry id="ch19-77022"> - <refmeta> - <refentrytitle>xxxxx_xxxxx_xxxxxxx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxxx_xxxxx_xxxxxxx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">xxxxx xxxxx_xxxxx_xxxxxxx(<replaceable>xxxxxxx</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch19-17-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-19-ITERM-4361" significance="normal"><primary>xxxxx_xxxxx_xxxxxxx( ) xxxxxxxx</primary><secondary>PHP</secondary></indexterm> -Txxx xxxxxxx xx xxxxx xxxxxxxxxx xxx xxxxxx xx xxxx xxxxx xx x xxxxxxx xxx xxxx x MxSQL xxxxx.</para> - <programlisting format="linespecific">... -$xxx_xxxxx = "SELECT xx_xx, xxxxxxxxxxx, xxxxxxxxxxxx - FROM xxxxxxx"; -$xxxxxxx = xxxxx_xxxxx($xxx_xxxxx); -xxxxx($xxx = xxxxx_xxxxx_xxxxxx($xxxxxxx)) { - $xxxxxx = xxxxx_xxxxx_xxxxxxx($xxxxxxx); - xxxxx "$xxx->xx_xx: xxxxxxxxxxx: $xxxxxx[d], - xxxxxxxxxxxx: $xxxxxx[d] \x"; -} -...</programlisting> - <para><indexterm id="mysqlian-CHP-19-ITERM-4362" significance="normal"><primary>xxxxx_xxxxx_xxxxxx( ) xxxxxxxx (PHP)</primary></indexterm><indexterm id="mysqlian-CHP-19-ITERM-4363" significance="normal"><primary>xxxxx_xxxxx_xxxxxxx( ) xxxxxxxx</primary><secondary>PHP</secondary></indexterm> -Ix xxxx xxxxxxx, xxxx xxxx xxxxxxx xxxxxx xx xxxxxxxx, xxxxx xxxx xxx xxxxx xxxxxxxxxxx xxx xxx xxxxxxx xxxxxxxxxxxx. Lxxxxxx xxxxxxx xxxx xxx xxxx xx xxxxxxxxx xx xx xxxxxx xxxx <literal moreinfo="none">xxxxx_xxxxx_xxxxxx()</literal> xxx x <literal moreinfo="none">xxxxx</literal> xxxxxxxxx, xxx xxxx xxxxxxxxxx xxx xxxxxx xx xxx xxxx xxx xxx xxxxx xxxxxx xxxx <literal moreinfo="none">xxxxx_xxxxx_xxxxxxx( )</literal> xxx xxxxxx xxxx xx xx xxxxx. Wxxxxx xxx xxxxxxxxx xxxxx xx xxx <literal moreinfo="none">xxxxx</literal> xxxxxxxxx, xxx xxxxx xx xxx <emphasis>xx_xx</emphasis> xxxxx xx xxxxxxxxx, xxx xxx xxxxxx xx xxx <emphasis>xxxxxxxxxxx</emphasis> xxxxx xxx xxx <emphasis>xxxxxxxxxxxx</emphasis> xxxxx xx xxxxxx xxx xx xxx <literal moreinfo="none">$xxxxxx</literal> xxxxx xxxxx xxx xxxxxxxx xxxxx xxxxxx xxx xxxx. Hxxx xxx x xxx xxxxx xxxx xxx xxxxxx xx xxxx xxxxxx: -</para> - <programlisting format="linespecific">... -dddd: xxxxxxxxxxx: dd, xxxxxxxxxxxx: ddd -dddd: xxxxxxxxxxx: dd, xxxxxxxxxxxx: ddd -dddd: xxxxxxxxxxx: dd, xxxxxxxxxxxx: ddd</programlisting> - </refsect1> - </refentry> - <refentry id="ch19-77023"> - <refmeta> - <refentrytitle>xxxxx_xxxxx_xxxxxx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxxx_xxxxx_xxxxxx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">xxxxxx xxxxx_xxxxx_xxxxxx(<replaceable>xxxxxx</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch19-18-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-19-ITERM-4364" significance="normal"><primary>xxxxx_xxxxx_xxxxxx( ) xxxxxxxx (PHP)</primary></indexterm> -Txxx xxxxxxx x xxx xx xxxx xx xx xxxxxx xxxx xxx xxxxxxx xxx xxxxx. Txx xxxxxxxx xxxxxxx xxxxx xx xxxxx xxx xx xxxx xxxx xx xxxxxx. Txx xxxxx xxxxx xx xxx xxxxxxx xxx xxx xxxx xx xxxxxxxx xxxx xxxx xxx xxxxxx xxxxxxxx.</para> - <programlisting format="linespecific">... -$xxx_xxxxx = "SELECT xxxxx(xxxx) AS xx_xxxxx, xxxxxx_xxxx - FROM xxxxxxx, xxxxxxx - WHERE xxxxxx <> 'xxxx' - AND xxxxxxx.xxxxxxxx = xxxxxxx.xxxxxxxx - GROUP BY xxxxxxx.xxxxxxxx - ORDER BY xx_xxxxx DESC"; -$xxxxxxx = xxxxx_xxxxx($xxx_xxxxx); -xxxxx($xxx = xxxxx_xxxxx_xxxxxx($xxxxxxx)) { - xxxxx $xxx->xxxxxx_xxxx . " " . $xxx->xx_xxxxx . "\x"; -} -...</programlisting> - <para>Txxx xxxxxx xx xxxxxxx xx xxxxxxxx x xxxx xx xxxxxxx xxxx xxxx xxxxxxxxxxx xxxx xxxxxxxx xxx xx xxxx x xxxxx xx xxx xxxxxx xx xxxxxxxx xxx xxxx, xx xxxxxxxxxx xxxxx. Wxxxxx xxx <literal moreinfo="none">xxxxx</literal> xxxxxxxxx xxxx xxxxxxx, xxxx xxx xx xxx xxxxxxx xxx xx xxxxxxxxx xxxx <literal moreinfo="none">xxxxx_xxxxx_xxxxxx( )</literal>. Txx xxxxxx xx xxxx xxxxxxx xx xxx xxxxxx xxxxxxx xxx xxxx xxx xx xxxxxxxxx xx xxxxx xxxxx xxx xxxxx xxxxx, xxx xxx xxxxxx xxxxx. Fxx xxxxxxxx, xx xxx xxx xxxx xxxx xxx xxxxx xxxx xxx xxxxxx xx xxxx xxxxxxxx, xxx <literal moreinfo="none">xx_xxxxx</literal> xxxxx xx xxxx. Hxxx xxx x xxx xxxxx xxxx xxx xxxxxx xx xxxx xxxxxx:</para> - <programlisting format="linespecific">... -Bxxxxx Lxxxxxxxx d -Nxxxxxxx Cxxxxxxxxxx d -Fxxxxx Ixxxxxxxxxx d</programlisting> - </refsect1> - </refentry> - <refentry id="ch19-77024"> - <refmeta> - <refentrytitle>xxxxx_xxxxx_xxx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxxx_xxxxx_xxx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">xxxxx xxxxx_xxxxx_xxx(<replaceable>xxxxxxx</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch19-19-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-19-ITERM-4365" significance="normal"><primary>xxxxx_xxxxx_xxx( ) xxxxxxxx</primary><secondary>PHP</secondary></indexterm><indexterm id="mysqlian-CHP-19-ITERM-4366" significance="normal"><primary>SELECT xxxxxxxxx</primary><secondary>xxxxx_xxxxx_xxxx( ) xxx</secondary></indexterm> -Txxx xxxxxxx xx xxxxx xxxxxxxxxx x xxx xx xxxx xxxx x xxxxxxx xxx xxxxx. Txxx xxxxxxxx xx xxxxxxxxx xxxx xx xxxxxxxxxxx xxxx x xxxx xxxxxxxxx xx xxxxxxxx xxxx xxx xx xxxx xx x xxxxxxx xxx. Exxx xxxx xxxxxxxxx xxx xxxx xxx. Ixxxxxxxxx xxxxxx xxxxxx xx xxx xxxxx xx xxx xxxxx xxxx xxxxxxxx xx xxx <literal moreinfo="none">SELECT</literal> xxxxxxxxx, xxx xxx xx xxxxxxxxx xx xx xxxxx xxxxx. Txx xxxx xxxx xxxx xxxx xxx xxxx xx, xxxxxxx xxx xxxxxxxx xxxxxxx NULL. -</para> - <programlisting format="linespecific">... -$xxx_xxxxx = "SELECT xx_xx, xxxxxx_xxxx, xxxxxxxxxxx - FROM xxxxxxx, xxxxxxx - WHERE xxxxxxx.xxxxxxxx = xxxxxxx.xxxxxxxx"; -$xxxxxxx = xxxxx_xxxxx($xxx_xxxxx); -xxxxx($xxx = xxxxx_xxxxx_xxx($xxxxxxx)) { - xxxxx "WR-$xxx[d]: $xxx[d] - $xxx[d] \x"; -} -...</programlisting> - <para>Tx xxx xxx xxxx xxx xxxx xxxxxxx xx xxx <literal moreinfo="none">$xxx</literal> xxxxx xxxxxxx xx <literal moreinfo="none">xxxxx_xxxxx_xxx( )</literal>, xxx xxxxxx xxxxxxxxxxxxx xx xxxx xxxxxxx xxxx xx xxxxx. Txx xxxxx xx xxx xxxxxxxx xxxxxx xxxx d, xx <literal moreinfo="none">$xxx[d]</literal> xx xxx xxxxx xxxxxxx xxx, xx xxxx xxxx, xxx xxxx xxxxxxx xxxxxx, xxxxxxx <emphasis>xx_xx</emphasis> xxx xxx xxxxx xxxxx xxxxxxxxx xx xxx <literal moreinfo="none">SELECT</literal> xxxxxxxxx. Hxxx’x xxx xxxx xx xxx xxxxxx xxxx xxx xxxxxxxx xxxxxx:</para> - <programlisting format="linespecific">WR-dddd: Fxxxxx Ixxxxxxxxxx - Cxx'x xxxxxxx xx Ixxxxxxx.</programlisting> - </refsect1> - </refentry> - <refentry id="ch19-77025"> - <refmeta> - <refentrytitle>xxxxx_xxxxx_xxxxx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxxx_xxxxx_xxxxx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">xxxxxx xxxxx_xxxxx_xxxxx(<replaceable>xxxxxxx</replaceable>, <replaceable>xxxxxx</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch19-20-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-19-ITERM-4367" significance="normal"><primary>xxxxx_xxxxx_xxxxx( ) xxxxxxxx (PHP)</primary></indexterm><indexterm id="mysqlian-CHP-19-ITERM-4368" significance="normal"><primary>xxxxx_xxxxx_xxxxx( ) xxxxxxxx</primary><secondary>PHP</secondary></indexterm> -Txxx xxxxxxx xxx xxxxx xxxxx xxx x xxxxx xx x xxxxxxx xxx xxxxx. Sxx <literal moreinfo="none">xxxxx_xxxxx_xxxxx( )</literal> xxx x xxxxxxxxxxx xx xxx xxxxx. Sxxxxxx xxx xxxxxxx xxxxx xxxxxxx xxx xxxxxx xx xxx xxxxxx xxxxxxxx. -</para> - <programlisting format="linespecific">... -$xxx_xxxxx = "SELECT * FROM xxxxxxx LIMIT d"; -$xxxxxxx = xxxxx_xxxxx($xxx_xxxxx); -$xxx_xxxxxx = xxxxx_xxx_xxxxxx($xxxxxxx); -xxx ($xxxxx = d; $xxxxx < $xxx_xxxxxx; $xxxxx++) { - $xxxxx_xxxx = xxxxx_xxxxx_xxxx($xxxxxxx, $xxxxx); - $xxxxx = xxxxxxx(' ', xxxxx_xxxxx_xxxxx($xxxxxxx, $xxxxx)); - xxxxx "$xxxxx_xxxx \x"; - xxxxx_x($xxxxx); - xxxxx "\x\x"; -} -...</programlisting> - <para><indexterm id="mysqlian-CHP-19-ITERM-4369" significance="normal"><primary>xxxxx_xxxxx_xxxx( ) xxxxxxxx (PHP)</primary></indexterm> -Axxxx xxxxxxxxxx xxx xxx xx x xxxxxxx, xxxxx x <literal moreinfo="none">xxx</literal> xxxxxxxxx xxx xxx xxxxxx xx xxxxxx xx xxx xxxxxxx xxx, xxxx xxxxxxx xxxxxxxxxx xxx xxxxx xxxx xxxx <literal moreinfo="none">xxxxx_xxxxx_xxxx( )</literal> xxx xxx xxxxx xxx xxxx xxxxx xxxxx <literal moreinfo="none">xxxxx_xxxxx_xxxxx( )</literal>. Txx <literal moreinfo="none">xxxxx_xxxxx_xxxxx( )</literal> xxxxxxxx xxxxxxxxx xxx xxxxx xxxx xx xxxxx xx xxxxx xxx xxxx xx xxxxxxxxx xx xxxxxx. Bx xxxxx xxx <literal moreinfo="none">xxxxxxx( )</literal> PHP xxxxxxxx, xxx xxxxxxxx xx xxx xxxxx xxx xxxxxxxxx xxxxxxx xxxxxx xx xxxx xxx xxxxxx xx xxxxxxxx, xxx xxxx xxx xxxxxx xx <literal moreinfo="none">$xxxxx</literal>. Nxxx, xxx xxxxx xxxx xx xxxxxxxxx xxx xxx xxxxx xxx xxxxxxx xxx xxxxx <literal moreinfo="none">xxxxx_x( )</literal>. Hxxx xx xxx xxxxxx xx xxx xxxxxx xxx xxx xxxxx xxxxx: -</para> - <programlisting format="linespecific">xxxx -Axxxx -( - [d] => xxx_xxxx - [d] => xxxxxxx_xxx - [d] => xxxx_xxxxxxxxx -)</programlisting> - </refsect1> - </refentry> - <refentry id="ch19-77026"> - <refmeta> - <refentrytitle>xxxxx_xxxxx_xxx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxxx_xxxxx_xxx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">xxx xxxxx_xxxxx_xxx(<replaceable>xxxxxxx</replaceable>, <replaceable>xxxxx</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch19-21-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-19-ITERM-4371" significance="normal"><primary>xxxxx_xxxxx_xxx( ) xxxxxxxx (PHP)</primary></indexterm> -Txxx xxxxxxx xxx xxxxxx xxxx x xxxxx xx xxx xxxxxxx xxx xxxxx. Sxxxxxx xxx xxxxxxx xxxxx, xxxxxxx xxx xxxxx xx xxx xxxxxx xxxxxxxx.</para> - <programlisting format="linespecific">... -$xxx_xxxxx = "SELECT * FROM xxxxxxx LIMIT d"; -$xxxxxxx = xxxxx_xxxxx($xxx_xxxxx); -$xxx_xxxxxx = xxxxx_xxx_xxxxxx($xxxxxxx); -xxx ($xxxxx = d; $xxxxx < $xxx_xxxxxx; $xxxxx++) { - $xxxxx_xxxx = xxxxx_xxxxx_xxxx($xxxxxxx, $xxxxx); - xxxxx "$xxxxx_xxxx - " . - xxxxx_xxxxx_xxx($xxxxxxx, $xxxxx) . "\x"; -} -...</programlisting> - <para><indexterm id="mysqlian-CHP-19-ITERM-4372" significance="normal"><primary>xxxxx_xxx_xxxxxx( ) xxxxxxxx</primary><secondary>PHP</secondary></indexterm> -Hxxx, xxx xxx xxx xxxx xxxxxxxxx xxxx x xxxxx xxx xxx xxxxxx xx xxxxxx xx xxx xxxxxxx xxx xx xxxxxxxxxx xx <literal moreinfo="none">xxxxx_xxx_xxxxxx( )</literal>. Wxxx x <literal moreinfo="none">xxx</literal> xxxxxxxxx, xxxx xxxxx xx xxxxxxxxx xx xxxxxxxxx xxx xxxx xxxxx <literal moreinfo="none">xxxxx_xxxxx_xxxx( )</literal> xxx xxx xxxxxx xx xxxx xxxxx xx xxxxxxxxxxx xxxx <literal moreinfo="none">xxxxx_xxxxx_xxx( )</literal>. Hxxx xxx x xxx xxxxx xx xxx xxxxxx xx xxxx xxxxxx: -</para> - <programlisting format="linespecific">xxxx - d -xx_xxxx - dd -xxxxxxxx - d -...</programlisting> - </refsect1> - </refentry> - <refentry id="ch19-77027"> - <refmeta> - <refentrytitle>xxxxx_xxxxx_xxxx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxxx_xxxxx_xxxx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">xxxxxx xxxxx_xxxxx_xxxx(<replaceable>xxxxxxx</replaceable>, <replaceable>xxxxx</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch19-22-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-19-ITERM-4373" significance="normal"><primary>xxxxx_xxxxx_xxxx( ) xxxxxxxx (PHP)</primary></indexterm> -Txxx xxxxxxx xxx xxxx xx x xxxxx xxxx xxx xxxxxxx xxx xxxxx. Tx xxxxxxx x xxxxxxxxxx xxxxx, xxx xxxxx xx xxx xxxxx xx xxx xxxxxxx xxx xx xxxxx xx xxx xxxxxx xxxxxxxx--d xxxxx xxx xxxxx xxxxx.</para> - <programlisting format="linespecific">... -$xxx_xxxxx = "SELECT * FROM xxxxxxx LIMIT d"; -$xxxxxxx = xxxxx_xxxxx($xxx_xxxxx); -$xxx_xxxxxx = xxxxx_xxx_xxxxxx($xxxxxxx); -xxx ($xxxxx = d; $xxxxx < $xxx_xxxxxx; $xxxxx++) { - $xxxxx_xxxx = xxxxx_xxxxx_xxxx($xxxxxxx, $xxxxx); - xxxxx $xxxxx_xxxx . "\x"; -} -...</programlisting> - <para><indexterm id="mysqlian-CHP-19-ITERM-4374" significance="normal"><primary>xxxxx_xxxxx_xxxx( ) xxxxxxxx (PHP)</primary></indexterm><indexterm id="mysqlian-CHP-19-ITERM-4375" significance="normal"><primary>xxxxx_xxx_xxxxxx( ) xxxxxxxx</primary><secondary>PHP</secondary></indexterm> -Txx SQL xxxxxxxxx xx xxxx xxxxxxx xxxxxxx xxx xxx xxxx xxx xxxxx. Txxx xxx xxxxxxx xx xxx xxxxx xxx xxxxxxxx xx <literal moreinfo="none">xxxxx_xxx_xxxxxx()</literal> xx xxxxxxxxx xxx xxxxxx xx xxxxxx. Txx xxxx xxxxxxxxx xxxx xxxxx, xxxxxxxx xxxx xxxxx d xxxxx xxx <literal moreinfo="none">xxxxx_xxxxx_xxxx( )</literal> xxxxxxxx xx xxxxxxx xxxx xxxxx xxxx. Txx xxxxxx xxxxxxxx xx xxxxxxx xx xxx <literal moreinfo="none">$xxxxx</literal> xxxxxxxx xx xxxxxxxxxxx xxxx xxxx xxxx. -</para> - </refsect1> - </refentry> - <refentry id="ch19-77028"> - <refmeta> - <refentrytitle>xxxxx_xxxxx_xxxx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxxx_xxxxx_xxxx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">xxxx xxxxx_xxxxx_xxxx(<replaceable>xxxxxxx</replaceable>, <replaceable>xxxxx</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch19-23-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-19-ITERM-4376" significance="normal"><primary>xxxxx_xxxxx_xxxx( ) xxxxxxxx</primary><secondary>PHP</secondary></indexterm> -Uxx xxxx xx xxxxxx xxx xxxxxxx xx x xxxxxxxxx xxxxx xxxx xxx xxxxxxx xxx xxxxx. Txx xxxxxx xx xxxxx xx xxxxxx xxx xxxxxxx xx xxxxx xx xxx xxxxxx xxxxxxxx.</para> - <programlisting format="linespecific">... -$xxx_xxxxx = "SELECT * FROM xxxxxxx LIMIT d"; -$xxxxxxx = xxxxx_xx_xxxxx('xxxxxxxxxxxx', $xxx_xxxxx, - $xxxxxxxxxx); -$xxx_xxxxxx = xxxxx_xxx_xxxxxx($xxxxxxx); -xxxxx_xxxxx_xxxx($xxxxxxx, $xxx_xxxxxx - d); -xxx ($xxxxx = d; $xxxxx < d; $xxxxx++) { - $xxxxx = xxxxx_xxxxx_xxxxx($xxxxxxx, $xxxxx); - xxxxx "$xxxxx->xxxx \x"; -} -...</programlisting> - <para><indexterm id="mysqlian-CHP-19-ITERM-4377" significance="normal"><primary>xxxxx_xxxxx_xxxxx( ) xxxxxxxx</primary><secondary>PHP</secondary></indexterm> -Txxx xxxxxxx xxxxxxxxxx xxx xxxxxx xx xxxxxx xxx xxxx xxxxx, xxxx xxxxx xxx xxxxxx xx xxx xxxxxx xxxxxxxx xx xxx <literal moreinfo="none">xxxxx_xxxxx_xxxx( )</literal> xxxxxxxx xx xxxxxx xxx xxxx xxxxx xxxxxx xx xxx xxxxxxx xxx. Txx <literal moreinfo="none">xxx</literal> xxxxxxxxx xxxxxx xxx xxx xxxxx xxxxx xx xxx xxxx xxxxx xxxxxx xxxxx <literal moreinfo="none">xxxxx_xxxxx_xxxxx( )</literal>. -</para> - </refsect1> - </refentry> - <refentry id="ch19-77029"> - <refmeta> - <refentrytitle>xxxxx_xxxxx_xxxxx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxxx_xxxxx_xxxxx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">xxxxxx xxxxx_xxxxx_xxxxx(<replaceable>xxxxxxx</replaceable>, <replaceable>xxxxx</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch19-24-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-19-ITERM-4378" significance="normal"><primary>xxxxx_xxxxx_xxxxx( ) xxxxxxxx (PHP)</primary></indexterm> -Txxx xxxxxxx xxx xxxx xx xxx xxxxx xxxx xxxxxxxx x xxxxxxxxxx xxxxx xxxx xxx xxxxxxx xxx xxxxx. Ax xxxxxx xxx xxx xxxxx xx xxxxx xx xxx xxxxxx xxxxxxxx. Txxx xx xxxxxx xxx x xxxxxxx xxx xxxxxxx xxxx xx SQL xxxxxxxxx xxxxxxxxx xxxxxxxx xxxxxx.</para> - <programlisting format="linespecific">... -$xxx_xxxxx = "SELECT xxxx, xxxxxx_xxxx, xxxxxxxxxxx - FROM xxxxxxx, xxxxxxx - WHERE xxxxxxx.xxxxxxxx = xxxxxxx.xxxxxxxx"; -$xxxxxxx = xxxxx_xxxxx($xxx_xxxxx); -$xxx_xxxxxx = xxxxx_xxx_xxxxxx($xxxxxxx); -xxx ($xxxxx = d; $xxxxx < $xxx_xxxxxx; $xxxxx++) { - $xxxxx = xxxxx_xxxxx_xxxxx($xxxxxxx, $xxxxx); - $xxxxx = xxxxx_xxxxx_xxxx($xxxxxxx, $xxxxx); - xxxxx "$xxxxx.$xxxxx \x"; -} -...</programlisting> - <para><indexterm id="mysqlian-CHP-19-ITERM-4379" significance="normal"><primary>xxxxx_xxxxx_xxxx( ) xxxxxxxx (PHP)</primary></indexterm> -Txx SQL xxxxxxxxx xx xxxx xxxxxxx xxxxxxx xxxxxxx xxxx xxx xxxxxxxxx xxxxxx. Uxxxx <literal moreinfo="none">xxxxx_xxxxx_xxxxx()</literal> xxxxxx xx xxx <literal moreinfo="none">xxx</literal> xxxxxxxxx, xxx xxxx xxxxxxxxxx xxx xxxx xx xxx xxxxx xxxx xxxxx xxxx xxxxx xxxxx. Txx <literal moreinfo="none">xxxxx_xxxxx_xxxx( )</literal> xxxxxxxx xxxx xxx xxxxx’x xxxx. Hxxx xxx xxx xxxxxxx xx xxx xxxxxxxx xxxxxx: -</para> - <programlisting format="linespecific">xxxxxxx.xxxx -xxxxxxx.xxxxxx_xxxx -xxxxxxx.xxxxxxxxxxx</programlisting> - </refsect1> - </refentry> - <refentry id="ch19-77030"> - <refmeta> - <refentrytitle>xxxxx_xxxxx_xxxx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxxx_xxxxx_xxxx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">xxxxxx xxxxx_xxxxx_xxxx(<replaceable>xxxxxxx</replaceable>, <replaceable>xxxxx</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch19-26-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-19-ITERM-4380" significance="normal"><primary>xxxxx_xxxxx_xxxx( ) xxxxxxxx (PHP)</primary></indexterm> -Txxx xxxxxxx xxx xxxxxx xxxxxxxx xxx x xxxxx xxxx xxx xxxxxxx xxx xxxxx. Tx xxxxxxx x xxxxxxxxxx xxxxx, xx xxxxxx xx xxxxx xx xxx xxxxxx xxxxxxxx.</para> - <programlisting format="linespecific">... -$xxx_xxxxx = "SELECT * FROM xxxxxxx LIMIT d"; -$xxxxxxx = xxxxx_xxxxx($xxx_xxxxx); -$xxx_xxxxxx = xxxxx_xxx_xxxxxx($xxxxxxx); -xxx ($xxxxx = d; $xxxxx < $xxx_xxxxxx; $xxxxx++) { - $xxxx = xxxxx_xxxxx_xxxx($xxxxxxx, $xxxxx); - $xxxx = xxxxx_xxxxx_xxxx($xxxxxxx, $xxxxx); - xxxxx "$xxxx - $xxxx \x"; -} -...</programlisting> - <para><indexterm id="mysqlian-CHP-19-ITERM-4381" significance="normal"><primary>xxxxx_xxx_xxxxxx( ) xxxxxxxx</primary><secondary>PHP</secondary></indexterm> -Ix xxxx xxxxxxx, xxxxx xxx xxx xx xxxx xx xxxxxxxx xx x xxxxxx, xxx xxxxxx xx xxxx xx xxx xxxxxxx xxx xx xxxxxxxxxx xxxxx <literal moreinfo="none">xxxxx_xxx_xxxxxx( )</literal> xx xxxx x xxxxxxx xxxxx xxx xx xxx xx (<literal moreinfo="none">$xxx_xxxxxx</literal>) xx xxx <literal moreinfo="none">xxx</literal> xxxxxxxxx xxxx xxxxxxx. Wxxxxx xxx <literal moreinfo="none">xxx</literal> xxxxxxxxx, xxx xxxx xx xxx xxxxx xx xxxxxxxxx xxxxx <literal moreinfo="none">xxxxx_xxxxx_xxxx( )</literal> xxx xxx xxxxxxxx xxxxx <literal moreinfo="none">xxxxx_xxxxx_xxxx()</literal>. Hxxx xxx x xxx xxxxx xx xxx xxxxxx xx xxxx xxxxxx: -</para> - <programlisting format="linespecific">xxxx - xxx -xx_xxxx - xxxx -xxxxxxxx - xxxxxx -...</programlisting> - </refsect1> - </refentry> - <refentry id="ch19-77031"> - <refmeta> - <refentrytitle>xxxxx_xxxx_xxxxxx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxxx_xxxx_xxxxxx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">xxxx xxxxx_xxxx_xxxxxx(<replaceable>xxxxxxx</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch19-27-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-19-ITERM-4382" significance="normal"><primary>xxxxx_xxxx_xxxxxx( ) xxxxxxxx</primary><secondary>PHP</secondary></indexterm> -Uxx xxxx xx xxxx xxx xxxxxx xxxxxxxxxx xxx xxxxxxx xxx xxxxx. Txx xxxxxxxx xxxxxxx xxxx xx xx’x xxxxxxxxxx; xx xxxxxxx xxxxx xx xx’x xxxxxxxxxxxx.</para> - <programlisting format="linespecific">... -xxxxx_xxxx_xxxxxx($xxxxxxx); -xxxxx_xxxxx( ); -?></programlisting> - <para>Txxxx’x xxx xxxx xx xxxx xxxxxxxx. Ix xxxxxx xxxxxxx xxx xxx xxxx xxx xxx xxxxxxxx xx xxxxxx xxxxxxxxxx xx xxx xxxxxxxx xxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch19-77032"> - <refmeta> - <refentrytitle>xxxxx_xxx_xxxxxx_xxxx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxxx_xxx_xxxxxx_xxxx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">xxxxxx xxxxx_xxx_xxxxxx_xxxx( )</synopsis> - </refsynopsisdiv> - <refsect1 id="ch19-28-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-19-ITERM-4383" significance="normal"><primary>xxxxx_xxx_xxxxxx_xxxx( ) xxxxxxxx</primary><secondary>PHP</secondary></indexterm> -Txxx xxxxxxx xxx xxxxxxx xxxxxxx xx xxx MxSQL xxxxxx xxx xxx xxxxxxx xxxxxxxxxx.</para> - <programlisting format="linespecific">... -$xxxx = xxxxx_xxx_xxxxxx_xxxx( ); -xxxxx "Cxxxxx Vxxxxxx: $xxxx \x"; -...</programlisting> - <para>Hxxx xxx xxx xxxxxxx xx xxxx xxxxxx xx xxx xx xx xxxxxxxxx:</para> - <programlisting format="linespecific">Cxxxxx Vxxxxxx: d.dd.dd</programlisting> - </refsect1> - </refentry> - <refentry id="ch19-77033"> - <refmeta> - <refentrytitle>xxxxx_xxx_xxxx_xxxx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxxx_xxx_xxxx_xxxx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">xxxxxx xxxxx_xxx_xxxx_xxxx([<replaceable>xxxxxxxxxx</replaceable>])</synopsis> - </refsynopsisdiv> - <refsect1 id="ch19-29-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-19-ITERM-4384" significance="normal"><primary>xxxxx_xxx_xxxx_xxxx( ) xxxxxxxx</primary><secondary>PHP</secondary></indexterm> -Txxx xxxxxxx xxxxxxxxxxx xx xxx xxxx xxx xxx xxxxxxx xxxxxxxxxx xx MxSQL. Ax xxxxxxxxxx xxx xx xxxxx xx xxxxxxxx xxxxxxxxxxx xx x xxxx xxx x xxxxxxxxx xxxxxxxxxx.</para> - <programlisting format="linespecific">... -$xxxx = xxxxx_xxx_xxxxxx_xxxx( ); -xxxxx "Cxxxxxxxxx Ixxx: $xxxx \x"; -...</programlisting> - <para>Hxxx xxx xxx xxxxxxx xx xxxx xxxxxx xxxx xxx xxx xx xx xxx xxxx xxxxxxxxxx xxx xxxxxx:</para> - <programlisting format="linespecific">Cxxxxxxxxx Ixxx: ddd.d.d.d xxx TCP/IP</programlisting> - </refsect1> - </refentry> - <refentry id="ch19-77034"> - <refmeta> - <refentrytitle>xxxxx_xxx_xxxxx_xxxx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxxx_xxx_xxxxx_xxxx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">xxx xxxxx_xxx_xxxxx_xxxx([<replaceable>xxxxxxxxxx</replaceable>])</synopsis> - </refsynopsisdiv> - <refsect1 id="ch19-30-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-19-ITERM-4385" significance="normal"><primary>xxxxx_xxx_xxxxx_xxxx( ) xxxxxxxx</primary><secondary>PHP</secondary></indexterm> -Txxx xxxxxxx xxx xxxxxxxx xxxxxxx xxx xxx xxxxxxx xxxxxxxxxx xx MxSQL. Ax xxxxxxxxxx xxx xx xxxxx xx xxxxxxxx xxx xxxxxxxx xxxxxxx xxx x xxxxxxxxx xxxxxxxxxx.</para> - <programlisting format="linespecific">... -$xxxx = xxxxx_xxx_xxxxx_xxxx( ); -xxxxx "Pxxxxxxx Vxxxxxx: $xxxx \x"; -...</programlisting> - <para>Hxxx xxx xxx xxxxxxx xx xxxxxxx xxxx xxxxxx:</para> - <programlisting format="linespecific">Pxxxxxxx Vxxxxxx: dd</programlisting> - </refsect1> - </refentry> - <refentry id="ch19-77035"> - <refmeta> - <refentrytitle>xxxxx_xxx_xxxxxx_xxxx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxxx_xxx_xxxxxx_xxxx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">xxxxxx xxxxx_xxx_xxxxxx_xxxx([<replaceable>xxxxxxxxxx</replaceable>])</synopsis> - </refsynopsisdiv> - <refsect1 id="ch19-31-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-19-ITERM-4386" significance="normal"><primary>xxxxx_xxx_xxxxxx_xxxx( ) xxxxxxxx</primary><secondary>PHP</secondary></indexterm> -Txxx xxxxxxx xxx MxSQL xxxxxx xxxxxxx xxx xxx xxxxxxx xxxxxxxxxx xx MxSQL. Ax xxxxxxxxxx xxx xx xxxxx xx xxxxxxxx xxx xxxxxx xxxxxxx xxx x xxxxxxxxx xxxxxxxxxx.</para> - <programlisting format="linespecific">... -$xxxx = xxxxx_xxx_xxxxxx_xxxx( ); -xxxxx "MxSQL Sxxxxx Vxxxxxx: $xxxx \x"; -...</programlisting> - <para>Hxxx xxx xxx xxxxxxx xx xxxxxxx xxxx xxxxxx:</para> - <programlisting format="linespecific">MxSQL Sxxxxx Vxxxxxx: d.d.d-xxxxx-xxxxxxxx</programlisting> - </refsect1> - </refentry> - <refentry id="ch19-77036"> - <refmeta> - <refentrytitle>xxxxx_xxxx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxxx_xxxx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">xxxxxx xxxxx_xxxx([<replaceable>xxxxxxxxxx</replaceable>])</synopsis> - </refsynopsisdiv> - <refsect1 id="ch19-32-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-19-ITERM-4387" significance="normal"><primary>xxxxx_xxxx( ) xxxxxxxx</primary><secondary>PHP</secondary></indexterm> -Txxx xxxxxxx xxxxxxxxxxx xx xxx xxxx xxxxx xxx xxx xxxxxxx xxxxxxxxxx xx MxSQL. Ax xxxxxxxxxx xxx xx xxxxx xx xxxxxxxx xxxxxxxxxxx xx x xxxxx xxx x xxxxxxxxx xxxxxxxxxx.</para> - <programlisting format="linespecific">... -$xxx_xxxxx = "SELECT * FROM xxxxxxx"; -$xxxxxxx = xxxxx_xxxxx($xxx_xxxxx); -xxxxx xxxxx_xxxx( ); -...</programlisting> - <para>Hxxx xxx xxx xxxxxxx xx xxxx xxxxxx:</para> - <programlisting format="linespecific">Sxxxxx xxxxxx: ddd xxxx xx xxx</programlisting> - </refsect1> - </refentry> - <refentry id="ch19-77037"> - <refmeta> - <refentrytitle>xxxxx_xxxxxx_xx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxxx_xxxxxx_xx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">xxx xxxxx_xxxxxx_xx([<replaceable>xxxxxxxxxx</replaceable>])</synopsis> - </refsynopsisdiv> - <refsect1 id="ch19-33-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-19-ITERM-4388" significance="normal"><primary>xxxxx_xxxxxx_xx( ) xxxxxxxx</primary><secondary>PHP</secondary></indexterm> -Txxx xxxxxxx xxx xxxxxxxxxxxxxx xxxxxx xx xxx xxxxxxx xxx xx xxx xxxx xxxxxx xxxxxxxx xxxxx <literal moreinfo="none">INSERT</literal> xxx xxx xxxxxxx xxxxxxxxxx, xxxxxxxx xxx xxxxxx xxxxxxxx <literal moreinfo="none">AUTO_INCREMENT</literal> xxx xxx xxxxx xxx xxx xxxxxxxx xxx. Oxxxxxxxx, d xx xxxxxxxx.</para> - <programlisting format="linespecific">... -$xxx_xxxxx = "INSERT INTO xxxxxxx - (xxxx, xxxxxxxx, xxxxxxxxxxx) - VALUES(NOW( ), 'dddd', 'Nxxxxxx Pxxxxxx')"; -xxxxx_xxxxx($xxx_xxxxx); -$xxxx = xxxxx_xxxxxx_xx( ); -xxxxx "Wxxx Rxxxxxx ID: $xxxx \x"; -...</programlisting> - <para>Hxxx xx xxx xxxxxx xx xxxx xxxxxx:</para> - <programlisting format="linespecific">Wxxx Rxxxxxx ID: dddd</programlisting> - </refsect1> - </refentry> - <refentry id="ch19-77038"> - <refmeta> - <refentrytitle>xxxxx_xxxx_xxx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxxx_xxxx_xxx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">xxxxxxxx xxxxx_xxxx_xxx([<replaceable>xxxxxxxxxx</replaceable>])</synopsis> - </refsynopsisdiv> - <refsect1 id="ch19-34-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-19-ITERM-4389" significance="normal"><primary>xxxxx_xxxx_xxx( ) xxxxxxxx</primary><secondary>PHP</secondary></indexterm> -Txxx xxxxxxx x xxxxxxx xx x xxxxxxx xxx xxxxxxxxxx xxx xxxxx xx xxxxxxxxx xxxxxx xx xxx MxSQL xxxxxx. Txx <literal moreinfo="none">xxxxx_xx_xxxx()</literal> xxxxxxxx xx xxx xxxxxxxx xxxx xxxxxxxx xxxx xxxx x xxxxxxx xxx xxx xx xxxx xx xxxxxxxx xxxxxxxxxx xxxxxxxx xxxxx.</para> - <programlisting format="linespecific">... -$xxxxxxxxx = xxxxx_xxxx_xxx( ); -$xxx = xxxxx_xxx_xxxx($xxxxxxxxx); -xxx($xxxxx = d; $xxxxx < $xxx; $xxxxx++) { - xxxxx xxxxx_xx_xxxx($xxxxxxxxx, $xxxxx) . "\x"; -} -...</programlisting> - </refsect1> - </refentry> - <refentry id="ch19-77039"> - <refmeta> - <refentrytitle>xxxxx_xxxx_xxxxxx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxxx_xxxx_xxxxxx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">xxxxxxxx xxxxx_xxxx_xxxxxx(<replaceable>xxxxxxxx</replaceable>, <replaceable>xxxxx</replaceable>[, <replaceable>xxxxxxxxxx</replaceable>])</synopsis> - </refsynopsisdiv> - <refsect1 id="ch19-35-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-19-ITERM-4390" significance="normal"><primary>xxxxx_xxxx_xxxxxx( ) xxxxxxxx</primary><secondary>PHP</secondary></indexterm> -Txxx xxxxxxx x xxxxxxx xxx xxxxxxxxxx xxxxxxxxxxx xxxxx xxx xxxxxxx xx x xxxxx xxxxx xxx x xxxxxxxx xxxxxxxxx. Txx <literal moreinfo="none">xxxxx_xxxxx_xxxxx( )</literal>, <literal moreinfo="none">xxxxx_xxxxx_xxx()</literal>, <literal moreinfo="none">xxxxx_xxxxx_xxxx( )</literal>, xxx <literal moreinfo="none">xxxxx_xxxxx_xxxx( )</literal> xxxxxxxxx xxx xx xxxx xx xxxxxxx xxxxxxxxxxx xxxx xxx xxxxxxx xxx. Ax xxxxxxxxxx xxx xx xxxxx xx x xxxxx xxxxxxxx xx xxx xxxxxxxx xx xxxxxxxx xxxxxxxxxxx xxx x xxxxxxxxx MxSQL xxxxxxxxxx. Txxx xxxxxxxx xx xxxxxxxxxx, xxxxxx. Uxx xxx <literal moreinfo="none">xxxxx_xxxxx( )</literal> xxxxxxxx xxxx xxx <literal moreinfo="none">SHOW COLUMNS</literal> xxxxxxxxx xxxxxxx. Hxxx’x xx xxxxxxx xx xxxx xxxxxxxx’x xxx:</para> - <programlisting format="linespecific">... -$xxxxxx = xxxxx_xxxx_xxxxxx('xxxxxxxxxxxx', 'xxxxxxx'); -$xxx_xxxxxx = xxxxx_xxx_xxxxxx($xxxxxx); -xxx ($xxxxx = d; $xxxxx < $xxx_xxxxxx; $xxxxx++) { - xxxxx xxxxx_xxxxx_xxxx($xxxxxx, $xxxxx) . "\x"; -} -...</programlisting> - <para>Axxxx xxxxxxxxxx xx MxSQL, xx xxx xxxxx xxxx xxx xxxxxxx xxxx <literal moreinfo="none">xxxxx_xxxx_xxxxxx( )</literal> xx xxxxxxxx x xxxx xx xxxxxx xxxxx xxxx xxx xxxxxxxx xxx xxxxx xxxxx xx xxxxxxxxx. Tx xxxxxx xxx <literal moreinfo="none">xxx</literal> xxxxxxxxx xxxx xxxxxxx, xxx <literal moreinfo="none">xxxxx_xxx_xxxxxx( )</literal> xxxxxxxx xxxxxxxxxx xxx xxxxxx xx xxxxxx xx xxx xxxxxxx xxx, xxxxxxxxx x xxxxx xxx xxxx xxxxxx. Txxx PHP xxxxx xxxxxxx xxx <literal moreinfo="none">xxx</literal> xxxxxxxxx xxx xxx xxx xxxxxx xxx xxxxxxxx xxx xxxx xx xxxx xxxxxx xxxxx <literal moreinfo="none">xxxxx_xxxxx_xxxx( )</literal>. Hxxx xxx x xxx xxxxx xxxx xxx xxxxxx xx xxxx xxxxxx:</para> - <programlisting format="linespecific">xxxx -xx_xxxx -xxxxxxxx -...</programlisting> - </refsect1> - </refentry> - <refentry id="ch19-77040"> - <refmeta> - <refentrytitle>xxxxx_xxxx_xxxxxxxxx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxxx_xxxx_xxxxxxxxx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">xxxxxxxx xxxxx_xxxx_xxxxxxxxx([<replaceable>xxxxxxxxxx</replaceable>])</synopsis> - </refsynopsisdiv> - <refsect1 id="ch19-36-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-19-ITERM-4391" significance="normal"><primary>xxxxx_xxxx_xxxxxxxxx( ) xxxxxxxx</primary><secondary>PHP</secondary></indexterm> -Txxx xxxxxxx x xxxxxxx xxx xxxxxxxxxx xxxxxxxxxxx xx xxx xxxxxx xxxxxxx xxx xxx xxxxxxx xxxxxxxxxx: xxx xxxxxxxxxx xxxxxxxxxx, xxx xxxxxxxx, xxx xxxxxxxx xxxx, xxx xxx xxxxxxx. Ax xxxxxxxxxx xxx xx xxxxx xx xxxxxxxx xxxxxxxxxxx xxx x xxxxxxxxx xxxxxxxxxx.</para> - <programlisting format="linespecific">... -$xxxxxxxxx = xxxxx_xxxx_xxxxxxxxx($xxxxxxxxxx); -xxxxx ($xxx = xxxxx_xxxxx_xxxxx($xxxxxxxxx)){ - xxxxx "$xxx['Ix'], $xxx['Hxxx'], - $xxx['xx'], $xxx['Cxxxxxx']"; -} -...</programlisting> - </refsect1> - </refentry> - <refentry id="ch19-77041"> - <refmeta> - <refentrytitle>xxxxx_xxxx_xxxxxx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxxx_xxxx_xxxxxx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">xxxxxxxx xxxxx_xxxx_xxxxxx(<replaceable>xxxxxxxx</replaceable>[, <replaceable>xxxxxxxxxx</replaceable>])</synopsis> - </refsynopsisdiv> - <refsect1 id="ch19-37-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-19-ITERM-4392" significance="normal"><primary>xxxxx_xxxx_xxxxxx( ) xxxxxxxx</primary><secondary>PHP</secondary></indexterm> -Txxx xxxxxxx x xxxxxxx xxx xxxxxxxxxx x xxxx xx xxxxxx xxx <replaceable>xxxxxxxx</replaceable>. Ax xxxxxxxxxx xxx xx xxxxx xx x xxxxxx xxxxxxxx xx xxx xxxxxxxx xx xxxxxxxx xxxxxxxxxxx xxx x xxxxxxxxx xxxxxxxxxx. Txx <literal moreinfo="none">xxxxx_xxxxxxxxx( )</literal> xxxxxxxx xxx xx xxxx xx xxxxxxx xxx xxxxx xx xxx xxxxxx xxxx xxx xxxxxxx xxx xx xxxx xxxxxxxx. Txxx xxxxxxxx xx xxxxxxxxxx, xxxxxx. Uxx xxx <literal moreinfo="none">xxxxx_xxxxx( )</literal> xxxxxxxx xxxx xxx <literal moreinfo="none">SHOW TABLES</literal> xxxxxxxxx xxxxxxx. Hxxx’x xx xxxxxxx xx xxxx xxxxxxxx’x xxx:</para> - <programlisting format="linespecific">... -$xxxxxx = xxxxx_xxxx_xxxxxx('xxxxxxxxxxxx'); -$xxx_xxxxxx = xxxxx_xxx_xxxx($xxxxxx); -xxx($xxxxx = d; $xxxxx < $xxx_xxxxxx ; $xxxxx++) { - xxxxx xxxxx_xxxxxxxxx($xxxxxx, $xxxxx) . "\x"; -} -...</programlisting> - <para>Txx xxxxx xxxx xxxxx xxxx xxxxx xxx xxxxxxxx xxxx xx xx xxxxxxxx xxx xxx <literal moreinfo="none">xxxxx_xxxx_xxxxxx( )</literal> xxxxxxxx. Txx xxxxxxx xxx xxxxxx xx xxx <literal moreinfo="none">$xxxxxx</literal> xxxxxxxx. Nxxx xxx xxxxxx xx xxxx xxx xxx xxxxxx xx xxxxxx xxxxx xxx xxxxxxxxxx xxx xxxxxx xx <literal moreinfo="none">$xxx_xxxxxx</literal>. Uxxxx x <literal moreinfo="none">xxx</literal> xxxxxxxxx xx xxxx xxxxxxx xxx xxxx xx xxxxxx xx xxx xxxxxxx xxx, xxxx xxxxx xxxx xx xxxxxxx xxx xxxx xxx xxxxxxxxxx xx <literal moreinfo="none">xxxxx_xxxxxxxxx( )</literal>. Txx xxxxxx xxxxxxxx xx <literal moreinfo="none">xxxxx_xxxxxxxxx( )</literal> xx xxxxxxxx xxxxxxxxxxxxx xx xxxxx xxx <literal moreinfo="none">$xxxxx</literal> xxxxxxxx, xxxxx xxxx xxxxxxxx xxxx d xx xxx xxxxx xx <literal moreinfo="none">$xxx_xxxxxx</literal> xxxxxxxx.</para> - </refsect1> - </refentry> - <refentry id="ch19-77042"> - <refmeta> - <refentrytitle>xxxxx_xxx_xxxxxx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxxx_xxx_xxxxxx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">xxx xxxxx_xxx_xxxxxx(<replaceable>xxxxxxx</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch19-38-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-19-ITERM-4393" significance="normal"><primary>xxxxx_xxx_xxxxxx( ) xxxxxxxx</primary><secondary>PHP</secondary></indexterm> -Txxx xxxxxxx xxx xxxxxx xxxx xxxxxx xx xxx xxxxxxx xxx xxxxx.</para> - <programlisting format="linespecific">... -$xxxxxx = xxxxx_xxxx_xxxxxx('xxxxxxxxxxxx', 'xxxxxxx'); -$xxx_xxxxxx = xxxxx_xxx_xxxxxx($xxxxxx); -xxx ($xxxxx = d; $xxxxx < $xxx_xxxxxx; $xxxxx++) { - xxxxx xxxxx_xxxxx_xxxx($xxxxxx, $xxxxx) . "\x"; -} -...</programlisting> - <para><indexterm id="mysqlian-CHP-19-ITERM-4394" significance="normal"><primary>xxxxx_xxxx_xxxxxx( ) xxxxxxxx</primary><secondary>PHP</secondary></indexterm> -Ax xxxx xxxxxxx xxxxx, <literal moreinfo="none">xxxxx_xxx_xxxxxx( )</literal> xxx xx xxxxxx xx xxxxxxxxxxx xxxx xxxxx xxxxxxxxx. Hxxx x xxxx xx xxxxxx xxx x xxxxx xx xxxxxxxxx xxxxx <literal moreinfo="none">xxxxx_xxxx_xxxxxx( )</literal>. Ix xxxxx xx xxxx xxx xxxx xxxxxxx xxx xxxxx xx xxx xxxxxx xxxxx x <literal moreinfo="none">xxx</literal> xxxxxxxxx, xxx xxxxxx xx xxxxxx xxxxx xx xx xxxxxxxxxx. Txx <literal moreinfo="none">xxxxx_xxx_xxxxxx( )</literal> xxxxxxxx xx xxxxx xxx xxxxxxxx xxx xxxx xxx xx xxxxxxxxxxx. -</para> - </refsect1> - </refentry> - <refentry id="ch19-77043"> - <refmeta> - <refentrytitle>xxxxx_xxx_xxxx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxxx_xxx_xxxx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">xxx xxxxx_xxx_xxxx(<replaceable>xxxxxxx</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch19-39-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-19-ITERM-4395" significance="normal"><primary>xxxxx_xxx_xxxx( ) xxxxxxxx</primary><secondary>PHP</secondary></indexterm><indexterm id="mysqlian-CHP-19-ITERM-4396" significance="normal"><primary>xxxxx_xxxxxxxx_xxxx( ) xxxxxxxx</primary><secondary>PHP</secondary></indexterm><indexterm id="mysqlian-CHP-19-ITERM-4397" significance="normal"><primary>SELECT xxxxxxxxx</primary><secondary>xxxxx_xxx_xxxx( ) xxx</secondary></indexterm> -Txxx xxxxxxx xxx xxxxxx xx xxxx xx xxx xxxxxxx xxx xxxxx, xxxxxxxxx xx xxxxxxx x <literal moreinfo="none">SELECT</literal> xxxxxxxxx. Fxx xxxxx xxxxx xx SQL xxxxxxxxxx xxxx xxx’x xxxxxx x xxxxxxx xxx, xxx <literal moreinfo="none">xxxxx_xxxxxxxx_xxxx( )</literal>. -</para> - <programlisting format="linespecific">... -$xxx_xxxxx = "SELECT * FROM xxxxxxx"; -$xxxxxxx = xxxxx_xxxxx($xxx_xxxxx); -$xxxxx = xxxxx_xxx_xxxx($xxxxxxx); -xxxxx "Nxxxxx xx Rxxx Fxxxx: $xxxxx \x"; -...</programlisting> - </refsect1> - </refentry> - <refentry id="ch19-77044"> - <refmeta> - <refentrytitle>xxxxx_xxxxxxxx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxxx_xxxxxxxx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">xxxxxxxx xxxxx_xxxxxxxx(<replaceable>xxxxxx[:xxxx|xxxxxx], xxxx, xxxxxxxx[, xxxxx</replaceable>])</synopsis> - </refsynopsisdiv> - <refsect1 id="ch19-40-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-19-ITERM-4398" significance="normal"><primary>xxxxx_xxxxxxxx( ) xxxxxxxx (PHP)</primary></indexterm><indexterm id="mysqlian-CHP-19-ITERM-4399" significance="normal"><primary>xxxxx_xxxxx( ) xxxxxxxx</primary><secondary>PHP</secondary></indexterm><indexterm id="mysqlian-CHP-19-ITERM-4400" significance="normal"><primary>MYSQL_CLIENT_SSL xxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-19-ITERM-4401" significance="normal"><primary>MYSQL_CLIENT_INTERACTIVE xxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-19-ITERM-4402" significance="normal"><primary>MYSQL_CLIENT_IGNORE_SPACE xxxxxxxx</primary></indexterm><indexterm id="mysqlian-CHP-19-ITERM-4403" significance="normal"><primary>MYSQL_CLIENT_COMPRESS xxxxxxxx</primary></indexterm> -Uxx xxxx xx xxxx x xxxxxxxxxx xxxxxxxxxx xx MxSQL. Txx xxxxxxxxxx xxxx xxx xxx xxxx xxx xxxxxxx xx xxx PHP xxxxxx xxxx xxxxxx xxx xxxxxxxxxx, xxx xx xxxxxx xx xxxxxx xxxx <literal moreinfo="none">xxxxx_xxxxx( )</literal>. Txx xxxxx xxxxxxxx xx xxx xxxxxxxx xx xxx xxxxxx xxxx. Ix xxxx xx xxxxxxxxx, <emphasis>xxxxxxxxx</emphasis> xx xxxxxxx. A xxxx xxx xx xxxxxxxxx xxxx xxx xxxxxx xxxx (xxxxxxxxx xx x xxxxx) xx x xxxxxx xxxxx xxxx xxx xxxx. Ix xx xxxx xx xxxxx, xxxx dddd xx xxxxxxx. Txx xxxxxxxx xx xx xx xxxxx xx xxx xxxxxx xxxxxxxx xxx xxx xxxx’x xxxxxxxx xx xxx xxxxx. Ix x xxxxxxxxxx xx xxxxxxxxx xxxx xxxx xxx xxxx xxxxxxxxxx xx x xxxxxxxx xxx, xxx xxxxxxxx xxxxxxxxxx xx xxxx xxxxxxx xx xxxxxxxx x xxx xxxxxxxxxx. Ax xx xxxxxxxx xxxxxx xxxxxxxx, xxxxxx xxxxx xxx xx xxxxx xxx xxx MxSQL xxxxxxxxx <literal moreinfo="none">MYSQL_CLIENT_COMPRESS</literal>, <literal moreinfo="none">MYSQL_CLIENT_IGNORE_SPACE</literal>, <literal moreinfo="none">MYSQL_CLIENT_INTERACTIVE</literal>, xxx <literal moreinfo="none">MYSQL_CLIENT_SSL</literal>. Txx xxxxxxxx xxxxxxx x xxxxxxxxxx xxxxxxxxxx xx xx’x xxxxxxxxxx; xx xxxxxxx xxxxx xx xx’x xxxxxxxxxxxx. -</para> - <programlisting format="linespecific"> xxxxx_xxxxxxxx('xxxxxxxxx', 'xxxxxxx', 'xxxx');</programlisting> - </refsect1> - </refentry> - <refentry id="ch19-77045"> - <refmeta> - <refentrytitle>xxxxx_xxxx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxxx_xxxx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">xxxx xxxxx_xxxx([<replaceable>xxxxxxxxxx</replaceable>])</synopsis> - </refsynopsisdiv> - <refsect1 id="ch19-41-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-19-ITERM-4404" significance="normal"><primary>xxxxx_xxxx( ) xxxxxxxx</primary><secondary>PHP</secondary></indexterm> -Uxx xxxx xx xxxxxxxxx xx xxx xxxxxxx MxSQL xxxxxxxxxx xx xxxxx xxxx. Ix xx’x xxx xxxx, xxx xxxxxxxx xxxxxxxx xx xxxxxxxxxxx xxx xxxxxxxxxx. Ix xxx xxxxxxxxxx xx xxxx xx xxxxxxxx, xxxx xx xxxxxxxx. Ix xxx xxxxxxxxxx xx xxx xxxx xxx xxxxxx xx xxxxxxxxxxxxx, xxxxx xx xxxxxxxx. Ax xxxxxxxxxx xxx xx xxxxx xx xxxx x xxxxxxxxx xxxxxxxxxx.</para> - <programlisting format="linespecific">... -$xxxx = xxxxx_xxxx($xxxxxxxxxx); -xxxxx "Ixxx: $xxxx \x"; -...</programlisting> - <para>Txxx xxxxxxxx xx xxxxxxxxx xx xx Vxxxxxx d.d xx PHP.</para> - </refsect1> - </refentry> - <refentry id="ch19-77046"> - <refmeta> - <refentrytitle>xxxxx_xxxxx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxxx_xxxxx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">xxxxxxxx xxxxx_xxxxx(<replaceable>xxx_xxxxxxxxx[, xxxxxxxxxx</replaceable>])</synopsis> - </refsynopsisdiv> - <refsect1 id="ch19-42-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-19-ITERM-4405" significance="normal"><primary>xxxxx_xxxxx( ) xxxxxxxx</primary><secondary>PHP</secondary></indexterm> -Uxx xxxx xx xxxxxxx xx SQL xxxxxxxxx xxxxx. Ax xxxxxxxxxx xxx xx xxxxx xx x xxxxxx xxxxxxxx xx xxxxx xxxxxxx x xxxxxxxxx xxxxxxxxxx. Txx xxxxxxxx xxxxxxx xxxxx xx xxx xxxxx xx xxxxxxxxxxxx. Fxx SQL xxxxxxxxxx xxx xxxxxxxx xx xxxxxx x xxxxxxx xxx (x.x., <literal moreinfo="none">INSERT</literal>), xxxx xx xxxxxxxx xxxx xxx xxxxxxxx xx xxxxxxxxxx. Oxxxxxxxx, x xxxxxxxxx xx x xxxxxxx xxx xx xxxxxxxx.</para> - <programlisting format="linespecific">... -$xxx_xxxxx = "SELECT xxxx, xxxxxx_xxxx, xxxxxxxxxxx - FROM xxxxxxx, xxxxxxx - WHERE xxxxxxx.xxxxxxxx = xxxxxxx.xxxxxxxx"; -$xxxxxxx = xxxxx_xxxxx($xxx_xxxxx, $xxxxxxxxxx); -xxxxx($xxx = xxxxx_xxxxx_xxx($xxxxxxx)) { - xxxxx "WR-$xxx[d]: $xxx[d] - $xxx[d] \x"; -} -...</programlisting> - <para>Hxxx’x xxx xxxx xxxx xxx xxxxxx xx xxxx xxxxxx:</para> - <programlisting format="linespecific">WR-dddd: Fxxxxx Ixxxxxxxxxx - Cxx'x xxxxxxx xx xxxxxxx.</programlisting> - </refsect1> - </refentry> - <refentry id="ch19-77047"> - <refmeta> - <refentrytitle>xxxxx_xxxx_xxxxxx_xxxxxx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxxx_xxxx_xxxxxx_xxxxxx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">xxxxxx xxxxx_xxxx_xxxxxx_xxxxxx(<replaceable>xxxxxx</replaceable>[, <replaceable>xxxx</replaceable>])</synopsis> - </refsynopsisdiv> - <refsect1 id="ch19-43-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-19-ITERM-4406" significance="normal"><primary>xxxxx_xxxx_xxxxxx_xxxxxx( ) xxxxxxxx</primary><secondary>PHP</secondary></indexterm><indexterm id="mysqlian-CHP-19-ITERM-4407" significance="normal"><primary>xxxxx_xxxxx( ) xxxxxxxx</primary><secondary>PHP</secondary></indexterm><indexterm id="mysqlian-CHP-19-ITERM-4408" significance="normal"><primary>xxxxx_xxxxxx_xxxxxx( ) xxxxxxxx</primary><secondary>PHP</secondary></indexterm> -Txxx xxxxxxx xxx xxxxxx xxxxx xxxx xxxxxxx xxxxxxxxxx xxxxxxxx xx xxxxxxxxxxx xx xxxx xxxx xxx xxxxxxxxx xxxx xxxxx xxxxxxxxxxx xx xxx SQL xxxxxxxxxxx. Uxx xxxx xx xxxxxxxxxxx xxxx xxx <literal moreinfo="none">xxxxx_xxxxx( )</literal> xxxxxxxx xx xxxx SQL xxxxxxxxxx xxxx. Txxx xxxxxxxx xxxx xxx xxxxxx <literal moreinfo="none">%</literal> xx _ xxxxxxxxxx, xxx xxxx xxxx xxxx xxxxxxx xxx xxxxxxxxx xxx xx xxx xxxxxxxxxx. A xxxxxxxxx xxxxxxxxxx xxx xx xxxxxxxxx xx xxx xxxxxx xxxxxxxx xx xxx xxxxxxxx. Txxx xxxxxxxx xx xxxxxxx xx <literal moreinfo="none">xxxxx_xxxxxx_xxxxxx( )</literal>, xxx xx xxxxxxx x xxxxxx xxxxx xx xxx xxxxxxxxx xxx xxx xxx xxxxxxx xxxxxxxxxx. -</para> - </refsect1> - </refentry> - <refentry id="ch19-77048"> - <refmeta> - <refentrytitle>xxxxx_xxxxxx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxxx_xxxxxx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">xxxxxx xxxxx_xxxxxx(<replaceable>xxxxxxx</replaceable>, <replaceable>xxx</replaceable>[, <replaceable>xxxxx</replaceable>|<replaceable>xxxxxx</replaceable>])</synopsis> - </refsynopsisdiv> - <refsect1 id="ch19-44-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-19-ITERM-4409" significance="normal"><primary>xxxxx_xxxxxx( ) xxxxxxxx (PHP)</primary></indexterm> -Txxx xxxxxxx xxx xxxx xxxx xxx xxxxx xx x <literal moreinfo="none">xxx</literal> xxxx <literal moreinfo="none">xxxxxxx</literal>. Nxxxxxxx, xxxx xxxxxxxxx xxxxxxx xxx xxxx xxx xxx xxx xx xxxxxx xx xxxxxxxx xxxxxxx xxxxxxxxxxxx. Ax x xxxxx xxxxxxxx, xxxxxx x xxxxx xxxx (x.x., xxx xxxxxx xx xxxxx xxxx) xx xx xxxxxx xxx xx xxxxx xx xxxxxx xxx xxxxxxx xxx xxx xxxxxxxx. Txxx xxxxxxxx xx xxxxxxxxx xxxx xx xxxxxxxxxxx xxxx x xxxx xxxxxxxxx xx xxxxxxx xxxx xxxxx xx x xxxxxxx xxx.</para> - <programlisting format="linespecific">... -$xxx_xxxxx = "SELECT xxxxxx_xxxx FROM xxxxxxx"; -$xxxxxxx = xxxxx_xxxxx($xxx_xxxxx); -$xxx_xxxx = xxxxx_xxx_xxxx($xxxxxxx); -xxx ($xxxxx = d; $xxxxx < $xxx_xxxx; $xxxxx++) { - xxxxx xxxxx_xxxxxx($xxxxxxx, $xxxxx) . "\x"; -} -...</programlisting> - <para><indexterm id="mysqlian-CHP-19-ITERM-4410" significance="normal"><primary>xxxxx_xxx_xxx( ) xxxxxxxx (PHP)</primary></indexterm><indexterm id="mysqlian-CHP-19-ITERM-4411" significance="normal"><primary>xxxxx_xxxxx_xxxxx( ) xxxxxxxx (PHP)</primary></indexterm> -Txxx xxxxxx xxxxxxx xxx xxxxxxxx xxx x xxxx xx xxxxxx xxxxx. Uxxxx xxx <literal moreinfo="none">xxxxx_xxx_xxx()</literal> xxxxxxxx, xxx xxxxxx xx xxxx xxxxxxxxx xx xxx xxxxxxx xxx xx xxxxxxxxxx. Uxxxx xxxx xxx xx xxxx, x <literal moreinfo="none">xxx</literal> xxxxxxxxx xx xxxxxxxxxxx xx xxxx xxxxxxx xxx xxxxxxx xxx xxxxx <literal moreinfo="none">xxxxx_xxxxxx( )</literal> xx xxxxxxx xxx xxxxx xx xxxx xxx xxx. Oxxxxxxxx, x xxxxxxxx xxxx xx <literal moreinfo="none">xxxxx_xxxxx_xxxxx( )</literal> xxxxx xxxx xx xx xxxx xx xxxxxxxxxxx xxxx xxx xxxxx xxxxxx xx xxxxxxxxxx xxxx xxxx xx xxxxx (x.x., <literal moreinfo="none">$xxx[d]</literal>). -</para> - </refsect1> - </refentry> - <refentry id="ch19-77049"> - <refmeta> - <refentrytitle>xxxxx_xxxxxx_xx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxxx_xxxxxx_xx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">xxxx xxxxx_xxxxxx_xx(<replaceable>xxxxxxxx</replaceable>[, <replaceable>xxxxxxxxxx</replaceable>])</synopsis> - </refsynopsisdiv> - <refsect1 id="ch19-45-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-19-ITERM-4412" significance="normal"><primary>xxxxx_xxxxxx_xx( ) xxxxxxxx</primary><secondary>PHP</secondary></indexterm> -Txxx xxxx xxx xxxxxxxx xx xx xxxx xx xxx xxxxxxx MxSQL xxxxxxxxxx, xxx xxx xxxx xxx xxx xx xx xxx xxx xxxxxxxx xxx xxxxxxx xxxxxxxxxx xx xxxxxxxxx xx xx x xxxxxx xxxxxxxx. Txx xxxxxxxx xxxxxxx xxxx xx xx’x xxxxxxxxxx; xx xxxxxxx xxxxx xx xx’x xxxxxxxxxxxx.</para> - <programlisting format="linespecific">... -$xxxxxxxxxx = xxxxx_xxxxxxx('xxxxxxxxx','xxxx','xxxxxx'); -xxxxx_xxxxxx_xx('xxxxxxxxxxxx', $xxxxxxxxxx); -...</programlisting> - </refsect1> - </refentry> - <refentry id="ch19-77050"> - <refmeta> - <refentrytitle>xxxxx_xxx_xxxxxxx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxxx_xxx_xxxxxxx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">xxxx xxxxx_xxx_xxxxxxx(<replaceable>xxxx_xxx</replaceable>[, <replaceable>xxxxxxxxxx</replaceable>])</synopsis> - </refsynopsisdiv> - <refsect1 id="ch19-46-fm2xml"> - <title/> - <para>Txxx xxxx xxx xxxxxxx xxxxxxxxx xxx xxx xxx xxxxxxx xxxxxxxxxx xx MxSQL, xx xxx x xxxxxxxxxx xxxxx xxxx xxx xxxxxxxx. Fxx x xxxx xx xxxxxxxxxx xxxxxxxxx xxx xxxxx xxxx xxx xx xxxxx xx xx xxxxxxxx xx xxxx xxxxxxxx, xxxxxxx <literal moreinfo="none">SHOW CHARACTER SET;</literal> xxxx xxx <literal moreinfo="none">xxxxx</literal> xxxxxx.</para> - <programlisting format="linespecific">... -xxxxx_xxx_xxxxxxx('xxxd', $xxxxxxxxxx); -...</programlisting> - </refsect1> - </refentry> - <refentry id="ch19-77051"> - <refmeta> - <refentrytitle>xxxxx_xxxx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxxx_xxxx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">xxxxxx xxxxx_xxxx([<replaceable>xxxxxxxxxx</replaceable>])</synopsis> - </refsynopsisdiv> - <refsect1 id="ch19-47-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-19-ITERM-4413" significance="normal"><primary>xxxxx_xxxx( ) xxxxxxxx</primary><secondary>PHP</secondary></indexterm> -Txxx xxxxxxx xxx xxxxxx xx xxx xxxxxx xxx xxx xxxxxxx MxSQL xxxxxxxxxx, xxx xxx xxxx xxx xxx xx xx xxx xxx xxxxxx xxx xxxxxxx xxxxxxxxxx. Txx xxxxxxxx xxxxxxx, xx x xxxxx-xxxxxxxxx xxxx, xxx xxxxx xxxxxx, xxxx xxxxxx, xxxxxxx, xxxxxxx xxx xxxxxx, xxxxxxx, xxx xxxxxx xxx xxx xxxxxx. Txxx xxxxxxxx xx xxxxxxxxx xxxxxxxx xxxx Vxxxxxx d.d xx PHP.</para> - <programlisting format="linespecific">... -$xxxxxxxxxx = xxxxx_xxxxxxx('xxxxxxxxx', - 'xxxxxxx', 'xxxxxxxxxx'); -$xxxx = xxxxxxx(' ', xxxxx_xxxx($xxxxxxxxxx)); -xxxxx_x($xxxx); -...</programlisting> - <para>Uxxxx xxx <literal moreinfo="none">xxxxxxx( )</literal> PHP xxxxxxxx, xxx xxxxxxxx xx xxx xxxxx-xxxxxxxxx xxxxxx xxxxxxxxx xx xxx xxxxxxxxxxx xxxxx xxxxxxxxx xx <literal moreinfo="none">xxxxx_xxxx( )</literal> xxx xxxxxx xxxxx xxxx xxxxx xxxxxxxxxx xxxx.</para> - </refsect1> - </refentry> - <refentry id="ch19-77052"> - <refmeta> - <refentrytitle>xxxxx_xxxxxxxxx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxxx_xxxxxxxxx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">xxxxxx xxxxx_xxxxxxxxx(<replaceable>xxxxxxx</replaceable>, <replaceable>xxxxx</replaceable>)</synopsis> - </refsynopsisdiv> - <refsect1 id="ch19-48-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-19-ITERM-4414" significance="normal"><primary>xxxxx_xxxxxxxxx( ) xxxxxxxx (PHP)</primary></indexterm><indexterm id="mysqlian-CHP-19-ITERM-4415" significance="normal"><primary>xxxxx_xxxx_xxxxxx( ) xxxxxxxx</primary><secondary>PHP</secondary></indexterm> -Txxx xxxxxxx xxx xxxxx xxxx xxx x xxxxxxxxxx xxxxx xx xxx xxxxxxx xxx xxxxx xx <literal moreinfo="none">xxxxx_xxxx_xxxxxx( )</literal>. Ax xxxxx xxx xx xxxxxxxxx xx xxxxxxxx x xxxxxxxxxx xxxxxxx xx xxx xxxxxxx xxx. Txxx xxxxxxxx xx xxxxxxxxxx, xxxxxx. Uxx xxx <literal moreinfo="none">xxxxx_xxxxx( )</literal> xxxxxxxx xxxx xxx <literal moreinfo="none">SHOW TABLES</literal> xxxxxxxxx xxxxxxx. Hxxx’x xx xxxxxxx xx xxxx xxxxxxxx’x xxx: -</para> - <programlisting format="linespecific">... -$xxxxxx = xxxxx_xxxx_xxxxxx('xxxxxxxxxxxx'); -$xxx = xxxxx_xxx_xxxx($xxxxxx); -xxx($xxxxx = d; $xxxxx < $xxx; $xxxxx++) { - xxxxx xxxxx_xxxxxxxxx($xxxxxx, $xxxxx) . "\x"; -} -...</programlisting> - </refsect1> - </refentry> - <refentry id="ch19-77053"> - <refmeta> - <refentrytitle>xxxxx_xxxxxx_xx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxxx_xxxxxx_xx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">xxx xxxxx_xxxxxx_xx([<replaceable>xxxxxxxxxx</replaceable>])</synopsis> - </refsynopsisdiv> - <refsect1 id="ch19-49-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-19-ITERM-4416" significance="normal"><primary>xxxxx_xxxxxx_xx( ) xxxxxxxx</primary><secondary>PHP</secondary></indexterm> -Txxx xxxxxxx xxx xxxxxx xxxxxxxxxxxxxx xxxxxx xxx xxx xxxxxxx MxSQL xxxxxxxxxx. Ax xxxxxxxxxx xxx xxxxxxx xxxxxxxxxx xxx xx xxxxx. Txxx xxxxxxxx xx xxxxxxxxx xxxxxxxx xxxx Vxxxxxx d.d xx PHP.</para> - <programlisting format="linespecific">... -$xxxxxxxxxx = xxxxx_xxxxxxx('ddd.d.d.d', 'xxxxxxx', 'xxxxxxx'); -$xxxx = xxxxx_xxxxxx_xx($xxxxxxxxxx); -xxxxx "Txxxxx ID: $xxxx \x"; -...</programlisting> - </refsect1> - </refentry> - <refentry id="ch19-77054"> - <refmeta> - <refentrytitle>xxxxx_xxxxxxxxxx_xxxxx( )</refentrytitle> - </refmeta> - <refnamediv> - <refname>xxxxx_xxxxxxxxxx_xxxxx( )</refname> - <refpurpose/> - </refnamediv> - <refsynopsisdiv> - <synopsis format="linespecific">xxxxxxxx xxxxx_xxxxxxxxxx_xxxxx(<replaceable>xxx_xxxxxxxxx</replaceable>[, <replaceable>xxxxxxxxxx</replaceable>])</synopsis> - </refsynopsisdiv> - <refsect1 id="ch19-50-fm2xml"> - <title/> - <para><indexterm id="mysqlian-CHP-19-ITERM-4417" significance="normal"><primary>xxxxx_xxxxxxxxxx_xxxxx( ) xxxxxxxx (PHP)</primary></indexterm> -Uxx xxxx xx xxxxxxx xx SQL xxxxxxxxx xxxxx xxxxxxx xxxxxxxxx xxx xxxxxxx xx xxxx xxx xxx xxxxxxxx xxx xxxx xxxxxxx xxxxxx xx xxxx xxx xxx xxxxxxx xxx xx xx xxxxxxxxx. Ax xxxxxxxxxx xxx xx xxxxx xx x xxxxxx xxxxxxxx xx xxx xxxxxxxx xx xxxxxxxxx xxxx x xxxxxxxxx xxxxxxxxxx. Txx xxxxxxxx xxxxxxx xxxxx xx xxx xxxxx xx xxxxxxxxxxxx. Fxx SQL xxxxxxxxxx xxxx xxxxx xxx xxxxxx x xxxxxxx xxx xxxxx xx xxxxx xxxxxx (x.x., <literal moreinfo="none">INSERT</literal>), xxxx xx xxxxxxxx xxxx xxx xxxxxxxx xx xxxxxxxxxx. Txxx xxxxxxxx xxxxxx xx xxxx xxxx xxxx, xxxxxxx xx xxxxxxxx xxxxxxx xxx xxxxx xxxxxxxxx xxx xxxxxxx’x xxxxxxxxx xxxxxx.</para> - <programlisting format="linespecific">... -$xxx_xxxxx = "SELECT xxxx, xxxxxx_xxxx, xxxxxxxxxxx - FROM xxxxxxx, xxxxxxx - WHERE xxxxxxx.xxxxxxxx = xxxxxxx.xxxxxxxx"; -$xxxxxxx = xxxxx_xxxxxxxxxx_xxxxx($xxx_xxxxx, $xxxxxxxxxx); -xxxxx($xxx = xxxxx_xxxxx_xxx($xxxxxxx)) { - xxxxx "WR-$xxx[d]: $xxx[d] - $xxx[d] \x"; -} -...</programlisting> - <para><indexterm id="mysqlian-CHP-19-ITERM-4418" significance="normal"><primary>xxxxx_xxx_xxx( ) xxxxxxxx (PHP)</primary></indexterm><indexterm id="mysqlian-CHP-19-ITERM-4419" significance="normal"><primary>xxxxx_xxxxx( ) xxxxxxxx</primary><secondary>PHP</secondary></indexterm><indexterm id="mysqlian-CHP-19-ITERM-4420" significance="normal"><primary>xxxxx_xxxx_xxxx( ) xxxxxxxx</primary><secondary>PHP</secondary></indexterm> -Txxxx’x xx xxxxxxxxxx xx xxx xxxxxx xxx <literal moreinfo="none">xxxxx_xxxxxxxxxx_xxxxx()</literal> xxx <literal moreinfo="none">xxxxx_xxxxx( )</literal>, xxx xx xxx xxxxxxxx xx xxx xxxxxxx. Txx xxxx xxxxxxxxxxx xx xxxx xxxxxxxx xxx xxx xxxxx xxx xxxxx xxxxxxxxx xxx xxx xxxx xxxx xxxxxxxxx xxxx xx <literal moreinfo="none">xxxxx_xxx_xxx( )</literal> xxx <literal moreinfo="none">xxxxx_xxxx_xxxx()</literal> xxxxxx xx xxxx, xxxxxxx xxx xxxxxxx xxx xx xxx xxxxxxxx xxx xxxxxxxxx xxxxxx xx xxxxxxxx xx xxxxx xxxxxxxxx. -<indexterm class="endofrange" startref="mysqlian-CHP-19-ITERM-4305" id="mysqlian-CHP-19-ITERM-4421" significance="normal"/><indexterm class="endofrange" startref="mysqlian-CHP-19-ITERM-4306" id="mysqlian-CHP-19-ITERM-4422" significance="normal"/> -</para> - </refsect1> - </refentry> - </sect1> - </chapter> - </part> - <part id="mysqlian-PART-5" xml:base="part5.xml"> - <title>Axxxxxxxxx - - - -Txxx xxxx xx xxx xxxx xxxxxxxx xxxxx-xxxxxxxxx xxxxxxxxxxx xxxx -xxxxxxx xx xxxx xx xxx xxxxxxxx xxx xx xxxxx xxxxxxx xx x xxxxxxx -xxxxxx xx x xxxxxxxxxx xx xxxxxxxxxxxxx. +
- - Dxxxxxxxx xxxxxxxxxxx xxxxx xxx @@ -32349,7 +1489,7 @@ Rxxxxxxxxx xxxxxxxxx xxx xxxx xxx xxxxxxxxx xxxxxxx xxx xxxxxxx. Ix x xxxxxx xx - Mxxxxxx x xxxxx xxxxxxx (Sxx SOUNDEX( ) xxxxxxxx xxxxxxxxx xx ) + Mxxxxxx x xxxxx xxxxxxx (Sxx SOUNDEX( ) xxxxxxxx xxxxxxxxx xx ) @@ -33135,7 +2275,6 @@ USER - Cxxxxxxx -- 2.40.0