Jupyter Cheat Sheet
Jupyter is an online notebook. You can run python, markup, bash commands, generate visualizations, and much more in the notebook and display the output as well within the same page.
Jupyter is an online notebook. You can run python, markup, bash commands, generate visualizations, and much more in the notebook and display the output as well within the same page.
\l (lowercase L) | list all databases |
\c | use database |
\dt | show tables |
\dT | list datatypes |
\df | list functions |
\di | list indexes |
\dv | list views |
\du | list users |
\d+ | show all tables with descriptions |
\d+ table | show table definition or view definition with column descriptions |
Renaming a table
To match the end-of-line in notepad++, click on Search > Find or ctrl + F. Make sure you click on regular expressions at the bottom of the window. Then type in the following command.
[\r\n]+
Voila!
Selecting a database:
mysql> USE database;
Listing databases:
mysql> SHOW DATABASES;
Listing tables in a db:
mysql> SHOW TABLES;
Describing the format of a table:
mysql> DESCRIBE table;
Creating a database:
mysql> CREATE DATABASE db_name;
Creating a table:
mysql> CREATE TABLE table_name (field1_name TYPE(SIZE), field2_name TYPE(SIZE)); Ex: mysql> CREATE TABLE pet (name VARCHAR(20), sex CHAR(1), birth DATE);
HTML5 offers many new input types which were not available in previous versions. Smart phones and tablets have limited screen real estate and the interfaces need to be sensitive to touch which requires more space than a mouse pointer. These interfaces require users to switch between keyboards to input characters. HTML5 forms allow web designers to make their sites more user-friendly by offering preselected keyboard such as a date picker for date field, @ and . symbols in the keyboard for emails, and numeric keyboard for numbers.
Microsoft Windows offer many simple keyboard shortcuts. If you use computer as much as I do, you would find that these commands are easy to remember and simplify life a little bit. The symbol + in the table means that you have to press those keys together. win is the windows button just to the right of ctrl with Microsoft Windows logo. The keys are typed in CAPS to increase readability e.g. one and the letter can be confusing is lowercase but not when L is written in uppercase. The commands are NOT case sensitive.
shortcut |
---|
Key | Action |
---|---|
Shift+Ctrl+n | new window |
Shift+Ctrl+t | new tab |
Shift+Ctrl+w | close tab |
Ctrl+{PgUp,PgDown} | change tabs |
Ctrl+Insert | copy |
Shift+Ctrl+v | paste |