Click here to Skip to main content
15,912,457 members
Home / Discussions / Database
   

Database

 
GeneralRe: Procedure Pin
Support1238-Mar-06 3:14
Support1238-Mar-06 3:14 
QuestionPassword Encryption Pin
Brendan Vogt6-Mar-06 19:52
Brendan Vogt6-Mar-06 19:52 
AnswerRe: Password Encryption Pin
Colin Angus Mackay8-Mar-06 2:36
Colin Angus Mackay8-Mar-06 2:36 
QuestionRe: Password Encryption Pin
Brendan Vogt8-Mar-06 2:47
Brendan Vogt8-Mar-06 2:47 
AnswerRe: Password Encryption Pin
Colin Angus Mackay8-Mar-06 3:05
Colin Angus Mackay8-Mar-06 3:05 
QuestionORA:12535 TNS Timed out issue Pin
vhariharan6-Mar-06 14:24
vhariharan6-Mar-06 14:24 
Questionclob into oracle Pin
Lash206-Mar-06 10:44
Lash206-Mar-06 10:44 
QuestionStored procedure should only update supplied values. Pin
MY12016-Mar-06 3:06
MY12016-Mar-06 3:06 
Hello guys!

In my database I need to be able to update my data. Funny huh? Wink | ;)

Well I thought if it was possible to create a stored procedure, that only updates the data supplied by the program. So any data not supplied, would simply stay untouched.

An example. We have a table "Persons". The columns are: "PersonId", "FirstName", "LastName", "Age".

Now little Lisa has a birthday, and we need to change her age. So instead of supplying the SP with all the data of Lisa. I would like to be able to only supply the new value of "Age", and of course the "PersonId" for identification. All other values should remain the same.
But some day little Lisa gets married, and we need to change her last name. At that time, I would like to supply the same SP with only the new value "LastName", and all the other data should remain the same.

Is this possible? Or is it just not the way to do things?

Best regards
Soeren

AnswerRe: Stored procedure should only update supplied values. Pin
Colin Angus Mackay6-Mar-06 4:32
Colin Angus Mackay6-Mar-06 4:32 
AnswerRe: Stored procedure should only update supplied values. Pin
Chandana Subasinghe6-Mar-06 13:06
Chandana Subasinghe6-Mar-06 13:06 
QuestionData exceeds length of varchar datatype Pin
smadan6-Mar-06 0:30
smadan6-Mar-06 0:30 
AnswerRe: Data exceeds length of varchar datatype Pin
Colin Angus Mackay6-Mar-06 0:49
Colin Angus Mackay6-Mar-06 0:49 
GeneralRe: Data exceeds length of varchar datatype Pin
Dinuj Nath6-Mar-06 0:58
Dinuj Nath6-Mar-06 0:58 
GeneralRe: Data exceeds length of varchar datatype Pin
Colin Angus Mackay6-Mar-06 1:24
Colin Angus Mackay6-Mar-06 1:24 
GeneralRe: Data exceeds length of varchar datatype Pin
Dinuj Nath6-Mar-06 1:29
Dinuj Nath6-Mar-06 1:29 
GeneralRe: Data exceeds length of varchar datatype Pin
smadan6-Mar-06 1:21
smadan6-Mar-06 1:21 
AnswerRe: Data exceeds length of varchar datatype Pin
HimaBindu Vejella8-Mar-06 0:19
HimaBindu Vejella8-Mar-06 0:19 
GeneralRe: Data exceeds length of varchar datatype Pin
smadan8-Mar-06 0:42
smadan8-Mar-06 0:42 
QuestionDataSets and VS2005 Pin
slappe5-Mar-06 23:16
slappe5-Mar-06 23:16 
QuestionDevelopin Import Export tool Pin
tusha5-Mar-06 20:20
tusha5-Mar-06 20:20 
AnswerRe: Developin Import Export tool Pin
cbhkenshin5-Mar-06 21:46
cbhkenshin5-Mar-06 21:46 
Questiondata type conversion in stored procedure. Pin
GBal5-Mar-06 20:19
GBal5-Mar-06 20:19 
AnswerRe: data type conversion in stored procedure. Pin
Colin Angus Mackay5-Mar-06 22:37
Colin Angus Mackay5-Mar-06 22:37 
QuestionWhich Command to use in SQL 2000 That will give me the same as Limit in MySql Pin
cbhkenshin5-Mar-06 19:31
cbhkenshin5-Mar-06 19:31 
AnswerRe: Which Command to use in SQL 2000 That will give me the same as Limit in MySql Pin
Eric Dahlvang8-Mar-06 9:26
Eric Dahlvang8-Mar-06 9:26 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.