I have a postgres (v10) database hosted on an Amazon AWS instance (which was running very low on 'Free Storage Space'). It had a 50GB table on it which I then dropped (pgAdmin - right click, delete/drop table).
I then checked the monitoring page on…
I'm trying to add a column to the end of a table in SQL like so:
Open Design view
Add column
Generate and copy script
Run, then save script
For some reason, when my colleagues do this, it generates the usual ALTER TABLE script.
When I attempt…
There is a innodb-table with a size of 10 GB (1,31 GB - Data, 8,5 GB - Indexes).
When I start drop table, process is performed 120 seconds, less than 200 seconds.
What is the reason for the slow removal of the table? Or push it in the right…
to give a bit of background. I’m a newbie in Ruby on Rails and I’m making a review website where users can report a review. I played around with having a ‘reportable’ polymorphic association and then reports table. Later I deleted the ‘reports’…
I created table t1 in Oracle 12c.
Table has data and it is partitioned on list partition and also has subpartitions.
Now I want to delete whole table and all associated partitions (and subpartitions).
Is this the right command to delete all?
DROP…
Possible Duplicate:
How to find foreign key dependencies in SQL Server?
i am trying to delete a table in SQL server mgmt studio by rightclicking and clicking "DELETE". I am getting this error:
Could not drop object 'dbo.Team' because it is…
I get an error when trying to drop a table in hive:
> drop table my_table;
Error:
FAILED: Execution Error, return code 1 from
org.apache.hadoop.hive.ql.exec.DDLTask.
org.apache.thrift.transport.TTransportException:
…
I have a SQL server 2005. In that server I have 3 databases -> a,b,c.
If I want to delete tables
Tables only from database "c".
The table's name should start with "bkp"
Table should be created one day before.
Is it possible to delete tables with 10 records in a single statement using a statement like this?
.. DROP TABLE ... WHERE name IN
(SELECT table_name FROM INFORMATION_SCHEMA.TABLES
WHERE TABLE_SCHEMA = 'my_db' AND table_rows = 10);
So I installed the "twenty fourteen" theme for my Wordpress website, and I want to change it to it's deault settings. With this I mean resetting the theme to how it was when first installed (with no modifications).
Currently I have checked the…
I am using a stored procedure that on first execution runs without complaining about permissions. The stored procedure has only one UID/PWD set up (there are not different sets of UIDs/PWDs for granting different permission levels). The single pair…
in hive, it is not freeing the memory. The files are created as 0000_n.bz2 and they are still on disk.
I have two questions here:
1) Will these files keep on growing for each and every insert?
2)…
I have 2 tables in a project that uses HSQLDB, they are called Staff and Staff2.
Staff has Id PRIMARY KEY, as written here:
s.execute("CREATE TABLE Staff(Id varchar(10) PRIMARY KEY, FirstName varchar(30), LastName varchar(30), Department…
I'm using SQL Developer and am working with Global Temporary Tables. The problem is that the temporary tables are not fully dropping when I end a session. Upon opening a new session all the "temporary" tables are listed under my schema (they don't…
I've been researching trying to find a way to fetch all rows from a query result and process them individually. I've written a script which I thought would work but apparently not.
The script:
DECLARE @name char(20);
DECLARE c1 CURSOR…