Woman In Tech: NAVIGATING THE DIGITAL WORLD

seeker, learner, educator and paying it forward… in short – Jigyaasu

SQL Server 2012 vs MySQL statements

Posted by

·

 

SQL Server 2012

MySQL 5.5

1 use master;select  *  from sys.databases; show databases;

 

2 create database yourDatabaseName; Create database yourDatabaseName;

 

3 use yourDatabaseName; use yourDatabaseName;

 

4 select * from sys.tables; show tables;

 

create table yourTableName(    

tablesPrimaryKey varchar(10) primary key,

field1 varchar(10),field2 smallint, field3….

);


create table yourTableName(

tablesPrimaryKey varchar(4) primary key,

field2 varchar(10),

field3 smallint(10),…

);


6 exec sp_help yourTableName;
Describe yourTableName;

 

7 truncate table yourTableName;


Truncate table yourTableName;
8 insert into yourTableName values

(‘xyz’,‘abc’, 123,…);

insert into yourTableName values (“xyz”,”abc”,123,…);

As you can see, the statements are almost identical and are pretty self explanatory. No wonder, they are SeQueL afterall! E.F.Codd and Peter Chen will be happy to see how effective and easy to use/learn the tools and our software turned out to be.

Swetha Sankaran, Microsoft MVP(2017-2020) | Gen AI enthusiast Avatar

About the author

Hi! My name is Joan Smith, I’m a travel blogger from the UK and founder of Hevor. In this blog I share my adventures around the world and give you tips about hotels, restaurants, activities and destinations to visit. You can watch my videos or join my group tours that I organize to selected destinations. [Suggestion: You could use the Author Biography Block here]

Discover more from Woman In Tech: NAVIGATING THE DIGITAL WORLD

Subscribe now to keep reading and get access to the full archive.

Continue reading