8 More Discussions You Might Find Interesting
1. UNIX and Linux Applications
Hello,
I am newbie on mysql and trying to edit my database from terminal under linux.
What I need to do is to change the information written in a cell in table.
Let me explain what I tried:
$ mysql -u mysqluser -p
$ show databases;
$ USE catalogue;
$ show tables ;
$ select * from... (2 Replies)
Discussion started by: baris35
2 Replies
2. UNIX for Dummies Questions & Answers
Hi ,
I have data in file like below.
status ----------- ------ 2287 C 1502 E 19
can anyone pls help me how can i get it modified as below
status 2287|C|1502 E|19
can someone pls help.
Thanks. (2 Replies)
Discussion started by: gaddamja
2 Replies
3. Linux
Hi
Routing tables in a typical linux kernel are implemented using hash data structures. So if the hash table is forced to behave more like a linked list(i.e create chaining) the purpose of using hash is defeated and time complexity increases.
I want to try to assess the performance deterioration... (0 Replies)
Discussion started by: coolvaibhav
0 Replies
4. Shell Programming and Scripting
Is there a way to alter the file descriptor for stdout.?
sample:
#!/bin/ksh
exec 1>file
exec 2>file
echo hi --------->This will go to file
print -u4 "come statement"---->I want to make the file descriptor 4 to point to stdout.
The reason is ,I have a script which has lot of db2... (1 Reply)
Discussion started by: prasperl
1 Replies
5. UNIX for Dummies Questions & Answers
Hello All,
I want to alter the first column of a dataset, say,
001 0.700 100.000
002 0.715 99.998
003 0.730 99.998
004 0.744 99.975
005 0.759 99.916
011 0.847 97.987
012 0.861 97.317
020 0.978 87.789
021 0.993 86.400
022 1.008 84.904
023 1.022 83.014
100 2.148 11.426
101... (2 Replies)
Discussion started by: tintin72
2 Replies
6. Shell Programming and Scripting
i have 3 files
a.txt , b.txt and c.txt
each files have keyfields and some column fields
e.g.
a.txt
keyfield1 keyfield2 keyfield3 col1 col2 col3
1 2 3 44 55 66
4 5 6 92 48 33
.....................etc..................
b.txt
keyfield1... (2 Replies)
Discussion started by: manas_ranjan
2 Replies
7. AIX
Made a sysback tape backup on our 595 running 4.1.5 but when trying to do a restore discovered that rmt0 not in bootlist(s).
Tried to alter both the normal and service bootlists but system wont respond to F7(commit).
Erased the service boolist then tried alter again, same result. Now have... (2 Replies)
Discussion started by: mooshkie
2 Replies
8. Shell Programming and Scripting
I want to add some columns to a existing tables through a shell script.
Please help. (2 Replies)
Discussion started by: ankitgupta
2 Replies
DROP
TABLE(7) SQL Commands DROP TABLE(7)
NAME
DROP TABLE - remove a table
SYNOPSIS
DROP TABLE [ IF EXISTS ] name [, ...] [ CASCADE | RESTRICT ]
DESCRIPTION
DROP TABLE removes tables from the database. Only its owner can drop a table. To empty a table of rows without destroying the table, use
DELETE [delete(7)] or TRUNCATE [truncate(7)].
DROP TABLE always removes any indexes, rules, triggers, and constraints that exist for the target table. However, to drop a table that is
referenced by a view or a foreign-key constraint of another table, CASCADE must be specified. (CASCADE will remove a dependent view
entirely, but in the foreign-key case it will only remove the foreign-key constraint, not the other table entirely.)
PARAMETERS
IF EXISTS
Do not throw an error if the table does not exist. A notice is issued in this case.
name The name (optionally schema-qualified) of the table to drop.
CASCADE
Automatically drop objects that depend on the table (such as views).
RESTRICT
Refuse to drop the table if any objects depend on it. This is the default.
EXAMPLES
To destroy two tables, films and distributors:
DROP TABLE films, distributors;
COMPATIBILITY
This command conforms to the SQL standard, except that the standard only allows one table to be dropped per command, and apart from the IF
EXISTS option, which is a PostgreSQL extension.
SEE ALSO
ALTER TABLE [alter_table(7)], CREATE TABLE [create_table(7)]
SQL - Language Statements 2010-05-14 DROP TABLE(7)