Vrundesha Joshi has Published 343 Articles

How to rearrange MySQL columns?

Vrundesha Joshi

Vrundesha Joshi

Updated on 30-Jul-2019 22:30:24

431 Views

To rearrange the MySQL columns, check the column arrangement with the help of show create command. The syntax is as follows −show create table yourTableName;The syntax to rearrange the MySQL columns is as follows −alter table yourTableName change column yourColumnName yourColumnName dataType firstFor the same purpose, you can use the ... Read More

MySQL query to extract last word from a field?

Vrundesha Joshi

Vrundesha Joshi

Updated on 30-Jul-2019 22:30:24

2K+ Views

To extract last word from a field, use in-built SUBSTRING_INDEX() function. The syntax is as follows −SELECT SUBSTRING_INDEX(yourColumnName, ’ ‘, -1) as anyVariableName from yourTableName;To understand the above concept, let us create a table. The following is the query to create a table −mysql> create table FirstWordDemo ... Read More

What is embedded bitcode and what does ENABLE_BITCODE do in xcode?

Vrundesha Joshi

Vrundesha Joshi

Updated on 30-Jul-2019 22:30:24

312 Views

Bitcode – Bitcode is an intermediate reperesentation of how the code looks. This code can not be used by us or can’t be installed on a device. When we upload our application to the app store It is uploaded as an bitcode and later converted to app binary by itunes/Apple.When the ... Read More

How to add 30 minutes to datetime in MySQL?

Vrundesha Joshi

Vrundesha Joshi

Updated on 30-Jul-2019 22:30:24

12K+ Views

To add minutes to a datetime you can use DATE_ADD() function from MySQL. In PHP, you can use strtotime().To add 30 minutes in MySQL, the DATE_ADD() function is as follows −select date_add(yourColumnName, interval 30 minute) from yourTableName;To use the above syntax, let us create a table. The following is the ... Read More

Delete all the records from a MySQL table?

Vrundesha Joshi

Vrundesha Joshi

Updated on 30-Jul-2019 22:30:24

870 Views

To delete all the records from a MySQL table, you can use the TRUNCATE statement.The syntax is as follows −TRUNCATE TABLE yourTableName;The above syntax deletes all the records from the table. To understand the above syntax, let us create a table. The following is the query to create a table ... Read More

How to draw a route between two locations using MapKit in Swift?

Vrundesha Joshi

Vrundesha Joshi

Updated on 30-Jul-2019 22:30:24

741 Views

To draw a route between two Locations on map we need to have co-ordinates of both those locations.Once we have the co-ordinates of both locations we can use the below given function to show the line between two points on map. In this example I’ll be using two random location ... Read More

Order strings by length of characters IN mYsql?

Vrundesha Joshi

Vrundesha Joshi

Updated on 30-Jul-2019 22:30:24

255 Views

You can order by length of characters with the help of CHAR_LENGTH() function from MySQL. The function returns the number of characters i.e. 4 for the following string −AMITTo order strings by length of characters, the following is the syntax −select *from yourTableName order by CHAR_LENGTH(yourColumnName);To understand the above concept, ... Read More

How to perform Increment in MySQL Update?

Vrundesha Joshi

Vrundesha Joshi

Updated on 30-Jul-2019 22:30:24

1K+ Views

To update values incrementally in MySQL, you need to create a variable with the help of SET command. The syntax to create a variable is as follows −set @anyVariableName := 0;To update value, you need to use UPDATE command. Let us begin with creating a table. The query to create ... Read More

Is there a difference in using INT(1) vs TINYINT(1) in MySQL?

Vrundesha Joshi

Vrundesha Joshi

Updated on 30-Jul-2019 22:30:24

1K+ Views

The number 1 used in parenthesis is only for width display. The INT(1) and TINYINT(1) does not influence the storage.The TINYINT takes 1 byte that means it has range -128 to +127 while int takes 4 bytes; it has range -2147483648 to +2147483647To understand the width display, let us create ... Read More

Program to Find the smallest number in an array of data in 8085 Microprocessor

Vrundesha Joshi

Vrundesha Joshi

Updated on 30-Jul-2019 22:30:24

10K+ Views

In this program we will see how to find the smallest number from a block of bytes using 8085.Problem StatementWrite 8085 Assembly language program to find the smallest number from a block of bytes.DiscussionIn this program the data are stored at location 8001H onwards. The 8000H is containing the size ... Read More

Advertisements