Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > Beginning PHP
|
Beginning PHP Beginning-level PHP discussions. More advanced coders should post to the Pro PHP forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning PHP section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 4th, 2006, 07:01 AM
Registered User
 
Join Date: Apr 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Sql Query With Variable

Hi All

I want to make store the result of a query into the variables. i.e. I columnnames needed to be stored a the variables. All this is to be done in a Stored Procedure.

Example

Select SaveDate, IsLocked from tblname where <condition>

I need to store SaveDate & Islocked in the variables for further use in store procedure.

The query always returns single row at a time.

Looking 4 ur help
Thanx in Advance.

 
Old April 4th, 2006, 07:33 AM
Authorized User
 
Join Date: Mar 2006
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Plz send your code if you can.






Similar Threads
Thread Thread Starter Forum Replies Last Post
table variable query hai SQL Server DTS 5 June 11th, 2007 05:19 AM
Passing Variable Query rsm42 ASP.NET 1.0 and 1.1 Basics 1 February 10th, 2007 01:05 PM
Passing Variable to Query dalezjc Classic ASP Databases 2 November 14th, 2006 03:27 PM
SQL query using a session variable nikcrazyivan Classic ASP Databases 0 March 8th, 2005 12:03 AM
Setting a Variable = Result of a SQL Query PeteS VB Databases Basics 1 June 20th, 2003 08:14 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.