Vrundesha Joshi has Published 289 Articles

What should I do? Select int as currency or convert int to currency format in MySql?

Vrundesha Joshi

Vrundesha Joshi

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

543 Views

To convert int to current format, use CONCAT() with FORMAT() function from MySQL.The syntax is as follows −SELECT CONCAT(‘CurrencySymbol’, FORMAT(yourColumnName, valueAfterDecimal)) as AnyVariableName from yourTableName;To understand the above syntax, let us create a table. The query to create a table −mysql> create table AddingCurrencySymbolDemo −> ( ... Read More

MySQL query to extract first word from a field?

Vrundesha Joshi

Vrundesha Joshi

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

4K+ Views

To extract first word from a field, use in-built SUBSTRING_INDEX() function. The syntax is as follows −SELECT SUBSTRING_INDEX(yourColumnName, ’ ‘, 1) as anyVariableName from yourTableName;In the above query, if you use -1 in place of 1 then you will get the last word. To understand the above concept, let us ... Read More

Combine date and time column into a timestamp in MySQL?

Vrundesha Joshi

Vrundesha Joshi

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

13K+ Views

To combine date and time column into a timestamp, you can use cast() function with concat().The syntax is as follows −select cast(concat(yourDateColumnName, ' ', yourTimeColumnName) as datetime) as anyVariableName from yourTableName;In the above concept, you will use cast() when your date and time is in string format. The cast() function ... Read More

How to echo print statements while executing an SQL script?

Vrundesha Joshi

Vrundesha Joshi

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

3K+ Views

To perform echo print statements while executing SQL scripts, use the following syntax.The syntax is as follows −SELECT ‘anyStringValue as’ ‘;The query is as follows −mysql> select 'This is a SQL Script' AS' ';The following is the output −+----------------------+ | ... Read More

Get maximal GPS precision on mobile browser

Vrundesha Joshi

Vrundesha Joshi

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

254 Views

Built-in browser for Android will not give you accurate GPS location for security reasons. Test it with different web browsers that would need permissions to get the accurate location from GPS when installed.After switching GPS off, the data is received with < 10 meters accuracy.Do not use Android Browser for ... Read More

What is JavaScript garbage collection?

Vrundesha Joshi

Vrundesha Joshi

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

335 Views

JavaScript automatically allocates memory, while a variable is declared. Garbage collection finds memory no longer used by the application and releases it since it is of no use. Garbage collector uses algorithms like Mark-and-sweep algorithm, to find the memory no longer used.This algorithm is used to free memory when an ... Read More

How to convert Multidimensional PHP array to JavaScript array?

Vrundesha Joshi

Vrundesha Joshi

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

1K+ Views

You can use PHP array in JavaScript. It works for a single as well as the multidimensional array. Use the json_encode() method to achieve this.The following is the Multi-dimensional PHP array.$myArr= array( array('Amit', 'amit@example.com'), array('Rahul, 'rahul@example.com'), );Converting PHP multidimensional array into JavaScript. ... Read More

What is the use of FLUSH PRIVILEGES statement in MySQL?

Vrundesha Joshi

Vrundesha Joshi

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

7K+ Views

Actually, we need to perform flush-privileges operation to tell the server to reload the grant tables. This can be done by issuing FLUSH PRIVILEGES statement or by executing a mysqladmin flush-privileges or mysqladmin reload command. FLUSH PRIVILEGES is really needed if we modify the grant tables directly using such as ... Read More

Resource routing not working when using SAP Fiori

Vrundesha Joshi

Vrundesha Joshi

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

265 Views

The issue you are facing is because you have created both the applications with the same ID. Hence, the Launchpad is not able to distinguish between them and load into the context.You can change the application Id and all the references of the same to resolve the issue you are ... Read More

Advertisements