Gambas Documentation
Aperçu du Langage
À traduire
Code Snippets
Comment faire ...
Compilation et installation
Composants
gb
gb.args
gb.cairo
gb.clipper
gb.complex
gb.compress
gb.crypt
gb.db
.Connection.Databases
.Connection.Tables
.Connection.Users
.Result.Fields
.SubCollection
.Table.Fields
.Table.Indexes
_Connection
_new
Begin
Charset
Close
Commit
Create
Databases
Delete
Edit
Error
Exec
Find
Host
Limit
Login
Name
Open
Opened
Password
Port
Quote
Rollback
Subst
Tables
Timeout
Type
User
Users
Version
Blob
Connection
Connections
Database
DatabaseUser
DB
Field
Index
Result
ResultField
Table
gb.db.form
gb.dbus
gb.debug
gb.desktop
gb.desktop.gnome.keyring
gb.eval
gb.eval.highlight
gb.form
gb.form.dialog
gb.form.editor
gb.form.mdi
gb.gmp
gb.gsl
gb.gtk
gb.gtk3
gb.gui
gb.image
gb.image.effect
gb.image.imlib
gb.image.io
gb.inotify
gb.libxml
gb.media
gb.mysql
gb.net
gb.net.curl
gb.net.smtp
gb.openal
gb.opengl
gb.opengl.glsl
gb.opengl.glu
gb.opengl.sge
gb.option
gb.pcre
gb.pdf
gb.qt4
gb.qt4.ext
gb.qt4.opengl
gb.qt4.webkit
gb.qt5
gb.qt5.opengl
gb.report
gb.scanner
gb.sdl
gb.sdl.sound
gb.settings
gb.signal
gb.util
gb.util.web
gb.v4l
gb.vb
gb.web
gb.web.feed
gb.xml
gb.xml.html
gb.xml.rpc
gb.xml.xslt
Controls pictures
Derniers changements
Dépôt d'applications
Documentation de l'Environnement de développement
Documentation des développeurs
Documents
Indenter
Index de tous les Documents
Index du langage
Lexique
LISEZ-MOI
Manuel du wiki
Messages d'erreur
Tutoriels
Wiki License

_Connection.FormatBlob (gb.db)

Function FormatBlob ( Data As String ) As String

Format some blob data into a quoted string that can be inserted into a SQL query.

Example

Here is the result of applying FormatBlob() to the string "'gambas' is not a blob\n".

Database Result
SQLite X'2767616D62617327206973206E6F74206120626C6F620A'
MySQL '''gambas'' is not a blob\n'
PostgreSQL E'\'gambas\'is not a blob\012'
ODBC '''Gambas'' is not a blob\n'