Microsoft KB Archive/70829: Difference between revisions

From BetaArchive Wiki
m (Text replacement - ">" to ">")
m (X010 moved page Microsoft KB Archive/Q70829 to Microsoft KB Archive/70829 without leaving a redirect: Text replacement - "Microsoft KB Archive/Q" to "Microsoft KB Archive/")
 
(No difference)

Latest revision as of 19:29, 12 August 2020

PRSQL9103009: Cannot Assign a Local Variable a Computed Value ID Number: Q70829

1.10 OS/2 buglist1.10

Summary:

PROBLEM ID: PRSQL9103009

SYMPTOMS Using the following syntax to assign a computed value to a local variable causes SQL Server to GP-fault:

  select @veryhigh=price from titles
  where price > 10 compute max(price)

CAUSE This syntax is incorrect.

RESOLUTION Use the following syntax to assign a computed value to a local variable:

  select @veryhigh = max(price) from titles where price >10