Drop table in Sql

mysql sql 5 years, 5 months ago
Drop table Table_name;
1381
Posted By
Move a table to other schema in Postgres
ALTER TABLE table_name SET SCHEMA new_sc
sql postgresql
kishore_kumar
how to print star using sql
DECLARE @var int               
SELECT @var = 5 
WHILE @var >0
sql printing pattern my sql
sonia shaik
decode (oracle) equivale in postgres
Simple Case:
case search-expression
    WHEN expression [, expression [ ... 
sql postgres oracle
sonia shaik
nvl (oracle) equivalent in postgres
COALESCE(value [, ...])
The COALESCE function accepts an unlimit
It returns the first argument that is no
sql postgres oracle
sonia shaik
PostgreSQL CONCAT_WS function
SELECT
   concat_ws (column1,column2) AS new_co
FROM
sql concat_ws
Reshma
Adding a new auto increment column to a table
-- New versions of postgres
-- adding as primary key

sql postgres postgresql
kishore_kumar
How to dump a database in postgresql
sudo -i -u postgres

psql
dump postgresql sql
Reshma
Create a user table in MySQL database and ins
CREATE TABLE `user` (
    `username` VARCHAR(25) NOT NULL,
    `email` VARCHAR(150) NOT NULL,
mysql
kishore_kumar
Connect to MySQL database with python mysql c
# pip install mysql-connector

from mysql import connector
python mysql mysql-connector
kishore_kumar
Creating table using MySQLi Object-oriented P
<?php
$servername = "localhost";
$username = "username";
mysqli table creation mysql
Reshma
Creating table using MySQLi Procedural proced
<?php
$servername = "localhost";
$username = "username";
mysqli table creation mysql
Reshma
IFNULL in MySQL
SELECT 
IFNULL(
  (SELECT NAME 
if null mysql
Reshma
MySQL | BIN() Function
SELECT BIN(5);

SELECT BIN(12);
mysql bin()
Reshma
MySQL | RENAME USER
RENAME USER 'RAJ' @ 'localhost' TO 'AMIT

RENAME USER 'PRIYA' @ 'localhost' TO 'DI
rename mysql
Reshma
SQL | ALTER to change the name of the table
ALTER TABLE TABLE_NAME RENAME TO NEW_TAB
alter table mysql
Reshma
SQL | ALTER to change the name of the column
ALTER TABLE TABLE_NAME RENAME COLUMN TO 
alter column mysql
Reshma
MySQL | DEFAULT() Function
SELECT DEFAULT (COLUMN_NAME) FROM TABLE_
default() mysql
Reshma
MySQL | DROP USER
DROP USER 'user' @ 'host';
mysql drop
Reshma
Changing MySQL User Password Using The SET PA
SET PASSWORD FOR 'user' @ 'localhost' = 
mysql set password
Reshma
Changing MySQL User Password Using The ALTER
ALTER USER user@localhost IDENTIFIED BY 
alter password mysql
Reshma