473,383 Members | 1,896 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

Q: primary key

Hi

I was wondering if anybody could advice me on the following scenario:

Suppose I have two data tables A and B respectively. Table B contains a
foreign key to a primary key in A. If I add data to both tables and then
perform an update, how can I be sure that the foreign key in B will have the
correct value?

To explain further, it is entirely possible that during filling the data in
the dataset, and before the update, another user may have placed data in
table A. For this reason, I forsee the possibility that the foreign key in B
i.e. the link to table A, may not be correct.

The only way I can see how to get this to work is to update A, reload A, get
the new primary key, write this as the foreign key in B, and then finally
update B!

Am I making myself clear? Probably not :)

If anybody understands my ramble and can help I'd be most greateful.

Thanks in advance

Geoff
Jan 22 '06 #1
9 1261
I'm not sure what you are asking, but it sounds like you want to make sure
you get the primary key from table A after you do an Insert then use that
for your foreign key in table B. The solution is to retrieve @@Identity at
the time you do the Insert into table A and use that for your foreign key in
B.

"Geoff" <no********@email.com> wrote in message
news:nf********************@pipex.net...
Hi

I was wondering if anybody could advice me on the following scenario:

Suppose I have two data tables A and B respectively. Table B contains a
foreign key to a primary key in A. If I add data to both tables and then
perform an update, how can I be sure that the foreign key in B will have
the correct value?

To explain further, it is entirely possible that during filling the data
in the dataset, and before the update, another user may have placed data
in table A. For this reason, I forsee the possibility that the foreign key
in B i.e. the link to table A, may not be correct.

The only way I can see how to get this to work is to update A, reload A,
get the new primary key, write this as the foreign key in B, and then
finally update B!

Am I making myself clear? Probably not :)

If anybody understands my ramble and can help I'd be most greateful.

Thanks in advance

Geoff

Jan 22 '06 #2
Hi Earl

Yes, that's exactly it. How do I do this using ADO?

Geoff

"Earl" <br******@newsgroups.nospam> wrote in message
news:es**************@TK2MSFTNGP14.phx.gbl...
I'm not sure what you are asking, but it sounds like you want to make sure
you get the primary key from table A after you do an Insert then use that
for your foreign key in table B. The solution is to retrieve @@Identity at
the time you do the Insert into table A and use that for your foreign key
in B.

"Geoff" <no********@email.com> wrote in message
news:nf********************@pipex.net...
Hi

I was wondering if anybody could advice me on the following scenario:

Suppose I have two data tables A and B respectively. Table B contains a
foreign key to a primary key in A. If I add data to both tables and then
perform an update, how can I be sure that the foreign key in B will have
the correct value?

To explain further, it is entirely possible that during filling the data
in the dataset, and before the update, another user may have placed data
in table A. For this reason, I forsee the possibility that the foreign
key in B i.e. the link to table A, may not be correct.

The only way I can see how to get this to work is to update A, reload A,
get the new primary key, write this as the foreign key in B, and then
finally update B!

Am I making myself clear? Probably not :)

If anybody understands my ramble and can help I'd be most greateful.

Thanks in advance

Geoff


Jan 22 '06 #3
ADO or ADO.Net?

"Geoff" <no********@email.com> wrote in message
news:yb********************@pipex.net...
Hi Earl

Yes, that's exactly it. How do I do this using ADO?

Geoff

"Earl" <br******@newsgroups.nospam> wrote in message
news:es**************@TK2MSFTNGP14.phx.gbl...
I'm not sure what you are asking, but it sounds like you want to make
sure you get the primary key from table A after you do an Insert then use
that for your foreign key in table B. The solution is to retrieve
@@Identity at the time you do the Insert into table A and use that for
your foreign key in B.

"Geoff" <no********@email.com> wrote in message
news:nf********************@pipex.net...
Hi

I was wondering if anybody could advice me on the following scenario:

Suppose I have two data tables A and B respectively. Table B contains a
foreign key to a primary key in A. If I add data to both tables and then
perform an update, how can I be sure that the foreign key in B will have
the correct value?

To explain further, it is entirely possible that during filling the data
in the dataset, and before the update, another user may have placed data
in table A. For this reason, I forsee the possibility that the foreign
key in B i.e. the link to table A, may not be correct.

The only way I can see how to get this to work is to update A, reload A,
get the new primary key, write this as the foreign key in B, and then
finally update B!

Am I making myself clear? Probably not :)

If anybody understands my ramble and can help I'd be most greateful.

Thanks in advance

Geoff



Jan 22 '06 #4
ADO.Net

Geoff

"Earl" <br******@newsgroups.nospam> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
ADO or ADO.Net?

"Geoff" <no********@email.com> wrote in message
news:yb********************@pipex.net...
Hi Earl

Yes, that's exactly it. How do I do this using ADO?

Geoff

"Earl" <br******@newsgroups.nospam> wrote in message
news:es**************@TK2MSFTNGP14.phx.gbl...
I'm not sure what you are asking, but it sounds like you want to make
sure you get the primary key from table A after you do an Insert then
use that for your foreign key in table B. The solution is to retrieve
@@Identity at the time you do the Insert into table A and use that for
your foreign key in B.

"Geoff" <no********@email.com> wrote in message
news:nf********************@pipex.net...
Hi

I was wondering if anybody could advice me on the following scenario:

Suppose I have two data tables A and B respectively. Table B contains a
foreign key to a primary key in A. If I add data to both tables and
then perform an update, how can I be sure that the foreign key in B
will have the correct value?

To explain further, it is entirely possible that during filling the
data in the dataset, and before the update, another user may have
placed data in table A. For this reason, I forsee the possibility that
the foreign key in B i.e. the link to table A, may not be correct.

The only way I can see how to get this to work is to update A, reload
A, get the new primary key, write this as the foreign key in B, and
then finally update B!

Am I making myself clear? Probably not :)

If anybody understands my ramble and can help I'd be most greateful.

Thanks in advance

Geoff



Jan 22 '06 #5
Well, assuming you are using SQL Server, I would use a stored procedure with
parameters (if you are just getting started with ADO.Net, a good book is
invaluable, it's a vast topic). Use your DataAdapterConfigWizard to create
most of the stored procedures and the parameter code for you. You might use
Bill Vaughn's article to get you started:

http://msdn.microsoft.com/library/de...andbuilder.asp

Essentially what you will do is:

1. Do the Insert on table A
2. At the time of the Insert, retrieve the @@Identity value. This is the
"ReturnValue" in your parameters collection.
3. The relevant point here is that your table A Insert sproc will have
returned the Identity of the new Insert to table A, and so now your
datatable will contain the NEW Identity value. Use that value to do the
Insert on table B.

Here is a somewhat lengthy example that I have written recently. I've taken
out most of the error handling, checks for other events to occur, and just
used one field. I am creating a new Contact, then adding that the Referrals
table with the ContactID as a foreign key. The ContactSelectCommand pulls a
schema for the Contacts table. The ContactInsertCommand and
ReferralInsertCommand are created by the DACW, then tweaked. I'm showing
only the ContactInsertCommand and the ins_Contact sproc, but the Referrals
(table "B") code/sproc are identical in structure.

Private Sub btnAdd_Click(ByVal sender As Object, ByVal e As
System.EventArgs) Handles btnAdd.Click
AddNewContact()
AddNewReferral()
End sub

Private Sub AddNewContact()
Dim strSQLServer As New SqlConnection(strConn)

Dim da As New SqlDataAdapter
da.SelectCommand = ContactSelectCommand()
da.FillSchema(ds, SchemaType.Source, "dtContactInfo")
da.Fill(ds)
Dim drNew As DataRow
drNew = ds.Tables("dtContactInfo").NewRow

If txtFirstName.Text <> "" Then
drNew("FirstName") = txtFirstName.Text
End If

'the rest of the contact info will follow
...........

ds.Tables("dtContactInfo").Rows.Add(drNew)
'this command calls ANOTHER stored proc to do the update
da.InsertCommand = ContactInsertCommand()
'using FirstReturnedRecord so we will have the newly returned ContactID
'to Insert into our Referral source
da.InsertCommand.UpdatedRowSource = UpdateRowSource.FirstReturnedRecord
da.Update(ds, "dtContactInfo")
strSQLServer.Close()
End Sub

************************************************** **

'now we can Insert to "table B" as we have the returned ContactID

Private Sub AddNewReferral()
Dim strSQLServer As New SqlConnection(strConn)
Dim da As New SqlDataAdapter
da.SelectCommand = ReferralSelectCommand()
da.FillSchema(ds, SchemaType.Source, "dtRef")
da.Fill(ds)

Dim drNew As DataRow
drNew = ds.Tables("dtRef").NewRow

If CInt(ds.Tables("dtContactInfo").Rows(0)("ContactID ")) > 0 Then
drNew("ContactID") = CInt(ds.Tables("dtContactInfo").Rows(0)("ContactID "))
End If
'here we would go ahead and add all the other data to the "table B"
...........
ds.Tables("dtRef").Rows.Add(drNew)
da.InsertCommand = ReferralInsertCommand()
da.InsertCommand.UpdatedRowSource = UpdateRowSource.FirstReturnedRecord
da.Update(ds, "dtRef")
End Sub

************************************************** **

Private Function ContactInsertCommand() As SqlCommand

Dim strSQLServer As New SqlConnection(strConn)
Dim cmd As New SqlCommand("ins_Contact", strSQLServer)
cmd.CommandType = CommandType.StoredProcedure

Dim pc As SqlParameterCollection = cmd.Parameters
'setup Parameters collection. All are input parameters
pc.Add(New System.Data.SqlClient.SqlParameter("@RETURN_VALUE" ,
System.Data.SqlDbType.Int, 4, System.Data.ParameterDirection.ReturnValue,
False, CType(0, Byte), CType(0, Byte), "",
System.Data.DataRowVersion.Current, Nothing))
pc.Add(New System.Data.SqlClient.SqlParameter("@FirstName",
System.Data.SqlDbType.VarChar, 25, "FirstName"))

'... other contact fields

Return cmd
End Function

************************************************** **
'now the Contact Insert sproc (the Referral Insert sproc is similar, just
diff fields and params)
ALTER PROCEDURE dbo.ins_Contact
(
....
@FirstName varchar(25),
'all the other contact params
.....
)
AS
SET NOCOUNT OFF;
INSERT INTO Contacts(FirstName, ... the rest of the columns)
VALUES (@FirstName, ... the rest of the params);
SELECT ContactID, FirstName, ... the rest of the columns
FROM Contacts WHERE (ContactID = @@IDENTITY)
"Geoff" <no********@email.com> wrote in message
news:d4********************@pipex.net...
ADO.Net

Geoff

"Earl" <br******@newsgroups.nospam> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
ADO or ADO.Net?

"Geoff" <no********@email.com> wrote in message
news:yb********************@pipex.net...
Hi Earl

Yes, that's exactly it. How do I do this using ADO?

Geoff

"Earl" <br******@newsgroups.nospam> wrote in message
news:es**************@TK2MSFTNGP14.phx.gbl...
I'm not sure what you are asking, but it sounds like you want to make
sure you get the primary key from table A after you do an Insert then
use that for your foreign key in table B. The solution is to retrieve
@@Identity at the time you do the Insert into table A and use that for
your foreign key in B.

"Geoff" <no********@email.com> wrote in message
news:nf********************@pipex.net...
> Hi
>
> I was wondering if anybody could advice me on the following scenario:
>
> Suppose I have two data tables A and B respectively. Table B contains
> a foreign key to a primary key in A. If I add data to both tables and
> then perform an update, how can I be sure that the foreign key in B
> will have the correct value?
>
> To explain further, it is entirely possible that during filling the
> data in the dataset, and before the update, another user may have
> placed data in table A. For this reason, I forsee the possibility that
> the foreign key in B i.e. the link to table A, may not be correct.
>
> The only way I can see how to get this to work is to update A, reload
> A, get the new primary key, write this as the foreign key in B, and
> then finally update B!
>
> Am I making myself clear? Probably not :)
>
> If anybody understands my ramble and can help I'd be most greateful.
>
> Thanks in advance
>
> Geoff
>



Jan 23 '06 #6
Hello, Geoff,

You don't say what database you are using. Try searching your help or
documentation for "transaction". If your database software supports
"transaction processing" (it probably does), I think you will find this
is what you want.

Typical use:

Begin a transaction.
Modify data in table
Modify related data (in related table)
" " " " " "
End the transaction

In the final step you can choose to either commit or roll back the
changes. When you commit, then other "referencers" of the database will
"see" all your changes "atomically". (I.e. all changes are made in a
single operation.)

Cheers,
Randy
Geoff wrote:
Hi

I was wondering if anybody could advice me on the following scenario:

Suppose I have two data tables A and B respectively. Table B contains a
foreign key to a primary key in A. If I add data to both tables and then
perform an update, how can I be sure that the foreign key in B will have the
correct value?

To explain further, it is entirely possible that during filling the data in
the dataset, and before the update, another user may have placed data in
table A. For this reason, I forsee the possibility that the foreign key in B
i.e. the link to table A, may not be correct.

The only way I can see how to get this to work is to update A, reload A, get
the new primary key, write this as the foreign key in B, and then finally
update B!

Am I making myself clear? Probably not :)

If anybody understands my ramble and can help I'd be most greateful.

Thanks in advance

Geoff

Jan 23 '06 #7
Hi

Thanks for your help. I'm using SQL Server. I'll try and find out some more
on transactions. They sound interesting.

Geoff

"R. MacDonald" <sc****@NO-SP-AMcips.ca> wrote in message
news:43***********************@news.wanadoo.nl...
Hello, Geoff,

You don't say what database you are using. Try searching your help or
documentation for "transaction". If your database software supports
"transaction processing" (it probably does), I think you will find this is
what you want.

Typical use:

Begin a transaction.
Modify data in table
Modify related data (in related table)
" " " " " "
End the transaction

In the final step you can choose to either commit or roll back the
changes. When you commit, then other "referencers" of the database will
"see" all your changes "atomically". (I.e. all changes are made in a
single operation.)

Cheers,
Randy
Geoff wrote:
Hi

I was wondering if anybody could advice me on the following scenario:

Suppose I have two data tables A and B respectively. Table B contains a
foreign key to a primary key in A. If I add data to both tables and then
perform an update, how can I be sure that the foreign key in B will have
the correct value?

To explain further, it is entirely possible that during filling the data
in the dataset, and before the update, another user may have placed data
in table A. For this reason, I forsee the possibility that the foreign
key in B i.e. the link to table A, may not be correct.

The only way I can see how to get this to work is to update A, reload A,
get the new primary key, write this as the foreign key in B, and then
finally update B!

Am I making myself clear? Probably not :)

If anybody understands my ramble and can help I'd be most greateful.

Thanks in advance

Geoff

Jan 23 '06 #8
Hi Earl

Many thanks for your comprehensive response.

I'm going to read through your code later on and if you don't mind I may get
back to you.

Thanks again for your help.

Geoff

"Earl" <br******@newsgroups.nospam> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
Well, assuming you are using SQL Server, I would use a stored procedure
with parameters (if you are just getting started with ADO.Net, a good book
is invaluable, it's a vast topic). Use your DataAdapterConfigWizard to
create most of the stored procedures and the parameter code for you. You
might use Bill Vaughn's article to get you started:

http://msdn.microsoft.com/library/de...andbuilder.asp

Essentially what you will do is:

1. Do the Insert on table A
2. At the time of the Insert, retrieve the @@Identity value. This is the
"ReturnValue" in your parameters collection.
3. The relevant point here is that your table A Insert sproc will have
returned the Identity of the new Insert to table A, and so now your
datatable will contain the NEW Identity value. Use that value to do the
Insert on table B.

Here is a somewhat lengthy example that I have written recently. I've
taken out most of the error handling, checks for other events to occur,
and just used one field. I am creating a new Contact, then adding that the
Referrals table with the ContactID as a foreign key. The
ContactSelectCommand pulls a schema for the Contacts table. The
ContactInsertCommand and ReferralInsertCommand are created by the DACW,
then tweaked. I'm showing only the ContactInsertCommand and the
ins_Contact sproc, but the Referrals (table "B") code/sproc are identical
in structure.

Private Sub btnAdd_Click(ByVal sender As Object, ByVal e As
System.EventArgs) Handles btnAdd.Click
AddNewContact()
AddNewReferral()
End sub

Private Sub AddNewContact()
Dim strSQLServer As New SqlConnection(strConn)

Dim da As New SqlDataAdapter
da.SelectCommand = ContactSelectCommand()
da.FillSchema(ds, SchemaType.Source, "dtContactInfo")
da.Fill(ds)
Dim drNew As DataRow
drNew = ds.Tables("dtContactInfo").NewRow

If txtFirstName.Text <> "" Then
drNew("FirstName") = txtFirstName.Text
End If

'the rest of the contact info will follow
..........

ds.Tables("dtContactInfo").Rows.Add(drNew)
'this command calls ANOTHER stored proc to do the update
da.InsertCommand = ContactInsertCommand()
'using FirstReturnedRecord so we will have the newly returned ContactID
'to Insert into our Referral source
da.InsertCommand.UpdatedRowSource = UpdateRowSource.FirstReturnedRecord
da.Update(ds, "dtContactInfo")
strSQLServer.Close()
End Sub

************************************************** **

'now we can Insert to "table B" as we have the returned ContactID

Private Sub AddNewReferral()
Dim strSQLServer As New SqlConnection(strConn)
Dim da As New SqlDataAdapter
da.SelectCommand = ReferralSelectCommand()
da.FillSchema(ds, SchemaType.Source, "dtRef")
da.Fill(ds)

Dim drNew As DataRow
drNew = ds.Tables("dtRef").NewRow

If CInt(ds.Tables("dtContactInfo").Rows(0)("ContactID ")) > 0 Then
drNew("ContactID") = CInt(ds.Tables("dtContactInfo").Rows(0)("ContactID "))
End If
'here we would go ahead and add all the other data to the "table B"
..........
ds.Tables("dtRef").Rows.Add(drNew)
da.InsertCommand = ReferralInsertCommand()
da.InsertCommand.UpdatedRowSource = UpdateRowSource.FirstReturnedRecord
da.Update(ds, "dtRef")
End Sub

************************************************** **

Private Function ContactInsertCommand() As SqlCommand

Dim strSQLServer As New SqlConnection(strConn)
Dim cmd As New SqlCommand("ins_Contact", strSQLServer)
cmd.CommandType = CommandType.StoredProcedure

Dim pc As SqlParameterCollection = cmd.Parameters
'setup Parameters collection. All are input parameters
pc.Add(New System.Data.SqlClient.SqlParameter("@RETURN_VALUE" ,
System.Data.SqlDbType.Int, 4, System.Data.ParameterDirection.ReturnValue,
False, CType(0, Byte), CType(0, Byte), "",
System.Data.DataRowVersion.Current, Nothing))
pc.Add(New System.Data.SqlClient.SqlParameter("@FirstName",
System.Data.SqlDbType.VarChar, 25, "FirstName"))

'... other contact fields

Return cmd
End Function

************************************************** **
'now the Contact Insert sproc (the Referral Insert sproc is similar, just
diff fields and params)
ALTER PROCEDURE dbo.ins_Contact
(
...
@FirstName varchar(25),
'all the other contact params
....
)
AS
SET NOCOUNT OFF;
INSERT INTO Contacts(FirstName, ... the rest of the columns)
VALUES (@FirstName, ... the rest of the params);
SELECT ContactID, FirstName, ... the rest of the columns
FROM Contacts WHERE (ContactID = @@IDENTITY)
"Geoff" <no********@email.com> wrote in message
news:d4********************@pipex.net...
ADO.Net

Geoff

"Earl" <br******@newsgroups.nospam> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
ADO or ADO.Net?

"Geoff" <no********@email.com> wrote in message
news:yb********************@pipex.net...
Hi Earl

Yes, that's exactly it. How do I do this using ADO?

Geoff

"Earl" <br******@newsgroups.nospam> wrote in message
news:es**************@TK2MSFTNGP14.phx.gbl...
> I'm not sure what you are asking, but it sounds like you want to make
> sure you get the primary key from table A after you do an Insert then
> use that for your foreign key in table B. The solution is to retrieve
> @@Identity at the time you do the Insert into table A and use that for
> your foreign key in B.
>
> "Geoff" <no********@email.com> wrote in message
> news:nf********************@pipex.net...
>> Hi
>>
>> I was wondering if anybody could advice me on the following scenario:
>>
>> Suppose I have two data tables A and B respectively. Table B contains
>> a foreign key to a primary key in A. If I add data to both tables and
>> then perform an update, how can I be sure that the foreign key in B
>> will have the correct value?
>>
>> To explain further, it is entirely possible that during filling the
>> data in the dataset, and before the update, another user may have
>> placed data in table A. For this reason, I forsee the possibility
>> that the foreign key in B i.e. the link to table A, may not be
>> correct.
>>
>> The only way I can see how to get this to work is to update A, reload
>> A, get the new primary key, write this as the foreign key in B, and
>> then finally update B!
>>
>> Am I making myself clear? Probably not :)
>>
>> If anybody understands my ramble and can help I'd be most greateful.
>>
>> Thanks in advance
>>
>> Geoff
>>
>
>



Jan 23 '06 #9
It's not an either-or situation. Transactions can ensure you have success on
both -- or none -- but you'll still have to write the Insert code in
ADO.Net.

"Geoff" <no********@email.com> wrote in message
news:66********************@pipex.net...
Hi

Thanks for your help. I'm using SQL Server. I'll try and find out some
more on transactions. They sound interesting.

Geoff

"R. MacDonald" <sc****@NO-SP-AMcips.ca> wrote in message
news:43***********************@news.wanadoo.nl...
Hello, Geoff,

You don't say what database you are using. Try searching your help or
documentation for "transaction". If your database software supports
"transaction processing" (it probably does), I think you will find this
is what you want.

Typical use:

Begin a transaction.
Modify data in table
Modify related data (in related table)
" " " " " "
End the transaction

In the final step you can choose to either commit or roll back the
changes. When you commit, then other "referencers" of the database will
"see" all your changes "atomically". (I.e. all changes are made in a
single operation.)

Cheers,
Randy
Geoff wrote:
Hi

I was wondering if anybody could advice me on the following scenario:

Suppose I have two data tables A and B respectively. Table B contains a
foreign key to a primary key in A. If I add data to both tables and then
perform an update, how can I be sure that the foreign key in B will have
the correct value?

To explain further, it is entirely possible that during filling the data
in the dataset, and before the update, another user may have placed data
in table A. For this reason, I forsee the possibility that the foreign
key in B i.e. the link to table A, may not be correct.

The only way I can see how to get this to work is to update A, reload A,
get the new primary key, write this as the foreign key in B, and then
finally update B!

Am I making myself clear? Probably not :)

If anybody understands my ramble and can help I'd be most greateful.

Thanks in advance

Geoff


Jan 25 '06 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: John Simmons | last post by:
How is it that even though I have the column "username" in my database set as a Primary key, using my PHP script to add new users to the database works without any errors even when signing up using...
4
by: Mavis Tilden | last post by:
Hi all, So I've been reading the newsgroups, and reading a few books trying to learn SQL and SQL Server 2000. The books tell me I need a Primary Key, and that every table should have one. I know...
9
by: 101 | last post by:
Taking a course on SQL. They are saying you can get better performance by having multiple files for a group. They then graphically show an example of "Primary" with multiple data files. I have...
4
by: serge | last post by:
I ran into a table that is used a lot. Well less than 100,000 records. Maybe not a lot of records but i believe this table is used often. The table has 26 fields, 9 indexes but no Primary Key at...
4
by: Peter | last post by:
I am interested in informed feedback on the use of Constraints, Primary Keys and Unique. The following SQL statement creates a Bands tables for a database of bookings Bands into Venues, where the...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.