Nancy Den has Published 290 Articles

How to match a regular expression against a string?

Nancy Den

Nancy Den

Updated on 23-Jun-2020 08:51:16

329 Views

Use the match() method to match a regular expression against a string in JavaScript. You can try to run the following code to match a regular expression −The following is the parameter −match( param ) − A regular expression object.ExampleYou can try to run the following code to match a ... Read More

How to convert a date to a string using the universal time convention?

Nancy Den

Nancy Den

Updated on 23-Jun-2020 07:59:39

158 Views

To convert a date to a string using the universal time convention, use the toUTCString() method. It returns converted the date to a string, using the universal time convention.ExampleYou can try to run the following code to learn how to convert a date to a string using UTC −   ... Read More

How to debug JavaScript in Visual Studio?

Nancy Den

Nancy Den

Updated on 23-Jun-2020 06:47:21

3K+ Views

To debug JavaScript in Visual Studio, follow the below-given steps −Open Visual StudioSelect your project to be debugged in Solution Explorer.Right Click and select Browse With, and set a default browser.Now, go to START and type Internet Options.Above, uncheck both the options for Disable script debugging.Click Apply, and then Ok.Now ... Read More

How to use Custom Exceptions in JavaScript?

Nancy Den

Nancy Den

Updated on 23-Jun-2020 06:35:16

209 Views

Use throw statement in JavaScript, to catch custom exceptions. You can try to run the following to work with custom exceptions −Example                                             Click the following to see the result:                          

What are callback functions in JavaScript?

Nancy Den

Nancy Den

Updated on 23-Jun-2020 06:20:32

471 Views

When a function is passed to another function, it is called a callback function. It goes over this function than to call a passed function.ExampleYou can try to run the following code to learn how to work with callback functions −                 ... Read More

How can we create a new database by using PHP script?

Nancy Den

Nancy Den

Updated on 22-Jun-2020 13:34:56

151 Views

As we know that PHP provides us the function named mysql_query to create a new database.ExampleTo illustrate this we are creating a database named ‘Tutorials’ with the help of PHP script in the following example −           Creating MySQL Database                  

How can we combine the values of two or more columns of MySQL table?

Nancy Den

Nancy Den

Updated on 22-Jun-2020 12:28:19

148 Views

For combining the values of two or more columns of MySQL table, we can use CONCAT() string function. Basically, MySQL CONCAT() function is used to combine two or more strings.SyntaxCONCAT(String1, String2, …, StringN)Here, the arguments of CONCAT functions are the strings that need to be combined.Examplemysql> select CONCAT('Ram', 'is', 'a', ... Read More

How can we combine ROW selection with COLUMN selection in MySQL?

Nancy Den

Nancy Den

Updated on 22-Jun-2020 08:27:42

188 Views

For combining ROW selection with COLUMN selection, we can use the ‘WHERE’ clause. For example, we have a table below −mysql> Select * from Student; +--------+--------+--------+ | Name   | RollNo | Grade  | +--------+--------+--------+ | Gaurav | 100    | B.tech | | Aarav  | 150    | M.SC ... Read More

How are actions that take place inside stored procedure and functions replicated?

Nancy Den

Nancy Den

Updated on 22-Jun-2020 07:27:48

179 Views

Actually standard actions carried out in stored procedures and functions are replicated from a master MySQL server to a slave MySQL server. Even the creation of stored procedures and functions carried out through normal DDL statements on a master MySQL server are replicated to a slave MySQL server. In this ... Read More

Create a stored procedure to get the detail of a particular MySQL table stored in a database?

Nancy Den

Nancy Den

Updated on 22-Jun-2020 06:51:49

400 Views

Following example will create a procedure named ‘tabledetails’ which gives all the details of a particular table stored in database.Examplemysql> DELIMITER // mysql> Create Procedure tabledetails()    -> BEGIN    -> DESCRIBE Student_detail;    -> END // Query OK, 0 rows affected (0.00 sec) mysql> DELIMITER ; mysql> ... Read More

Previous 1 ... 6 7 8 9 10 ... 29 Next
Advertisements