HELP, unbelievable problem about temporary table
From: Alex Lee (anonymous_at_discussions.microsoft.com)
Date: 04/13/04
- Next message: Zachariah: "Need help formatting Float data type for leading zeros"
- Previous message: Vishal Parkar: "Re: delete duplicate orders"
- Next in thread: ALEX LEE: "SOURCE CODE"
- Reply: ALEX LEE: "SOURCE CODE"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 13 Apr 2004 05:51:08 -0700
to avoid using cursor, i create a temporary table like this:
create table #INS_DETAIL
(
SN int not null identity, --
COMMODITY_CODE varchar(10) not null, --
LIMIT_PRICE decimal(10, 3) not null default 0.00, --
LIMIT_QTY decimal(15, 0) not null default 0.00, --
)
insert #INS_DETAIL (COMMODITY_CODE, LIMIT_PRICE, LIMIT_QTY)
select COMMODITY_CODE, LIMIT_PRICE, 9
....
....
drop table #INS_DETAIL
...
but sometimes the very error encountered: field 'LIMIT_QTY' doesn't exist.
if i change the temporary table name or delete the filed LIMIT_QTY, it's OK.
what's wrong? thanks in advance.
OS: WINDOWS 2000 SERVER
DB: MS SQL SERVER2000 + SP3
- Next message: Zachariah: "Need help formatting Float data type for leading zeros"
- Previous message: Vishal Parkar: "Re: delete duplicate orders"
- Next in thread: ALEX LEE: "SOURCE CODE"
- Reply: ALEX LEE: "SOURCE CODE"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
- KeyEvent consume() not working on JTextField, what am I done wrong?
... the characters while moving the cursor. ... 2007/100 13:12:34 is the time
string. ... public static final int YEAR_1 = 0; ... public void nextPosition(int
intKeyCode, int intCharPos) { ... (comp.lang.java.programmer) - KeyEvent consume() not working on JTextField, what am I doing wrong?
... the characters while moving the cursor. ... 2007/100 13:12:34 is the time
string. ... public static final int YEAR_1 = 0; ... public void nextPosition(int
intKeyCode, int intCharPos) { ... (comp.lang.java.gui) - KeyEvent consume() not working on JTextField, what am I doing wrong?
... the characters while moving the cursor. ... 2007/100 13:12:34 is the time
string. ... public static final int YEAR_1 = 0; ... public void nextPosition(int
intKeyCode, int intCharPos) { ... (comp.lang.java.help) - Re: Fehlende oder ungültige GROUP BY Klausel
... beim mir kommt unter VFP8 SP1 allerdings eine Fehlermeldung. ... Mit VFP9
kommt die Meldung nicht. ... CREATE CURSOR xaufst(ladtyp int, gesmeng int, re_dat
date) ... (microsoft.public.de.fox) - Re: DBCC DBREINDEXINDEXDEFRAG
... DECLARE @tablename VARCHAR ... DECLARE @objectid INT ... DECLARE
tables CURSOR FOR ... ObjectId INT NULL, ... (microsoft.public.sqlserver.server)