Withdata Software

Producing high-quality database tools

Main menu

Skip to primary content
Skip to secondary content
  • Withdata
  • Blog
  • Categories
  • Tags
  • Tools

Post navigation

← Older posts
Newer posts →

How to select N random records from a SQLite table

Posted on April 18, 2017 by Shiji Pan

If you want to select N random records from a SQLite table, you need to change the clause as follows: select * from tableName order by RANDOM() limit N For example, to select 5 random customers in the customers table, you use the following query: select * from customers order by RANDOM() limit ... Read more

Posted in Tips | Tagged random records, Sqlite

How to select N random records from a DB2 table

Posted on April 18, 2017 by Shiji Pan

If you want to select N random records from a DB2 table, you need to change the clause as follows: select * from tableName order by rand() fetch first N rows only For example, to select 5 random customers in the customers table, you use the following query: select * from customers order by rand() ... Read more

Posted in Tips | Tagged DB2, random records

How to select N random records from a PostgreSQL table

Posted on April 18, 2017 by Shiji Pan

If you want to select N random records from a PostgreSQL table, you need to change the clause as follows: select * from tableName order by random() limit N For example, to select 5 random customers in the customers table, you use the following query: select * from customers order by random() ... Read more

Posted in Tips | Tagged PostgreSQL, random records

How to select N random records from a SQL Server table

Posted on April 18, 2017 by Shiji Pan

If you want to select N random records from a SQL Server table, you need to change the clause as follows: select top N * from tableName order by newid() For example, to select 5 random customers in the customers table, you use the following query: select top 5 * from customers order by ... Read more

Posted in Tips | Tagged random records, Sql Server

How to select N random records from a MySQL table

Posted on April 18, 2017 by Shiji Pan

If you want to select N random records from a MySQL table, you need to change the clause as follows: select * from tableName order by rand() limit N For example, to select 5 random customers in the customers table, you use the following query: select * from customers order by rand() limit 5 Some ... Read more

Posted in Tips | Tagged Mysql, random records

How to select N random records from an Oracle table

Posted on April 18, 2017 by Shiji Pan

If you want to select N random records from an Oracle table, you need to change the clause as follows: select * from ( select*  from tableName  order by dbms_random.value ) where rownum <= N; For example, to select 5 random customers in the customers table, you use the following ... Read more

Posted in Tips | Tagged Oracle, random records

Some data import / export tools for MariaDB

Posted on December 22, 2016 by Shiji Pan

Withdata Software provide some tools for MySQL, all these tools can work for MariaDB: See how to use these tools work for MariaDB: Import XML data into MariaDB (MySQL) Schedule and automate MariaDB (MySQL) importing XML data task Import data into MariaDB (MySQL) from MongoDB exported JSON ... Read more

Posted in Mysql | Tagged MariaDB, MariaDB export, MariaDB import, Mysql

Schedule and automate data file converting task

Posted on December 14, 2016 by Shiji Pan

Want to schedule and automate data file format converting task? Using Data File Converter, a desktop tool, you can scheduled data file format converting task easily, just a few mouse clicks! Let computer automate repetitive data file format converting busy work, Data File Converter make our life ... Read more

Posted in DataFileConverter | Tagged automate, convert file format, cron, schedule

How to get index column names of a table from Oracle

Posted on October 24, 2016 by Shiji Pan

SELECT i.index_name,c.column_name FROM user_ind_columns c, user_indexes i where c.index_name=i.index_name and c.table_name=i.table_name and i.TABLE_NAME='my_table_name' and i.TABLE_OWNER='my_schema_name' See also: How to get index column names of a table from DB2 How to get index column names of ... Read more

Posted in Oracle | Tagged get index columns, Oracle

How to get index column names of a table from SQLite

Posted on October 24, 2016 by Shiji Pan

select sql from sqlite_master where tbl_name='my_table_name' and type='index' you can find the index name and column names in ‘sql’ field. See also: How to get index column names of a table from DB2 How to get index column names of a table from SQL Server How to get index column names ... Read more

Posted in Sqlite | Tagged get index columns, Sqlite

Post navigation

← Older posts
Newer posts →

Recent Posts

  • TextMerger 1.0 Released: A Lightweight Cross-Platform Tool for Fast Text File Merging
  • FileToMongo 5.0 Released: Enhanced Stability, Speed & HTML Table Support
Withdata Software. ©2004 - 2026 All rights reserved.