Mysql_db_query for mssql in php?

Look at the PHP Mssql documentation. The functions you're looking for are mssql_query() and the following.

For mysql, it has mysql_query and mysql_db_query, but for mssql only has mssql_query. Mssql_query same with mysql_query but not with mysql_db_query. – Hafizul Amri Jan 5 at 16:52 @Hafizul mysql_db_query() is deprecated, all it does is (effectively) mysql_select_db() followed by mysql_query().

You can easily emulate this behaviour with mssql_select_db() and mssql_query(). – fredley Jan 5 at 17:17.

I think the closest you will come to this in T-SQL is the following: Use Exec ('Select From ').

In MSSQL, you can use the SCOPE_IDENTITY() function to get the last ID created by the given connection, in the same scope. Put them both together so you get the ID back just after row creation. INSERT INTO myTable (field1,field2) VALUES(val1,val2); SELECT SCOPE_IDENTITY() AS myId; Note, you could also use @@IDENTITY, but that returns the last ID created, regardless of scope, so if you inserted a new row, and a trigger/stored procedure fired and inserted something into another table, @@IDENTITY would return that ID.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions