Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
p1 と p2 の 2 つのプロシージャがあります。私のp1は私に4列の出力を与えます。where条件での選択クエリ出力のp2プロシージャでp1の単一の列を使用したい。私はmysqlを使用しています。提案してください。
最初のストア プロシージャを実行します。
結果から必要な列の値を取得し、変数に格納します。
変数で有効な値が使用可能な場合は、2 番目のストアド プロシージャを呼び出すときにその変数を使用します。
これを使って:
$i=0; while($row = mysql_fetch_array($result)) { $smt[i]=$row['column_name']; i++; }
これで、列は配列 $smt に格納されます。