NULL Argument in MySQL CONV Function

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

150 Views

MySQL will return NULL as the output if any of the argument of CONV() function is NULL or if the value provided for the base is out of limit(i.e. not between minimum 2 and maximum 36). Following examples would demonstrate it. Example mysql> Select CONV(10,NULL,2); +-----------------+ | CONV(10, NULL,2)| +-----------------+ | NULL | +-----------------+ 1 row in set (0.00 sec) mysql> Select CONV(10,10, NULL); +------------------+ | CONV(10,10, NULL)| +------------------+ | NULL | +------------------+ 1 row in set (0.00 sec) mysql> Select CONV(NULL,10,2); +-----------------+ | CONV(null,10,2) | +-----------------+ | NULL | +-----------------+ 1 row in set (0.00 sec)

Differentiating Between Row and Column Store Tables in SAP HANA Database

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

745 Views

Yes, it is possible to differentiate between both the table types.  When you go to schema and view the newly created table, you can see vertical lines in front of table name and it confirms that this is column store table.In below pic, you can see the difference between a Row store table and Column store table.

Fastest Pure JavaScript Graph Visualization Toolkit

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

151 Views

The fastest and pure JavaScripr Graph visualization toolkit isJavaScript InfoVis Toolkit. With it, you can, Perform Graph manipulation, Create bar graphs, Custom nodes, Implementing NodeTypes Adding subtrees, Drag and drop nodes, etc.

Meaning of JavaScript void 0

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

292 Views

The void operator is used to evaluate the given expression. After that, it returns undefined. It obtains the undefined primitive value, using void(0).If inserting an expression into a web page results in unwanted effect, then use JavaScript void to remove it. Adding JavaScript:Void(0), returns the undefined primitive value.The void operator is used to evaluate the given expression. After that, it returns undefined. It obtains the undefined primitive value, using void(0).We used JavaScript:void(0) above to prevent the page from reloading when the button is clicked the first time.It only works when the button will be clicked twice. If it is clicked ... Read More

How MySQL Behaves with INTERVAL Keyword and Invalid Date

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

194 Views

Actually, the behavior of MySQL depends upon the allow_invalid_dates mode. If this mode is enabled then MySQL will accept the invalid date and it would perform the date arithmetic as it performs with a valid date. Otherwise, if this mode is inactive then it will not accept the invalid date and would produce NULL as output. mysql> select '2017-02-30' + INTERVAL 7 day; +-------------------------------+ | '2017-02-30' + INTERVAL 7 day | +-------------------------------+ | NULL ... Read More

Line Breaks in JavaScript Alert

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

5K+ Views

To add line breaks to JavaScript alert, use “\r”. In the following example, we will see how to display text in JavaScript alert.Example Live Demo                    function DisplayAlert() {             var newLine = "\r"             var msg = "Showing how to add line break."             msg += newLine;             msg += "Line Break can be easily added in JavaScript.";             msg += newLine;             msg += "Simply Easy Learning";             msg+= newLine;             msg += "TutorialsPoint.com";             alert(msg); }

Swap Two String Variables Without Third Variable

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

3K+ Views

To swap the contents of two strings (say s1 and s2) without the third, first of all concatenate them and store in s1. Now using the substring() method of the String class store the value of s1 in s2 and vice versa.Example Live Demopublic class Sample {    public static void main(String args[]){       String s1 = "tutorials";       String s2 = "point";       System.out.println("Value of s1 before swapping :"+s1);       System.out.println("Value of s2 before swapping :"+s2);       int i = s1.length();       s1 = s1+s2;       s2 = ... Read More

Add a Favicon to Your WordPress Site

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

256 Views

A favicon is a little icon visible on the web browser tab, just before the page title. It is generally a logo with the smaller size. You need to include a Site Icon in WordPress to add a favicon to your WordPress site. Login to your WordPress website and from the left menu; click Appearance, and then Customize − After that, you will reach the Theme Customization section. Under that, the first sub-section is Site Identity. From there, you need to go to the Site Icon and upload the icon. The size here is 512x512, from which the ... Read More

Constructors of StringTokenizer Class in Java

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

274 Views

Following are the important constructors of the StringTokenizer class.Sr.No.Constructor & Description1StringTokenizer(String str)This constructor a string tokenizer for the specified string.2StringTokenizer(String str, String delim)This constructor constructs string tokenizer for the specified string.3StringTokenizer(String str, String delim, boolean returnDelims)This constructor constructs a string tokenizer for the specified string.

What is Static Import in Java

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

772 Views

As import statement allows to use a class without its package qualification, static import allows to access the static members of a class without class qualifications. For Example, to access the static methods you need to call the using class name − Math.sqrt(169); But, using static import you can access the static methods directly. Example Live Demo import static java.lang.Math.*; public class Sample{ public static void main(String args[]){ System.out.println(sqrt(169)); } } Output 13.0

Advertisements