• 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?
0
AnuarJamlus
Asked:
AnuarJamlus
1 Solution
 
Loganathan NatarajanLAMP DeveloperCommented:
It will be from mysql server.
0
 
enachemcCommented:
since now() is an SQL function it will be executed by the MySQL server
0

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