What you can do is copy the distinct records into a new table by:
select distinct * into NewTable from MyTable
More Related Contents:
- Error installing mysql2: Failed to build gem native extension
- Rails, MySQL and Snow Leopard
- rails + MySQL on OSX: Library not loaded: libmysqlclient.18.dylib
- Correct MySQL configuration for Ruby on Rails Database.yml file
- What the difference between mysql and mysql2 gem
- Rails select random record
- Library not loaded: libmysqlclient.16.dylib error when trying to run ‘rails server’ on OS X 10.6 with mysql2 gem
- mysql2 gem compiled for wrong mysql client library
- Mysql::Error: Specified key was too long; max key length is 1000 bytes
- gem install: Failed to build gem native extension (can’t find header files)
- Rails 3 ActiveRecord: Order by count on association
- MySQL Install: ERROR: Failed to build gem native extension
- “193: %1 is not a valid Win32 application” bug with a new Rails Application
- how to use DISTINCT ON with mysql using ActiveRecord
- libmysqlclient15-dev on macs?
- ld: library not found for -lzstd while bundle install for mysql2 gem Ruby on macOS Big Sur 11.4 Apple M1
- Ruby gem mysql2 install failing [duplicate]
- How do you write a case insensitive query for both MySQL and Postgres?
- uninitialized constant MysqlCompat::MysqlRes (using mms2r gem)
- Could not connect: Lost connection to MySQL server at ‘reading initial communication packet’, system error: 0
- Ruby on Rails – cannot load such file — mysql2/2.2/mysql2 (LoadError)
- undefined method `eq’ for nil:NilClass with rails 3 and ruby enterprise on ubuntu hardy
- Create a Cumulative Sum Column in MySQL
- mysql select dynamic row values as column names, another column as value
- SQL – IF EXISTS UPDATE ELSE INSERT INTO
- Simple Random Samples from a Sql database
- node.js mysql error: ECONNREFUSED
- Does MySQL overwrite a column of same value on update?
- MySQL selecting yesterday’s date
- Get redirect of a URL in Ruby