MySQL AND & OR conditionIn MySQL, you can use AND & OR condition both together with the SELECT, INSERT, UPDATE and DELETE statement. While combine these conditions, you must be aware where to use round brackets so that the database know the order to evaluate each condition. Syntax: Parametercondition1, condition2, ... condition_n: It specifies the conditions that are evaluated to determine if the records will be selected. MySQL AND OR ExampleConsider a table "students", having the following data. ![]() Execute the following query: Output: ![]()
Next TopicMySQL Boolean
|
JavaTpoint offers too many high quality services. Mail us on h[email protected], to get more information about given services.
JavaTpoint offers college campus training on Core Java, Advance Java, .Net, Android, Hadoop, PHP, Web Technology and Python. Please mail your requirement at [email protected].
Duration: 1 week to 2 week