You are on page 1of 11

SheetDB(Please make a copy)

SheetDB allows you to connect to remote SQL server and load data into Google Sheet directly. Porting data from database to
Google Sheet allows you easily modify and visualize data.
https://github.com/Xuefeng-Zhu/SheetDB

Related Project:
SheetSQL allows you process data using SQL directly in Google Sheet
https://github.com/Xuefeng-Zhu/SheetSQL

Usage
Before starting to use SheetDC, it needs to be configued. Click Configure in SQL menu and enter url(i.e. jdbc:mysql:
//example.com), admin, and password. Currently, SheetDB only supports Google Cloud SQL, MySQL, Microsoft SQL Server,
and Oracle databases. If everything sets up correctly, you are able to run SQL statement in Google Sheet.

Features
After the SheetDB is configured, SheetDB will automatically load tables in database into google sheet. Later user can use Load
Tables to load new tables or Refresh Tables to fetch latest data.
In the menu, Table option contains functionalities like Load Tables, Refresh Table, Drop Table, Fast Insert, Fast Update, Fast Delete
Refresh table will refresh the table you selected
Drop Table will drop the table you selected in both Google sheet and database
Fast Insert will insert a range of data into remote database. Select a range of data for inserting and click the Fast Insert. If you are at
SQL sheet, you will be required to enter table name and attribute
Fast Update will update a range of data to remote database. Make some changes on data, and cells will be marked as bold if they
got modified. Select the rows which are modified and click Fast Update.
Fast Delete will delete a range of data in remote database. Select a range of data and click the Fast Delete.
To refresh SQL statement in history, select the statement you want to reexecute in the SQL sheet, and then click Refresh in SQL
menu.
All the functions in Table menu will automatically apply to current table sheet, but if user uses them in SQL Sheet, table name and
attributes of table will be asked as an input. In SQL sheet, user can use Fast Insert, Fast Update, and Fast Delete to quickly operate
data returned by SQL Query.
There are two ways to run SQL statements. You can type directly in cell, like =SQL() to run it, or click SQL on the Menu.

Licence
MIT
SELECT * FROM
COFFEES
Success
Colombian 102 7.99 0 0
Colombian 101 7.99 0 0
Colombian 103 7.99 0 0
Colombian 101 7.99 0 0

DELETE FROM
COFFEES where
PRICE>8 Success

Insert into
COFFEES
VALUES
('Colombian',
101,7.99,0,0)
Success
Insert into
COFFEES
VALUES
('Colombian',
101,7.99,0,0)
Success
Insert into
COFFEES
VALUES
('Colombian',
101,7.99,0,0)
Success
Insert into
COFFEES
VALUES
('Colombian',
101,7.99,0,0)
Success

DELETE FROM
COFFEES WHERE
COF_NAME='Colo
mbian' AND
SUP_ID=102 AND
SALES=0 AND
TOTAL=0 Success
DELETE FROM
COFFEES WHERE
COF_NAME='Colo
mbian' AND
SUP_ID=101 AND
SALES=0 AND
TOTAL=0 Success
DELETE FROM
COFFEES WHERE
COF_NAME='Colo
mbian' AND
SUP_ID=101 AND
SALES=0 AND
TOTAL=0 Success
DELETE FROM
COFFEES WHERE
COF_NAME='Colo
mbian' AND
SUP_ID=101 AND
SALES=0 AND
TOTAL=0 Success
INSERT INTO
COFFEES
VALUES
('Colombian',
102,7.99,0,0)
Success
INSERT INTO
COFFEES
VALUES
('Colombian',
101,7.99,0,0)
Success
INSERT INTO
COFFEES
VALUES
('Colombian',
101,7.99,0,0)
Success
INSERT INTO
COFFEES
VALUES
('Colombian',
101,7.99,0,0)
Success

DELETE FROM
COFFEES WHERE
COF_NAME='Colo
mbian' AND
SUP_ID=102 AND
SALES=0 AND
TOTAL=0 Success
DELETE FROM
COFFEES WHERE
COF_NAME='Colo
mbian' AND
SUP_ID=101 AND
SALES=0 AND
TOTAL=0 Success
DELETE FROM
COFFEES WHERE
COF_NAME='Colo
mbian' AND
SUP_ID=101 AND
SALES=0 AND
TOTAL=0 Success
DELETE FROM
COFFEES WHERE
COF_NAME='Colo
mbian' AND
SUP_ID=101 AND
SALES=0 AND
TOTAL=0 Success
INSERT INTO
COFFEES
VALUES
('Colombian',
102,7.99,0,0)
Success
INSERT INTO
COFFEES
VALUES
('Colombian',
101,7.99,0,0)
Success
INSERT INTO
COFFEES
VALUES
('Colombian',
101,7.99,0,0)
Success
INSERT INTO
COFFEES
VALUES
('Colombian',
101,7.99,0,0)
Success

DELETE FROM
COFFEES WHERE
COF_NAME='Colo
mbian' AND
SUP_ID=102 AND
SALES=0 AND
TOTAL=0 Success
DELETE FROM
COFFEES WHERE
COF_NAME='Colo
mbian' AND
SUP_ID=101 AND
SALES=0 AND
TOTAL=0 Success
DELETE FROM
COFFEES WHERE
COF_NAME='Colo
mbian' AND
SUP_ID=101 AND
SALES=0 AND
TOTAL=0 Success
DELETE FROM
COFFEES WHERE
COF_NAME='Colo
mbian' AND
SUP_ID=101 AND
SALES=0 AND
TOTAL=0 Success
DELETE FROM
COFFEES WHERE
COF_NAME='Colo
mbian' AND
SUP_ID=102 AND
SALES=0 AND
TOTAL=0 Success
DELETE FROM
COFFEES WHERE
COF_NAME='Colo
mbian' AND
SUP_ID=101 AND
SALES=0 AND
TOTAL=0 Success
DELETE FROM
COFFEES WHERE
COF_NAME='Colo
mbian' AND
SUP_ID=101 AND
SALES=0 AND
TOTAL=0 Success
DELETE FROM
COFFEES WHERE
COF_NAME='Colo
mbian' AND
SUP_ID=101 AND
SALES=0 AND
TOTAL=0 Success

DELETE FROM
COFFEES WHERE
COF_NAME='dasd
a' AND SUP_ID=31
AND PRICE=1
AND SALES=11
AND TOTAL=1
Success

INSERT INTO
COFFEES
(COF_NAME,
SUP_ID,PRICE,
SALES,TOTAL)
VALUES ('ndlka',
31,4,5,6) Success

UPDATE
COFFEES SET
SUP_ID=33
WHERE
COF_NAME='dasd
a' AND PRICE=1
AND SALES=11
AND TOTAL=1
Success

DROP TABLE
COFFEE Success
INSERT INTO
COFFEES
VALUES ('dad',
1,32,1,5) Success

INSERT INTO
COFFEES
VALUES ('czc',
13,14,4,10)
Success

INSERT INTO
COFFEES
VALUES ('net',
231,19,2,11)
Success
INSERT INTO
COFFEES
VALUES ('net',
231,19,2,11)
Success

UPDATE
COFFEES SET
PRICE=16 WHERE
COF_NAME='czc'
AND SUP_ID=13
AND SALES=4
AND TOTAL=10
Success
UPDATE
COFFEES SET
SUP_ID=29
WHERE
COF_NAME='net'
AND PRICE=19
AND SALES=2
AND TOTAL=11
Success

DROP TABLE
COFFEES
Success
INSERT INTO
COFFEE1
VALUES ('kk',
89,9,8,9) Success

describe COFFEE1
Success
COF_NAME varchar(32) YES
SUP_ID int(11) YES
PRICE float YES
SALES int(11) YES
TOTAL int(11) YES
DELETE FROM
COFFEE1 WHERE
COF_NAME='kk'
AND SUP_ID=89
AND PRICE=9
AND SALES=8
AND TOTAL=9
Success

CREATE TABLE
Persons ( PersonID
int, LastName
varchar(255),
FirstName varchar
(255), Address
varchar(255), City
varchar(255) );
Success

DROP TABLE
Persons Success
CREATE TABLE
Persons ( PersonID
int, LastName
varchar(255),
FirstName varchar
(255), Address
varchar(255), City
varchar(255) );
Success

INSERT INTO
Persons VALUES
(2321,'Smith','Mike'
,'dasd','Urbna')
Success

UPDATE Persons
SET
LastName='Smithd
as' WHERE
PersonID=2321
AND
FirstName='Mike'
AND
Address='dasd'
AND City='Urbna'
Success
DELETE FROM
Persons WHERE
PersonID=2321
AND
LastName='Smithd
as' AND
FirstName='Mike'
AND
Address='dasd'
AND City='Urbna'
Success

2312 Smith Mike dasd das


URL: 192.168.1.1\OLDERP,1433
Adm: ls
Password: ls12345
COF_NAME SUP_ID PRICE SALES TOTAL
PersonID LastName FirstName Address City

You might also like