Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I want to populate my MSSQL database, so, I will run some procedures with random data. I have to get the parameters of every SP. How I can do that?
Thanks.
You can find it with simple query -
SELECT p.name
FROM sys.objects o
INNER JOIN sys.parameters p ON p.[object_id] = o.[object_id]
WHERE o.[name] = 'stored_proc_name' AND o.[type] = 'P'
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
if i write query like this
SELECT student.name, class.subj
FROM student
INNER JOIN class
ON student.class_id = class.class_id;
in MySql so how i can write for mongoDB script ?
MongoDB does not support joins because join operations make database response slower. You should change your thinking style while designing a database. If you use your documents together, it is suggested to make them embedded documents. Here is a tip for designing based on relations :
http://docs.mongodb.org/manual/applications/data-models-relationships/
Some of data modeling documents are below :
http://docs.mongodb.org/manual/data-modeling/
http://www.toadworld.com/platforms/nosql/w/wiki/349.mongodb-data-modeling.aspx#Collection
http://highlyscalable.wordpress.com/2012/03/01/nosql-data-modeling-techniques/
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I need to create a regex that will select the data between two characters (& - #).
& foo #
I would like to select foo.
Any ideas? Good explanations are also appreciated.
how about this:
preg_match('~&([^#]*)#~',$content,$match);
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I am unable to delete data from multiple MySQL tables using following query;
$rel=$_POST['releaseno'];
$sql="DELETE from `tbl_uat`,`tbl_fault` WHERE `tbl_uat`.`release`='$rel' AND `tbl_fault`.`release_no`='$rel'";
I think there is a problem with the query, can any one please identify where's the problem.
Kind Regards
You need to tell the DB from which tables you want to delete by doing delete u,f from ...
$rel = mysql_real_escape_string($_POST['releaseno']);
DELETE u, f
from tbl_uat u, tbl_fault f
WHERE u.release = '$rel'
AND f.release_no = '$rel'
You also need to escape your user input before inserting into your query!
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I am doing a project where i have to fetch data of between dates plus the name of user.
The query for only date betweenis working fine but with and operater its going in wrong way so please suggest me how to implement it to achieve desired output.
this is my code:
$qry11=mysqli_query($con,"select * from entry where (create_date between '$first' and '$second') && cnor='$nme'");
so please suggest ne how to do this....any idea will be appreciate with highly gratitude.
&&
should be replaced with
AND
You seem to be already using AND in your query right
(create_date between '$first' and '$second')
use the query like below
$qry11=mysqli_query($con,"select * from entry where (create_date between '$first' and '$second') and cnor='$nme'");
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
Can I use this php code wih WHERE? SELECT SUM(buzz) as buzz FROM $table I want to calculate sumation of some spesific rows.
If you want specifically in PHP then this might help you
SELECT SUM(buzz) as buzz FROM $table WHERE $where
No, you can't use PHP code in an SQL where condition. Databases typically don't include a PHP interpreter.
What you can do is use PHP to generate the where clause that you need.