Performance-wise it’s probably better to store the file as a file on the drive and only write the filename or filepath and maybe the mime type into the database. But as the others say, BLOB
is what you seek.
More Related Contents:
- SQL split values to multiple rows
- Find duplicate records in MySQL
- How do I escape reserved words used as column names? MySQL/Create Table
- MySQL order by before group by
- Which is fastest? SELECT SQL_CALC_FOUND_ROWS FROM `table`, or SELECT COUNT(*)
- What is the opposite of GROUP_CONCAT in MySQL?
- How to Perform an UPSERT so that I can use both new and old values in update part
- MySQL: selecting rows where a column is null
- Convert timestamp to date in MySQL query
- Update a column value, replacing part of a string
- mysql: get record count between two date-time
- MySQL Insert Into from one Database in another
- Sort by order of values in a select statement “in” clause in mysql
- How to re-sync the Mysql DB if Master and slave have different database incase of Mysql replication?
- Removing MySQL 5.7 Completely [closed]
- How to optimize COUNT(*) performance on InnoDB by using index
- script to convert mysql dump sql file into format that can be imported into sqlite3 db
- MySQL INT meaning
- MySQL Stored Procedures not working with SELECT (basic question)
- ERROR 1148: The used command is not allowed with this MySQL version
- MySQL LAST_INSERT_ID() used with multiple records INSERT statement
- Too many auto increments with ON DUPLICATE KEY UPDATE
- How to Get True Size of MySQL Database?
- MySQL vs. JSON – Why? [closed]
- Find method to store an IP in MySQL for better performance
- Should I always prefer MySQL InnoDB over MyISAM?
- MySQL add 12 hours to a time field
- OSX ld: library not found for -lssl
- Ruby on Rails – cannot load such file — mysql2/2.2/mysql2 (LoadError)
- MySQL: Find Missing Dates Between a Date Range