• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 333
  • Last Modified:

Question regarding now() for mysql

Suppose I have 2 servers. One is where the script is located and the other where the mysql server is located.

If my script runs a query that uses the mysql now() function, does mysql get the date on the script server or the mysql server?
1 Solution
Loganathan NatarajanLAMP DeveloperCommented:
It will be from mysql server.
since now() is an SQL function it will be executed by the MySQL server

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now