MongoDB – Delete Document
In this chapter, we will learn how to delete a document using MongoDB. The remove() Method MongoDB's remove() method is used to remove a document from the collection. remove() method accepts two…
In this chapter, we will learn how to delete a document using MongoDB. The remove() Method MongoDB's remove() method is used to remove a document from the collection. remove() method accepts two…
MongoDB's update() and save() methods are used to update document into a collection. The update() method updates the values in the existing document while the save() method replaces the existing document with the document…
PHP uses mysqli_query function to insert records in table. This function takes three parameters and returns TRUE on success or FALSE on failure. Syntax mysqli_query ( mysqli $link, string $query, int $resultmode…
The following table lists the commonly used string manipulation functions provided by XQuery. Sr.NoName & Description1string-length Function Returns the length of the string.2string-concat Function Returns the concatenated string as output.3string-join…
The string-join function is used to concatenate various sequences separated by a given delimiter. Syntax string-join($sequence as xs:string*, $delimiter as xs:string) as xs:string Input Parameters $sequence − sequence of zero or more strings.$delimiter −…
PHP uses mysqli query() or mysql_query() function to drop a MySQL table. This function takes two parameters and returns TRUE on success or FALSE on failure. Syntax $mysqli->query($sql,$resultmode) Sr.No.Parameter & Description1$sqlRequired - SQL query…
The concat function is used to concatenate various strings. Syntax concat($input as xs:anyAtomicType?) as xs:string Input Parameters $input − one or more inputs separated by comma. Example XQuery Expression let $bookTitle := "Learn…
PHP uses mysqli query() or mysql_query() function to create a MySQL table. This function takes two parameters and returns TRUE on success or FALSE on failure. Syntax $mysqli->query($sql,$resultmode) Sr.No.Parameter & Description1$sqlRequired - SQL query…
Processing the HTTP responses using the response handlers is recommended. In this chapter, we are going to discuss how to create response handlers and how to use them to process…
PHP uses mysqli_select_db function to select the database on which queries are to be performed. This function takes two parameters and returns TRUE on success or FALSE on failure. Syntax mysqli_select_db (…