Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Openxml
Message
De
06/09/2005 09:34:19
 
 
À
Tous
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Titre:
Openxml
Divers
Thread ID:
01046975
Message ID:
01046975
Vues:
58
In the ‘Using OPENXML’ of SQL 2000 Book Online. There are some examples.

SELECT *
FROM OPENXML (@idoc, '/ROOT/Customer/Order/OrderDetail',2)
WITH (OrderID int '../@OrderID',
CustomerID varchar(10) '../@CustomerID',
OrderDate datetime '../@OrderDate',
ProdID int '@ProductID',
Qty int '@Quantity')


SELECT *
FROM OPENXML (@idoc, '/ROOT/Customer/Order/OrderDetail')
WITH (CustomerID varchar(10) '../CustomerID',
OrderDate datetime '../OrderDate',
ProdID int '@ProductID',
Qty int '@Quantity')

What is @ ? What different between '../OrderDate' and '../@OrderDate'


Thanks


Jim Hou
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform