Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 333 results for
primarykey
- Page 1
Re: Primary key
Programming
Software Development
14 Years Ago
by kvprajapati
PrimaryKey
property of DataTable. [code] ds.Tables("tableName").
PrimaryKey
=new DataColumn(){ ds.Tables("tableName").Columns("fieldName")} [/code]
finding next primarykey value from a table
Programming
Web Development
15 Years Ago
by Robins Antony
hi guys, how to find the next
primarykey
value from a table b4 inserting?
TableAdapter.Update return PrimaryKey value
Programming
Web Development
14 Years Ago
by culebrin
… row updated at the time). I know, I passed the
primarykey
to filter the update statement, so it means that I…
Android Native - How to add Foreign Keys to Room entities
Programming
Mobile Development
2 Years Ago
by dimitrilc
…"], parentColumns = ["id"] )]) data class ReportCard( @
PrimaryKey
(autoGenerate = true) val id: Long = 0, @ColumnInfo(name =…androidx.room.Entity import androidx.room.ForeignKey import androidx.room.
PrimaryKey
@Entity(tableName = "report_card", foreignKeys = […
AttributeError: 'str' object has no attribute 'keys'
Programming
Software Development
8 Years Ago
by Saran_1
… os import json import csv def readAndWrite(inputFileName,
primaryKey
=""): input = open(inputFileName+".json&…writer.writeheader() for x in data: row_value = {} if
primaryKey
== "": for y in x.keys(): yValue …
Re: ExecuteNonQuery question
Programming
Web Development
14 Years Ago
by madmital
… = @NewValue BEGIN If Exists(Select
PrimaryKey
From TableToUpdate Where
PrimaryKey
= @NewValue) BEGIN Return -50 …BEGIN Update TableToUpdate Set
PrimaryKey
= @NewValue, OtherValue = @OtherValue, OtherValue2 = @OtherValue2 WHERE
primarykey
= @oldvalue END …
Android Native - How to embed an Entity inside of another Entity
Programming
Mobile Development
2 Years Ago
by dimitrilc
…@Entity(tableName = "soccer_team") data class SoccerTeam( @
PrimaryKey
(autoGenerate = true) val id: Long, @Embedded(prefix = &….kt** @Entity(tableName = "head_coach") data class HeadCoach( @
PrimaryKey
(autoGenerate = true) val id: Long, val name: String, val age…
Android Native - Define one-to-many relationship in Room
Programming
Mobile Development
2 Years Ago
by dimitrilc
…tableName = "class_room") data class ClassRoom( @
PrimaryKey
(autoGenerate = true) @ColumnInfo(name = "class_room_id…** @Entity(tableName = "class_room") data class ClassRoom( @
PrimaryKey
(autoGenerate = true) @ColumnInfo(name = "class_room_id") val …
ExecuteNonQuery question
Programming
Web Development
14 Years Ago
by bonnysammy
… = @NewValue BEGIN If exists(Select
PrimaryKey
From TableToUpdate Where
PrimaryKey
= @NewValue) BEGIN Return -50 END…= @OtherValue2 END END Else BEGIN Update TableToUpdate Set @
PrimaryKey
= @NewValue, OtherValue=@OtherValue, @OtherValue2 = @OtherValue2 END…
code integrity and errors
Programming
Databases
13 Years Ago
by sahirak
…SalGradenumber(2)CHECK(SalGradebetween1and12), YearsExpnumber(2), ProjectNovarchar2(5),
PRIMARYKEY
(StaffNo), FOREIGNKEY(ProjectNo)REFERENCESProject(ProjectNo)); 4)CREATETABLEProgram( ProgramNovarchar2…(4)notnull, Titlevarchar2(20), Languagevarchar2(20),
PRIMARYKEY
(ProgramNo), CHECK(Languagein('VB','JAVA','ORACLE','C','XML…
Getting check box value
Programming
Web Development
13 Years Ago
by tulipputih
…; ); // $db = "x"; $TABLENAME = "lesson"; $
primarykey
= "lessonID"; mysql_select_db( $db ); // Get the search variable from…quot;; $counter = 0; foreach( $field_names AS $fn ) { if ( $fn != $
primarykey
) echo "<td>" . $rows_results[$fn] . "<…
Re: Getting check box value
Programming
Web Development
13 Years Ago
by tulipputih
… 0; foreach( $field_names AS $fn ) { if ( $fn != $
primarykey
) echo "<td>" . $rows_results[$fn] . "&…a href="related.php?lessonID=' . $rows_results[$
primarykey
] . '">' . $rows_results[$
primarykey
] . '</a></td>';…
Android Native - How to use TypeConverter for Room
Programming
Mobile Development
2 Years Ago
by dimitrilc
…import androidx.room.Entity import androidx.room.
PrimaryKey
@Entity data class Classroom( @
PrimaryKey
(autoGenerate = true) val uid: Int …import androidx.room.Entity import androidx.room.
PrimaryKey
@Entity data class Classroom( @
PrimaryKey
(autoGenerate = true) val uid: Int …
Problem with 2 datatables and dataset
Programming
Software Development
15 Years Ago
by RobertG35
…MergedData") Dim columns() As DataColumn columns = dt1.
PrimaryKey
Try connVT.Open() connAD.Open() da1.Fill(dt1)…(0) keys2(0) = dt2.Columns(0) dt1.
PrimaryKey
= keys dt2.
PrimaryKey
= keys2 ds3.Tables.Add(dt1) ds3.Tables.Add(…
Issue with Primary Keys and child tables in dataset
Programming
Software Development
13 Years Ago
by G_Waddell
…) ... end sub [/CODE] I tried setting the
primarykey
on the datatables like so but I get an error…1 dimensional arrays... [CODE] myDset.Tables("Categories").
PrimaryKey
= myDset.Tables("Categories").Columns("CategoryID")…have any ideas? Do I need to set the
Primarykey
? Does the primary key need to be composite …
how to access the textbox of dynamically creaed table inside listview of usercontrol
Programming
Web Development
12 Years Ago
by f.sh
…quot;).Value == "Y") {
primaryKey
[pkCounter] = xDocRead.SelectSingleNode("ModuleTemp/"…if (i <= pkCounter) { lb.Text =
primaryKey
[i - 1]; } else { lb.Text = …
call ItemUpdating function on dynamically created save button click in listview
Programming
Web Development
12 Years Ago
by f.sh
…quot;).Value == "Y") {
primaryKey
[pkCounter] = xDocRead.SelectSingleNode("ModuleTemp/"…if (i <= pkCounter) { lb.Text =
primaryKey
[i - 1]; } else { lb.Text = …
Select Column Names or PKs in Table (SQL Server, Oracle, AS400, IBMDB2)
Programming
Databases
9 Years Ago
by JOSheaIV
…**Primary Keys** SQL Server `String.Format("SELECT column_name AS
PrimaryKey
FROM INFORMATION_SCHEMA.KEY_COLUMN_USAGE WHERE OBJECTPROPERTY(OBJECT_ID(constraint_name), 'IsPrimaryKey') = 1…;, TableName);` Oracle `String.Format("SELECT cols.column_name AS
PrimaryKey
FROM all_constraints cons, all_cons_columns cols WHERE cols.table_name = '{0…
Android Native - How to prepopulate a Room database
Programming
Mobile Development
2 Years Ago
by dimitrilc
… below. @Entity(tableName = "person") data class Person( @
PrimaryKey
(autoGenerate = true) val id: Long, @ColumnInfo(name = "first_name….ColumnInfo import androidx.room.Entity import androidx.room.
PrimaryKey
@Entity(tableName = "person") data class Person…
Re: Dataset cannot save into Database(No error:() Help needed!!
Programming
Software Development
13 Years Ago
by Anigmalee
… T.T Problem solve:) But 1 weird thing happen,the
primaryKey
is ID(set by access as default),everytime i click… by 2 instead of 1. How can I set the
PrimaryKey
manually, I go trough the MSDN but cant get the… example, maybe I wan to change the
Primarykey
to UsersID. I stil not clear how
primarykey
work@@ Anyway,code can work...just…
Help
Programming
Web Development
17 Years Ago
by soso30
….Element); this.Columns.Add(this.columnSeller); //this.
PrimaryKey
= new DataColumn[] { this.columnContractID,this.columnId…= false; this.Columns.Add(this.columnFraction); // this.
PrimaryKey
= new DataColumn[] { this.columnID }; } public …
Table specs
Programming
Databases
16 Years Ago
by pikkas
… 4 Quantity Double 8 Table Indexes Name Number of Fields
PrimaryKey
1 Clustered: False DistinctCount: 5 Foreign: False IgnoreNulls: False Name…
WHERE ( SELECT COUNT(*) FROM table2 WHERE fbid = *current_row_primary_key*) > 150
Programming
Web Development
15 Years Ago
by MDGM
Hi all, I need to do a query like this: [CODE]SELECT * FROM table1 WHERE ( SELECT COUNT(*) FROM table2 WHERE fbid = *current
primaryKey
*) > 150[/CODE] How do I get the *current
primaryKey
* in order to do the second section of the query? Max.
How to insert Data in MySql across 3 or more tables
Programming
Databases
14 Years Ago
by Sailor_Jerry
… company table has an auto_increment companyID
primaryKey
The phone table has an auto_increment phoneID
primaryKey
The companyPhone table row is made up…
Listview, SelectedItems.Count does not go back to 0
Programming
Software Development
14 Years Ago
by yorro
…the edit button btnEdit. [CODE=vb] Dim
PrimaryKey
as String Private Sub ListView1_MouseDoubleClicklstSearch.MouseClick With .SelectedItems(0…)
PrimaryKey
= .SubItems(0).Text End With End Sub …
3NF Advice
Programming
Databases
14 Years Ago
by hasse76
… In Book I have the following fields: (
PrimaryKey
)ProductID, Producttitle, Published. In Author I have: (
PrimaryKey
)AuthorID, Firstname, Lastname Ans in Author_Book…
need help retrieving data from two tables
Programming
Web Development
14 Years Ago
by wayz1229
… help. i have two tables as below: table1- qid(
primarykey
), qtitle table2- aid(
primarykey
), atitle, qid example, table1- (qid=1; qtitle=fruits…
Re: Issue with Primary Keys and child tables in dataset
Programming
Software Development
13 Years Ago
by kvprajapati
Have a look, [code] Dim dt As New DataTable dt.Columns.Add("No", GetType(Integer)) dt.Columns.Add("Name") dt.
PrimaryKey
= New DataColumn() {dt.Columns(0)} [/code]
Re: Issue with Primary Keys and child tables in dataset
Programming
Software Development
13 Years Ago
by G_Waddell
[QUOTE=adatapost;1211566]Have a look, [code] Dim dt As New DataTable dt.Columns.Add("No", GetType(Integer)) dt.Columns.Add("Name") dt.
PrimaryKey
= New DataColumn() {dt.Columns(0)} [/code][/QUOTE] Thanks! thats did the job...
These Columns Are Not Unique
Programming
Software Development
13 Years Ago
by MaxDes
hello all, I get the error : dt.
PrimaryKey
= New DataColumn() {dt.Columns("Title")} "These Columns …) = dr.Item(i) Next dt.Rows.Add(r) Loop dt.
PrimaryKey
= New DataColumn() {dt.Columns("Title")} If (dt.Rows…
1
2
3
6
Next
Last
Search
Search
Forum Categories
Hardware/Software
Programming
Digital Media
Community Center
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Meet People
Forums
Top Members
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2024 DaniWeb® LLC