Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
509305c2
Commit
509305c2
authored
Aug 11, 2002
by
paul@teton.kitebird.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
manual.texi add change note for QUOTE().
manual.texi Add entry for QUOTE() function.
parent
053211f6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
1 deletion
+21
-1
Docs/manual.texi
Docs/manual.texi
+21
-1
No files found.
Docs/manual.texi
View file @
509305c2
...
...
@@ -31688,7 +31688,6 @@ mysql> UPDATE tbl_name
SET blob_column=LOAD_FILE("/tmp/picture")
WHERE id=1;
@end example
@end table
If you are not using MySQL Version 3.23, you have to do the reading
of the file inside your application and create an @code{INSERT} statement
...
...
@@ -31696,6 +31695,24 @@ to update the database with the file information. One way to do this, if
you are using the MySQL++ library, can be found at
@uref{http://www.mysql.com/documentation/mysql++/mysql++-examples.html}.
@findex QUOTE()
@item QUOTE(str)
Quotes a string to produce a result that can be used as a properly-escaped
data value in a SQL statement. The string is returned surrounded by single
quotes and with each instance of single quote (@samp{'}), backslash (@samp{\}),
ASCII NUL, and Control-Z preceded by a backslash. If the argument is
@code{NULL}, the return value is the word ``NULL'' without surrounding
single quotes.
@example
mysql> SELECT QUOTE("Don't");
-> 'Don\'t!'
mysql> SELECT QUOTE(NULL);
-> NULL
@end example
@end table
MySQL automatically converts numbers to strings as necessary, and
vice-versa:
...
...
@@ -50226,6 +50243,9 @@ each individual 4.0.x release.
@itemize @bullet
@item
Added @code{QUOTE()} function that performs SQL quoting to produce values
that can be used as data values in queries.
@item
Fixed security bug in database hash
Made @code{safe_mysqld} a symlink to @code{mysqld_safe} in binary distribution.
@item
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment