Top "Database-table" questions

In a relational database management system (RDBMS) a table organizes the information in rows and columns.

Count the Number of Tables in a SQL Server Database

I have a SQL Server 2012 database called MyDatabase. How can I find how many tables are in the database? I'm …

sql-server tsql count sql-server-2012 database-table
SQL count rows in a table

I need to send a SQL query to a database that tells me how many rows there are in a …

sql-server count rows database-table
Create table variable in MySQL

I need a table variable to store the particular rows from the table within the MySQL procedure. E.g. declare @…

mysql variables database-table
Add a new table column to specific ordinal position in Microsoft SQL Server

Is it possible to add a column to a table at a specific ordinal position in Microsoft SQL Server? For …

sql-server database-table change-management
Which is more efficient: Multiple MySQL tables or one large table?

I store various user details in my MySQL database. Originally it was set up in various tables meaning data is …

mysql database-table
SQL Server: drop table cascade equivalent?

In oracle, to drop all tables and constraints you would type something like DROP TABLE myTable CASCADE CONSTRAINTS PURGE; and …

sql sql-server cascade database-table sql-drop
SELECT data FROM two tables in MySQL

What I have: The next structure: table_zero -> id (PRIMARY with auto increment) -> other table_1 -&…

mysql select union database-table
Auto increment table column

Using Postgres, I'm trying to use AUTO_INCREMENT to number my primary key automatically in SQL. However, it gives me …

sql postgresql types auto-increment database-table
How does the search_path influence identifier resolution and the "current schema"

Is it possible to define in which schema new tables get created by default? (Referred by "unqualified table names".) I've …

postgresql schema database-table search-path
How can I list all tables in a database with Squirrel SQL?

I use Squirrel SQL to connect to a JavaDB/Derby database on my desktop. I can run SQL queries. But …

database-administration database-table squirrel-sql database-management