SlideShare a Scribd company logo
BGPUG Conf 2017
MySQL:
mysql> CREATE TABLE test (id integer, name varchar(20));
Query OK, 0 rows affected (0.00 sec)
mysql> INSERT INTO test(id, name) VALUES(1, 'ime koeto e mnooogooo dylgo');
Query OK, 1 row affected, 1 warning (0.00 sec)
mysql> SELECT * FROM test;
+------+----------------------+
| id | name |
+------+----------------------+
| 1 | ime koeto e mnooogoo |
+------+----------------------+
PostgreSQL:
postgres=# CREATE TABLE test(id integer, name varchar(20));
CREATE TABLE
postgres=# INSERT INTO test(id, name) VALUES(1, 'ime koeto e mnooogooo
dylgo');
ERROR: value too long for type character varying(20)

More Related Content

What's hot (20)

PDF
The Ring programming language version 1.9 book - Part 63 of 210
Mahmoud Samir Fayed
 
PDF
The Ring programming language version 1.5.3 book - Part 71 of 184
Mahmoud Samir Fayed
 
PDF
Профилирование и оптимизация производительности Ruby-кода
samsolutionsby
 
PDF
Accelerating Local Search with PostgreSQL (KNN-Search)
Jonathan Katz
 
PDF
The Ring programming language version 1.3 book - Part 45 of 88
Mahmoud Samir Fayed
 
PDF
Google App Engine Developer - Day3
Simon Su
 
PPT
Indexing & query optimization
Jared Rosoff
 
PDF
The Ring programming language version 1.10 book - Part 74 of 212
Mahmoud Samir Fayed
 
PDF
MongoDB Indexing Constraints and Creative Schemas
MongoDB
 
PDF
The Ring programming language version 1.2 book - Part 42 of 84
Mahmoud Samir Fayed
 
PDF
The Ring programming language version 1.6 book - Part 63 of 189
Mahmoud Samir Fayed
 
PPTX
Cookies in php
ArunaDevi63
 
PDF
The Ring programming language version 1.6 book - Part 66 of 189
Mahmoud Samir Fayed
 
PDF
제 6회 엑셈 수요 세미나 자료 연구컨텐츠팀
EXEM
 
PPTX
Ogdc 2013 lets remake the wheel
Son Aris
 
PPTX
OGDC2013_Lets remake the wheel_ Mr Nguyen Trung Hung
ogdc
 
PDF
The Ring programming language version 1.2 book - Part 41 of 84
Mahmoud Samir Fayed
 
PDF
The Ring programming language version 1.5.3 book - Part 73 of 184
Mahmoud Samir Fayed
 
PDF
The Ring programming language version 1.5.3 book - Part 72 of 184
Mahmoud Samir Fayed
 
PPTX
Deep dumpster diving 2010
RonnBlack
 
The Ring programming language version 1.9 book - Part 63 of 210
Mahmoud Samir Fayed
 
The Ring programming language version 1.5.3 book - Part 71 of 184
Mahmoud Samir Fayed
 
Профилирование и оптимизация производительности Ruby-кода
samsolutionsby
 
Accelerating Local Search with PostgreSQL (KNN-Search)
Jonathan Katz
 
The Ring programming language version 1.3 book - Part 45 of 88
Mahmoud Samir Fayed
 
Google App Engine Developer - Day3
Simon Su
 
Indexing & query optimization
Jared Rosoff
 
The Ring programming language version 1.10 book - Part 74 of 212
Mahmoud Samir Fayed
 
MongoDB Indexing Constraints and Creative Schemas
MongoDB
 
The Ring programming language version 1.2 book - Part 42 of 84
Mahmoud Samir Fayed
 
The Ring programming language version 1.6 book - Part 63 of 189
Mahmoud Samir Fayed
 
Cookies in php
ArunaDevi63
 
The Ring programming language version 1.6 book - Part 66 of 189
Mahmoud Samir Fayed
 
제 6회 엑셈 수요 세미나 자료 연구컨텐츠팀
EXEM
 
Ogdc 2013 lets remake the wheel
Son Aris
 
OGDC2013_Lets remake the wheel_ Mr Nguyen Trung Hung
ogdc
 
The Ring programming language version 1.2 book - Part 41 of 84
Mahmoud Samir Fayed
 
The Ring programming language version 1.5.3 book - Part 73 of 184
Mahmoud Samir Fayed
 
The Ring programming language version 1.5.3 book - Part 72 of 184
Mahmoud Samir Fayed
 
Deep dumpster diving 2010
RonnBlack
 

Recently uploaded (20)

PDF
Online Queue Management System for Public Service Offices in Nepal [Focused i...
Rishab Acharya
 
PDF
Mobile CMMS Solutions Empowering the Frontline Workforce
CryotosCMMSSoftware
 
PDF
Alexander Marshalov - How to use AI Assistants with your Monitoring system Q2...
VictoriaMetrics
 
PDF
SciPy 2025 - Packaging a Scientific Python Project
Henry Schreiner
 
PPTX
Coefficient of Variance in IBM SPSS Statistics Version 31.pptx
Version 1 Analytics
 
PPTX
Fundamentals_of_Microservices_Architecture.pptx
MuhammadUzair504018
 
PPTX
MailsDaddy Outlook OST to PST converter.pptx
abhishekdutt366
 
PDF
Powering GIS with FME and VertiGIS - Peak of Data & AI 2025
Safe Software
 
PPTX
Transforming Mining & Engineering Operations with Odoo ERP | Streamline Proje...
SatishKumar2651
 
PDF
Build It, Buy It, or Already Got It? Make Smarter Martech Decisions
bbedford2
 
PPTX
Java Native Memory Leaks: The Hidden Villain Behind JVM Performance Issues
Tier1 app
 
DOCX
Import Data Form Excel to Tally Services
Tally xperts
 
PDF
The 5 Reasons for IT Maintenance - Arna Softech
Arna Softech
 
PPTX
Empowering Asian Contributions: The Rise of Regional User Groups in Open Sour...
Shane Coughlan
 
PDF
Linux Certificate of Completion - LabEx Certificate
VICTOR MAESTRE RAMIREZ
 
PPTX
Home Care Tools: Benefits, features and more
Third Rock Techkno
 
PPTX
Why Businesses Are Switching to Open Source Alternatives to Crystal Reports.pptx
Varsha Nayak
 
PDF
Revenue streams of the Wazirx clone script.pdf
aaronjeffray
 
PDF
Alarm in Android-Scheduling Timed Tasks Using AlarmManager in Android.pdf
Nabin Dhakal
 
PDF
Odoo CRM vs Zoho CRM: Honest Comparison 2025
Odiware Technologies Private Limited
 
Online Queue Management System for Public Service Offices in Nepal [Focused i...
Rishab Acharya
 
Mobile CMMS Solutions Empowering the Frontline Workforce
CryotosCMMSSoftware
 
Alexander Marshalov - How to use AI Assistants with your Monitoring system Q2...
VictoriaMetrics
 
SciPy 2025 - Packaging a Scientific Python Project
Henry Schreiner
 
Coefficient of Variance in IBM SPSS Statistics Version 31.pptx
Version 1 Analytics
 
Fundamentals_of_Microservices_Architecture.pptx
MuhammadUzair504018
 
MailsDaddy Outlook OST to PST converter.pptx
abhishekdutt366
 
Powering GIS with FME and VertiGIS - Peak of Data & AI 2025
Safe Software
 
Transforming Mining & Engineering Operations with Odoo ERP | Streamline Proje...
SatishKumar2651
 
Build It, Buy It, or Already Got It? Make Smarter Martech Decisions
bbedford2
 
Java Native Memory Leaks: The Hidden Villain Behind JVM Performance Issues
Tier1 app
 
Import Data Form Excel to Tally Services
Tally xperts
 
The 5 Reasons for IT Maintenance - Arna Softech
Arna Softech
 
Empowering Asian Contributions: The Rise of Regional User Groups in Open Sour...
Shane Coughlan
 
Linux Certificate of Completion - LabEx Certificate
VICTOR MAESTRE RAMIREZ
 
Home Care Tools: Benefits, features and more
Third Rock Techkno
 
Why Businesses Are Switching to Open Source Alternatives to Crystal Reports.pptx
Varsha Nayak
 
Revenue streams of the Wazirx clone script.pdf
aaronjeffray
 
Alarm in Android-Scheduling Timed Tasks Using AlarmManager in Android.pdf
Nabin Dhakal
 
Odoo CRM vs Zoho CRM: Honest Comparison 2025
Odiware Technologies Private Limited
 
Ad

MySQL vs. PostgreSQL

  • 2. MySQL: mysql> CREATE TABLE test (id integer, name varchar(20)); Query OK, 0 rows affected (0.00 sec) mysql> INSERT INTO test(id, name) VALUES(1, 'ime koeto e mnooogooo dylgo'); Query OK, 1 row affected, 1 warning (0.00 sec) mysql> SELECT * FROM test; +------+----------------------+ | id | name | +------+----------------------+ | 1 | ime koeto e mnooogoo | +------+----------------------+ PostgreSQL: postgres=# CREATE TABLE test(id integer, name varchar(20)); CREATE TABLE postgres=# INSERT INTO test(id, name) VALUES(1, 'ime koeto e mnooogooo dylgo'); ERROR: value too long for type character varying(20)