What is the difference between mysql_connect() and
mysql_pconnect()?
Answer Posted / sumit
In mysql_pconnect(), ‘p’ stands for persistance connection.
when connecting, the function would try to find a (persistent) connection that’s already open with the same host, username and password. If one is found, an identifier for it will be returned instead of opening a new connection.
mysql_connect() function, every time it is opening and closing the database connection.
| Is This Answer Correct ? | 5 Yes | 1 No |
Post New Answer View All Answers
How to run a sql statement?
Can you rename a database in mysql?
Is mysql still popular?
Is mysql easy to learn?
How do you restart mysql?
How to make a copy values from one column to another in mysql?
What are the 'mysql' command line arguments?
write a command to view the content of the table
What is the maximum no of columns a table can have?
What is the use of mysqli_num_rows?
What does "i_am_a_dummy flag" do in mysql?
Should I use pdo or mysqli?
Please can the SQL code below be interpreted IF @xMatchCriteria='MATCH12' BEGIN IF EXISTS (Select * from #InsightData where (EmailAddress=@xDCPEmailAddress ) ) BEGIN SET @xTestMatchCriteria = @xMatchCriteria; SELECT @xCRMCustomerId=CustomerId, @xCRMDcpCustomerId=DcpCustomerId, @xCRMPortalCustomerID=PortalCustomerID,@xCRMDcpID=DcpID, @xCRMCardNumber=CardNumber, @xCRMEmailAddress=EmailAddress, @xCRMfirtLetterFirstName=firtLetterFirstName, @xCRMLastName=Surname,@xCRMAddressLine1=AddressLine1, @xCRMPostCode=PostCode FROM #InsightData where (EmailAddress=@xDCPEmailAddress ) END ELSE BEGIN SET @xTestMatchCriteria='No'+@xMatchCriteria; END END
What is the difference between unix timestamp and mysql timestamp?
How do I setup mysql?